/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  background-color: #0A0A0A; /* Background */
  color: #FFF6D6; /* Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Add some space above the footer */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  padding: 60px 20px;
  text-align: center;
  background-color: #111111; /* Card BG */
  border-bottom: 1px solid #3A2A12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-faq__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-faq__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF6D6;
}

/* Section Titles */
.page-faq__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

/* Introduction Section */
.page-faq__introduction {
  padding: 40px 0;
  border-bottom: 1px solid #3A2A12;
}

.page-faq__introduction p {
  margin-bottom: 1em;
  color: #FFF6D6;
}

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

.page-faq__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  color: #FFF6D6;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-faq__faq-question h3 {
  margin: 0;
  font-size: 1.1em;
  color: #FFF6D6;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #FFF6D6;
}

.page-faq__faq-answer p {
  margin-bottom: 1em;
  padding-bottom: 15px;
  color: #FFF6D6;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 20px;
}

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

/* Benefits Section */
.page-faq__benefits-section {
  padding: 40px 0;
  border-top: 1px solid #3A2A12;
}

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

.page-faq__benefit-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  color: #FFF6D6;
}

.page-faq__benefit-card img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__benefit-card h3 {
  color: #F2C14E; /* Main color */
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-faq__benefit-card p {
  font-size: 0.95em;
  color: #FFF6D6;
}

/* CTA Buttons */
.page-faq__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text for contrast */
  border: none;
  cursor: pointer;
  font-size: 1.1em;
  white-space: nowrap;
}

.page-faq__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

.page-faq__cta-button--center {
  display: block;
  margin: 0 auto;
  width: fit-content;
}

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

.page-faq__cta-button--primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111;
}

.page-faq__cta-button--secondary {
  background-color: transparent;
  border: 2px solid #FFD36B; /* Glow */
  color: #FFD36B;
}

.page-faq__cta-button--secondary:hover {
  background-color: rgba(255, 211, 107, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 211, 107, 0.4);
}

/* CTA Section */
.page-faq__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #111111; /* Card BG */
  border-top: 1px solid #3A2A12;
}

.page-faq__cta-section p {
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
  color: #FFF6D6;
}

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

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

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

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

  .page-faq__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 30px;
  }

  .page-faq__container {
    padding: 0 15px;
  }

  .page-faq__faq-item,
  .page-faq__benefit-card {
    margin-bottom: 10px;
    padding: 15px;
  }

  .page-faq__faq-question {
    padding: 12px 15px;
  }

  .page-faq__faq-question h3 {
    font-size: 1em;
  }

  .page-faq__faq-answer p {
    padding-bottom: 12px;
  }

  .page-faq__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-faq__cta-button,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    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;
  }
  
  .page-faq__cta-buttons,
  .page-faq__button-group,
  .page-faq__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important;
    gap: 10px;
  }

  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__hero-section,
  .page-faq__introduction,
  .page-faq__faq-section,
  .page-faq__benefits-section,
  .page-faq__cta-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-faq__cta-section p {
    font-size: 1em;
    padding: 0 15px;
  }
}