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

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

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

.page-index__section-title--white {
  color: #FFFFFF;
}

.page-index__section-description {
  font-size: 18px;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__section-description--white {
  color: #f0f0f0;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #C30808; /* Đăng ký/Đăng nhập màu đỏ */
  color: #FFFF00; /* Đăng ký/Đăng nhập font màu vàng */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin: 10px 10px 0;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-index__cta-button--secondary {
  background: #017439;
  color: #FFFFFF;
}

.page-index__cta-button--secondary:hover {
  background: #005f2e;
}

.page-index__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-index__btn-primary:hover {
  background: #005f2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.page-index__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background: #FFFFFF;
  color: #017439;
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  margin-top: 15px;
  border: 2px solid #017439;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-index__btn-secondary:hover {
  background: #f0f0f0;
  color: #005f2e;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 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); /* Đảm bảo không bị che bởi header */
  background: linear-gradient(135deg, #017439, #333333);
  color: #ffffff;
}

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

.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: 48px;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.2;
}

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

/* 模块 1：首页介绍 */
.page-index__intro-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-index__intro-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-index__intro-text {
  flex: 2;
  font-size: 17px;
  color: #333333;
}

.page-index__intro-text p {
  margin-bottom: 15px;
}

.page-index__intro-text strong {
  color: #017439;
}

.page-index__intro-image {
  flex: 1;
  min-width: 200px;
}

.page-index__intro-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 模块 2：快速访问链接入口 */
.page-index__quick-access-section {
  padding: 80px 0;
  background-color: #017439;
  color: #FFFFFF;
}

.page-index__quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-index__access-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: #FFFFFF;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-index__access-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-index__access-card p {
  font-size: 16px;
  color: #f0f0f0;
}

/* 模块 3：核心游戏/服务介绍 */
.page-index__core-games-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.page-index__game-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 10px;
}

.page-index__tab-button {
  background: #e0e0e0;
  border: none;
  padding: 12px 25px;
  cursor: pointer;
  font-size: 17px;
  font-weight: bold;
  border-radius: 25px;
  transition: all 0.3s ease;
  color: #555555;
}

.page-index__tab-button.active,
.page-index__tab-button:hover {
  background: #017439;
  color: #FFFFFF;
}

.page-index__game-panel {
  display: none;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  background: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.page-index__game-panel.active {
  display: flex;
}

.page-index__game-panel-image {
  flex: 1;
  min-width: 250px;
}

.page-index__game-panel-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.page-index__game-panel-text {
  flex: 2;
  font-size: 17px;
  color: #333333;
}

.page-index__game-panel-text h3 {
  font-size: 28px;
  color: #017439;
  margin-bottom: 15px;
}

.page-index__game-panel-text p {
  margin-bottom: 15px;
}

/* 模块 4：优惠活动 */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #017439;
  color: #FFFFFF;
}

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

.page-index__promo-card {
  background: #FFFFFF;
  color: #333333;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
  padding-bottom: 20px;
}

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

.page-index__promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index__promo-card h3 {
  font-size: 22px;
  color: #017439;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__promo-card p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 15px;
  padding: 0 15px;
}

/* 模块 5：安全与客服 */
.page-index__security-support-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-index__security-item {
  padding: 25px;
  border-radius: 10px;
  background: #f8f8f8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-index__security-item img {
  
  
  object-fit: contain;
  margin-bottom: 15px;
}

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

.page-index__security-item p {
  font-size: 16px;
  color: #555555;
}

/* 模块 6：FAQ常见问题区域 */
.page-index__faq-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.page-index__faq-list {
  max-width: 900px;
  margin: 0 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;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!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 bất kỳ nội dung nào */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Vấn đề phong cách */
.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-index__faq-question:active {
  background: #eeeeee;
}

/* Vấn đề tiêu đề phong cách */
.page-index__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp chuột */
  color: #333333;
}

/* Chuyển đổi biểu tượng */
.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn chặn biểu tượng chặn sự kiện nhấp chuột */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #017439;
  transform: rotate(45deg);
}

/* 模块 7：最新博客内容 */
.page-index__latest-blog-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-index__blog-card {
  display: flex;
  flex-direction: column;
  background: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease;
}

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

.page-index__blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page-index__blog-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index__blog-card-content h3 {
  font-size: 20px;
  color: #017439;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-index__blog-card-content p {
  font-size: 15px;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-index__blog-date {
  font-size: 14px;
  color: #888888;
  text-align: right;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 42px;
  }

  .page-index__section-title {
    font-size: 30px;
  }

  .page-index__intro-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__intro-image {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }

  .page-index__game-panel {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__hero-title {
    font-size: 32px;
  }

  .page-index__hero-description {
    font-size: 16px;
  }

  .page-index__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    margin: 8px 5px 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index__section-title {
    font-size: 26px;
  }

  .page-index__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-index__intro-section,
  .page-index__quick-access-section,
  .page-index__core-games-section,
  .page-index__promotions-section,
  .page-index__security-support-section,
  .page-index__faq-section,
  .page-index__latest-blog-section {
    padding: 50px 0;
  }

  .page-index__container {
    padding: 0 15px;
  }

  .page-index__game-tabs {
    flex-direction: column;
    align-items: center;
  }

  .page-index__tab-button {
    width: 100%;
    max-width: 300px;
  }

  .page-index__promo-card img,
  .page-index__blog-card img {
    
  }

  .page-index__security-item img {
    
    
  }

  /* FAQ mobile */
  .page-index__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-index__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-index__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-index__faq-answer {
    padding: 0 15px;
  }
  
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px !important;
  }

  /* General image responsiveness */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__hero-container,
  .page-index__intro-content,
  .page-index__quick-access-grid,
  .page-index__game-tabs,
  .page-index__game-panel,
  .page-index__promotions-grid,
  .page-index__security-grid,
  .page-index__faq-list,
  .page-index__blog-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__hero-content .page-index__cta-button {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px;
  }

  .page-index__cta-button:last-of-type {
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 28px;
  }
  .page-index__hero-description {
    font-size: 15px;
  }
  .page-index__section-title {
    font-size: 24px;
  }
  .page-index__cta-button {
    font-size: 15px;
    padding: 10px 20px;
  }
  .page-index__access-card h3 {
    font-size: 18px;
  }
  .page-index__game-panel-text h3 {
    font-size: 24px;
  }
  .page-index__promo-card h3,
  .page-index__blog-card-content h3 {
    font-size: 18px;
  }
  .page-index__security-item h3 {
    font-size: 18px;
  }
  .page-index__faq-question h3 {
    font-size: 14px;
  }
  .page-index__faq-toggle {
    font-size: 18px;
  }
}