/* style/faq.css */

/* Body padding-top is handled by shared.css, so no var(--header-offset) here */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color for dark background */
  background-color: var(--background-color, #08160F); /* Main background color */
}

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

.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 60px 0; /* body already has padding-top from --header-offset, so only small top padding here */
  background-color: var(--background-color, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Adjust as needed for hero image */
  margin-bottom: 30px;
}

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

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

.page-faq__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text-main, #F2FFF6);
  /* No fixed font-size, rely on responsive scaling and other properties */
}

.page-faq__description {
  font-size: 1.125rem;
  margin-bottom: 30px;
  color: var(--text-secondary, #A7D9B8);
}

.page-faq__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main, #F2FFF6);
}

.page-faq__intro-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: var(--text-main, #333333); /* Dark text for light background */
}

.page-faq__intro-section .page-faq__section-title {
  color: var(--text-main, #333333);
}

.page-faq__intro-section .page-faq__text-block,
.page-faq__intro-section .page-faq__sub-title,
.page-faq__intro-section p {
  color: var(--text-main, #333333);
}

.page-faq__text-block {
  font-size: 1rem;
  margin-bottom: 30px;
  text-align: justify;
}

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

.page-faq__grid-item {
  background-color: var(--card-bg, #11271B);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-main, #F2FFF6);
}

.page-faq__intro-section .page-faq__grid-item {
  background-color: #f5f5f5;
  color: var(--text-main, #333333);
}

.page-faq__sub-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-main, #F2FFF6);
}

.page-faq__intro-section .page-faq__sub-title {
  color: var(--text-main, #333333);
}

.page-faq__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 8px;
}

.page-faq__image-center {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

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

.page-faq__dark-section {
  background-color: var(--background-color, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-faq__light-bg {
  background-color: #ffffff;
  color: var(--text-main, #333333);
}

.page-faq__light-bg .page-faq__section-title {
  color: var(--text-main, #333333);
}

.page-faq__light-bg .page-faq__faq-question {
  background-color: #f0f0f0;
  color: var(--text-main, #333333);
}

.page-faq__light-bg .page-faq__faq-answer {
  background-color: #fafafa;
  color: var(--text-main, #333333);
}

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

.page-faq__faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  overflow: hidden;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: var(--card-bg, #11271B);
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: var(--deep-green, #0A4B2C);
}

.page-faq__faq-item[open] > .page-faq__faq-question {
  background-color: var(--deep-green, #0A4B2C);
}

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

.page-faq__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 20px;
  color: var(--glow, #57E38D);
}

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

.page-faq__faq-item summary {
  list-style: none;
}

.page-faq__faq-answer {
  padding: 20px 25px;
  background-color: var(--background-color, #08160F);
  color: var(--text-secondary, #A7D9B8);
  font-size: 1rem;
  border-top: 1px solid var(--divider, #1E3A2A);
}

.page-faq__light-bg .page-faq__faq-answer {
  border-top: 1px solid #e0e0e0;
}

.page-faq__conclusion-section {
  padding: 80px 0;
  text-align: center;
  background-color: #ffffff;
  color: var(--text-main, #333333);
}

.page-faq__conclusion-section .page-faq__section-title {
  color: var(--text-main, #333333);
}

.page-faq__conclusion-section .page-faq__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main, #333333);
}

/* Buttons */
.page-faq__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-faq__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.8rem;
  }
  .page-faq__section-title {
    font-size: 2rem;
  }
  .page-faq__sub-title {
    font-size: 1.3rem;
  }
  .page-faq__faq-question {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-faq__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem); /* Using clamp for H1 */
    padding: 0 15px;
  }
  .page-faq__description {
    font-size: 1rem;
    padding: 0 15px;
  }
  .page-faq__section-title {
    font-size: 1.8rem;
    padding: 0 15px;
  }
  .page-faq__intro-section, .page-faq__faq-section, .page-faq__conclusion-section {
    padding: 40px 0;
  }
  .page-faq__container {
    padding: 0 15px;
  }
  .page-faq__grid-item {
    padding: 20px;
  }
  .page-faq__sub-title {
    font-size: 1.2rem;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 0.95rem;
  }
  .page-faq__faq-answer {
    padding: 15px 20px;
  }
  .page-faq__btn-primary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 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-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-faq__hero-section {
    padding-top: 10px !important; /* body already has --header-offset */
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }
  .page-faq__section-title {
    font-size: 1.6rem;
  }
  .page-faq__btn-primary {
    font-size: 1rem;
    padding: 12px 20px;
  }
}