/* style/faq.css */

/* Base styles for the page, assuming dark body background from shared.css */
.page-faq {
  font-family: Arial, sans-serif;
  color: var(--text-main, #F2FFF6); /* Default text color for dark background */
  background-color: var(--background, #08160F); /* Ensure consistency if shared.css doesn't apply */
  line-height: 1.6;
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Default to column for mobile first */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  background-color: var(--background, #08160F);
  overflow: hidden; /* Ensure content does not overflow */
}

.page-faq__hero-image-container {
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px; /* Space between image and content */
}

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

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

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-faq__description {
  font-size: 1.1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Call to Action Buttons */
.page-faq__cta-buttons {
  display: flex;
  flex-direction: column; /* Stack buttons on mobile */
  gap: 15px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 400px; /* Limit width for button group */
  margin: 0 auto;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  width: 100%; /* Full width on mobile */
  box-sizing: border-box;
}

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

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px var(--glow, #57E38D);
}

.page-faq__btn-secondary {
  background: transparent;
  color: var(--main-color, #11A84E);
  border: 2px solid var(--border, #2E7A4E);
}

.page-faq__btn-secondary:hover {
  background: var(--main-color, #11A84E);
  color: var(--text-main, #F2FFF6);
  box-shadow: 0 0 15px rgba(17, 168, 78, 0.5);
}

/* Introduction Section */
.page-faq__introduction-section {
  padding: 60px 20px;
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-faq__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-faq__text-block {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
}

.page-faq__text-block a {
  color: var(--gold, #F2C14E);
  text-decoration: underline;
}

.page-faq__text-block a:hover {
  color: var(--glow, #57E38D);
}

/* Main Content Area - FAQ */
.page-faq__content-area {
  padding: 60px 20px;
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-faq__faq-category {
  margin-bottom: 50px;
}

.page-faq__category-title {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  color: var(--text-main, #F2FFF6);
  margin-bottom: 30px;
  border-bottom: 2px solid var(--divider, #1E3A2A);
  padding-bottom: 15px;
}

.page-faq__faq-list {
  display: grid;
  gap: 20px;
}

.page-faq__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 10px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
}

/* Details/Summary specific styles for FAQ */
.page-faq__faq-item summary {
  list-style: none; /* Remove default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-main, #F2FFF6);
  background-color: var(--deep-green, #0A4B2C);
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

.page-faq__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-faq__faq-question {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to form an X or minus */
}

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

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

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

.page-faq__faq-answer a {
  color: var(--gold, #F2C14E);
  text-decoration: underline;
}

.page-faq__faq-answer a:hover {
  color: var(--glow, #57E38D);
}

.page-faq__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 30px;
  margin-bottom: 30px;
  border-radius: 10px;
  object-fit: cover;
}

/* CTA Section at the bottom */
.page-faq__cta-section {
  padding: 80px 20px;
  background-color: var(--background, #08160F);
  text-align: center;
  color: var(--text-main, #F2FFF6);
}

.page-faq__cta-section .page-faq__section-title {
  margin-bottom: 20px;
}

.page-faq__cta-section .page-faq__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.page-faq__cta-section .page-faq__cta-buttons {
  max-width: 500px; /* Wider button group for bottom CTA */
  margin-bottom: 40px;
}

/* Responsive Design */
@media (min-width: 768px) {
  .page-faq__hero-section {
    flex-direction: row; /* Desktop: image on left, content on right */
    padding: 80px 40px;
    text-align: left;
    gap: 40px;
  }

  .page-faq__hero-image-container {
    flex: 1;
    margin-bottom: 0;
    max-width: 50%; /* Image takes half width */
  }

  .page-faq__hero-content {
    flex: 1;
    text-align: left;
    padding: 0;
    max-width: 50%; /* Content takes half width */
  }

  .page-faq__cta-buttons {
    flex-direction: row; /* Buttons side-by-side on desktop */
    width: auto;
    max-width: none;
    margin: 0; /* Remove auto margin for flex item */
    justify-content: flex-start; /* Align left */
  }

  .page-faq__hero-content .page-faq__cta-buttons {
    margin: 0; /* Override center alignment from mobile */
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: auto; /* Buttons adjust to content width */
    min-width: 180px; /* Ensure minimum width */
  }

  .page-faq__section-title {
    text-align: center; /* Keep section titles centered */
  }

  .page-faq__cta-section .page-faq__cta-buttons {
    justify-content: center; /* Center buttons in bottom CTA */
  }
}

@media (min-width: 1024px) {
  .page-faq__hero-section {
    padding: 100px 60px;
  }

  .page-faq__main-title {
    font-size: 3.5rem;
  }

  .page-faq__description {
    font-size: 1.2rem;
  }
}

/* Mobile specific overrides for images, videos, buttons and containers */
@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

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

  /* Buttons */
  .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; /* Add padding to prevent text touching edges */
    padding-right: 15px;
  }

  /* Containers for images, videos, buttons, and general sections */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__introduction-section,
  .page-faq__content-area,
  .page-faq__cta-section,
  .page-faq__hero-image-container,
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper,
  .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;
    overflow: hidden !important; /* Prevent overflow */
  }

  .page-faq__hero-section {
    padding-top: 10px !important; /* Small top padding for hero on mobile */
    flex-direction: column !important; /* Ensure column stack on mobile */
  }

  .page-faq__hero-content {
    text-align: center !important; /* Center content for mobile hero */
  }

  .page-faq__hero-content .page-faq__cta-buttons {
    margin: 0 auto !important; /* Center buttons in hero on mobile */
  }

  .page-faq__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically on mobile */
    gap: 10px;
  }

  .page-faq__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }

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

  .page-faq__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-faq__category-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }
}