/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color, #F2FFF6); /* Default to light text for dark background */
  background-color: var(--background-color, #08160F); /* Dark background */
  line-height: 1.6;
  padding-top: 0; /* Handled by body padding-top */
}

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

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

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  min-width: 200px;
  min-height: 200px;
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(17, 39, 27, 0.8); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin-top: 20px; /* Space from top of hero section */
}

.page-faq__main-title {
  color: var(--text-main-color, #F2FFF6);
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-faq__hero-description {
  color: var(--text-secondary-color, #A7D9B8);
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 48px;
}

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

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

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

.page-faq__section-description {
  color: var(--text-secondary-color, #A7D9B8);
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__faq-list {
  background-color: var(--background-color, #08160F);
}

.page-faq__faq-item {
  background-color: var(--card-bg-color, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color, #F2FFF6);
  transition: all 0.3s ease;
}

.page-faq__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  list-style: none; /* Remove default marker */
  color: var(--text-main-color, #F2FFF6);
}

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

.page-faq__faq-item summary:hover {
  background-color: rgba(34, 199, 104, 0.1); /* Lighter hover effect */
}

.page-faq__faq-qtext {
  flex-grow: 1;
  color: var(--text-main-color, #F2FFF6);
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color, #F2C14E);
}

.page-faq__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--text-secondary-color, #A7D9B8);
}

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

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

.page-faq__content-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* CTA Section at the bottom */
.page-faq__cta-section {
  background-color: var(--deep-green-color, #0A4B2C);
  padding: 80px 0;
  text-align: center;
}

.page-faq__cta-title {
  color: var(--text-main-color, #F2FFF6);
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-faq__cta-description {
  color: var(--text-secondary-color, #A7D9B8);
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-faq__cta-button--secondary {
  background: var(--gold-color, #F2C14E);
  color: #11271B;
}

.page-faq__cta-button--secondary:hover {
  background: #E0B03C;
}

.page-faq__cta-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-faq__button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #FFFFFF;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  min-width: 150px;
  min-height: 40px;
}

.page-faq__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-faq__button--download {
  background: var(--gold-color, #F2C14E);
  color: #11271B;
}

.page-faq__button--download:hover {
  background: #E0B03C;
}

.page-faq__button--vip {
  background: var(--glow-color, #57E38D);
  color: #11271B;
}

.page-faq__button--vip:hover {
  background: #40D07C;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    margin-top: 0;
    padding: 15px;
  }

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

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

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

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__hero-section {
    padding: 40px 0 20px 0;
  }

  .page-faq__hero-content {
    padding: 10px;
    margin: 0 15px; /* Add horizontal margin */
  }

  .page-faq__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em); /* Smaller on mobile */
  }

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

  .page-faq__section {
    padding: 40px 0;
  }

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

  .page-faq__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-faq__faq-answer {
    padding: 0 20px 15px 20px;
  }

  .page-faq__cta-section {
    padding: 60px 0;
  }

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

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

  .page-faq__cta-button,
  .page-faq__button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  /* Ensure content images are not too small */
  .page-faq__content-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-faq__hero-image,
  .page-faq__cta-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-section {
    padding: 20px 0 10px 0;
  }

  .page-faq__hero-content {
    padding: 10px;
    margin: 0 10px;
  }

  .page-faq__main-title {
    font-size: clamp(1.2em, 8vw, 2em);
  }

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

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

  .page-faq__cta-button,
  .page-faq__button {
    font-size: 0.95em;
    padding: 10px 20px;
  }

  .page-faq__cta-buttons {
    gap: 10px;
  }
}