/* style/faq.css */
/* Base styles for the FAQ page content */
.page-faq {
  font-family: Arial, sans-serif;
  color: var(--text-main, #FFF6D6); /* Default text color from palette */
  background-color: var(--background, #0A0A0A); /* Default background from palette */
  line-height: 1.6;
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text on smaller screens */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* 10px top padding as body handles --header-offset */
  background-color: var(--background, #0A0A0A);
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Ensure image doesn't stretch too wide */
  margin-bottom: 30px; /* Space between image and content */
}

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

.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.5rem); /* Responsive font size for H1 */
  color: var(--text-main, #FFF6D6);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

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

.page-faq__hero-cta {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff; /* Button text always white */
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-faq__hero-cta:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%); /* Slightly different gradient on hover */
}

/* Accordion Section */
.page-faq__accordion-section {
  padding: 60px 20px;
  background-color: var(--card-bg, #111111); /* Card BG from palette */
  color: var(--text-main, #FFF6D6); /* Text on dark card background */
}

.page-faq__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px; /* Inner padding for container */
  box-sizing: border-box;
}

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

.page-faq__section-description {
  font-size: 1.05rem;
  color: var(--text-main, #FFF6D6);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__faq-item {
  background-color: var(--background, #0A0A0A); /* Darker background for each item */
  border: 1px solid var(--border, #3A2A12); /* Border from palette */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--card-bg, #111111); /* Slightly lighter background for question header */
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-title {
  font-size: 1.2rem;
  color: var(--text-main, #FFF6D6);
  margin: 0;
  font-weight: 600;
}

.page-faq__faq-toggle {
  font-size: 1.8rem;
  color: var(--primary-color, #F2C14E); /* Main color for toggle icon */
  font-weight: bold;
  transition: transform 0.3s ease;
  line-height: 1; /* Ensure + and - are centered */
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(0deg); /* No rotation, just text change */
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px; /* Initial padding is 0 */
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: var(--text-main, #FFF6D6);
}

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

.page-faq__faq-answer p {
  margin-bottom: 15px;
  font-size: 1rem;
  color: var(--text-main, #FFF6D6);
}

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

.page-faq__faq-answer a {
  color: var(--primary-color, #F2C14E); /* Links in answers */
  text-decoration: underline;
}

.page-faq__faq-answer a:hover {
  color: var(--accent-color, #FFD36B);
}

/* CTA Section */
.page-faq__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--background, #0A0A0A); /* Background from palette */
  color: var(--text-main, #FFF6D6);
}

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

.page-faq__cta-description {
  font-size: 1.15rem;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-faq__btn-primary {
  color: #ffffff;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  border: none;
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
}

.page-faq__btn-secondary {
  color: var(--primary-color, #F2C14E); /* Text color from palette */
  background-color: transparent;
  border: 2px solid var(--primary-color, #F2C14E);
}

.page-faq__btn-secondary:hover {
  background-color: var(--primary-color, #F2C14E);
  color: #ffffff;
}

/* Responsive Styles */
@media (min-width: 769px) {
  .page-faq__hero-section {
    flex-direction: row; /* Image and content side-by-side on desktop */
    padding-top: 60px; /* Adjust desktop top padding */
    text-align: left;
    gap: 40px;
  }

  .page-faq__hero-content {
    flex: 1;
    text-align: left;
    padding: 0; /* Remove extra padding */
  }

  .page-faq__hero-image-wrapper {
    flex: 1;
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 10px 15px 40px;
  }

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

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

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

  .page-faq__section-description {
    font-size: 0.95rem;
  }

  .page-faq__faq-question {
    padding: 18px 20px;
  }

  .page-faq__faq-title {
    font-size: 1.1rem;
  }

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

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

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

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

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

  /* Force responsive images and buttons */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
  }

  .page-faq__cta-button,
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .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-wrap: wrap !important;
    gap: 10px;
  }

  .page-faq__hero-section {
    flex-direction: column; /* Ensure column layout on mobile */
  }
}