/* style/faq.css */
.page-faq {
  font-family: Arial, sans-serif;
  color: #F3F8FF; /* Text Main */
  background-color: #08162B; /* Deep Navy - body background */
  line-height: 1.6;
  padding-bottom: 50px; /* Ensure space above footer */
}

/* Fixed header offset - handled by shared.css on body, so this section gets minimal padding */
.page-faq__hero-section {
  padding-top: 10px; /* Minimal top padding, shared.css handles body padding */
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  height: 375px; /* Fixed height for desktop hero image */
  overflow: hidden;
  position: relative;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover for desktop */
  display: block;
}

.page-faq__hero-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-faq__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-faq__intro-description {
  font-size: 1.1em;
  color: #AFC4E8; /* Text Secondary */
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 15px; /* Add padding to container */
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF; /* Text Main */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-faq__btn-secondary {
  background: transparent;
  color: #4FA8FF; /* Glow */
  border: 2px solid #244D84; /* Border */
}

.page-faq__btn-secondary:hover {
  background: rgba(79, 168, 255, 0.1);
  color: #F3F8FF; /* Text Main */
}

.page-faq__btn-small {
  padding: 10px 20px;
  font-size: 0.95em;
}

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

.page-faq__introduction-section,
.page-faq__conclusion-section {
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid #1B3357; /* Divider */
  border-bottom: 1px solid #1B3357; /* Divider */
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-faq__dark-section {
  background-color: #10233F; /* Card B G */
  color: #F3F8FF; /* Text Main */
}

.page-faq__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em); /* Responsive font size */
  font-weight: 700;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 30px;
  text-align: center;
}

.page-faq__gold-highlight {
  color: #F2C14E; /* Gold */
}

.page-faq__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: #AFC4E8; /* Text Secondary */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__faq-section {
  padding: 60px 0;
}

.page-faq__faq-category-title {
  font-size: clamp(1.5em, 3vw, 2.2em); /* Responsive font size */
  font-weight: 600;
  color: #4FA8FF; /* Glow */
  margin-top: 50px;
  margin-bottom: 25px;
  border-bottom: 2px solid #1B3357; /* Divider */
  padding-bottom: 10px;
}

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-faq__faq-item {
  background-color: #10233F; /* Card B G */
  border: 1px solid #244D84; /* Border */
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #F3F8FF; /* Text Main */
}

.page-faq__faq-item[open] {
  background-color: #08162B; /* Deep Navy */
  border-color: #4FA8FF; /* Glow */
  box-shadow: 0 0 20px rgba(79, 168, 255, 0.3);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #F3F8FF; /* Text Main */
  cursor: pointer;
  background-color: #10233F; /* Card B G */
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details summary */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}
.page-faq__faq-question::marker {
  display: none; /* Hide default marker for other browsers */
}

.page-faq__faq-question:hover {
  background-color: #113B7A; /* Primary color */
}

.page-faq__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
  color: #F3F8FF; /* Text Main */
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #4FA8FF; /* Glow */
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.page-faq__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #AFC4E8; /* Text Secondary */
  border-top: 1px solid #1B3357; /* Divider */
  line-height: 1.7;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  color: #AFC4E8; /* Text Secondary */
}

.page-faq__faq-answer ul {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 15px;
}

.page-faq__faq-answer ul li {
  margin-bottom: 8px;
  color: #AFC4E8; /* Text Secondary */
}

.page-faq__faq-answer a {
  color: #4FA8FF; /* Glow */
  text-decoration: underline;
}

.page-faq__faq-answer a:hover {
  color: #F2C14E; /* Gold */
}

.page-faq__faq-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 8px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  object-fit: cover;
}

.page-faq__faq-image--small {
  max-width: 400px; /* Example for a smaller image within answer */
  margin-left: auto;
  margin-right: auto;
  object-fit: contain; /* Often better for logos/icons */
}

/* Bottom CTA buttons */
.page-faq__cta-buttons--bottom {
  margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__container {
    padding: 0 15px;
  }

  .page-faq__hero-image-wrapper {
    height: 300px;
  }
}

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

  /* Hero Section */
  .page-faq__hero-section {
    padding-top: 10px !important; /* Fixed header offset minimal */
  }
  .page-faq__hero-image-wrapper {
    height: 200px;
  }
  .page-faq__hero-image {
    object-fit: contain !important; /* Mobile hero image should contain, not cover */
    height: auto !important; /* Ensure height auto for contain */
    max-height: none !important; /* Reset max-height */
    aspect-ratio: unset !important; /* Reset aspect-ratio */
  }
  .page-faq__hero-content {
    padding: 20px 15px;
  }
  .page-faq__main-title {
    font-size: 2em;
    margin-bottom: 10px;
  }
  .page-faq__intro-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px; /* Ensure padding for buttons */
  }
  .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;
  }

  /* Introduction & Conclusion Sections */
  .page-faq__introduction-section,
  .page-faq__conclusion-section {
    padding: 40px 15px;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-faq__text-block {
    font-size: 0.95em;
  }

  /* FAQ Section */
  .page-faq__faq-section {
    padding: 40px 0;
  }
  .page-faq__faq-category-title {
    font-size: 1.5em;
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 0 15px 10px 15px; /* Add padding to category title */
  }
  .page-faq__faq-list {
    gap: 15px;
  }
  .page-faq__faq-item {
    margin: 0 15px; /* Add horizontal margin to FAQ items */
  }
  .page-faq__faq-item .page-faq__faq-question,
  .page-faq__faq-item .page-faq__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* General Images and Containers for mobile */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__container,
  .page-faq__card,
  .page-faq__section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
}