/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  background-color: #ffffff;
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* body handles --header-offset, so only small decorative top padding here */
  background: linear-gradient(135deg, #26A9E0, #1a8ccb); /* Using brand colors */
  color: #ffffff;
  overflow: hidden;
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background image */
  z-index: 0;
}

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

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-faq__hero-description {
  font-size: 1.1em;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-faq__faq-section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-faq__section-alt-bg {
  background-color: #f8f8f8;
}

.page-faq__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  text-align: center;
  color: #26A9E0; /* Brand color for section titles */
  margin-bottom: 40px;
}

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

.page-faq__faq-item {
  background: #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-item summary {
  list-style: none;
  /* Hide the default marker for Webkit browsers */
  -webkit-details-marker: none;
}

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

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

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

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0; /* Brand color for toggle icon */
  margin-left: 15px;
  width: 20px;
  text-align: center;
}

.page-faq__faq-answer {
  padding: 0 25px 20px 25px;
  color: #555555;
  font-size: 0.95em;
  line-height: 1.6;
}

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

/* Call to Action Section */
.page-faq__cta-section {
  text-align: center;
  padding: 50px 20px;
  background: #f8f8f8;
}

.page-faq__cta-description {
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: #555555;
}

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

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

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

.page-faq__btn-secondary:hover {
  background: #1a8ccb;
  border-color: #1a8ccb;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-faq img, .page-faq video, .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__hero-section, .page-faq__faq-section, .page-faq__cta-section,
  .page-faq__video-container, .page-faq__video-wrapper,
  .page-faq__cta-buttons, .page-faq__button-group, .page-faq__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }
  
  .page-faq__cta-button, .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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 10px !important; /* For vertical stacking */
  }
  
  .page-faq__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
  }
  
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-faq__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

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

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

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

  .page-faq p, .page-faq li {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
}