/* style/faq.css */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
}

.page-faq__hero-section {
  position: relative;
  background: linear-gradient(135deg, #003366 0%, #001a33 100%);
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

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

.page-faq__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  color: #333333; /* Dark text for light background */
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-top: -40px; /* Overlap with hero for visual flow */
  position: relative;
  z-index: 2;
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #003366;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.page-faq__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-faq__section-intro {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.page-faq__faq-list {
  margin-top: 30px;
}

.page-faq__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.page-faq__faq-item.active {
  border-color: #FFD700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.25em;
  font-weight: bold;
  color: #003366;
  cursor: pointer;
  background-color: #fdfdfd;
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: #f0f0f0;
}

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

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg);
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  background-color: #ffffff;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 20px 25px;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-faq__faq-answer .page-faq__image {
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-faq__faq-answer .page-faq__btn-primary--small,
.page-faq__faq-answer .page-faq__btn-secondary--small {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-faq__cta-section {
  background-color: #003366;
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.page-faq__cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.page-faq__cta-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}

.page-faq__btn-primary {
  background-color: #FFD700;
  color: #003366;
  border: 2px solid #FFD700;
}

.page-faq__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-faq__btn-secondary:hover {
  background-color: #FFD700;
  color: #003366;
  transform: translateY(-3px);
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.8em;
  }
  .page-faq__hero-description {
    font-size: 1.2em;
  }
  .page-faq__section-title {
    font-size: 2.2em;
  }
  .page-faq__faq-question {
    font-size: 1.1em;
  }
  .page-faq__cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faq__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-faq__hero-container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__main-title {
    font-size: 2.2em;
  }
  .page-faq__hero-description {
    font-size: 1em;
  }
  .page-faq__hero-actions,
  .page-faq__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__content-area {
    padding: 40px 15px;
    margin-top: -20px;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__section-intro {
    font-size: 0.95em;
  }
  .page-faq__faq-question {
    font-size: 1em;
    padding: 18px 20px;
  }
  .page-faq__faq-answer {
    padding: 0 20px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 18px 20px;
  }
  .page-faq__cta-section {
    padding: 60px 15px;
  }
  .page-faq__cta-title {
    font-size: 2em;
  }
  .page-faq__cta-description {
    font-size: 1em;
  }
  
  /* Mobile image and container responsiveness */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__content-area,
  .page-faq__cta-section,
  .page-faq__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Padding already handled by specific sections */
    overflow: hidden !important;
  }
  .page-faq__faq-answer .page-faq__image {
    max-width: calc(100% - 40px) !important; /* Account for parent padding */
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__hero-description {
    font-size: 0.9em;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
}