/* style/faq.css */

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

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

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

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(17, 39, 27, 0.7); /* Card BG with transparency */
  border-radius: 10px;
}

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

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

/* CTA Buttons */
.page-faq__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 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%); /* Button color */
  color: #F2FFF6; /* Text Main */
  border: none;
}

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

.page-faq__btn-secondary {
  background: transparent;
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border color */
}

.page-faq__btn-secondary:hover {
  background: rgba(46, 122, 78, 0.2); /* Border color with transparency */
  transform: translateY(-2px);
}

/* General Section Styles */
.page-faq__intro-section,
.page-faq__faq-list-section,
.page-faq__cta-bottom-section {
  padding: 60px 20px;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

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

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

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

.page-faq__text-block a {
  color: #57E38D; /* Glow */
  text-decoration: none;
}

.page-faq__text-block a:hover {
  text-decoration: underline;
}

/* FAQ Specific Styles */
.page-faq__faq-category {
  margin-bottom: 50px;
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  border: 1px solid #2E7A4E; /* Border color */
}

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

.page-faq__faq-item {
  background-color: #08160F; /* Background */
  border: 1px solid #1E3A2A; /* Divider */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #11271B; /* Card BG */
  transition: background-color 0.3s ease;
  user-select: none;
}

.page-faq__faq-question:hover {
  background-color: #1e3a2a; /* Slightly darker hover */
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

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

.page-faq__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-faq__faq-item[open] .page-faq__faq-answer {
  max-height: 2000px; /* Sufficiently large to show content */
  padding: 0 20px 20px 20px;
}

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

.page-faq__faq-answer a {
  color: #57E38D; /* Glow */
  text-decoration: none;
}

.page-faq__faq-answer a:hover {
  text-decoration: underline;
}

/* Details/Summary specific styling to remove default marker */
.page-faq__faq-item summary {
  list-style: none;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

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

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

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 10px 15px 40px 15px;
    min-height: 400px;
  }

  .page-faq__hero-content {
    padding: 15px;
  }

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

  .page-faq__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .page-faq__intro-section,
  .page-faq__faq-list-section,
  .page-faq__cta-bottom-section {
    padding: 40px 15px;
  }

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

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

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

  .page-faq__faq-category {
    padding: 20px;
  }

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

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

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

  /* Image responsive adaptation */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__hero-image-wrapper,
  .page-faq__hero-content,
  .page-faq__faq-category {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

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

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