/* style/faq.css */

/* --- General Page Styles --- */
.page-faq {
  font-family: Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--background);
}

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

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

.page-faq__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-faq__section-intro {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Hero Section --- */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-faq__main-title {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-faq__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* --- Call to Action Buttons --- */
.page-faq__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border);
}

.page-faq__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.page-faq__btn-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--glow);
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
}

.page-faq__btn-link:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* --- FAQ List Styles --- */
.page-faq__faq-list {
  margin-top: 40px;
}

.page-faq__list-title {
  font-size: clamp(24px, 3vw, 36px);
  color: var(--text-main);
  margin-bottom: 30px;
  margin-top: 50px;
  font-weight: bold;
  text-align: center;
}

.page-faq__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
  border-color: var(--glow);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 20px;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  list-style: none; /* For details/summary */
  outline: none;
}

.page-faq__faq-question::-webkit-details-marker {
  display: none;
}

.page-faq__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
  line-height: 1.4;
}

.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--glow);
  transition: transform 0.3s ease;
}

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

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-faq__faq-item[open] .page-faq__faq-answer {
  max-height: 1000px; /* Sufficiently large to show content */
  padding-top: 10px;
}

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

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

.page-faq__faq-answer ul li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.page-faq__faq-answer ul li a {
    color: var(--glow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-faq__faq-answer ul li a:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* --- Image Styles --- */
.page-faq__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 30px auto;
  object-fit: cover;
}

.page-faq__image--inline {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Final CTA Section --- */
.page-faq__final-cta {
  text-align: center;
  padding: 60px 20px;
  border-radius: 15px;
  margin-top: 60px;
  background-color: var(--deep-green);
}

.page-faq__final-cta-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-faq__final-cta-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* --- Media Queries for Responsiveness --- */

/* Tablet */
@media (max-width: 1024px) {
  .page-faq__section {
    padding: 40px 20px;
  }

  .page-faq__hero-section {
    padding: 40px 20px;
    padding-top: 10px;
  }

  .page-faq__main-title {
    font-size: clamp(28px, 4.5vw, 48px);
  }

  .page-faq__hero-description {
    font-size: clamp(15px, 1.8vw, 18px);
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-faq__faq-question {
    font-size: 18px;
    padding: 18px 20px;
  }

  .page-faq__faq-answer {
    font-size: 15px;
    padding: 0 20px 18px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__section,
  .page-faq__content-area,
  .page-faq__hero-section,
  .page-faq__final-cta {
    padding: 30px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-faq__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }

  .page-faq__hero-description {
    font-size: clamp(14px, 4vw, 16px);
  }

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__section-title,
  .page-faq__list-title,
  .page-faq__final-cta-title {
    font-size: clamp(22px, 6vw, 30px);
    margin-bottom: 20px;
  }

  .page-faq__section-intro,
  .page-faq__final-cta-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-faq__faq-question {
    font-size: 16px;
    padding: 15px 18px;
  }

  .page-faq__faq-answer {
    font-size: 14px;
    padding: 0 18px 15px;
  }

  /* Responsive images */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-faq__image-wrapper,
  .page-faq__video-container,
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0 !important; /* Remove padding for full width image/video */
    padding-right: 0 !important;
  }

  .page-faq__image--inline {
    margin-left: 0;
    margin-right: 0;
  }
}

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