/* style/faq.css */

.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--black-color);
}

.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-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, #26A9E0, #1a7bb0);
  color: #FFFFFF;
  text-align: center;
  padding-bottom: 60px;
  overflow: hidden;
}

.page-faq__hero-content {
  max-width: 800px;
  margin: 0 auto 40px auto;
  position: relative;
  z-index: 2;
}

.page-faq__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFFFF;
  font-weight: bold;
}

.page-faq__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
  z-index: 1;
  opacity: 0.2;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-width: 1200px;
  min-height: 675px;
}

/* General Section Styles */
.page-faq__section {
  padding: 60px 0;
  background-color: var(--black-color);
  color: #ffffff;
}

.page-faq__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
}

.page-faq__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-faq__dark-bg {
  background-color: var(--black-color);
  color: #ffffff;
}

/* FAQ List Styles */
.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__light-bg .page-faq__faq-item {
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
}

.page-faq__faq-item.active {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-faq__light-bg .page-faq__faq-item.active {
  background-color: #e6f7ff;
}

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

.page-faq__light-bg .page-faq__faq-question {
  color: #333333;
}

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

.page-faq__light-bg .page-faq__faq-question:hover {
  color: #26A9E0;
}

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

.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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-faq__light-bg .page-faq__faq-answer {
  color: #555555;
}

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

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

.page-faq__faq-answer img {
  margin-top: 15px;
  border-radius: 8px;
  display: block;
  max-width: 100%;
  height: auto;
  width: 100%; /* Ensure image fills container */
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Call to Action Section */
.page-faq__cta-section {
  background: linear-gradient(90deg, #26A9E0, #1a7bb0);
  color: #FFFFFF;
  text-align: center;
  padding: 80px 0;
}

.page-faq__cta-container {
  max-width: 900px;
}

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

.page-faq__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__download-btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-faq__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-faq__btn-primary:hover {
  background-color: #1a7bb0;
  border-color: #1a7bb0;
}

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

.page-faq__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #26A9E0;
}

.page-faq__download-btn {
  background-color: #EA7C07;
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-faq__download-btn:hover {
  background-color: #d46a00;
  border-color: #d46a00;
}

.page-faq__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

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

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

  .page-faq__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

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

  .page-faq__section-title {
    font-size: 1.6em;
    margin-bottom: 30px;
  }

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

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

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

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

  .page-faq__cta-section {
    padding: 60px 0;
  }

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

  .page-faq__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-faq__hero-image-wrapper {
    position: relative;
    height: 200px;
    margin-top: 20px;
  }

  .page-faq__hero-image {
    min-width: unset;
    min-height: unset;
    width: 100%;
    height: 100%;
  }
}

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

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

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