/* style/faq.css */

:root {
  --cs88-green-primary: #11A84E;
  --cs88-green-secondary: #22C768;
  --cs88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --cs88-card-bg: #11271B;
  --cs88-bg: #08160F;
  --cs88-text-main: #F2FFF6;
  --cs88-text-secondary: #A7D9B8;
  --cs88-border: #2E7A4E;
  --cs88-glow: #57E38D;
  --cs88-gold: #F2C14E;
  --cs88-divider: #1E3A2A;
  --cs88-deep-green: #0A4B2C;
}

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

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

.page-faq__hero-image {
  width: 100%;
  height: auto;
  max-height: 700px; /* Limit height for aesthetic */
  object-fit: cover;
  display: block;
}

.page-faq__hero-content {
  position: relative;
  z-index: 10;
  padding: 20px;
  max-width: 900px;
  margin-top: -150px; /* Adjust to overlap slightly without obscuring image */
  background: rgba(8, 22, 15, 0.8); /* Dark background for text readability */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  color: var(--cs88-gold);
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-faq__description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: var(--cs88-text-secondary);
  margin-bottom: 30px;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  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: var(--cs88-button-gradient);
  color: var(--cs88-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-faq__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-faq__btn-secondary {
  background: transparent;
  color: var(--cs88-green-primary);
  border: 2px solid var(--cs88-green-primary);
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.2);
}

.page-faq__btn-secondary:hover {
  background: var(--cs88-green-primary);
  color: var(--cs88-text-main);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.4);
}

.page-faq__section {
  padding: 60px 0;
  background-color: var(--cs88-bg);
}

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

.page-faq__container--flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.page-faq__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: var(--cs88-green-secondary);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 5px rgba(34, 199, 104, 0.3);
}

.page-faq__section-title--cta {
  color: var(--cs88-gold);
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-faq__section-description {
  font-size: 1.1em;
  color: var(--cs88-text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-faq__faq-item details > summary {
  list-style: none;
}

.page-faq__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--cs88-deep-green);
  color: var(--cs88-text-main);
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: rgba(10, 75, 44, 0.8);
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--cs88-gold);
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--cs88-text-secondary);
  border-top: 1px solid var(--cs88-divider);
}

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

.page-faq__faq-answer ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

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

.page-faq__faq-answer .page-faq__btn-primary,
.page-faq__faq-answer .page-faq__btn-secondary {
  margin-top: 15px;
  margin-right: 10px;
}

.page-faq__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  object-fit: cover;
}

.page-faq__content-block {
  background-color: var(--cs88-card-bg);
  border: 1px solid var(--cs88-border);
  border-radius: 10px;
  padding: 30px;
  margin-top: 30px;
}

.page-faq__content-block h3 {
  color: var(--cs88-green-secondary);
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-faq__content-block p {
  color: var(--cs88-text-secondary);
  margin-bottom: 15px;
}

.page-faq__content-block .page-faq__btn-secondary {
  margin-top: 20px;
}

/* Bottom CTA specific styles */
.page-faq__section--cta-bottom {
  background-color: var(--cs88-deep-green);
  border-top: 1px solid var(--cs88-border);
}

.page-faq__text-block {
  flex: 1;
  text-align: left;
}

.page-faq__text-block .page-faq__section-title,
.page-faq__text-block .page-faq__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-faq__text-block .page-faq__section-description {
  max-width: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    margin-top: -100px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-bottom: 40px;
  }

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

  .page-faq__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-faq__description {
    font-size: clamp(0.9em, 3vw, 1.1em);
  }

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__section {
    padding: 40px 0;
  }

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

  .page-faq__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }

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

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

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

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

  .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;
  }

  .page-faq__section--cta-bottom .page-faq__container--flex {
    flex-direction: column;
    text-align: center;
  }

  .page-faq__text-block {
    text-align: center;
  }

  .page-faq__text-block .page-faq__section-title,
  .page-faq__text-block .page-faq__section-description {
    text-align: center;
  }
}