/* style/index-faq.css */
/* body đã có padding-top: var(--header-offset) từ shared.css, không lặp lại ở đây */
.page-index-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background);
}

.page-index-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--background);
  color: var(--text-main);
  text-align: center;
}

.page-index-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 10px;
}

.page-index-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-index-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-index-faq__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index-faq__intro-text {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

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

.page-index-faq__btn-primary,
.page-index-faq__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-index-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index-faq__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index-faq__btn-secondary {
  background: transparent;
  color: var(--glow);
  border: 2px solid var(--border);
}

.page-index-faq__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.page-index-faq__faq-section {
  padding: 80px 20px;
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-index-faq__dark-section {
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-index-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-index-faq__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin-bottom: 20px;
}

.page-index-faq__section-description {
  font-size: 1.05em;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-index-faq__faq-item {
  background-color: var(--deep-green);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.page-index-faq__faq-item[open] {
  background-color: var(--background);
}

.page-index-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  position: relative;
}

.page-index-faq__faq-question::-webkit-details-marker {
  display: none;
}

.page-index-faq__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-index-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: 300;
  color: var(--glow);
  width: 25px;
  text-align: center;
  line-height: 1;
}

.page-index-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.7;
  opacity: 0.9;
}

.page-index-faq__faq-answer p {
  margin-bottom: 15px;
}

.page-index-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-index-faq__faq-answer a {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.95em;
}

.page-index-faq__game-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.page-index-faq__cta-section {
  padding: 80px 20px;
  background-color: var(--background);
  color: var(--text-main);
  text-align: center;
}

.page-index-faq__light-bg {
  background-color: var(--background);
  color: var(--text-main);
}

.page-index-faq__cta-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 20px;
}

.page-index-faq__cta-description {
  font-size: 1.05em;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-index-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-index-faq__main-title {
    font-size: 2em;
  }

  .page-index-faq__intro-text {
    font-size: 1em;
  }

  .page-index-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-index-faq__btn-primary,
  .page-index-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-index-faq__faq-section,
  .page-index-faq__cta-section {
    padding: 50px 15px;
  }

  .page-index-faq__section-title,
  .page-index-faq__cta-title {
    font-size: 1.8em;
  }

  .page-index-faq__section-description,
  .page-index-faq__cta-description {
    font-size: 0.95em;
  }

  .page-index-faq__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-index-faq__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }

  .page-index-faq__hero-image,
  .page-index-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-index-faq__hero-image-wrapper,
  .page-index-faq__container,
  .page-index-faq__faq-item,
  .page-index-faq__game-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  .page-index-faq__game-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .page-index-faq__main-title {
    font-size: 1.8em;
  }
  .page-index-faq__section-title,
  .page-index-faq__cta-title {
    font-size: 1.6em;
  }
}