/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main - light color for dark background */
  background-color: #08160F; /* Background color */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, more at bottom */
  text-align: center;
  background-color: #0A4B2C; /* Deep Green */
  overflow: hidden; /* Ensure no overflow */
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit height for hero image */
  margin-bottom: 30px;
}

.page-faq__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-faq__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: 1.15rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

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

.page-faq__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Introduction Section */
.page-faq__introduction-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-faq__section-title {
  font-size: 2.5rem;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-faq__text-block {
  font-size: 1.05rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  text-align: justify;
}

.page-faq__text-block strong {
  color: #F2C14E; /* Gold */
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

.page-faq__faq-category {
  margin-bottom: 50px;
  padding: 30px;
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__category-title {
  font-size: 2rem;
  color: #22C768; /* Auxiliary color */
  margin-bottom: 30px;
  text-align: center;
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  overflow: hidden;
  background-color: #0A4B2C; /* Deep Green - slightly lighter than card bg for distinction */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #11A84E; /* Main color */
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-faq__faq-question:hover {
  background-color: #22C768; /* Auxiliary color on hover */
}

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: #22C768; /* Auxiliary color when open */
}

.page-faq__faq-answer {
  padding: 20px 25px;
  background-color: #0A4B2C; /* Deep Green */
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
  border-top: 1px solid #2E7A4E; /* Border color */
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  color: #A7D9B8; /* Text Secondary */
  text-align: justify;
}

.page-faq__faq-answer strong {
  color: #F2C14E; /* Gold */
}

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin-left: 25px;
  margin-bottom: 15px;
  color: #A7D9B8; /* Text Secondary */
}

.page-faq__faq-answer ul li,
.page-faq__faq-answer ol li {
  margin-bottom: 8px;
}

/* Conclusion Section */
.page-faq__conclusion-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
  text-align: center;
}

.page-faq__conclusion-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 800px;
  margin: 0 auto 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-group {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
}

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

.page-faq__cta-button--secondary {
  background: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2AD16F; /* Lighter green border */
}

.page-faq__cta-button--secondary:hover {
  background: #11A84E; /* Main color on hover */
  border-color: #11A84E;
}

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

  .page-faq__container {
    padding: 0 15px !important;
  }

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

  .page-faq__hero-image {
    max-height: 300px !important;
    margin-bottom: 20px !important;
  }

  .page-faq__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem) !important;
    margin-bottom: 15px !important;
  }

  .page-faq__hero-description {
    font-size: 1rem !important;
    margin-bottom: 20px !important;
  }

  .page-faq__cta-button {
    padding: 12px 20px !important;
    font-size: 1rem !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 auto !important; /* Center button if it takes full width */
  }

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

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

  .page-faq__faq-category {
    padding: 20px !important;
    margin-bottom: 30px !important;
  }

  .page-faq__category-title {
    font-size: 1.75rem !important;
    margin-bottom: 25px !important;
  }

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

  .page-faq__faq-toggle {
    font-size: 1.2rem !important;
  }

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

  .page-faq__conclusion-image {
    max-width: 100% !important;
    margin-bottom: 30px !important;
  }

  /* Force responsive for all images and containers */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__introduction-section,
  .page-faq__faq-list-section,
  .page-faq__faq-category,
  .page-faq__conclusion-section,
  .page-faq__cta-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Ensure no overflow */
  }
}