/* style/faq.css */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: var(--primary-color); /* This will be overridden by light-bg/dark-bg classes */
}

.page-faq__dark-bg {
  background-color: #0A192F;
  color: #ffffff;
}

.page-faq__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.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 0;
  padding-top: var(--header-offset, 120px);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

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

.page-faq__hero-section > .page-faq__container {
  position: relative;
  z-index: 1;
}

.page-faq__main-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-faq__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  line-height: 1.8;
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background-color: #FFD700;
  color: #0A192F;
  border: 2px solid #FFD700;
}

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

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

.page-faq__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A192F;
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 60px 0;
}

.page-faq__section-heading {
  font-size: 2.2em;
  color: #0A192F;
  text-align: center;
  margin-bottom: 20px;
}

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

.page-faq__faq-category {
  margin-bottom: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.page-faq__category-title {
  font-size: 1.8em;
  color: #0A192F;
  padding: 20px;
  background-color: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
  margin: 0;
}

.page-faq__faq-item {
  border-bottom: 1px solid #eeeeee;
}

.page-faq__faq-item:last-child {
  border-bottom: none;
}

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

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

.page-faq__faq-question h4 {
  margin: 0;
  font-size: 1.15em;
  color: #0A192F;
  font-weight: 600;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD700;
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #fdfdfd;
}

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

.page-faq__faq-answer p {
  margin: 0;
  color: #555555;
}

.page-faq__faq-answer a {
  color: #0A192F;
  text-decoration: underline;
}

.page-faq__faq-answer a:hover {
  color: #FFD700;
}

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

/* Video Section */
.page-faq__video-section {
  padding: 60px 0;
  text-align: center;
}

.page-faq__section-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-faq__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.8;
  color: #ffffff;
}

.page-faq__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto 30px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.page-faq__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  cursor: pointer;
}

.page-faq__video-cta {
  margin-top: 20px;
}

/* CTA Section */
.page-faq__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-faq__cta-title {
  font-size: 2.5em;
  color: #0A192F;
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #555555;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.4em;
  }
  .page-faq__section-heading,
  .page-faq__cta-title {
    font-size: 2em;
  }
  .page-faq__category-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faq__hero-section,
  .page-faq__faq-list-section,
  .page-faq__video-section,
  .page-faq__cta-section {
    padding: 40px 0;
  }
  .page-faq__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-faq__main-title {
    font-size: 2em;
  }
  .page-faq__description {
    font-size: 1em;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0;
    padding: 15px 20px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .page-faq__section-heading,
  .page-faq__section-title,
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__category-title {
    font-size: 1.4em;
  }
  .page-faq__faq-question h4 {
    font-size: 1em;
  }
  .page-faq__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    border-radius: 0;
  }
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 0;
  }
  .page-faq__container {
    padding: 0 15px;
  }
  .page-faq__faq-category {
    border-radius: 0;
  }
  .page-faq__faq-answer {
    padding: 0 15px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__section-heading,
  .page-faq__section-title,
  .page-faq__cta-title {
    font-size: 1.6em;
  }
  .page-faq__category-title {
    font-size: 1.2em;
  }
  .page-faq__description,
  .page-faq__sub-description,
  .page-faq__section-description,
  .page-faq__cta-description {
    font-size: 0.9em;
  }
}