/* style/faq.css */
.page-faq {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --background-dark: #08160F;
  --card-bg: #11271B;
  --border-color: #2E7A4E;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;

  color: var(--text-main-color); /* Default text color for the page */
  background-color: var(--background-dark);
}

.page-faq__dark-section {
  background-color: var(--background-dark);
  color: var(--text-main-color);
}

.page-faq__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

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

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

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

.page-faq__main-title {
  font-size: clamp(2.5rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--text-main-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-faq__description {
  font-size: 1.1rem;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.page-faq__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(var(--primary-color), 0.3);
}

.page-faq__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  margin-left: 15px;
}

.page-faq__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-main-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(var(--primary-color), 0.2);
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 60px 0;
}

.page-faq__section-title {
  font-size: 2.2rem;
  color: #333333;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-faq__section-description {
  font-size: 1rem;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-faq__faq-category {
  margin-bottom: 40px;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.page-faq__category-title {
  font-size: 1.8rem;
  color: var(--deep-green);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--divider-color);
  font-weight: 600;
}

.page-faq__faq-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #333333;
}

.page-faq__faq-item[open] {
  background-color: #e6ffe6; /* Lighter green when open */
  border-color: var(--primary-color);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--deep-green);
  background-color: #ffffff;
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: var(--primary-color);
  color: var(--text-main-color);
}

.page-faq__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.page-faq__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.6;
  background-color: #f9f9f9;
}

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

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

.page-faq__image-inline {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

/* CTA Section */
.page-faq__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-faq__cta-title {
  font-size: 2.5rem;
  color: var(--text-main-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-faq__cta-description {
  font-size: 1.1rem;
  color: var(--text-secondary-color);
  max-width: 700px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    padding: 0 40px;
  }
  .page-faq__main-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-faq__hero-content {
    padding: 0 15px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-faq__description {
    font-size: 0.95rem;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 15px;
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-faq__section-title {
    font-size: 1.8rem;
    padding: 0 15px;
  }
  .page-faq__section-description {
    font-size: 0.9rem;
    padding: 0 15px;
  }
  .page-faq__faq-category {
    padding: 20px 15px;
    margin: 0 15px 30px 15px;
  }
  .page-faq__category-title {
    font-size: 1.5rem;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-faq__faq-answer {
    padding: 12px 20px 15px 20px;
    font-size: 0.85rem;
  }
  .page-faq__cta-title {
    font-size: 2rem;
    padding: 0 15px;
  }
  .page-faq__cta-description {
    font-size: 0.95rem;
    padding: 0 15px;
  }

  /* Mobile image responsiveness */
  .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__hero-section,
  .page-faq__faq-list-section,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-faq__faq-category {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-section {
    padding-bottom: 30px;
  }
  .page-faq__main-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
  .page-faq__cta-section {
    padding: 60px 0;
  }
  .page-faq__cta-title {
    font-size: 1.8rem;
  }
}