/* General page styles */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default page background */
}

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-index__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, #017439, #ffffff); /* Gradient background for HERO section */
}

.page-index__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-index__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-index__hero-title {
  font-size: 3em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.page-index__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Ensure wrap on mobile */
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #C30808; /* Login/Register button color */
  color: #FFFF00; /* Login/Register font color */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__cta-button:hover {
  background: #9b0606; /* Darker red on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Module 1: Intro Section */
.page-index__intro-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.page-index__intro-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: center;
}

.page-index__intro-feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-index__intro-feature-item:hover {
  transform: translateY(-5px);
}

.page-index__intro-feature-item img {
  
  
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.page-index__intro-feature-item h3 {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-index__intro-feature-item p {
  font-size: 1em;
  color: #555555;
}

/* Module 2: Quick Access Section */
.page-index__quick-access-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background for this section */
  color: #ffffff; /* Light text color */
}

.page-index__quick-access-section .page-index__section-title {
  color: #ffffff;
}

.page-index__quick-access-section .page-index__text-block {
  color: #f0f0f0;
}

.page-index__quick-access-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.page-index__quick-access-button {
  display: inline-block;
  padding: 15px 30px;
  background: #C30808; /* Red for access buttons */
  color: #FFFF00; /* Yellow text */
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__quick-access-button:hover {
  background: #9b0606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Module 3: Games Section */
.page-index__games-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-index__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index__game-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
}

.page-index__game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-index__game-card-title {
  font-size: 1.5em;
  color: #017439;
  margin: 20px 15px 10px;
  min-height: 48px; /* Ensure consistent height for titles */
}

.page-index__game-card-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-card-title a:hover {
  color: #004d2c;
}

.page-index__game-card p {
  font-size: 1em;
  color: #555555;
  padding: 0 15px 20px;
}

/* Module 4: Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-index__promotions-section .page-index__section-title {
  color: #ffffff;
}

.page-index__promotions-section .page-index__text-block {
  color: #f0f0f0;
}

.page-index__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index__promotion-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-index__promotion-card:hover {
  transform: translateY(-5px);
}

.page-index__promotion-card img {
  width: 100%;
  
  object-fit: cover;
  display: block;
}

.page-index__promotion-card-title {
  font-size: 1.4em;
  color: #FFFF00; /* Yellow for promotion titles */
  margin: 20px 15px 10px;
  min-height: 44px; /* Consistent height */
}

.page-index__promotion-card-title a {
  color: #FFFF00;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__promotion-card-title a:hover {
  color: #ffcc00;
}

.page-index__promotion-card p {
  font-size: 1em;
  color: #f0f0f0;
  padding: 0 15px 20px;
}

.page-index__view-all-promotions {
  text-align: center;
  margin-top: 50px;
}

/* Module 5: Security & Support Section */
.page-index__security-support-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.page-index__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: center;
}

.page-index__security-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-index__security-item:hover {
  transform: translateY(-5px);
}

.page-index__security-item img {
  
  
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.page-index__security-item h3 {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-index__security-item p {
  font-size: 1em;
  color: #555555;
}

.page-index__contact-buttons {
  text-align: center;
  margin-top: 50px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Ensure wrap on mobile */
}

.page-index__cta-button--contact,
.page-index__cta-button--support {
  background: #017439; /* Primary color for contact buttons */
  color: #ffffff;
  padding: 15px 30px;
  font-size: 1.1em;
}

.page-index__cta-button--contact:hover,
.page-index__cta-button--support:hover {
  background: #004d2c;
}

/* Module 6: FAQ Section */
.page-index__faq-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-index__faq-section .page-index__section-title {
  color: #ffffff;
}

.page-index__faq-section .page-index__text-block {
  color: #f0f0f0;
}

.page-index__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ容器样式 */
.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ默认状态 - 答案隐藏 */
.page-index__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ展开状态 - ⚠️ Sử dụng!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* ⚠️ Sử dụng!important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  color: #333333; /* Đảm bảo văn bản tối trên nền sáng */
  border-radius: 0 0 5px 5px;
}