/* style/faq.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-btn-color: #C30808;
  --login-btn-color: #C30808;
  --background-color: #FFFFFF;
  --register-login-font-color: #FFFF00;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Default text color for light background */
  background-color: var(--background-color);
}

.page-faq__hero-section {
  padding-top: 0; /* Handled by body padding-top in shared.css */
  background: linear-gradient(135deg, var(--primary-color) 0%, #005a2c 100%);
  color: var(--text-color-light);
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
  text-align: center;
  padding: 40px 20px 60px;
  gap: 30px;
}

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: var(--text-color-light);
}

.page-faq__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-faq__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  box-sizing: border-box;
}

.page-faq__btn-primary {
  background-color: var(--register-btn-color);
  color: var(--register-login-font-color);
  border: 2px solid var(--register-btn-color);
}

.page-faq__btn-primary:hover {
  background-color: #e00b0b;
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-faq__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-faq__content-section {
  padding: 60px 20px;
  background-color: var(--background-color);
  color: var(--text-color-dark);
}

.page-faq__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-faq__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
}

.page-faq__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-faq__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.15em;
  color: var(--primary-color);
  position: relative;
  user-select: none;
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-faq__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg);
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-color-dark);
}

.page-faq__faq-answer p {
  margin-bottom: 1em;
}

.page-faq__faq-answer ul {
  margin-left: 20px;
  list-style-type: disc;
  margin-bottom: 1em;
}

.page-faq__faq-answer li {
  margin-bottom: 0.5em;
}

.page-faq__cta-banner {
  background: linear-gradient(135deg, #005a2c 0%, var(--primary-color) 100%);
  color: var(--text-color-light);
  padding: 60px 20px;
  text-align: center;
}

.page-faq__cta-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.page-faq__cta-content {
  flex: 1;
  text-align: left;
}

.page-faq__cta-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-color-light);
}

.page-faq__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-faq__cta-buttons-bottom {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
}

.page-faq__cta-image-wrapper {
  flex: 1;
  max-width: 600px;
  text-align: right;
}

.page-faq__cta-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* General image responsiveness */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-faq__hero-section {
    padding: 30px 15px 40px;
    gap: 20px;
  }

  .page-faq__main-title {
    font-size: 2em; /* Smaller on mobile */
  }

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

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

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

  .page-faq__hero-image-wrapper {
    margin-top: 15px;
  }

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

  .page-faq__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

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

  .page-faq__faq-answer {
    padding: 0 20px 15px;
  }

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

  .page-faq__cta-container {
    flex-direction: column-reverse; /* Image on top, text below for mobile */
    gap: 30px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__cta-content {
    text-align: center;
    width: 100%;
  }

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

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

  .page-faq__cta-buttons-bottom {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    justify-content: center;
  }

  .page-faq__cta-image-wrapper {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  /* General images */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Ensure all containers handle overflow */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-content,
  .page-faq__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* LOGO carousel (if present) would have its specific mobile rules here, fixed at 80x80px */
/* Example (not strictly part of this FAQ page but for completeness if it were): */
/*
.page-faq__logo-carousel-section {
  padding-top: 10px; 
  padding-left: 15px;
  padding-right: 15px;
}
.page-faq__logo-item {
  width: 80px !important;
  height: 80px !important;
  max-width: 80px !important;
  box-sizing: border-box;
}
*/