/* style/faq.css */

/* Base styles for page-faq - ensures light text on dark body background */
.page-faq {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

/* Fixed Header & Main Content Spacing */
/* body already has padding-top: var(--header-offset); so this page should not add it again */
/* First section padding-top should be small */
.page-faq__hero-section,
.page-faq__introduction-section,
.page-faq__faq-list-section,
.page-faq__cta-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  position: relative;
  z-index: 1; /* Ensure content is above any potential shared background elements */
}

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

/* Hero Section */
.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 60px;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure it takes full width */
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-faq__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-faq__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-faq__description {
  font-size: 1.1em;
  color: #f0f0f0; /* Light text for description */
  margin-bottom: 30px;
}

/* CTA Buttons */
.page-faq__cta-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 10px;
  cursor: pointer;
  border: 2px solid transparent; /* Default transparent border */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-faq__cta-button--primary {
  background-color: #26A9E0; /* Brand primary color */
  color: #FFFFFF;
  border-color: #26A9E0;
}

.page-faq__cta-button--primary:hover {
  background-color: #1a8cc7;
  transform: translateY(-2px);
}

.page-faq__cta-button--secondary {
  background-color: #EA7C07; /* Login color */
  color: #FFFFFF;
  border-color: #EA7C07;
}

.page-faq__cta-button--secondary:hover {
  background-color: #c96706;
  transform: translateY(-2px);
}

/* Section Titles and Text Blocks */
.page-faq__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: #26A9E0; /* Brand color for section titles */
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.3;
}

.page-faq__text-block {
  font-size: 1em;
  color: #f0f0f0; /* Light text */
  margin-bottom: 20px;
  text-align: justify;
}

.page-faq__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 30px auto;
  object-fit: cover;
}

/* FAQ List Section */
.page-faq__faq-list-section {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-faq__faq-category {
  margin-bottom: 40px;
}

.page-faq__category-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  color: #26A9E0;
  margin-bottom: 25px;
  border-bottom: 2px solid rgba(38, 169, 224, 0.3);
  padding-bottom: 10px;
  font-weight: 600;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Card background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #ffffff; /* Light text for FAQ items */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  background-color: rgba(255, 255, 255, 0.15); /* Slightly darker for question */
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: #26A9E0; /* Brand color when open */
  color: #ffffff;
}

.page-faq__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  font-weight: 300;
  width: 25px;
  text-align: center;
  color: #ffffff;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  color: #ffffff;
}

.page-faq__faq-answer {
  padding: 0 25px 18px;
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-faq__faq-answer p {
  margin-bottom: 10px;
}

.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

/* For details/summary, hide default marker */
.page-faq__faq-item summary {
  list-style: none;
}
.page-faq__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-faq__faq-item summary::marker {
  display: none;
}


.page-faq__link-button {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.page-faq__link-button:hover {
  background-color: #1a8cc7;
}

/* CTA Section (Dark Background) */
.page-faq__cta-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-faq__dark-bg {
  background-color: #26A9E0; /* Brand color for CTA section background */
  color: #ffffff; /* White text for brand color background */
  border-radius: 12px;
  text-align: center;
  padding: 40px;
}

.page-faq__dark-bg .page-faq__section-title {
  color: #ffffff;
}

.page-faq__dark-bg .page-faq__text-block {
  color: #ffffff;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-image {
    height: 500px; /* Adjust hero image height for tablets */
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-bottom: 40px;
  }

  .page-faq__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-faq__hero-image {
    height: 300px; /* Adjust hero image height for mobile */
  }

  .page-faq__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-faq__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-faq__cta-button {
    padding: 12px 20px;
    font-size: 1em;
    margin: 8px;
    max-width: 100% !important; /* Mobile button full width */
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px; /* Space between stacked buttons */
    padding: 0 15px; /* Add padding to button container */
  }

  .page-faq__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 20px;
  }

  .page-faq__category-title {
    font-size: clamp(1.2em, 5vw, 1.6em);
    margin-bottom: 15px;
  }

  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-faq__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }

  .page-faq__introduction-section,
  .page-faq__faq-list-section,
  .page-faq__cta-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

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

  /* Mobile container responsiveness for images/videos/buttons */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-image-wrapper,
  .page-faq__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent overflow */
  }

  /* Specific padding for sections if needed */
  .page-faq__hero-section,
  .page-faq__introduction-section,
  .page-faq__faq-list-section,
  .page-faq__cta-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-faq__faq-list-section .page-faq__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Ensure no CSS filters on images */
.page-faq img {
  filter: none !important;
}

/* Color Contrast Adjustments (Ensuring light text on dark body) */
.page-faq p,
.page-faq li,
.page-faq h2,
.page-faq h3,
.page-faq h4,
.page-faq h5,
.page-faq h6 {
  color: #f0f0f0; /* Default light text for general content */
}

/* Override specific elements if needed for brand color */
.page-faq__main-title,
.page-faq__section-title,
.page-faq__category-title {
  color: #26A9E0; /* Brand blue for titles */
}

/* Ensure buttons have white text */
.page-faq__cta-button--primary,
.page-faq__cta-button--secondary {
  color: #ffffff;
}

/* Special handling for dark-bg sections to ensure white text */
.page-faq__dark-bg {
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff; /* White text */
}
.page-faq__dark-bg .page-faq__section-title,
.page-faq__dark-bg .page-faq__text-block {
  color: #ffffff;
}

/* Link buttons in FAQ answers */
.page-faq__link-button {
  background-color: #26A9E0;
  color: #ffffff;
}
.page-faq__link-button:hover {
  background-color: #1a8cc7;
}