:root {
  --primary-color: #4A148C; /* Deep Purple */
  --secondary-color: #FFC107; /* Amber */
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --bg-color-light: #f4f4f4; /* From body background */
  --border-color: #e0e0e0;
}

.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-index__section-title--light {
  color: var(--text-color-light);
}

.page-index__text-block {
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px auto;
  color: var(--text-color-dark);
}

/* HERO 主图区域样式 */
.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); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #6A1B9A 100%); /* Subtle gradient with primary color */
  overflow: hidden;
}

.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;
  position: relative;
  z-index: 1;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px;
  color: var(--text-color-light);
  padding: 20px;
  border-radius: 10px;
}

.page-index__hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--text-color-light);
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.page-index__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: #e0e0e0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index__cta-button {
  display: inline-block;
  padding: 16px 45px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 19px;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
}

.page-index__cta-button--primary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 6px 15px rgba(255, 193, 7, 0.4);
}

.page-index__cta-button--primary:hover {
  background: #ffdb58;
  border-color: #ffdb58;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 193, 7, 0.6);
}

.page-index__cta-button--secondary {
  background: transparent;
  color: var(--text-color-light);
  border: 2px solid var(--text-color-light);
}

.page-index__cta-button--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.2);
}

/* Module 1: Trang chủ giới thiệu */
.page-index__intro-section {
  padding: 80px 0;
  background-color: var(--bg-color-light);
  color: var(--text-color-dark);
}

/* Module 2: Lối vào liên kết nhanh */
.page-index__quick-links-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

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

.page-index__quick-link-card {
  display: block;
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  color: var(--text-color-light);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-index__quick-link-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-index__quick-link-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-index__quick-link-description {
  font-size: 16px;
  color: #e0e0e0;
}

/* Module 3: Giới thiệu trò chơi/dịch vụ cốt lõi */
.page-index__core-games-section {
  padding: 80px 0;
  background-color: var(--bg-color-light);
  color: var(--text-color-dark);
}

.page-index__game-showcase-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.page-index__game-showcase-image {
  flex: 1;
  min-width: 400px;
  text-align: center;
}

.page-index__game-showcase-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-index__game-categories {
  flex: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-index__game-category-item {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__game-category-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-index__game-category-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-category-title a:hover {
  color: var(--secondary-color);
}

.page-index__game-category-description {
  font-size: 16px;
  color: #555555;
}

/* Module 4: Chương trình khuyến mãi */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

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

.page-index__promo-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-index__promo-card img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-index__promo-title {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-index__promo-title a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__promo-title a:hover {
  color: #ffdb58;
}

.page-index__promo-description {
  font-size: 17px;
  color: #e0e0e0;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-index__btn-primary {
  display: inline-block;
  padding: 14px 35px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color);
  box-sizing: border-box;
}

.page-index__btn-primary:hover {
  background: #ffdb58;
  border-color: #ffdb58;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

/* Module 5: An toàn & Dịch vụ khách hàng */
.page-index__security-support-section {
  padding: 80px 0;
  background-color: var(--bg-color-light);
  color: var(--text-color-dark);
}

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

.page-index__feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-index__feature-item img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  object-fit: cover;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

.page-index__feature-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-index__feature-description {
  font-size: 16px;
  color: #555555;
}

.page-index__contact-cta {
  text-align: center;
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-index__btn-secondary {
  display: inline-block;
  padding: 14px 35px;
  background: transparent;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  box-sizing: border-box;
}

.page-index__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Module 6: FAQ常见问题区域 */
.page-index__faq-section {
  padding: 80px 0;
  background-color: var(--bg-color-light);
  color: var(--text-color-dark);
}

.page-index__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

/* FAQ容器样式 */
.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 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 20px;
  opacity: 0;
  background: #f9f9f9;
  color: #555;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.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 !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}