/* style/faq.css */
.page-faq {
  background-color: #0A0A0A;
  color: #FFF6D6;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* First section should have minimal top padding, relying on body for header offset */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Minimal top padding */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  margin-bottom: 30px;
  border-radius: 8px;
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 15px;
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #FFF6D6;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-faq__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: rgba(255, 246, 214, 0.9);
}

.page-faq__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: #FFF6D6;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.3;
}

.page-faq__section-description {
  font-size: 1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: rgba(255, 246, 214, 0.8);
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s 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%);
  color: #ffffff;
  border: 2px solid transparent;
  margin: 0 10px;
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #FFE080 0%, #E8B02C 100%);
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background: transparent;
  color: #F2C14E;
  border: 2px solid #F2C14E;
  margin: 0 10px;
}

.page-faq__btn-secondary:hover {
  background: #F2C14E;
  color: #0A0A0A;
  transform: translateY(-2px);
}

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

.page-faq__faq-category {
  background-color: #111111;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12;
  position: relative;
  overflow: hidden;
}

.page-faq__category-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  object-fit: cover;
}

.page-faq__category-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #F2C14E;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
  position: relative;
  padding-bottom: 15px;
}

.page-faq__category-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #FFD36B;
  border-radius: 2px;
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #3A2A12;
  padding-bottom: 15px;
}

.page-faq__faq-item:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 15px 0;
  transition: color 0.3s ease;
}

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

.page-faq__question-title {
  font-size: 1.15rem;
  color: #FFF6D6;
  font-weight: 500;
  margin: 0;
  flex-grow: 1;
  text-align: left;
}

.page-faq__faq-toggle {
  font-size: 1.8rem;
  font-weight: 300;
  color: #F2C14E;
  margin-left: 20px;
  transition: transform 0.3s ease;
  line-height: 1;
}

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

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: rgba(255, 246, 214, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
}

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

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

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

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

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

.page-faq__final-cta {
  text-align: center;
  padding: 80px 20px;
  background-color: #111111;
  border-radius: 12px;
  margin-top: 40px;
  border: 1px solid #3A2A12;
}

.page-faq__final-cta .page-faq__section-title {
  color: #FFF6D6;
  margin-bottom: 20px;
}

.page-faq__final-cta .page-faq__section-description {
  color: rgba(255, 246, 214, 0.8);
  margin-bottom: 40px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-image {
    max-height: 400px;
  }
  .page-faq__section {
    padding: 50px 20px;
  }
  .page-faq__faq-category {
    padding: 25px;
  }
  .page-faq__question-title {
    font-size: 1.1rem;
  }
  .page-faq__faq-toggle {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-image {
    max-height: 300px;
  }
  .page-faq__main-title {
    font-size: 2.2rem;
  }
  .page-faq__hero-description {
    font-size: 1rem;
  }
  .page-faq__section-title {
    font-size: 1.8rem;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    padding: 12px 20px !important;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-faq__section,
  .page-faq__container,
  .page-faq__faq-category {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__faq-question {
    padding: 10px 0;
  }
  .page-faq__question-title {
    font-size: 1rem;
  }
  .page-faq__faq-toggle {
    font-size: 1.4rem;
  }
  .page-faq__faq-answer {
    padding: 10px 5px !important;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8rem;
  }
  .page-faq__section-title {
    font-size: 1.6rem;
  }
  .page-faq__faq-category {
    padding: 20px;
  }
  .page-faq__category-title {
    font-size: 1.4rem;
  }
  .page-faq__question-title {
    font-size: 0.95rem;
  }
  .page-faq__faq-toggle {
    font-size: 1.2rem;
  }
}