/* style/faq.css */
.page-faq {
  background-color: #08160F;
  color: #F2FFF6;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* body handles --header-offset */
  text-align: center;
  overflow: hidden;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-faq__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-faq__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-faq__hero-description {
  font-size: 1.1rem;
  color: #A7D9B8;
  margin-bottom: 30px;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-faq__btn-secondary {
  background: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F;
}

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

.page-faq__content-section {
  padding: 50px 0;
}

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

.page-faq__section-title {
  font-size: 2.5rem;
  color: #F2FFF6;
  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: #2AD16F;
  border-radius: 2px;
}

.page-faq__text-block {
  font-size: 1.1rem;
  color: #A7D9B8;
  margin-bottom: 25px;
  text-align: justify;
}

.page-faq__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.page-faq__card {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-faq__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 255, 0, 0.1);
}

.page-faq__card-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-faq__card-title {
  font-size: 1.5rem;
  color: #F2FFF6;
  margin-bottom: 15px;
}

.page-faq__card-text {
  font-size: 1rem;
  color: #A7D9B8;
  text-align: center;
}

.page-faq__guide-block {
  margin-top: 40px;
  margin-bottom: 60px;
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 12px;
  padding: 40px;
}

.page-faq__guide-subtitle {
  font-size: 2rem;
  color: #F2FFF6;
  margin-bottom: 25px;
  text-align: center;
}

.page-faq__ordered-list {
  list-style-type: decimal;
  padding-left: 30px;
  margin-bottom: 30px;
}

.page-faq__ordered-list li {
  font-size: 1.1rem;
  color: #A7D9B8;
  margin-bottom: 15px;
}

.page-faq__ordered-list li strong {
  color: #F2FFF6;
}

.page-faq__text-link {
  color: #2AD16F;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-faq__text-link:hover {
  color: #57E38D;
  text-decoration: underline;
}

.page-faq__faq-list {
  margin-top: 40px;
}

.page-faq__faq-item {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F2FFF6;
  background-color: #1a3628; /* Slightly darker for question header */
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: #2E7A4E;
}

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

.page-faq__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 20px;
  color: #2AD16F;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  content: '−';
}

.page-faq__faq-answer {
  padding: 0 30px 20px;
  font-size: 1rem;
  color: #A7D9B8;
  line-height: 1.8;
  transition: max-height 0.3s ease-out;
}

/* Details element specific styling */
.page-faq__faq-item summary {
  list-style: none;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__hero-section {
    padding: 40px 15px;
  }

  .page-faq__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

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

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

  .page-faq__grid-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-faq__card-title {
    font-size: 1.3rem;
  }

  .page-faq__guide-subtitle {
    font-size: 1.8rem;
  }

  .page-faq__faq-question {
    font-size: 1.1rem;
    padding: 18px 25px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important;
  }

  .page-faq__hero-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-faq__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-faq__hero-description {
    font-size: 0.95rem;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

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

  .page-faq__content-section {
    padding: 30px 0;
  }

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

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

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

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

  .page-faq__card {
    padding: 20px;
  }

  .page-faq__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__card-title {
    font-size: 1.2rem;
  }

  .page-faq__guide-block {
    padding: 30px;
  }

  .page-faq__guide-subtitle {
    font-size: 1.5rem;
  }

  .page-faq__ordered-list {
    padding-left: 20px;
  }

  .page-faq__ordered-list li {
    font-size: 1rem;
  }

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

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

  /* Ensure all images are responsive */
  .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__guide-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__faq-list {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }
}