/* 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: #0a0a0a; /* Assuming body background from shared.css */
}

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

.page-faq__hero-section {
  position: relative;
  text-align: center;
  padding: 80px 0;
  background-color: #26A9E0; /* Main brand color for hero */
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
}

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

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

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

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

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

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

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

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

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

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

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

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

.page-faq__light-bg .page-faq__faq-question {
  color: #333333;
  background-color: #eaf6fc; /* Light blue */
}

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

.page-faq__light-bg .page-faq__faq-question:hover {
  background-color: #d8edf8; /* Slightly darker light blue */
}

.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 25px;
  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 value */
  padding: 15px 25px 20px;
}

.page-faq__faq-answer p {
  margin-bottom: 10px;
}

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  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: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-faq__btn-primary--center {
  display: block;
  margin: 40px auto 0;
  max-width: 250px;
}

.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__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-faq__video-section {
  padding: 60px 0;
  background-color: #0a0a0a;
  color: #ffffff;
  text-align: center;
}

.page-faq__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-faq__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Ensure it's block for max-width */
  cursor: pointer;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 2.5em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__faq-question {
    font-size: 1.1em;
  }
  .page-faq__video-wrapper {
    margin: 30px auto;
  }
}

@media (max-width: 768px) {
  .page-faq__container {
    padding: 0 15px;
  }
  .page-faq__hero-section {
    padding: 60px 0;
  }
  .page-faq__hero-title {
    font-size: 2em;
  }
  .page-faq__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-faq__section {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-faq__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-faq__faq-answer {
    padding: 0 20px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 10px 20px 15px;
  }
  .page-faq__image-content {
    margin-top: 30px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 10px; /* Space between stacked buttons */
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__button-group {
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
  }
  .page-faq__btn-primary--center {
    max-width: 100%;
  }
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-faq__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

@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: 0.95em;
    padding: 12px 15px;
  }
  .page-faq__faq-answer {
    font-size: 0.9em;
    padding: 0 15px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 8px 15px 12px;
  }
}