/* style/faq.css */

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Minimal top padding, rely on body for header offset */
  overflow: hidden;
  text-align: center;
}

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

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

.page-faq__hero-content {
  max-width: 900px;
  width: 100%; /* Ensure width is set for flex container */
  margin: 40px auto 0 auto; /* Margin to separate from image */
  padding: 0 20px;
  box-sizing: border-box;
}

.page-faq__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size, avoid fixed large values */
  font-weight: 700;
  line-height: 1.2;
  color: #FFD36B; /* Glow for title */
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-faq__intro-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF6D6; /* Text Main */
}

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%; /* Ensure responsiveness */
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #0A0A0A; /* Dark text for light button */\  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #FFE699 0%, #F2C14E 100%);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: #FFD36B; /* Glow color for text */
  border: 2px solid #3A2A12; /* Border */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-secondary:hover {
  background-color: rgba(255, 211, 107, 0.1);
  color: #FFF6D6; /* Text Main */
  border-color: #FFD36B;
  transform: translateY(-2px);
}

/* Content Area */
.page-faq__content-area {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-faq__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #F2C14E; /* Main color */
  margin-top: 50px;
  margin-bottom: 30px;
  text-align: center;
  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: linear-gradient(90deg, transparent, #F2C14E, transparent);
  border-radius: 2px;
}

/* Section Images */
.page-faq__section-image-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-faq__section-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* FAQ List */
.page-faq__faq-list {
  margin-top: 40px;
}

.page-faq__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #1a1a1a;
  transition: background-color 0.3s ease;
}

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

.page-faq__question-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #FFF6D6; /* Text Main */
  margin: 0;
}

.page-faq__faq-toggle {
  font-size: 1.8rem;
  font-weight: 300;
  color: #F2C14E; /* Main color */
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form a cross (minus) */
  color: #FFD36B;
}

.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 */
}

.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;
  padding-bottom: 10px;
  color: #FFF6D6; /* Text Main */
}

.page-faq__faq-answer a {
  color: #F2C14E; /* Main color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-faq__faq-answer a:hover {
  color: #FFD36B; /* Glow color on hover */
  text-decoration: underline;
}

/* CTA Section at the bottom */
.page-faq__cta-section {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 40px 30px;
  margin-top: 60px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-text {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #FFF6D6; /* Text Main */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-faq__section-title {
    font-size: 2rem;
  }
}

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

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

  .page-faq__hero-content {
    margin-top: 20px;
  }

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

  .page-faq__intro-text {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

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

  .page-faq__content-area {
    margin: 40px auto;
    padding: 0 15px;
  }

  .page-faq__section-title {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .page-faq__section-image-wrapper {
    margin: 30px auto;
    max-width: calc(100% - 30px); /* Account for padding on content area */
  }

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

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

  .page-faq__faq-toggle {
    font-size: 1.5rem;
    width: 25px;
    height: 25px;
  }

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

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

  .page-faq__cta-section {
    padding: 30px 20px;
    margin-top: 40px;
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-faq__cta-text {
    font-size: 1.1rem;
    margin-bottom: 25px;
  }

  /* Image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .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;
  }
  
  /* Minimal top padding for first content section */
  .page-faq__hero-section {
    padding-top: 10px !important; 
  }
}

/* Ensure no filter on images */
.page-faq img {
  filter: none !important;
}