/* style/faq.css */

/* Body background from shared.css, page content uses dark background */
.page-faq {
  background-color: #08160F; /* Background color */
  color: #F2FFF6; /* Main text color */
  font-family: 'Arial', sans-serif;
}

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

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 40px; /* Space between image and content */
}

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

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

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

.page-faq__hero-description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.page-faq__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  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 */
}

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

.page-faq__content-section {
  padding: 80px 20px;
  box-sizing: border-box;
}

.page-faq__dark-bg {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

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

.page-faq__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
}

.page-faq__section-intro {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

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

.page-faq__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border */
  transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-faq__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #57E38D; /* Glow */
}

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

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

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

.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

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

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

.page-faq__cta-support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 40px;
  margin-top: 60px;
  border: 1px solid #2E7A4E; /* Border */
}

.page-faq__support-image {
  flex: 1 1 300px;
  max-width: 500px;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-faq__support-content {
  flex: 2 1 400px;
}

.page-faq__support-title {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-faq__support-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__hero-section {
    padding-bottom: 40px;
  }
  .page-faq__faq-question {
    font-size: 1.1rem;
  }
  .page-faq__support-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section,
  .page-faq__content-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

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

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

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

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

  .page-faq__hero-image,
  .page-faq__support-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__hero-image-wrapper,
  .page-faq__cta-support,
  .page-faq__container,
  .page-faq__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

  .page-faq__cta-support {
    flex-direction: column;
    padding: 30px;
    gap: 30px;
  }

  .page-faq__support-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    text-align: center;
  }

  .page-faq__support-description {
    font-size: 1rem;
    text-align: center;
  }

  .page-faq__cta-support .page-faq__btn {
    width: auto !important;
    align-self: center;
  }
}