/* style/faq.css */

/* Core Styles for .page-faq */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  padding-bottom: 60px; /* Ensure space above footer */
}

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

.page-faq__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-faq__section-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

/* 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: #08160F; /* Background */
  border-bottom: 2px solid #2E7A4E; /* Border */
}

.page-faq__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-faq__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-faq__main-title {
  font-weight: 800;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-faq__hero-description {
  font-size: 1.2rem;
  color: #A7D9B8; /* Text Secondary */
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Intro Section */
.page-faq__intro-section {
    padding: 80px 20px;
    background-color: #08160F; /* Background */
    border-bottom: 1px solid #1E3A2A; /* Divider */
}

/* Category Grid */
.page-faq__categories {
    padding: 80px 20px;
    background-color: #0A4B2C; /* Deep Green */
    border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-faq__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-faq__category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #11271B; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2E7A4E; /* Border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: #57E38D; /* Glow */
}

.page-faq__card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
}

.page-faq__card-description {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
}

/* FAQ Section */
.page-faq__faq-section {
  padding: 80px 20px;
}

.page-faq__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
  overflow: hidden;
  background: #11271B; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  color: #F2FFF6; /* Text Main */
  position: relative;
}
details.page-faq__faq-item summary.page-faq__faq-question::-webkit-details-marker {
  display: none;
}
details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: rgba(46, 122, 78, 0.2); /* Slightly lighter hover */
  border-color: #57E38D; /* Glow */
}
.page-faq__faq-qtext {
  flex: 1;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2FFF6; /* Text Main */
}
.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #57E38D; /* Glow */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}
details.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
    color: #F2C14E; /* Gold */
}
details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: #0A4B2C; /* Deep Green */
  border-radius: 0 0 10px 10px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
}

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

.page-faq__text-link {
    color: #57E38D; /* Glow */
    text-decoration: underline;
    transition: color 0.3s ease;
}
.page-faq__text-link:hover {
    color: #F2C14E; /* Gold */
}


/* Illustrations within content */
.page-faq__illustration {
    display: block;
    margin: 50px auto;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-faq__illustration--center {
    margin-left: auto;
    margin-right: auto;
}

/* Final CTA Section */
.page-faq__final-cta {
  padding: 80px 20px;
  text-align: center;
  background-color: #0A4B2C; /* Deep Green */
  border-top: 1px solid #1E3A2A; /* Divider */
}

.page-faq__final-cta .page-faq__section-title {
    color: #F2FFF6; /* Text Main */
}

.page-faq__final-cta .page-faq__section-description {
    color: #A7D9B8; /* Text Secondary */
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* For mobile responsiveness */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-faq__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  color: #F2C14E; /* Gold */
  border-color: #F2C14E; /* Gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Specific background colors for sections */
.page-faq__dark-bg {
    background-color: #08160F; /* Background */
    color: #F2FFF6; /* Text Main */
}

.page-faq__light-bg {
    background-color: #0A4B2C; /* Deep Green */
    color: #F2FFF6; /* Text Main */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__hero-image img {
        border-radius: 8px;
    }
    .page-faq__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-faq__section-title {
        font-size: clamp(1.8rem, 4vw, 2.2rem);
    }
    .page-faq__faq-qtext {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-faq__hero-section {
    padding-top: 10px !important; /* body handles header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-faq__hero-image img {
    border-radius: 6px;
  }
  
  .page-faq__hero-description {
      font-size: 1rem;
  }

  .page-faq__cta-button {
    padding: 12px 30px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__intro-section,
  .page-faq__categories,
  .page-faq__faq-section,
  .page-faq__final-cta {
      padding: 50px 15px;
  }

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

  .page-faq__section-description {
      font-size: 0.95rem;
      margin-bottom: 30px;
  }

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

  details.page-faq__faq-item summary.page-faq__faq-question { 
    padding: 15px 20px; 
  }
  .page-faq__faq-qtext { 
    font-size: 1rem; 
  }
  .page-faq__faq-toggle {
      font-size: 24px;
      width: 24px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
      padding: 0 20px 20px;
      font-size: 0.95rem;
  }

  .page-faq__illustration {
      margin: 30px auto;
  }

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Image responsiveness for all img tags within .page-faq */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
    .page-faq__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-faq__section-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }
    .page-faq__faq-qtext {
        font-size: 0.9rem;
    }
    .page-faq__faq-toggle {
        font-size: 20px;
        width: 20px;
        margin-left: 10px;
    }
}