/* style/faq.css */

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom */
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(17, 40, 27, 0.7); /* Card BG with transparency */
  border-radius: 12px;
  margin-top: 100px; /* Push content down from header */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-faq__description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* General Section Styles */
.page-faq__section {
  padding: 60px 20px;
  background-color: #08160F; /* Background */
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-faq__section:last-of-type {
  border-bottom: none;
}

.page-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-faq__section-title {
  font-size: 2.5rem;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-faq__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #11A84E; /* Main Color */
  border-radius: 2px;
}

.page-faq__sub-title {
  font-size: 1.8rem;
  color: #F2FFF6; /* Text Main */
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
}

.page-faq__text-block {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__text-block p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1.05rem;
  line-height: 1.8;
}

/* FAQ Items (Details/Summary) */
.page-faq__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Text Main */
  transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
  background-color: #0A4B2C; /* Deep Green */
  border-color: #57E38D; /* Glow */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  color: #F2FFF6; /* Text Main */
  list-style: none; /* Remove default summary marker */
  user-select: none;
}

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

.page-faq__faq-qtext {
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  color: #57E38D; /* Glow */
  transition: transform 0.3s ease;
}

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

.page-faq__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.7;
}

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

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

.page-faq__faq-answer li {
  margin-bottom: 8px;
  color: #A7D9B8; /* Text Secondary */
}

.page-faq__list {
  list-style: disc;
  margin-left: 25px;
  padding: 0;
  color: #A7D9B8;
}

.page-faq__ordered-list {
  list-style: decimal;
  margin-left: 25px;
  padding: 0;
  color: #A7D9B8;
}

.page-faq__list-item {
  margin-bottom: 10px;
}

.page-faq__link-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: #11A84E;
  color: #F2FFF6;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-faq__link-button:hover {
  background-color: #22C768;
}

/* Image and Text Layout */
.page-faq__image-text-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  background-color: #11271B;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__image-text-layout--reverse {
  flex-direction: row-reverse;
}

.page-faq__image-inline {
  flex: 1;
  min-width: 250px; /* Ensure image is not too small */
  border-radius: 8px;
  object-fit: cover;
}

.page-faq__image-text-layout .page-faq__text-block {
  flex: 2;
  background: none;
  padding: 0;
  box-shadow: none;
  margin-bottom: 0;
}

/* Conclusion CTA */
.page-faq__cta-wrapper {
  text-align: center;
  margin-top: 50px;
  padding: 40px 20px;
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-text {
  font-size: 1.5rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 25px;
  font-weight: 600;
}

.page-faq__cta-button--large {
  padding: 18px 35px;
  font-size: 1.25rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    margin-top: 60px;
  }

  .page-faq__image-text-layout,
  .page-faq__image-text-layout--reverse {
    flex-direction: column;
    align-items: stretch;
  }

  .page-faq__image-inline {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-content {
    padding: 30px 15px;
    margin-top: 40px;
  }

  .page-faq__main-title {
    font-size: 2rem;
  }

  .page-faq__description {
    font-size: 0.95rem;
  }

  .page-faq__cta-button {
    padding: 12px 25px;
    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__section {
    padding: 40px 15px;
  }

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

  .page-faq__sub-title {
    font-size: 1.5rem;
  }

  .page-faq__text-block {
    padding: 20px;
  }

  .page-faq__text-block p {
    font-size: 0.95rem;
  }

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

  .page-faq__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.9rem;
  }

  .page-faq__list,
  .page-faq__ordered-list {
    margin-left: 15px;
  }

  .page-faq__cta-text {
    font-size: 1.2rem;
  }

  .page-faq__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1rem;
  }

  /* Mobile responsive images */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile responsive containers */
  .page-faq__section,
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__hero-content,
  .page-faq__text-block,
  .page-faq__faq-item,
  .page-faq__image-text-layout {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-faq__hero-section {
    padding-top: 10px !important;
  }

  /* Mobile responsive buttons */
  .page-faq__cta-button,
  .page-faq__link-button {
    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;
  }
  .page-faq__cta-wrapper .page-faq__cta-button {
    padding-left: 15px;
    padding-right: 15px;
  }
}