/* Base Styles for FAQ Page */
.page-faq {
  font-family: Arial, sans-serif;
  color: var(--Text-Main); /* Default text color from custom palette */
  background-color: var(--Deep-Navy); /* Body background from shared.css */
  padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
}

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

.page-faq__hero-section {
  position: relative;
  text-align: center;
  padding-bottom: 40px;
  color: var(--Text-Main);
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 400px; /* Adjust height for hero section */
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
}

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

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 2.5em); /* Using clamp for responsive H1 font-size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--Gold); /* Use Gold for main title */
}

.page-faq__description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--Text-Secondary);
}

.page-faq__section-title {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--Gold);
}

.page-faq__section-intro {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--Text-Secondary);
}

/* Quick Links Section */
.page-faq__quick-links-section {
  padding: 60px 0;
  background-color: var(--Card-BG);
}

.page-faq__quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-faq__quick-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  background-color: var(--Deep-Navy);
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: var(--Text-Main);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid var(--Border);
}

.page-faq__quick-link-item:hover {
  transform: translateY(-5px);
  background-color: #0d1e3a; /* Slightly lighter Deep Navy for hover */
  border-color: var(--Glow);
}

.page-faq__quick-link-item h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--Gold);
}

.page-faq__quick-link-item p {
  font-size: 0.95em;
  color: var(--Text-Secondary);
}

/* FAQ Section Styling */
.page-faq__section {
  padding: 80px 0;
  background-color: var(--Deep-Navy);
}

.page-faq__dark-section {
  background-color: var(--Card-BG);
}

/* FAQ Item Styling (using <details> structure) */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--Border);
  overflow: hidden;
  background: var(--Card-BG);
  color: var(--Text-Main);
}
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;
}
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: #152b4d; /* Slightly lighter Card BG for hover */
}
.page-faq__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--Text-Main);
}
.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--Gold);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 20px;
  background: #0d1e3a; /* Slightly darker than Card BG */
  border-radius: 0 0 10px 10px;
  color: var(--Text-Secondary);
  line-height: 1.6;
}

/* Call to Action within sections */
.page-faq__call-to-action {
  text-align: center;
  margin-top: 50px;
  font-size: 1.1em;
  color: var(--Text-Secondary);
}

/* Final CTA Section */
.page-faq__final-cta {
  padding: 80px 0;
  background-image: linear-gradient(180deg, var(--Primary-Color) 0%, var(--Auxiliary-Color) 100%);
  text-align: center;
  color: var(--Text-Main);
}

.page-faq__final-cta-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff; /* White text on gradient for contrast */
}

.page-faq__final-cta-description {
  font-size: 1.2em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #ffffff;
}

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

/* Button Styles */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping by default */
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
}

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

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 0 15px var(--Glow);
}

.page-faq__btn-secondary {
  background: var(--Card-BG);
  color: var(--Gold);
  border: 2px solid var(--Gold);
}

.page-faq__btn-secondary:hover {
  background: var(--Gold);
  color: var(--Deep-Navy);
  border-color: var(--Gold);
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

/* General image responsiveness */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-faq__container {
    padding: 15px;
  }
  .page-faq__hero-image-wrapper {
    height: 350px;
  }
  .page-faq__main-title {
    font-size: 2.2em;
  }
  .page-faq__description {
    font-size: 1em;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__section-intro {
    font-size: 1em;
  }
  .page-faq__quick-links-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-faq__faq-qtext {
    font-size: 1em;
  }
  .page-faq__final-cta-title {
    font-size: 2em;
  }
  .page-faq__final-cta-description {
    font-size: 1.1em;
  }
}

@media (max-width: 849px) {
  .page-faq__hero-image {
    object-fit: contain; /* Banner object-fit:contain at 849px */
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faq__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-faq__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 30px;
  }
  .page-faq__hero-image-wrapper {
    height: 250px;
    margin-bottom: 20px;
  }
  .page-faq__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-faq__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  .page-faq__final-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__section-title {
    font-size: 1.6em;
    margin-bottom: 30px;
  }
  .page-faq__section-intro {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-faq__quick-links-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-faq__quick-link-item {
    padding: 20px;
  }
  .page-faq__quick-link-item h3 {
    font-size: 1.2em;
  }
  .page-faq__quick-link-item p {
    font-size: 0.9em;
  }
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 20px;
  }
  .page-faq__faq-qtext {
    font-size: 0.95em;
  }
  .page-faq__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 15px;
  }
  .page-faq__call-to-action {
    font-size: 1em;
  }
  .page-faq__final-cta-title {
    font-size: 1.8em;
  }
  .page-faq__final-cta-description {
    font-size: 1em;
  }
  /* All images must be responsive */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
  }
}