/* style/faq.css */

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

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden;
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-faq__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #FFD36B;
  line-height: 1.2;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-faq__description {
  font-size: 1.1rem;
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 700px;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
  border: none;
}

.page-faq__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

.page-faq__section {
  padding: 60px 20px;
  background-color: #0A0A0A;
}

.page-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-faq__container--flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.page-faq__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #F2C14E;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-faq__section-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 0 auto 40px auto;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Specific Styles */
.page-faq__faq-list-section {
  background-color: #0A0A0A;
}

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

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

.page-faq__faq-question:hover {
  background-color: #222222;
}

.page-faq__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: 1.15rem;
}

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

.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;
  font-size: 1rem;
}

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

.page-faq__faq-answer p {
  margin: 0;
  color: inherit;
}

.page-faq__contact-cta-section {
  background-color: #111111;
  padding: 80px 20px;
}

.page-faq__contact-cta-section .page-faq__description {
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-faq__cta-button--contact {
  margin-bottom: 15px;
}

.page-faq__cta-button--secondary {
  background: none;
  border: 2px solid #F2C14E;
  color: #F2C14E;
  box-shadow: none;
  padding: 13px 28px;
}

.page-faq__cta-button--secondary:hover {
  background-color: #F2C14E;
  color: #111111;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.3);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    padding: 30px 15px;
  }

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

  .page-faq__description {
    font-size: 1rem;
  }

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

  .page-faq__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
}

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

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

  .page-faq__description {
    font-size: 0.95rem;
  }

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

  .page-faq__contact-cta-section .page-faq__container--flex {
    gap: 15px;
  }

  .page-faq__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  /* Mobile image and container responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__section,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-faq__faq-toggle {
    font-size: 1.5rem;
  }

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

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

@media (max-width: 480px) {
  .page-faq__hero-content {
    padding: 15px 10px;
  }

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

  .page-faq__cta-button {
    font-size: 1rem;
    padding: 12px 25px;
  }

  .page-faq__section-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  .page-faq__faq-question {
    font-size: 0.95rem;
    padding: 12px 15px;
  }

  .page-faq__faq-question h3 {
    font-size: 0.95rem;
  }

  .page-faq__faq-toggle {
    font-size: 1.3rem;
  }

  .page-faq__faq-answer {
    font-size: 0.9rem;
    padding: 0 15px;
  }

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

  .page-faq__contact-cta-section {
    padding: 60px 15px;
  }
}