/* style/index.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-button-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --border-light: #e0e0e0;
}

/* Base styles for the page content */
.page-index {
  font-family: Arial, sans-serif;
  color: var(--text-dark); /* Default text color for light background */
  background: var(--background-light); /* Default light background */
  line-height: 1.6;
}

/* 🚨 Desktop HERO主图区域样式（必须严格遵守） */
.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  /* 🚨 顶部间距以公用片段约定为准，使用 var(--header-offset)，避免被固定页头盖住 */
  padding-top: var(--header-offset, 120px);
  background-color: var(--primary-color); /* Light blue background for hero */
  color: var(--text-light);
}

.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;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

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

.page-index__hero-content h1 {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-index__hero-content p {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: var(--text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--login-button-color); /* Using login color for CTA */
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-index__cta-button:hover {
  background: #c76706; /* Darker version of #EA7C07 */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Generic section styles */
.page-index__section {
  padding: 60px 20px;
  margin-bottom: 30px;
  background-color: var(--background-light);
  color: var(--text-dark);
}

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

.page-index__section--gray {
  background-color: #f5f5f5;
  color: var(--text-dark);
}

.page-index__section-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-index__section-header h2 {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: inherit;
}

.page-index__section-header p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto;
  color: inherit;
}

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

/* Quick Access Links */
.page-index__quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-index__access-item {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  border: 1px solid var(--border-light);
}

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

.page-index__access-item h3 {
  font-size: 1.4em;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-index__access-item p {
  font-size: 1em;
  margin-bottom: 25px;
  color: var(--text-dark);
  flex-grow: 1;
}

.page-index__access-item .page-index__btn-link {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-index__access-item .page-index__btn-link:hover {
  background-color: #208cb3; /* Darker version of #26A9E0 */
}

/* Core Games/Services */
.page-index__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__game-card {
  background-color: var(--secondary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-light);
}

.page-index__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  overflow: hidden;
}

.page-index__game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-index__game-card:hover .page-index__game-card-image img {
  transform: scale(1.05);
}

.page-index__game-card-content {
  padding: 25px;
}

.page-index__game-card-content h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-index__game-card-content p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.page-index__game-card-content .page-index__btn-detail {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-index__game-card-content .page-index__btn-detail:hover {
  background-color: #208cb3; /* Darker version of #26A9E0 */
}

/* Promotions */
.page-index__promo-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.page-index__promo-item {
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 25px;
  border: 1px solid var(--border-light);
}

.page-index__promo-item-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  border-radius: 50%;
  color: var(--text-light);
  font-size: 2.5em;
  font-weight: bold;
}

.page-index__promo-item-content h3 {
  font-size: 1.4em;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.page-index__promo-item-content p {
  font-size: 1em;
  color: var(--text-dark);
}

/* Security & Customer Service */
.page-index__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__security-item {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
}

.page-index__security-item img {
   /* Adjust size for content image, not icon */
  
  margin-bottom: 20px;
  object-fit: contain;
}

.page-index__security-item h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-index__security-item p {
  font-size: 0.95em;
  color: var(--text-dark);
}

/* FAQ Section */
.page-index__faq-list {
  margin-top: 40px;
}

/* 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展开状态 - 🚨 使用!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 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}