/* style/faq.css */

/* Custom CSS variables for colors */
:root {
  --main-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;
}

/* Base styles for the FAQ page, ensuring light text on dark body background */
.page-faq {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color for the page, light on dark body */
  background-color: transparent; /* Body will handle the main background color */
  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 */
  background-color: var(--background); /* Dark background for hero */
}

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

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

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
  color: var(--text-main); /* Light text on dark hero background */
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  color: var(--gold); /* Gold for main title */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-faq__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-secondary); /* Secondary text color */
}

/* General Content Area */
.page-faq__content-area {
  width: 100%; /* Ensure full width for containers */
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-faq__section-title {
  font-size: 2.2em;
  font-weight: 600;
  color: var(--gold); /* Gold for section titles */
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--divider);
}

/* FAQ List */
.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.page-faq__faq-item {
  background-color: var(--card-bg); /* Dark card background */
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  color: var(--text-main); /* Light text on dark card */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--deep-green); /* Slightly darker green for question header */
  color: var(--text-main);
  border-bottom: 1px solid var(--divider);
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: var(--main-color); /* Hover effect */
}

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: var(--main-color); /* Open state background */
}

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

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Remove default details marker */
.page-faq__faq-item summary {
  list-style: none;
}
.page-faq__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-secondary); /* Secondary text for answers */
}

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

.page-faq__faq-answer a {
  color: var(--gold); /* Gold for links in answers */
  text-decoration: underline;
}

.page-faq__faq-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Call to Action Section */
.page-faq__cta-section {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--deep-green); /* Dark green background */
  color: var(--text-main); /* Light text */
}

.page-faq__cta-title {
  font-size: 2em;
  font-weight: 700;
  color: var(--gold); /* Gold for CTA title */
  margin-bottom: 15px;
}

.page-faq__cta-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-secondary);
}

/* Button Styles */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: var(--button-gradient); /* Custom button gradient */
  color: #ffffff; /* White text on primary button */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Invert gradient on hover */
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: var(--gold); /* Gold text on secondary button */
  border: 2px solid var(--gold);
  margin-left: 15px; /* Spacing for multiple buttons */
}

.page-faq__btn-secondary:hover {
  background-color: var(--gold);
  color: var(--deep-green); /* Dark text on gold hover */
}

/* Color Contrast Specifics */
.page-faq__dark-section {
  background-color: var(--background); /* Explicitly dark background */
  color: var(--text-main); /* Light text */
}

.page-faq__light-bg {
  background-color: var(--card-bg); /* Use card background for lighter sections */
  color: var(--text-main); /* Light text */
}


/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

  .page-faq__description {
    font-size: 1em;
  }

  .page-faq__content-area {
    padding: 30px 15px;
  }

  .page-faq__section-title {
    font-size: 1.8em;
  }

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

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

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

  .page-faq__cta-title {
    font-size: 1.8em;
  }

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

  /* Images responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__hero-image-wrapper,
  .page-faq__faq-image,
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsiveness */
  .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;
    margin-left: 0 !important; /* Remove left margin for stacked buttons */
    margin-bottom: 10px; /* Add bottom margin for stacked buttons */
  }
  
  .page-faq__hero-content .page-faq__btn-primary {
    margin-bottom: 0;
  }

  .page-faq__hero-content .page-faq__btn-secondary {
    margin-top: 10px; /* Space if secondary button is present */
  }

  .page-faq__cta-section .page-faq__btn-primary {
    margin-bottom: 0;
  }

  .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;
    display: flex; /* Ensure flex for wrapping */
    flex-direction: column; /* Stack buttons vertically */
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }

  .page-faq__section-title {
    font-size: 1.6em;
  }

  .page-faq__cta-title {
    font-size: 1.6em;
  }

  .page-faq__faq-question {
    font-size: 1em;
    padding: 12px 18px;
  }

  .page-faq__faq-answer {
    padding: 12px 18px;
  }
}