/* style/faq.css */

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

.page-faq {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--bg-primary); /* Dark background */
  line-height: 1.6;
}

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

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-faq__hero-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: var(--btn-gradient);
  color: #ffffff; /* White text for dark button */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-faq__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
  filter: brightness(1.1);
}

.page-faq__btn-secondary {
  background: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-faq__btn-secondary:hover {
  transform: translateY(-3px);
  background-color: rgba(242, 193, 78, 0.1);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

.page-faq__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-faq__section {
  padding: 50px 20px;
  background-color: var(--bg-primary);
}

.page-faq__section--intro {
  text-align: center;
}

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

.page-faq__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: var(--gold-color);
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-faq__section-description {
  font-size: 1.05em;
  color: var(--text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-faq__container--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-faq__faq-category {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-faq__category-title {
  font-size: 1.7em;
  color: var(--primary-color);
  margin-bottom: 25px;
  border-bottom: 2px solid var(--divider-color);
  padding-bottom: 15px;
  font-weight: 600;
}

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  background-color: var(--deep-green);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
  background-color: rgba(17, 168, 78, 0.2);
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.3);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--text-main);
  transition: color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--secondary-color);
}

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

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95em;
  color: var(--text-secondary);
  max-height: 0; /* For JS fallback */
  overflow: hidden; /* For JS fallback */
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-faq__faq-item[open] .page-faq__faq-answer {
  max-height: 2000px; /* Large enough for content */
  padding-top: 10px;
}

.page-faq__faq-answer p {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq__faq-answer strong {
  color: var(--text-main);
}

.page-faq__image-inline {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-bottom {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--deep-green);
  border-top: 1px solid var(--border-color);
}

.page-faq__cta-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: var(--gold-color);
  margin-bottom: 15px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-faq__cta-description {
  font-size: 1.05em;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Responsive Styles --- */

/* All images basic responsive styles */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All containers holding images/videos/buttons */
.page-faq__hero-section,
.page-faq__section,
.page-faq__container,
.page-faq__cta-buttons,
.page-faq__faq-item {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile specific styles */
@media (max-width: 768px) {
  .page-faq {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

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

  .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 20px;
    font-size: 0.95em;
    margin: 0 auto; /* Center buttons if flex-direction column */
  }

  .page-faq__btn-small {
    padding: 10px 15px;
  }

  .page-faq__section {
    padding: 30px 15px;
  }

  .page-faq__container--grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-faq__faq-category {
    padding: 20px;
  }

  .page-faq__category-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

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

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

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

  .page-faq__hero-image-wrapper,
  .page-faq__container,
  .page-faq__faq-item,
  .page-faq__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure no horizontal scroll for elements that might contain images/videos/buttons */
  .page-faq__section,
  .page-faq__faq-category {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__cta-bottom {
    padding: 40px 15px;
  }

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

  .page-faq__cta-description {
    font-size: 0.95em;
  }
}

/* Ensure images don't have filters */
.page-faq img {
  filter: none !important;
}