/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark background */
  background-color: var(--dark-bg-1); /* Inherit from shared.css, assumed dark */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  padding: 60px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  overflow: hidden;
  background-color: #26A9E0; /* Primary brand color as background */
  color: #FFFFFF;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-faq__hero-section .page-faq__container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

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

.page-faq__intro-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Content Area */
.page-faq__content-area {
  background-color: #f8f9fa; /* Light background for main content */
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Primary color for section titles */
  text-align: center;
  margin-bottom: 20px;
}

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

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

.page-faq__faq-item {
  background-color: #FFFFFF; /* White card background */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  color: #333333; /* Dark text for card content */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0; /* Light gray for question background */
  color: #26A9E0; /* Primary color for question text */
  border-bottom: 1px solid #e9ecef;
  list-style: none; /* For details/summary */
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

/* Hide default marker for <details> */
.page-faq__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-faq__faq-item summary::marker {
  display: none;
}

.page-faq__faq-qtext {
  flex-grow: 1;
}

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

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  color: #555555;
  background-color: #FFFFFF;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

/* For <details> tag, native open state */
.page-faq__faq-item[open] .page-faq__faq-answer {
  max-height: 2000px; /* Sufficiently large to show content */
  padding: 20px 25px;
  opacity: 1;
}

/* For div based FAQ (if JS fallback) */
.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px; /* Sufficiently large to show content */
  padding: 20px 25px;
  opacity: 1;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  content: '−';
}

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

.page-faq__faq-answer img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  filter: none; /* Ensure no filter changes image color */
}

/* Buttons */
.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;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background-color: #26A9E0; /* Primary brand color */
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

.page-faq__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0; /* Primary brand color */
  border: 2px solid #26A9E0;
}

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

.page-faq__button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

/* CTA Section */
.page-faq__cta-section {
  text-align: center;
  background-color: #e0f7fa; /* Light blue background for CTA */
  padding: 50px 20px;
  border-radius: 8px;
  margin-top: 60px;
  color: #333333;
}

.page-faq__cta-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-faq__cta-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Additional Info Section */
.page-faq__additional-info {
  background-color: #1a1a1a; /* Dark background */
  color: #FFFFFF;
  padding: 60px 0;
}

.page-faq__additional-info .page-faq__section-title {
  color: #FFFFFF;
}

.page-faq__additional-info .page-faq__section-description {
  color: #cccccc;
}

.page-faq__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-faq__info-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #FFFFFF;
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: block;
}

.page-faq__info-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}

.page-faq__info-card-title {
  font-size: 1.5em;
  color: #26A9E0; /* Primary color for card title */
  margin-bottom: 10px;
}

.page-faq__info-card-text {
  font-size: 1em;
  color: #cccccc;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.8em;
  }
  .page-faq__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faq__hero-section {
    min-height: 400px;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-faq__main-title {
    font-size: 2.2em;
  }
  .page-faq__intro-description {
    font-size: 1em;
  }
  .page-faq__content-area, .page-faq__additional-info {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-faq__faq-answer {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-faq__faq-item[open] .page-faq__faq-answer,
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px;
  }
  .page-faq__cta-section {
    padding: 40px 15px;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__cta-description {
    font-size: 1em;
  }
  .page-faq__info-grid {
    grid-template-columns: 1fr;
  }
  .page-faq__info-card {
    padding: 25px;
  }

  /* Responsive images, videos, buttons */
  .page-faq img {
    max-width: 100% !important;
    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__additional-info,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__button-group {
    flex-direction: column;
    align-items: center;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}