/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

.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: 80px 20px;
  text-align: center;
  background-color: #26A9E0; /* Brand primary color */
  padding-top: var(--header-offset, 120px); /* Space for fixed header */
}

.page-faq__hero-title {
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

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

/* Call to Action Buttons */
.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 10px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background-color: #EA7C07; /* Login color */
  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: #26A9E0; /* Brand primary color */
  border: 2px solid #26A9E0;
}

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

/* Video Section */
.page-faq__video-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #f8f9fa; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-faq__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-faq__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
  display: block;
}

.page-faq__video-caption {
  font-size: 1em;
  margin-top: 15px;
  color: #555555;
}

/* Content Area */
.page-faq__content-area {
  padding: 60px 20px;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

.page-faq__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: #26A9E0;
}

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

.page-faq__faq-item {
  background-color: #f0f0f0;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #e9ecef;
  border-bottom: 1px solid #dee2e6;
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-heading {
  margin: 0;
  font-size: 1em; /* Adjust to fit parent font size */
  color: #333333;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg);
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
  color: #555555;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 25px;
}

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

.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq__faq-answer .page-faq__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  display: block;
}

.page-faq__contact-cta {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background-color: #f0f8ff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  color: #333333;
}

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

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

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

@media (max-width: 768px) {
  .page-faq__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

  .page-faq__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__video-section {
    padding: 40px 15px;
  }

  .page-faq__video-wrapper {
    margin: 20px auto;
    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__content-area {
    padding: 40px 15px;
  }

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

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

  .page-faq__faq-answer {
    padding: 15px 20px;
  }

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px !important;
  }

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

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

  .page-faq__contact-cta {
    padding: 30px 20px;
  }

  .page-faq__contact-title {
    font-size: 1.5em;
  }

  .page-faq__contact-text {
    font-size: 1em;
  }
  
  .page-faq__faq-answer .page-faq__btn-secondary {
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__faq-question {
    font-size: 1em;
  }
}