/* style/faq.css */

/* Custom Colors */
:root {
  --com88-green-primary: #11A84E;
  --com88-green-secondary: #22C768;
  --com88-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --com88-card-bg: #11271B;
  --com88-bg: #08160F;
  --com88-text-main: #F2FFF6;
  --com88-text-secondary: #A7D9B8;
  --com88-border: #2E7A4E;
  --com88-glow: #57E38D;
  --com88-gold: #F2C14E;
  --com88-divider: #1E3A2A;
  --com88-deep-green: #0A4B2C;
}

.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--com88-text-main); /* Default text color for the page */
  background-color: var(--com88-bg); /* Page background from custom colors */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--com88-deep-green);
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-faq__hero-content {
  max-width: 900px;
  color: var(--com88-text-main);
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Using clamp for responsive H1 */
  font-weight: 700;
  color: var(--com88-gold);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-faq__subtitle {
  font-size: clamp(1em, 1.5vw, 1.25em);
  color: var(--com88-text-secondary);
  margin-bottom: 30px;
}

.page-faq__btn-primary {
  display: inline-block;
  padding: 14px 30px;
  background: var(--com88-btn-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-faq__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* Introduction Section */
.page-faq__introduction-section {
  padding: 80px 0;
  background-color: var(--com88-card-bg);
  border-bottom: 1px solid var(--com88-divider);
  text-align: center;
}

.page-faq__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: var(--com88-text-main);
  margin-bottom: 25px;
  font-weight: 700;
}

.page-faq__section-description {
  font-size: 1.1em;
  color: var(--com88-text-secondary);
  max-width: 900px;
  margin: 0 auto 20px auto;
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 80px 0;
  background-color: var(--com88-bg);
}

.page-faq__faq-category {
  margin-bottom: 50px;
}

.page-faq__category-title {
  font-size: clamp(1.5em, 2.8vw, 2em);
  color: var(--com88-gold);
  margin-bottom: 30px;
  border-bottom: 2px solid var(--com88-border);
  padding-bottom: 15px;
}

.page-faq__faq-item {
  background-color: var(--com88-card-bg);
  border: 1px solid var(--com88-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--com88-text-main);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.15em;
  color: var(--com88-text-main);
  background-color: var(--com88-deep-green);
  transition: background-color 0.3s ease;
  list-style: none; /* For details summary */
}

.page-faq__faq-item[open] > .page-faq__faq-question {
  background-color: var(--com88-green-primary);
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--com88-text-secondary);
  border-top: 1px solid var(--com88-divider);
}

.page-faq__faq-answer p {
  margin-bottom: 10px;
  color: var(--com88-text-secondary);
}

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

.page-faq__cta-text {
  text-align: center;
  font-size: 1.1em;
  margin-top: 40px;
  color: var(--com88-text-main);
}

.page-faq__contact-link {
  color: var(--com88-green-secondary);
  text-decoration: underline;
  font-weight: 600;
}

.page-faq__contact-link:hover {
  color: var(--com88-gold);
}

.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  background: transparent;
  color: var(--com88-green-secondary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: 2px solid var(--com88-green-secondary);
  margin-left: 15px;
}

.page-faq__btn-secondary:hover {
  background-color: var(--com88-green-secondary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.page-faq__cta-section {
  background-color: var(--com88-deep-green);
  padding: 80px 0;
  text-align: center;
}

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

.page-faq__cta-description {
  font-size: 1.1em;
  color: var(--com88-text-secondary);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-faq__btn-large {
  padding: 16px 35px;
  font-size: 1.2em;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-faq__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-faq__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

  .page-faq__subtitle {
    font-size: clamp(0.9em, 4vw, 1.1em);
  }

  .page-faq__introduction-section,
  .page-faq__faq-list-section,
  .page-faq__cta-section {
    padding: 40px 0;
  }

  .page-faq__section-title,
  .page-faq__category-title,
  .page-faq__cta-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }

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

  .page-faq__faq-answer {
    padding: 15px 20px;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important; /* Override margin for stacked buttons */
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Ensure all images in content areas are responsive */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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;
    overflow: hidden !important;
  }

  .page-faq__video-section {
    padding-top: 10px !important; /* body đã đảm nhận --header-offset */
  }

  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}