/* style/faq.css */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: transparent; /* Body background is handled by shared.css #08160F */
  line-height: 1.6;
}

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

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit hero image height */
  overflow: hidden;
  position: relative;
  z-index: 0;
}

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

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  background-color: rgba(17, 39, 27, 0.9); /* Card BG with transparency */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__main-title {
  font-size: clamp(2em, 3.5vw, 3.2em);
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

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

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

.page-faq__section-spacing {
  padding: 80px 0;
}

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

.page-faq__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-faq__section-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.page-faq__faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

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

.page-faq__category-title {
  font-size: 1.8em;
  color: #22C768; /* Auxiliary Color */
  margin-bottom: 25px;
  font-weight: 600;
  border-bottom: 2px solid #1E3A2A; /* Divider */
  padding-bottom: 15px;
}

.page-faq__faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid #1E3A2A; /* Divider */
  padding-bottom: 15px;
}

.page-faq__faq-item:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.page-faq__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 10px 0;
}

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

.page-faq__faq-question {
  font-size: 1.15em;
  color: #F2FFF6; /* Text Main */
  font-weight: 600;
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  color: #2AD16F;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-faq__faq-answer {
  padding-top: 10px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
}

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

.page-faq__support-cta {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 12px;
  padding: 50px;
  margin-top: 60px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.page-faq__support-image {
  width: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.page-faq__support-content {
  flex-grow: 1;
}

.page-faq__support-title {
  font-size: 2em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-faq__support-description {
  font-size: 1.1em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 30px;
}

.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: transparent;
  color: #2AD16F; /* Button color */
  border: 2px solid #2AD16F; /* Border */
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-faq__btn-secondary:hover {
  background: #2AD16F;
  color: #11271B; /* Darker text on hover */
  transform: translateY(-2px);
}

.page-faq__cta-bottom-section {
  background-color: #11271B; /* Card BG */
  text-align: center;
}

.page-faq__cta-bottom-content {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 50px;
  border-radius: 12px;
  background-color: #0A4B2C; /* Deep Green */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-faq__cta-bottom-image {
  width: 50%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

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

.page-faq__cta-bottom-title {
  font-size: 2.2em;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: 700;
}

.page-faq__cta-bottom-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    margin-top: -80px;
    padding: 30px;
  }

  .page-faq__main-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
  }

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

  .page-faq__support-cta {
    flex-direction: column;
    text-align: center;
    padding: 40px;
  }

  .page-faq__support-image {
    width: 80%;
    max-width: 350px;
    margin-bottom: 30px;
  }

  .page-faq__cta-bottom-content {
    flex-direction: column;
    padding: 40px;
  }

  .page-faq__cta-bottom-image {
    width: 90%;
    margin-bottom: 30px;
  }

  .page-faq__cta-text-wrapper {
    text-align: center;
  }

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

@media (max-width: 768px) {
  /* General mobile padding */
  .page-faq__container {
    padding: 0 15px !important;
  }

  .page-faq__hero-section {
    padding: 10px 15px 40px !important; /* Small top padding, more bottom padding */
  }

  .page-faq__hero-content {
    margin-top: -60px !important;
    padding: 25px !important;
  }

  .page-faq__main-title {
    font-size: clamp(1.6em, 6vw, 2.2em) !important;
  }

  .page-faq__hero-description,
  .page-faq__section-description,
  .page-faq__support-description,
  .page-faq__cta-bottom-description {
    font-size: 1em !important;
  }

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

  .page-faq__section-spacing {
    padding: 50px 0 !important;
  }

  .page-faq__section-title {
    font-size: 1.8em !important;
  }

  .page-faq__faq-grid {
    grid-template-columns: 1fr !important;
  }

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

  .page-faq__category-title {
    font-size: 1.5em !important;
  }

  .page-faq__faq-question {
    font-size: 1.05em !important;
  }

  .page-faq__support-cta {
    padding: 30px !important;
  }

  .page-faq__support-image {
    width: 100% !important;
    max-width: 250px !important;
  }

  .page-faq__support-title {
    font-size: 1.6em !important;
  }

  .page-faq__cta-bottom-content {
    padding: 30px !important;
  }

  .page-faq__cta-bottom-image {
    width: 100% !important;
  }

  .page-faq__cta-bottom-title {
    font-size: 1.6em !important;
  }

  /* Image responsive rules */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__hero-image-wrapper,
  .page-faq__faq-list-section,
  .page-faq__faq-category,
  .page-faq__support-cta,
  .page-faq__cta-bottom-section,
  .page-faq__cta-bottom-content,
  .page-faq__cta-text-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }
  
  /* If multiple buttons are in a row, ensure they wrap or stack */
  .page-faq__hero-content > .page-faq__btn-primary,
  .page-faq__support-content > .page-faq__btn-secondary,
  .page-faq__cta-text-wrapper > .page-faq__btn-primary {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}