/* style/faq.css */

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

.page-faq__hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-faq__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.page-faq__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

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

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

.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__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #FFFFFF; /* Explicitly set for contrast */
  color: #333333;
}

.page-faq__container {
  max-width: 1000px;
  margin: 0 auto;
}

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

.page-faq__text-block {
  margin-bottom: 40px;
  font-size: 1.1em;
  color: #333333;
}

.page-faq__text-block p {
  margin-bottom: 15px;
}

.page-faq__text-block a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-faq__text-block a:hover {
  color: #1a7aa2;
}

.page-faq__faq-list {
  margin-bottom: 40px;
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #FFFFFF;
  color: #333333;
  font-weight: bold;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-question h3 {
  margin: 0;
  font-size: 1.1em;
  color: #26A9E0;
}

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

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

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

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

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

@media (max-width: 768px) {
  .page-faq__hero-section {
    height: 450px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below header */
  }
  .page-faq__hero-title {
    font-size: 2em;
  }
  .page-faq__hero-description {
    font-size: 0.9em;
  }
  .page-faq__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100%;
    padding: 12px 15px;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-faq__content-area {
    padding: 40px 15px;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .page-faq__text-block {
    font-size: 1em;
  }
  .page-faq__faq-question {
    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;
  }
  
  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-section {
    height: 350px;
  }
  .page-faq__hero-title {
    font-size: 1.5em;
  }
  .page-faq__hero-description {
    font-size: 0.85em;
  }
  .page-faq__section-title {
    font-size: 1.5em;
  }
}