/* style/faq.css */

/* Custom Colors */
:root {
  --page-faq-bg-color: #08160F;
  --page-faq-card-bg: #11271B;
  --page-faq-text-main: #F2FFF6;
  --page-faq-text-secondary: #A7D9B8;
  --page-faq-border-color: #2E7A4E;
  --page-faq-glow-color: #57E38D;
  --page-faq-gold-color: #F2C14E;
  --page-faq-divider-color: #1E3A2A;
  --page-faq-deep-green: #0A4B2C;
  --page-faq-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-faq-text-main);
  background-color: var(--page-faq-bg-color);
}

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

.page-faq__dark-bg {
  background-color: var(--page-faq-bg-color);
  color: var(--page-faq-text-main);
}

.page-faq__text-main {
  color: var(--page-faq-text-main);
}

.page-faq__text-secondary {
  color: var(--page-faq-text-secondary);
}

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

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height to prevent excessive image size */
  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; /* Ensure content is above image */
  z-index: 10;
  padding-top: 40px;
  padding-bottom: 20px;
}

.page-faq__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--page-faq-text-main);
  max-width: 800px;
}

.page-faq__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 900px;
  color: var(--page-faq-text-secondary);
}

.page-faq__hero-cta {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-faq__video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-faq__section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--page-faq-text-main);
}

.page-faq__section-description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: var(--page-faq-text-secondary);
}

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

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

/* Main FAQ Section */
.page-faq__main-faq {
  padding: 60px 0;
}

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

.page-faq__faq-item {
  background-color: var(--page-faq-card-bg);
  border: 1px solid var(--page-faq-border-color);
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  color: var(--page-faq-text-main);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.15rem;
  color: var(--page-faq-text-main);
  transition: background-color 0.3s ease;
  list-style: none; /* For details tag */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details tag */
}

.page-faq__faq-question:hover {
  background-color: rgba(var(--page-faq-glow-color), 0.1);
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

.page-faq__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: var(--page-faq-text-secondary);
}

.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__sub-section-title {
  font-size: 2rem;
  margin-top: 40px;
  margin-bottom: 30px;
  text-align: center;
  color: var(--page-faq-text-main);
}

.page-faq__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__image--center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__cta-container {
  max-width: 900px;
}

.page-faq__cta-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: var(--page-faq-text-main);
}

.page-faq__cta-description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--page-faq-text-secondary);
}

.page-faq__cta-button {
  display: inline-block;
  padding: 18px 40px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

/* Buttons */
.page-faq__btn-primary {
  background: var(--page-faq-btn-gradient);
  color: var(--page-faq-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-faq__section-title {
    font-size: 2.2rem;
  }
  .page-faq__cta-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .page-faq__container {
    padding: 0 15px !important;
  }
  .page-faq__hero-section {
    padding-bottom: 40px;
  }
  .page-faq__hero-image-wrapper {
    max-height: 300px;
  }
  .page-faq__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-faq__hero-description {
    font-size: 1rem;
  }
  .page-faq__hero-cta {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-faq__video-section,
  .page-faq__main-faq,
  .page-faq__cta-section {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 2rem;
  }
  .page-faq__section-description {
    font-size: 0.95rem;
  }
  .page-faq__sub-section-title {
    font-size: 1.8rem;
  }
  .page-faq__faq-question {
    font-size: 1.05rem;
    padding: 15px;
  }
  .page-faq__faq-answer {
    padding: 0 15px 15px;
  }
  .page-faq__cta-title {
    font-size: 2rem;
  }
  .page-faq__cta-description {
    font-size: 1rem;
  }
  .page-faq__cta-button {
    padding: 15px 30px;
    font-size: 1.1rem;
  }

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile video responsiveness */
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-faq__video-section {
    padding-top: 10px !important;
  }

  /* Mobile button responsiveness */
  .page-faq__cta-button,
  .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__cta-buttons,
  .page-faq__button-group,
  .page-faq__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-faq__cta-buttons {
    display: flex;
    flex-direction: column !important; /* Stack buttons vertically */
  }

  /* General content container responsiveness */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  .page-faq__section-title {
    font-size: 1.8rem;
  }
  .page-faq__sub-section-title {
    font-size: 1.6rem;
  }
  .page-faq__cta-title {
    font-size: 1.8rem;
  }
}