/* style/faq.css */
.page-faq {
  background-color: var(--primary-color, #1A202C);
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
}

.page-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-faq__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #1A202C 0%, #333a4a 100%);
  text-align: center;
  color: #ffffff;
}

.page-faq__hero-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  color: #FFD700;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.page-faq__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

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

.page-faq__cta-buttons--center {
  margin-top: 40px;
}

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

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

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

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

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

.page-faq__btn-tertiary {
  background-color: #1A202C;
  color: #FFD700;
  border: 2px solid #FFD700;
  margin-top: 20px;
}

.page-faq__btn-tertiary:hover {
  background-color: #FFD700;
  color: #1A202C;
  transform: translateY(-2px);
}

.page-faq__content-area {
  padding: 60px 0;
}

.page-faq__dark-section {
  background-color: #1A202C;
  color: #ffffff;
}

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

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

.page-faq__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  opacity: 0.8;
}

.page-faq__faq-category {
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-faq__category-title {
  font-size: 1.8em;
  margin-bottom: 25px;
  color: #FFD700;
  text-align: center;
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: #ffffff;
  transition: color 0.3s ease;
}

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

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

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

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: rgba(255, 255, 255, 0.8);
}

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

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

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

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

.page-faq__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

.page-faq__video-section .page-faq__section-description {
  margin-bottom: 20px;
}

.page-faq__contact-cta {
  padding: 80px 0;
  text-align: center;
  background-color: #f8f9fa;
  color: #333333;
}

.page-faq__contact-cta .page-faq__section-title {
  color: #1A202C;
}

.page-faq__contact-cta .page-faq__section-description {
  color: #333333;
  opacity: 0.8;
}

/* Image and content area specific sizing to prevent small icons */
.page-faq img {
  min-width: 200px;
  min-height: 200px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 2.5em;
  }
  .page-faq__section-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 {
    padding-bottom: 40px;
  }

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

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

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__btn-tertiary {
    padding: 12px 20px;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-faq__container {
    padding: 0 15px;
  }

  .page-faq__content-area,
  .page-faq__video-section,
  .page-faq__contact-cta {
    padding: 40px 0;
  }

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

  .page-faq__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-faq__category-title {
    font-size: 1.4em;
  }

  .page-faq__faq-question {
    font-size: 1em;
  }

  .page-faq__faq-answer {
    padding: 0 10px;
  }

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 10px;
  }

  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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