/* 智能文字颜色选择器 - 必须实现（使用BEM命名规则） */
.page-faq__card, .page-faq__section, .page-faq__box {
  /* Hệ thống sẽ tự động phân tích độ sáng màu nền và chọn màu chữ tốt nhất */
}

/* Độ sáng tính toán và nguyên tắc chọn màu (sử dụng quy tắc đặt tên BEM) */
.page-faq__dark-bg {
  color: #ffffff; /* Nền tối với chữ sáng */
  background: #017439; /* Sử dụng màu thương hiệu nhưng đảm bảo độ tương phản */
}

.page-faq__light-bg {
  color: #333333; /* Nền sáng với chữ tối */
  background: #ffffff;
}

.page-faq__medium-bg {
  /* Nền độ sáng trung bình cần phân tích thông minh */
  color: #000000; /* Mặc định sử dụng chữ tối */
  background: #FFFFFF;
}

/* Khu vực nội dung chính - Ưu tiên cao nhất (sử dụng quy tắc đặt tên BEM) */
.page-faq__content-area, .page-faq__text-block {
  color: #333333; /* Đảm bảo dễ đọc trên hầu hết các nền */
  background: #ffffff; /* Nền trắng mặc định */
}

/* Đoạn văn và mục danh sách trong khu vực nội dung trang */
.page-faq p,
.page-faq li {
  color: #333333; /* Đảm bảo dễ đọc trên hầu hết các nền */
}

/* Thẻ và container - Lựa chọn nền thông minh (sử dụng quy tắc đặt tên BEM) */
.page-faq__card {
  background: #ffffff; /* Ưu tiên sử dụng nền trắng để đảm bảo dễ đọc */
  color: #333333;
  border: 1px solid #e0e0e0; /* Thêm viền để tăng cường độ dễ đọc */
}

/* Xử lý đặc biệt cho khu vực tối (sử dụng quy tắc đặt tên BEM) */
.page-faq__dark-section {
  background: #017439;
  color: #ffffff; /* Bắt buộc chữ trắng */
}

/* Đảm bảo độ tương phản màu chữ nút (sử dụng quy tắc đặt tên BEM) */
.page-faq__btn-primary {
  background: #017439;
  color: #ffffff; /* Chữ nút luôn sử dụng màu trắng */
  border: 2px solid transparent;
}

.page-faq__btn-secondary {
  background: #ffffff;
  color: #017439; /* Sử dụng màu thương hiệu để đảm bảo độ tương phản */
  border: 2px solid #017439;
}

/* Mobile responsive for FAQ */
@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faq__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .page-faq__hero-section {
    padding: 10px 15px 20px;
  }
  .page-faq__hero-content {
    padding: 0 15px;
  }
  .page-faq__main-title {
    font-size: clamp(24px, 6vw, 36px);
    line-height: 1.2;
    margin-bottom: 10px;
  }
  .page-faq__hero-description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-faq__cta-buttons .page-faq__btn-primary,
  .page-faq__cta-buttons .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-faq__section-title {
    font-size: clamp(22px, 5.5vw, 32px);
    margin-bottom: 15px;
  }
  .page-faq__section-intro-text {
    font-size: 15px;
    margin-bottom: 25px;
  }
  details.page-faq__faq-item summary.page-faq__faq-question { padding: 15px; }
  .page-faq__faq-qtext { font-size: 15px; }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
  }
  .page-faq__cta-section {
    flex-direction: column;
    padding: 20px 15px;
  }
  .page-faq__cta-banner-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }
  .page-faq__cta-content {
    text-align: center;
  }
  .page-faq__cta-title {
    font-size: clamp(20px, 5vw, 28px);
    margin-bottom: 10px;
  }
  .page-faq__cta-description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-faq__content-area .page-faq__container {
    padding: 30px 15px;
  }
}

/* Global image responsiveness */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}
.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Global button responsiveness */
.page-faq__cta-button,
.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq a[class*="button"],
.page-faq a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-faq__cta-buttons,
.page-faq__button-group,
.page-faq__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
@media (max-width: 768px) {
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__cta-button,
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__cta-buttons,
  .page-faq__button-group,
  .page-faq__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-faq__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

/* FAQ Specific Styles */
.page-faq__hero-section {
  background-color: #017439;
  color: #ffffff;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-faq__hero-image-wrapper {
  position: relative;
  margin-bottom: 30px;
}
.page-faq__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 400px; /* Adjust as needed */
  border-radius: 10px;
}
.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 1;
  position: relative;
}
.page-faq__main-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFF00;
}
.page-faq__hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.page-faq__btn-primary, .page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  transition: all 0.3s ease;
  min-width: 180px;
  cursor: pointer;
}
.page-faq__btn-primary {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
  border: 2px solid #C30808;
}
.page-faq__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
  transform: translateY(-2px);
}
.page-faq__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}
.page-faq__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2f;
  border-color: #005f2f;
  transform: translateY(-2px);
}

.page-faq__content-area {
  background-color: #ffffff;
  padding: 50px 0;
}
.page-faq__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}
.page-faq__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
}
.page-faq__section-intro-text {
  font-size: 17px;
  line-height: 1.6;
  color: #333333;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-faq__faq-list {
  margin-top: 30px;
}
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-faq__faq-item summary.page-faq__faq-question::-webkit-details-marker {
  display: none;
}
details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: #f5f5f5;
}
.page-faq__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
  color: #017439;
}
details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
  line-height: 1.7;
}
details.page-faq__faq-item .page-faq__faq-answer p {
  margin-bottom: 15px;
}
details.page-faq__faq-item .page-faq__faq-answer ul,
details.page-faq__faq-item .page-faq__faq-answer ol {
  margin-left: 20px;
  margin-bottom: 15px;
}
details.page-faq__faq-item .page-faq__faq-answer li {
  margin-bottom: 5px;
}

.page-faq__cta-section {
  display: flex;
  align-items: center;
  gap: 30px;
  background-color: #f5f5f5;
  border-radius: 10px;
  padding: 40px;
  margin-top: 50px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.page-faq__cta-banner-image {
  flex-shrink: 0;
  width: 400px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}
.page-faq__cta-content {
  flex-grow: 1;
  text-align: left;
}
.page-faq__cta-title {
  font-size: 28px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
}
.page-faq__cta-description {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 25px;
}
.page-faq__cta-content .page-faq__btn-primary,
.page-faq__cta-content .page-faq__btn-secondary {
  margin-right: 15px;
}

/* No homepage specific CSS blocks for game trial, promo strip, hot games, brand intro, winner ticker */
/* as this is an FAQ page. */