/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  background-color: #0A0A0A; /* Dark background */
  color: #FFF6D6; /* Light text for contrast */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Ensure space above footer */
}

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

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

.page-faq__hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.8) 0%, rgba(10, 10, 10, 0.4) 50%, rgba(10, 10, 10, 0.8) 100%); /* Overlay for text readability */
}

.page-faq__main-title {
  color: #FFF6D6;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
  max-width: 900px;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

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

/* CTA Buttons in Hero */
.page-faq__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  text-align: center;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #FFE082 0%, #E8A820 100%);
  box-shadow: 0 0 15px #FFD36B;
}

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

.page-faq__btn-secondary:hover {
  background-color: rgba(255, 211, 107, 0.1);
  color: #FFF6D6;
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.5);
}

/* Content Area */
.page-faq__content-area {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  background-color: #111111; /* Card BG */
  border-radius: 12px;
  border: 1px solid #3A2A12;
}

.page-faq__section-title {
  color: #F2C14E;
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 5px rgba(255, 211, 107, 0.3);
}

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

/* FAQ Items */
.page-faq__faq-item {
  background-color: #0A0A0A;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  margin-bottom: 15px;
  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;
  color: #FFD36B;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  color: #FFF6D6;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-faq__faq-answer p {
  margin-bottom: 1em;
}

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

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

.page-faq__faq-answer a:hover {
  color: #F2C14E;
}

/* Final CTA Section */
.page-faq__cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
  background-color: #111111;
  border-radius: 12px;
  border: 1px solid #3A2A12;
  box-shadow: 0 0 20px rgba(255, 211, 107, 0.1);
}

.page-faq__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
  display: block;
}

.page-faq__cta-title {
  color: #F2C14E;
  font-size: 2.2em;
  margin-bottom: 15px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-image {
    height: 500px;
  }
  .page-faq__main-title {
    font-size: 2.5em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-image {
    height: 400px;
  }
  .page-faq__main-title {
    font-size: 2em;
  }
  .page-faq__hero-description,
  .page-faq__section-intro,
  .page-faq__cta-description {
    font-size: 1em;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
  }
  .page-faq__content-area,
  .page-faq__cta-section {
    margin: 30px auto;
    padding: 30px 15px;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-faq__faq-answer {
    padding: 0 20px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px 20px;
  }
  
  /* Mobile image and container adaptation */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__hero-section,
  .page-faq__content-area,
  .page-faq__cta-section,
  .page-faq__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-faq__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-image {
    height: 350px;
  }
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.5em;
  }
  .page-faq__cta-title {
    font-size: 1.6em;
  }
  .page-faq__faq-question {
    font-size: 1em;
  }
  .page-faq__faq-toggle {
    font-size: 1.2em;
  }
}