/* style/faq.css */

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

/* Container for content sections */
.page-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: #26A9E0;
  color: #ffffff;
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-faq__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  margin-top: 20px; /* Space below image */
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-faq__hero-description {
  font-size: clamp(1em, 2vw, 1.2em);
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-faq__btn-primary, .page-faq__btn-secondary, .page-faq__btn-login {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-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;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

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

.page-faq__btn-login {
  background-color: #EA7C07;
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-faq__btn-login:hover {
  background-color: #d16b05;
  border-color: #d16b05;
}

/* Intro Section */
.page-faq__intro-section {
  padding: 60px 0;
  background-color: #f8f8f8;
  text-align: center;
}

.page-faq__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  margin-bottom: 30px;
  color: #26A9E0;
}

.page-faq__text-block {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 20px auto;
  color: #555555;
}

.page-faq__highlight {
  color: #26A9E0;
  font-weight: 600;
}

/* FAQ List Section */
.page-faq__faq-list {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-faq__faq-item {
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
  background-color: #eaf7ff;
  border-color: #26A9E0;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  list-style: none;
}

.page-faq__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-faq__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  font-weight: 300;
  color: #26A9E0;
}

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

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

.page-faq__faq-answer ul {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
}

.page-faq__faq-answer li {
  margin-bottom: 5px;
}

.page-faq__link-text {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
}

.page-faq__link-text:hover {
  text-decoration: underline;
}

/* CTA Block at the end of FAQ */
.page-faq__cta-block {
  text-align: center;
  margin-top: 40px;
  padding: 40px 20px;
  background-color: #f0f8ff;
  border-radius: 8px;
  border: 1px solid #26A9E0;
}

.page-faq__cta-text {
  font-size: 1.3em;
  margin-bottom: 25px;
  color: #333333;
  font-weight: 500;
}

/* Image specific styles */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
  .page-faq__hero-section {
    padding-bottom: 40px;
  }

  .page-faq__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

  .page-faq__hero-description {
    font-size: clamp(1em, 2.5vw, 1.1em);
  }

  .page-faq__section-title {
    font-size: clamp(1.6em, 3.5vw, 2.2em);
  }

  .page-faq__text-block {
    font-size: 1em;
  }

  .page-faq__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }

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

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

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

  .page-faq__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__hero-content {
    padding: 15px;
    margin-top: 15px;
  }

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

  .page-faq__hero-description {
    font-size: clamp(0.9em, 3vw, 1em);
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__btn-primary, .page-faq__btn-secondary, .page-faq__btn-login {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__intro-section, .page-faq__faq-list {
    padding: 40px 0;
  }

  .page-faq__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-faq__text-block {
    font-size: 0.95em;
  }

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

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

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

  .page-faq__cta-block {
    margin-top: 30px;
    padding: 30px 15px;
  }

  .page-faq__cta-text {
    font-size: 1.1em;
  }

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__section, .page-faq__card, .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

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

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

  .page-faq__hero-description {
    font-size: clamp(0.85em, 3.5vw, 0.95em);
  }

  .page-faq__btn-primary, .page-faq__btn-secondary, .page-faq__btn-login {
    padding: 10px 15px;
    font-size: 0.95em;
  }

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

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

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

  .page-faq__cta-block {
    padding: 25px 10px;
  }

  .page-faq__cta-text {
    font-size: 1em;
  }
}