/* style/faq.css */

/* --- Base Styles & Layout --- */
.page-faq {
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Main text color based on Text Main */
  background-color: #0A0A0A; /* Main background color based on Background */
  line-height: 1.6;
}

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

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

/* --- Hero Section --- */
.page-faq__hero-section {
  background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Based on main & auxiliary colors */
  padding-top: var(--header-offset, 120px);
  padding-bottom: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #111111; /* Dark text for light background */
}

.page-faq__hero-content-wrapper {
  display: flex;
  flex-direction: column; /* Default to column for small screens */
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-faq__hero-text-content {
  text-align: center;
}

.page-faq__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em); /* Clamp for flexible sizing */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #111111; /* Dark text for light background */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #333333; /* Darker text for readability on lighter background */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__hero-image-wrapper {
  flex-shrink: 0;
}

.page-faq__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* --- Section Titles --- */
.page-faq__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #FFD36B; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-faq__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #F2C14E; /* Main color as accent */
  border-radius: 2px;
}

/* --- FAQ List --- */
.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-faq__faq-item.active {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border-color: #F2C14E;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #111111; /* Card BG */
  color: #FFF6D6; /* Text Main */
  font-weight: 600;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1); /* Slight hover effect with main color */
}

.page-faq__faq-question h3 {
  margin: 0;
  font-size: 1em; /* Keep h3 font size relative to parent */
  color: inherit;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #F2C14E; /* Main color for toggle */
}

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

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6; /* Text Main */
  background-color: #111111; /* Card BG */
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to accommodate content */
  padding: 15px 25px 25px;
}

.page-faq__faq-answer p,
.page-faq__faq-answer ul,
.page-faq__faq-answer ol,
.page-faq__faq-answer li,
.page-faq__faq-answer a {
  color: #FFF6D6;
}

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

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin-left: 20px;
  margin-bottom: 10px;
}

.page-faq__faq-answer li {
  margin-bottom: 5px;
}

.page-faq__faq-answer a {
  text-decoration: underline;
  color: #F2C14E; /* Links within FAQ answers */
}

.page-faq__faq-answer a:hover {
  text-decoration: none;
}

/* --- Call to Action Buttons --- */
.page-faq__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for button */
  border: 2px solid transparent;
}

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

.page-faq__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Main color for text */
  border: 2px solid #F2C14E; /* Main color for border */
}

.page-faq__btn-secondary:hover {
  background: #F2C14E;
  color: #111111; /* Dark text on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.2);
}

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

.page-faq__cta-content {
  max-width: 800px;
}

.page-faq__cta-title {
  font-size: 2.5em;
  color: #FFD36B; /* Auxiliary color */
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.1em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 40px;
}

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


/* --- Responsive Styles --- */
@media (min-width: 769px) {
  .page-faq__hero-content-wrapper {
    flex-direction: row; /* Desktop: row layout */
    text-align: left;
  }

  .page-faq__hero-text-content {
    flex: 1;
    text-align: left;
  }

  .page-faq__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }

  .page-faq__main-title {
    margin-left: 0;
    margin-right: 0;
  }

  .page-faq__intro-text {
    margin-left: 0;
    margin-right: 0;
  }

  .page-faq__cta-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile: Ensure padding top is applied */
    padding-bottom: 40px;
  }

  .page-faq__main-title {
    font-size: 2.2em; /* Smaller on mobile */
    text-align: center;
  }

  .page-faq__intro-text {
    font-size: 1em;
    text-align: center;
  }

  .page-faq__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

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

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

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

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 10px 20px 20px;
  }

  .page-faq__cta-buttons,
  .page-faq__cta-buttons-bottom {
    flex-direction: column;
    gap: 15px;
  }

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

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

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

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

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

  .page-faq__hero-image-wrapper,
  .page-faq__container,
  .page-faq__section,
  .page-faq__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure headings maintain contrast on dark background */
.page-faq h2, .page-faq h3 {
  color: #FFD36B; /* Auxiliary color for general headings */
}

/* Override for hero section text on light background */
.page-faq__hero-section h1,
.page-faq__hero-section p {
  color: #111111; /* Dark text for light gradient background */
}

.page-faq__hero-section .page-faq__btn-primary {
  color: #111111; /* Dark text for primary button on light background */
}

.page-faq__hero-section .page-faq__btn-secondary {
  color: #F2C14E; /* Main color for secondary button text on light background */
  border-color: #F2C14E;
}

.page-faq__hero-section .page-faq__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
}