:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg-color: #10233F;
  --text-main-color: #F3F8FF;
  --text-secondary-color: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --color-deep-navy: #08162B; /* This is the body background color */
}

.page-faq {
  color: var(--text-main-color); /* Body background is dark, use light text */
  background-color: var(--color-deep-navy); /* Ensure background is set for contrast */
  font-family: 'Roboto', sans-serif; /* Example font */
  line-height: 1.6;
}

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

.page-faq__hero-content-wrapper {
  max-width: 900px;
  margin-bottom: 30px; /* Space between text and image on desktop */
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Max width for the image */
  margin: 0 auto;
}

.page-faq__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__main-title {
  color: var(--text-main-color);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 900px; /* Constraint H1 width */
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1em;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-faq__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

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

.page-faq__btn-secondary:hover {
  background: var(--border-color);
  color: var(--text-main-color);
  transform: translateY(-2px);
}

.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: var(--color-deep-navy);
  color: var(--text-main-color);
}

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

.page-faq__section-title {
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.3;
}

.page-faq__section-title--light {
  color: var(--text-main-color);
}

.page-faq__faq-item {
  background-color: var(--card-bg-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
  border-bottom: 1px solid var(--divider-color);
}

.page-faq__faq-question h3 {
  margin: 0;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-main-color);
}

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

.page-faq__faq-answer {
  padding: 0 20px 20px;
  color: var(--text-secondary-color);
  font-size: 0.95em;
  display: none; /* Controlled by JS */
}

.page-faq__faq-item.active .page-faq__faq-answer {
  display: block;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  content: "−"; /* Changed by JS */
}

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

.page-faq__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

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

.page-faq__cta-buttons--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

/* Desktop styles */
@media (min-width: 769px) {
  .page-faq__hero-section {
    flex-direction: row; /* Horizontal layout for desktop */
    text-align: left;
    padding: 80px 40px;
    gap: 40px;
  }

  .page-faq__hero-content-wrapper {
    flex: 1;
    margin-bottom: 0;
  }

  .page-faq__hero-image-wrapper {
    flex: 1;
    max-width: 50%; /* Adjust as needed */
  }

  .page-faq__cta-buttons {
    justify-content: flex-start; /* Align buttons to the left on desktop */
  }
  
  .page-faq__cta-buttons--inline {
    justify-content: center; /* Keep inline buttons centered */
  }
}

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

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

  .page-faq__hero-content-wrapper,
  .page-faq__hero-image-wrapper,
  .page-faq__faq-list-section,
  .page-faq__container,
  .page-faq__contact-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

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

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

  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }
  
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__faq-question h3 {
    font-size: 1em;
  }

  .page-faq__faq-toggle {
    font-size: 1.2em;
  }

  /* All images */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}