/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Assuming --dark-bg-color is dark, so light text */
  background-color: var(--dark-bg-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);
  background-color: #26A9E0;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 60px;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-faq__hero-content {
  flex: 1;
  padding-left: 20px;
  z-index: 1;
  max-width: 600px;
}

.page-faq__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

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

.page-faq__hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-faq__hero-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  display: block;
  z-index: 0;
  min-width: 200px; /* Ensure minimum size */
}

/* Section Titles & Descriptions */
.page-faq__section-title,
.page-faq__cta-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-faq__section-description,
.page-faq__cta-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Accordion Section */
.page-faq__accordion-section {
  padding: 80px 0;
  background-color: var(--dark-bg-color);
  color: #ffffff;
}

.page-faq__faq-list {
  margin-top: 50px;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

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

.page-faq__faq-question h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.2em;
}

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

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

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

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

.page-faq__faq-answer p {
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-faq__faq-answer ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-faq__faq-answer ul li {
  margin-bottom: 8px;
}

.page-faq__faq-answer strong {
  color: #ffffff;
}

.page-faq__image-inline {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  display: block;
  min-width: 200px;
}

/* Call to Action Section */
.page-faq__cta-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text for light background */
  text-align: center;
}

.page-faq__cta-title {
  color: #333333;
}

.page-faq__cta-description {
  color: #555555;
}

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-small {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-faq__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
  background-color: #EA7C07; /* Login color for small buttons */
  color: #ffffff;
  border: 1px solid #EA7C07;
  margin-top: 15px;
}

.page-faq__btn-small:hover {
  background-color: #cc6a00;
  border-color: #cc6a00;
}

.page-faq a {
  color: #26A9E0;
  text-decoration: none;
}

.page-faq a:hover {
  text-decoration: underline;
}

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

  .page-faq__hero-section {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding-bottom: 40px;
  }

  .page-faq__hero-content {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 100%;
  }

  .page-faq__hero-image {
    width: 80%;
    margin-top: 30px;
    min-width: 200px;
  }
}

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

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

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

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

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

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

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

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

  .page-faq__hero-buttons,
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
 }}