/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main color for dark background */
  background-color: #0A0A0A; /* Background color */
}

.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;
  padding: 60px 0;
  text-align: center;
  overflow: hidden;
  background-color: #0A0A0A;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum size */
}

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

.page-faq__hero-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: #FFD36B; /* Glow color for titles */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* Section Titles */
.page-faq__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  color: #FFD36B;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-faq__section-description {
  font-size: 1em;
  color: #FFF6D6;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #111111;
  color: #FFF6D6;
  font-weight: 600;
  font-size: 1.1em;
  border-bottom: 1px solid transparent; /* Default */
  transition: background-color 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-question {
  border-bottom-color: #3A2A12;
}

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

.page-faq__faq-heading {
  margin: 0;
  color: #FFF6D6;
  flex-grow: 1;
  text-align: left;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 30px;
  text-align: center;
  color: #FFD36B;
  transition: transform 0.3s ease;
}

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

.page-faq__faq-answer p {
  padding-bottom: 20px; /* Ensures padding at the bottom of content */
  margin: 0;
  color: #FFF6D6;
}

.page-faq__faq-answer p a {
  color: #FFD36B;
  text-decoration: underline;
}

/* Active state for FAQ item */
.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Ensures it expands fully */
  padding: 20px; /* Expanded padding */
}

/* CTA Section */
.page-faq__cta-section {
  padding: 80px 0;
  background-color: #111111; /* Card BG */
  text-align: center;
}

.page-faq__cta-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  padding: 0 20px;
}

.page-faq__cta-image {
  flex-shrink: 0;
  width: 500px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

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

.page-faq__cta-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  color: #FFD36B;
  margin-bottom: 20px;
}

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

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

/* Buttons */
.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: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-faq__btn-secondary {
  background-color: transparent;
  color: #FFD36B;
  border: 2px solid #FFD36B;
}

.page-faq__btn-secondary:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 211, 107, 0.1);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.2);
}

/* General text and link styles */
.page-faq p a {
  color: #FFD36B;
  text-decoration: none;
}

.page-faq p a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    margin-top: 20px;
  }
  .page-faq__cta-container {
    flex-direction: column;
    text-align: center;
  }
  .page-faq__cta-image {
    width: 80%;
    max-width: 500px;
  }
  .page-faq__cta-content {
    text-align: center;
  }
  .page-faq__cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-faq__hero-section {
    padding: 40px 0;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
  }
  
  .page-faq__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

  .page-faq__section-title {
    font-size: clamp(1.6em, 6vw, 2.2em);
    padding-top: 20px;
  }

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

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

  .page-faq__faq-answer {
    padding: 0 15px; /* Mobile padding */
  }

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px; /* Mobile padding */
  }

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

  .page-faq__cta-image {
    width: 90%;
  }

  .page-faq__cta-title {
    font-size: clamp(1.6em, 6vw, 2.2em);
  }

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

  /* Mobile responsive for all images (forced) */
  .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-section,
  .page-faq__faq-section,
  .page-faq__cta-section,
  .page-faq__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Mobile responsive for all buttons (forced) */
  .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: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}