/* style/faq.css */
/* 
  Body background color is #08160F (dark). 
  Text color should be light, #F2FFF6 for main text, #A7D9B8 for secondary.
*/

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

.page-faq {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* #F2FFF6 */
  background-color: var(--bg-color); /* #08160F */
  line-height: 1.6;
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background: var(--card-bg); /* #11271B */
  overflow: hidden;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  max-width: 1920px; /* Max width for the image */
}

.page-faq__hero-content {
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
  z-index: 1; /* Ensure text is above image if any overlap */
}

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

.page-faq__description {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 30px;
}

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-faq__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--gold); /* #F2C14E */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-faq__intro-text {
  font-size: 1.1rem;
  color: var(--text-secondary); /* #A7D9B8 */
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__faq-category {
  margin-bottom: 30px;
  border: 1px solid var(--border-color); /* #2E7A4E */
  border-radius: 8px;
  background-color: var(--card-bg); /* #11271B */
  padding: 20px;
}

.page-faq__category-title {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  color: var(--glow); /* #57E38D */
  margin-bottom: 20px;
  text-align: center;
}

.page-faq__faq-item {
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--divider); /* #1E3A2A */
  padding-bottom: 10px;
  list-style: none; /* For details tag */
}

.page-faq__faq-item:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  cursor: pointer;
  font-weight: bold;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-main); /* #F2FFF6 */
  list-style: none;
}

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

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-faq__faq-answer {
  padding: 10px 0 15px 0;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  color: var(--text-secondary); /* #A7D9B8 */
}

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

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin-left: 20px;
  margin-bottom: 10px;
}

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

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

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

.page-faq__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-faq__cta-section {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(180deg, var(--deep-green) 0%, var(--bg-color) 100%); /* #0A4B2C to #08160F */
  border-top: 1px solid var(--border-color); /* #2E7A4E */
}

.page-faq__cta-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--gold); /* #F2C14E */
  margin-bottom: 15px;
}

.page-faq__cta-description {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  width: 100%; /* Ensure container takes full width */
  max-width: 600px; /* Limit button group width */
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding: 0 15px; /* Add padding to prevent overflow for buttons */
}

.page-faq__cta-button,
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for button width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  text-align: center;
}

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

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-secondary {
  background: transparent;
  color: var(--glow); /* #57E38D */
  border: 2px solid var(--glow); /* #57E38D */
}

.page-faq__btn-secondary:hover {
  background: var(--glow); /* #57E38D */
  color: var(--deep-green); /* #0A4B2C */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

  .page-faq__hero-section {
    padding-bottom: 20px;
  }

  .page-faq__hero-content {
    padding: 0 15px;
  }

  .page-faq__main-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 10px;
  }

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

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

  .page-faq__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 20px;
  }

  .page-faq__intro-text {
    font-size: 1rem;
    margin-bottom: 30px;
  }

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

  .page-faq__category-title {
    font-size: clamp(1.2rem, 4.5vw, 1.6rem);
    margin-bottom: 15px;
  }

  .page-faq__faq-question {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    padding: 10px 0;
  }

  .page-faq__faq-answer {
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    padding: 5px 0 10px 0;
  }

  /* Image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset !important; /* Allow smaller on mobile if needed, but still > 200px due to parent container */
    min-height: unset !important;
  }
  
  .page-faq__hero-image {
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure all image containers are responsive */
  .page-faq__faq-answer,
  .page-faq__cta-section,
  .page-faq__hero-section,
  .page-faq__faq-category {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px; /* already handled by content-area for main content */
    /* padding-right: 15px; */
  }

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

  .page-faq__cta-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  .page-faq__cta-description {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
  }

  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Ensure padding for buttons themselves */
  }

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