/* 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; /* Explicitly white background for content area */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

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

.page-faq__hero-content {
  position: relative;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
  z-index: 1;
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-faq__description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

/* Call to Action Buttons */
.page-faq__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding: 0 15px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
}

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

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

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

.page-faq__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a8cc7;
  border-color: #1a8cc7;
  transform: translateY(-2px);
}

/* Content Area */
.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #FFFFFF;
  color: #333333;
}

.page-faq__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
  line-height: 1.3;
}

.page-faq__text-block {
  font-size: 1.05em;
  margin-bottom: 25px;
  color: #444444;
}

.page-faq__text-block p {
  margin-bottom: 15px;
}

.page-faq__text-block ul,
.page-faq__text-block ol {
  margin-bottom: 15px;
  padding-left: 25px;
}

.page-faq__text-block li {
  margin-bottom: 8px;
}

/* Video Section */
.page-faq__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  background-color: #26A9E0;
  color: #FFFFFF;
  text-align: center;
  box-sizing: border-box;
}

.page-faq__video-title {
  font-size: 2em;
  margin-bottom: 15px;
  color: #FFFFFF;
  font-weight: 600;
}

.page-faq__video-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  color: #f0f0f0;
}

.page-faq__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 30px;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  box-sizing: border-box;
}

.page-faq__video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  cursor: pointer;
}

.page-faq__video-cta {
  background-color: #EA7C07;
  border-color: #EA7C07;
}

.page-faq__video-cta:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

/* FAQ List */
.page-faq__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__faq-item[open] {
  background-color: #ffffff;
  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: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: #f0f8ff;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: #e0efff;
  border-bottom: 1px solid #c0d8f0;
}

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

/* 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-qtext {
  flex-grow: 1;
  text-align: left;
}

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

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #444444;
  text-align: left;
  border-top: 1px solid #f0f0f0;
}

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

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin-bottom: 15px;
  padding-left: 25px;
}

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

.page-faq__faq-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Bottom CTA Section */
.page-faq__bottom-cta {
  background-color: #26A9E0;
  color: #FFFFFF;
  padding: 60px 20px;
  text-align: center;
  margin-top: 50px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-faq__bottom-cta-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: #FFFFFF;
  font-weight: 700;
}

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


/* Responsive styles */
@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__hero-section {
    padding: 10px 0 40px;
  }

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

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

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

  .page-faq__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__content-area {
    padding: 30px 15px;
  }

  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

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

  .page-faq__video-section {
    padding: 30px 15px;
    padding-top: 10px !important;
  }

  .page-faq__video-title {
    font-size: 1.6em;
    margin-bottom: 10px;
  }

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

  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__faq-list {
    margin-top: 30px;
  }

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

  .page-faq__faq-toggle {
    font-size: 1.2em;
    margin-left: 10px;
  }

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

  .page-faq__faq-image {
    margin: 15px auto;
  }

  .page-faq__bottom-cta {
    padding: 40px 15px;
    margin-top: 40px;
  }

  .page-faq__bottom-cta-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-faq__bottom-cta-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
}

/* Ensure all images in content area are responsive and not too small */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* General container responsiveness for mobile */
.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;
}

/* Specific overrides for mobile to ensure no overflow */
@media (max-width: 768px) {
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__content-area,
  .page-faq__video-section,
  .page-faq__bottom-cta {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .page-faq__hero-section {
    padding-top: 10px !important;
  }
}

/* Color contrast enforcement (body is light, so text is dark) */
.page-faq__light-bg {
  color: #333333;
  background: #ffffff;
}

.page-faq__dark-bg {
  color: #ffffff;
  background: #26A9E0;
}

/* Specific contrast fixes if needed, though BEM structure aims to prevent */
.page-faq__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-faq__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}