/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
}

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

.page-faq__section {
  padding: 60px 0;
  text-align: center;
}

.page-faq__section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for titles */
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-faq__section-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles padding-top, this is for visual spacing */
  background-color: #26A9E0; /* Dark background for hero */
  color: #ffffff; /* Light text for dark background */
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-faq__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-faq__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-faq__intro-text {
  font-size: 20px;
  margin-bottom: 30px;
  line-height: 1.5;
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__hero-cta,
.page-faq__final-cta {
  display: inline-block;
  padding: 15px 30px;
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary:hover,
.page-faq__hero-cta:hover,
.page-faq__final-cta:hover {
  background-color: #d66b05;
  transform: translateY(-2px);
}

/* FAQ List */
.page-faq__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

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

.page-faq__dark-section .page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  background-color: #f9f9f9;
  color: #26A9E0;
  transition: background-color 0.3s ease;
}

.page-faq__dark-section .page-faq__faq-question {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

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

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

.page-faq__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
}

.page-faq__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 16px;
  color: #555555;
  line-height: 1.6;
}

.page-faq__dark-section .page-faq__faq-answer {
  color: #e0e0e0;
}

/* Details tag specific styles for FAQ */
.page-faq__faq-item summary {
  list-style: none;
}

.page-faq__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: #eef7fc;
}

.page-faq__dark-section .page-faq__faq-item[open] .page-faq__faq-question {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Background colors for sections */
.page-faq__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-faq__dark-bg,
.page-faq__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Text colors for dark backgrounds */
.page-faq__light-text {
  color: #ffffff;
}

.page-faq__dark-section .page-faq__section-title {
  color: #ffffff;
}

.page-faq__dark-section .page-faq__section-description {
  color: #f0f0f0;
}

.page-faq__dark-section .page-faq__faq-qtext {
  color: #ffffff;
}

/* Final CTA Section */
.page-faq__cta-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-faq__cta-section .page-faq__section-description {
  margin-bottom: 50px;
  color: #f0f0f0;
}

/* Global image responsiveness */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-faq__section {
    padding: 40px 0;
  }

  .page-faq__section-title {
    font-size: 28px;
  }

  .page-faq__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-faq__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-faq__hero-content {
    padding: 0 15px;
  }

  .page-faq__main-title {
    font-size: 36px;
  }

  .page-faq__intro-text {
    font-size: 17px;
    margin-bottom: 25px;
  }

  .page-faq__btn-primary,
  .page-faq__hero-cta,
  .page-faq__final-cta {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

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

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

  /* Ensure no overflow from containers */
  .page-faq__section,
  .page-faq__hero-section,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-faq__hero-image-wrapper {
    margin-bottom: 20px;
  }
}