/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--secondary-color, #FFFFFF); /* Body background from shared */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px; /* Minimum height for hero */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #26A9E0; /* Fallback if image not loaded */
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-faq__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: 2;
}

.page-faq__hero-content {
  position: relative;
  z-index: 3;
  color: #FFFFFF;
  max-width: 900px;
  padding: 20px;
}

.page-faq__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-faq__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Section Styling */
.page-faq__section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-faq__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
}

.page-faq__section-intro {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ List */
.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-category-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.page-faq__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: #e6f7ff; /* Lighter background for open state */
  color: #26A9E0;
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-faq__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

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

.page-faq__faq-answer a {
  display: inline-block;
  margin-top: 10px;
}

/* Image Card Layout */
.page-faq__image-card {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.page-faq__image-card--reverse {
  flex-direction: row-reverse;
}

.page-faq__card-image {
  flex: 1;
  min-width: 200px; /* Minimum size for content images */
  height: auto;
  object-fit: cover;
  display: block;
}

.page-faq__card-content {
  flex: 2;
  padding: 30px;
}

.page-faq__full-width-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-top: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px; /* Minimum size for content images */
}

/* Call to Action Section */
.page-faq__cta-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #26A9E0; /* Brand color as background */
  color: #FFFFFF; /* White text for contrast */
  margin-top: 40px;
}

.page-faq__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px;
}

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

/* Button Styles */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-faq__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-faq__btn-primary:hover {
  background-color: #d16e06;
  border-color: #d16e06;
}

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

.page-faq__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #26A9E0;
  border-color: #FFFFFF;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-faq__hero-title {
    font-size: 2.5em;
  }

  .page-faq__section-title {
    font-size: 2em;
  }

  .page-faq__cta-title {
    font-size: 2em;
  }

  .page-faq__image-card {
    flex-direction: column;
  }

  .page-faq__image-card--reverse {
    flex-direction: column;
  }

  .page-faq__card-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  /* Ensure content is within screen on mobile */
  .page-faq__hero-section,
  .page-faq__section,
  .page-faq__cta-section,
  .page-faq__image-card,
  .page-faq__faq-list,
  .page-faq__faq-item,
  .page-faq__image-container,
  .page-faq__cta-buttons,
  .page-faq__hero-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

  .page-faq__hero-title {
    font-size: 2em;
  }

  .page-faq__hero-description {
    font-size: 1em;
  }

  .page-faq__hero-buttons,
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__section-title {
    font-size: 1.8em;
  }

  .page-faq__cta-title {
    font-size: 1.8em;
  }

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

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

  /* Image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce minimum size */
    min-height: 200px !important; /* Enforce minimum size */
  }

  .page-faq__card-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-faq__full-width-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.5em;
  }
  .page-faq__cta-title {
    font-size: 1.5em;
  }
}

/* Global image styles to prevent small icons, as per requirements */
.page-faq img:not(.shared-logo):not(.shared-icon) {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Ensure images fill their space */
}

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

/* Color contrast enforcement */
/* Assuming body background is light (white or near white) from var(--secondary-color) */
.page-faq {
  color: #333333; /* Dark text for light background */
}

.page-faq__hero-section,
.page-faq__cta-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #FFFFFF; /* White text for brand color background */
}

.page-faq__btn-primary {
  background-color: #EA7C07; /* Login/CTA color */
  color: #FFFFFF;
  border-color: #EA7C07;
}

.page-faq__btn-primary:hover {
  background-color: #d16e06;
  border-color: #d16e06;
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.page-faq__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #26A9E0;
  border-color: #FFFFFF;
}

.page-faq__faq-question {
  color: #333333;
}

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

.page-faq__faq-toggle {
  color: #26A9E0; /* Brand primary color */
}

.page-faq__section-title,
.page-faq__faq-category-title {
  color: #26A9E0; /* Brand primary color */
}

/* Ensure no content area image is smaller than 200px */
.page-faq .page-faq__content-area img,
.page-faq .page-faq__image-card img,
.page-faq .page-faq__image-container img {
  width: auto; /* Allow natural width or max-width */
  height: auto;
  max-width: 100%;
  min-width: 200px;
  min-height: 200px;
}
@media (max-width: 768px) {
  .page-faq .page-faq__content-area img,
  .page-faq .page-faq__image-card img,
  .page-faq .page-faq__image-container img {
    width: 100% !important; /* Force full width on mobile */
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
}