/* style/faq.css */

/* Biến CSS */
:root {
  --primary-color: #0047AB; /* Deep Ocean Blue */
  --secondary-color: #FFD700; /* Gold */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-light: #f9f9f9;
  --bg-dark-card: rgba(0, 71, 171, 0.8);
  --border-color: #e0e0e0;
}

.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default light text for dark body background */
}

/* --- HERO Section --- */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop: Adjust for fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #0a2d61 100%); /* Darker gradient for hero */
  color: var(--text-light);
}

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

.page-faq__hero-image {
  width: 100%;
  max-width: 800px; /* Limit image width */
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-faq__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color); /* Gold title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-faq__cta-button:hover {
  background: #e6c200;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* --- Content Section --- */
.page-faq__content-section {
  padding: 60px 20px;
  background: #1a1a2e; /* Slightly lighter dark background for main content */
  color: var(--text-light);
}

.page-faq__container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-faq__dark-section {
  background: #1a1a2e;
  color: var(--text-light);
}

.page-faq__intro-text,
.page-faq__outro-text {
  font-size: 18px;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.7;
}

.page-faq__intro-text a,
.page-faq__outro-text a,
.page-faq__link-inline {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-faq__intro-text a:hover,
.page-faq__outro-text a:hover,
.page-faq__link-inline:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-faq__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-faq__sub-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-light);
  margin-top: 35px;
  margin-bottom: 20px;
  border-left: 5px solid var(--secondary-color);
  padding-left: 15px;
}

.page-faq p {
  font-size: 17px;
  margin-bottom: 18px;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-faq__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-faq__list li {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.6;
}

.page-faq__list strong {
  color: var(--secondary-color);
}

/* --- FAQ Accordion Styles --- */
.page-faq__faq-list {
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--primary-color); /* Dark blue for question background */
  border: 1px solid #003a8a;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light);
}

.page-faq__faq-question:hover {
  background: #003a8a;
  border-color: #002d6b;
}

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-light);
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg); /* Plus sign rotates to form a cross */
}

.page-faq__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 25px;
  opacity: 0;
  background: #0a2d61; /* Slightly lighter dark blue for answer background */
  color: #e0e0e0; /* Light grey for answer text */
  border-top: 1px solid #003a8a;
  border-radius: 0 0 10px 10px;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain any content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-faq__faq-answer p {
  margin-bottom: 0;
  font-size: 16px;
  color: #e0e0e0;
}

.page-faq__faq-answer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-faq__faq-answer a:hover {
    text-decoration: underline;
}

.page-faq__cta-bottom {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 20px;
}

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

  .page-faq__hero-description {
    font-size: 18px;
  }

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

  .page-faq__sub-title {
    font-size: 24px;
  }

  .page-faq p, .page-faq__list li {
    font-size: 16px;
  }
  
  .page-faq__faq-question h3 {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 140px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
  }

  .page-faq__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-faq__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-faq__cta-button {
    padding: 12px 30px;
    font-size: 18px;
  }

  .page-faq__content-section {
    padding: 40px 15px;
  }

  .page-faq__intro-text,
  .page-faq__outro-text {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-faq__section-title {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-faq__sub-title {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-left: 10px;
  }

  .page-faq p, .page-faq__list li {
    font-size: 15px;
    margin-bottom: 15px;
  }

  .page-faq__list {
    margin-left: 20px;
  }

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

  .page-faq__faq-question h3 {
    font-size: 16px;
  }

  .page-faq__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }

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

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px !important;
  }

  .page-faq__faq-answer p {
    font-size: 14px;
  }

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__hero-section,
  .page-faq__content-section,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 28px;
  }

  .page-faq__hero-description {
    font-size: 15px;
  }

  .page-faq__cta-button {
    font-size: 16px;
    padding: 10px 25px;
  }

  .page-faq__section-title {
    font-size: 24px;
  }

  .page-faq__sub-title {
    font-size: 20px;
  }

  .page-faq p, .page-faq__list li {
    font-size: 14px;
  }

  .page-faq__faq-question h3 {
    font-size: 15px;
  }

  .page-faq__faq-toggle {
    font-size: 22px;
    width: 26px;
    height: 26px;
  }
}