/* style/faq.css */

.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #f8f9fa;
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px);
  text-align: center;
  background-color: #1A1A2E;
  color: #ffffff;
  overflow: hidden;
}

.page-faq__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #E0B941;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-faq__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

.page-faq__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  margin-top: 30px;
}

/* Content Area */
.page-faq__content-area {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #1A1A2E;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-faq__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #E0B941;
  border-radius: 2px;
}

/* FAQ List */
.page-faq__faq-list {
  margin-bottom: 50px;
}

.page-faq__faq-item {
  background-color: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: #E0B941;
}

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

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  background-color: #ffffff;
  color: #333333;
}

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

.page-faq__faq-answer p {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
}

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

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

/* CTA Section */
.page-faq__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #1A1A2E;
  color: #ffffff;
  border-radius: 10px;
  margin-top: 50px;
}

.page-faq__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #E0B941;
}

.page-faq__cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* Buttons */
.page-faq__btn-primary {
  display: inline-block;
  background-color: #E0B941;
  color: #1A1A2E;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-faq__btn-primary:hover {
  background-color: #ffc84d;
  transform: translateY(-3px);
}

/* Highlight Text */
.page-faq__highlight-text {
  color: #E0B941;
  font-weight: bold;
}

/* Image Content */
.page-faq__image-content {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px auto;
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 2.8em;
  }

  .page-faq__section-title {
    font-size: 2em;
  }

  .page-faq__cta-title {
    font-size: 2.2em;
  }
}

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

  .page-faq__container {
    padding: 0 15px;
  }

  .page-faq__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-faq__hero-title {
    font-size: 2.2em;
  }

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

  .page-faq__section-title {
    font-size: 1.8em;
  }

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

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

  .page-faq__cta-section {
    padding: 50px 15px;
  }

  .page-faq__cta-title {
    font-size: 1.8em;
  }

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

  /* Mobile responsive for images */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__hero-image,
  .page-faq__image-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* Mobile responsive for buttons */
  .page-faq__btn-primary {
    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-section .page-faq__btn-primary {
    max-width: 90% !important;
    margin: 0 auto;
  }

  .page-faq__faq-answer p, .page-faq__faq-answer a {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 1.8em;
  }

  .page-faq__section-title {
    font-size: 1.5em;
  }

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

  .page-faq__cta-title {
    font-size: 1.5em;
  }
}