/* style/faq.css */

/* General styles for the page-faq scope */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--Text-Main, #F3F8FF); /* Default text color for dark body bg */
  background-color: var(--Deep-Navy, #08162B); /* Inherited from shared, but for context */
}

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

.page-faq__section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--Text-Main, #F3F8FF);
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__text-block {
  font-size: 16px;
  color: var(--Text-Secondary, #AFC4E8);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Hero Section */
.page-faq__hero-section {
  display: flex;
  flex-direction: column; /* Enforce image on top, text below */
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--Deep-Navy, #08162B);
  position: relative;
  overflow: hidden; /* For images */
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 40px; /* Space between image and content */
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-faq__hero-content {
  text-align: center;
  margin-bottom: 40px; /* Space before image, in this layout image is below */
}

.page-faq__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Using clamp for H1 */
  font-weight: 700;
  color: var(--Text-Main, #F3F8FF);
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__intro-text {
  font-size: 18px;
  color: var(--Text-Secondary, #AFC4E8);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  width: 100%; /* For responsive */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4);
}

.page-faq__btn-secondary {
  background: transparent;
  color: var(--Text-Main, #F3F8FF);
  border: 2px solid var(--Border, #244D84);
}

.page-faq__btn-secondary:hover {
  background: rgba(43, 115, 246, 0.1);
  border-color: #2B73F6;
  color: #2B73F6;
}

.page-faq__inline-btn {
    padding: 10px 20px;
    font-size: 15px;
    margin-top: 15px;
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #ffffff;
    border: none;
    display: block; /* Make it block for better spacing in answer */
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}
.page-faq__inline-btn:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    box-shadow: 0 2px 10px rgba(43, 115, 246, 0.3);
}


/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: var(--Card-B-G, #10233F);
}

.page-faq__faq-accordion {
  max-width: 900px;
  margin: 0 auto;
}

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--Border, #244D84);
  overflow: hidden;
  background: var(--Deep-Navy, #08162B); /* Darker background for FAQ items */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--Text-Main, #F3F8FF);
}
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: rgba(29, 95, 209, 0.1); /* Lighter hover for dark background */
}
.page-faq__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--Text-Main, #F3F8FF);
}
.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--Glow, #4FA8FF); /* Use glow color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px;
  text-align: center;
}
details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 20px;
  background: var(--Card-B-G, #10233F); /* Slightly different dark background for answer */
  border-radius: 0 0 8px 8px;
  color: var(--Text-Secondary, #AFC4E8);
  font-size: 16px;
}
.page-faq__faq-answer p {
    margin-bottom: 10px;
}
.page-faq__faq-answer p:last-child {
    margin-bottom: 0;
}


/* Contact Promo Section */
.page-faq__contact-promo-section {
    display: flex;
    flex-direction: column; /* Default to column for consistency, will switch to row on desktop */
    align-items: center;
    padding: 60px 20px;
    background-color: var(--Deep-Navy, #08162B);
    text-align: center;
    gap: 40px;
}

.page-faq__contact-content {
    max-width: 700px;
}

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

.page-faq__contact-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}


/* --- Responsive Styles --- */

/* For screens up to 1024px (tablet) - Placeholder, user asked for 768px explicitly */
@media (max-width: 1024px) {
  .page-faq__section-title {
    font-size: 28px;
  }
  .page-faq__intro-text {
    font-size: 17px;
  }
  .page-faq__faq-qtext {
    font-size: 17px;
  }
  .page-faq__faq-answer {
    font-size: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    padding: 12px 24px;
    font-size: 15px;
  }
}

/* For screens up to 768px (mobile) */
@media (max-width: 768px) {
  /* General mobile adaptations */
  .page-faq {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-faq__container {
    padding: 0 15px;
  }

  /* Hero Section */
  .page-faq__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
  }

  .page-faq__hero-image-wrapper {
    margin-bottom: 30px;
  }
  
  .page-faq__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__hero-content {
    margin-bottom: 30px;
  }

  .page-faq__main-title {
    font-size: 26px; /* Adjusted H1 for mobile */
    margin-bottom: 15px;
  }

  .page-faq__intro-text {
    font-size: 16px;
    margin-bottom: 25px;
  }

  /* Buttons and Button Containers */
  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .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; /* Added padding for content inside button */
    padding-right: 15px;
  }

  /* FAQ List Section */
  .page-faq__faq-list-section {
    padding: 40px 0;
  }

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 20px;
  }
  .page-faq__faq-qtext {
    font-size: 16px;
  }
  .page-faq__faq-toggle {
    font-size: 24px;
    width: 28px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }
  .page-faq__inline-btn {
      max-width: 100% !important;
      width: 100% !important;
      padding: 12px 15px;
      font-size: 15px;
  }

  /* Contact Promo Section */
  .page-faq__contact-promo-section {
      padding: 40px 15px;
      gap: 30px;
  }
  .page-faq__section-title {
      font-size: 24px;
      margin-bottom: 25px;
  }
  .page-faq__text-block {
      font-size: 15px;
      margin-bottom: 25px;
  }
  .page-faq__contact-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Universal image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-image-wrapper,
  .page-faq__contact-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}