/* style/faq.css */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is #0a0a0a (dark), so text should be light */
    background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    min-height: 600px;
    text-align: center;
}

.page-faq__hero-content {
    max-width: 800px;
    z-index: 1;
}

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

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

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

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* General Section Styling */
.page-faq__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.page-faq__section-title--center {
  text-align: center;
}

.page-faq__dark-section {
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast */
  padding: 60px 0;
  color: #ffffff;
}

.page-faq__light-bg {
  background-color: #f8f8f8;
  color: #333333;
  padding: 60px 0;
}

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

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

.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: #017439;
    transition: background-color 0.3s ease;
}

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

.page-faq__question-title {
    margin: 0;
    flex-grow: 1;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    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;
    background-color: rgba(255, 255, 255, 0.05);
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 20px 25px;
}

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

/* Call to Action Banner */
.page-faq__cta-banner {
    display: flex;
    align-items: center;
    background-color: #017439;
    border-radius: 10px;
    margin-top: 60px;
    padding: 40px;
    gap: 30px;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.page-faq__cta-image {
    flex-shrink: 0;
    width: 400px;
    height: 225px; /* Maintain aspect ratio */
    object-fit: cover;
    border-radius: 8px;
}

.page-faq__cta-text-content {
    flex-grow: 1;
    text-align: left;
}

.page-faq__cta-title {
    font-size: 2.2em;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-faq__cta-description {
    font-size: 1.1em;
    margin-bottom: 25px;
    opacity: 0.9;
}

.page-faq__btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* Video Section */
.page-faq__video-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Darker background for video */
  color: #ffffff;
}

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

.page-faq__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-faq__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.page-faq__video-caption {
  text-align: center;
  margin-top: 20px;
  font-size: 0.95em;
  opacity: 0.8;
}

/* Contact CTA */
.page-faq__contact-cta {
    text-align: center;
    padding: 80px 0;
}

.page-faq__contact-cta .page-faq__section-title {
    color: #333333;
    text-shadow: none;
}

.page-faq__contact-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #555555;
}

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

/* Buttons */
.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;
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

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

.page-faq__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: #ffffff;
}

.page-faq__contact-cta .page-faq__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border-color: #017439;
}

.page-faq__contact-cta .page-faq__btn-primary:hover {
  background-color: #005f2f;
  border-color: #005f2f;
}

.page-faq__contact-cta .page-faq__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border-color: #017439;
}

.page-faq__contact-cta .page-faq__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2f;
  border-color: #005f2f;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 2.8em;
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    .page-faq__cta-image {
        width: 100%;
        height: auto;
        max-width: 500px;
    }
    .page-faq__cta-text-content {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header spacing */
        min-height: 450px;
    }
    .page-faq__main-title {
        font-size: 2.2em;
    }
    .page-faq__hero-description {
        font-size: 1em;
    }
    .page-faq__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100%;
        max-width: 300px; /* Limit button width on small screens */
        margin: 0 auto;
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-faq__faq-answer {
        padding: 15px 20px;
    }
    .page-faq__cta-banner {
        padding: 20px;
    }
    .page-faq__cta-title {
        font-size: 1.8em;
    }
    .page-faq__cta-description {
        font-size: 1em;
    }
    .page-faq__contact-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__contact-description {
        font-size: 1em;
    }

    /* Mobile image responsive adaptation (MUST include !important) */
    .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,
    .page-faq__hero-section,
    .page-faq__cta-banner,
    .page-faq__video-section,
    .page-faq__video-container,
    .page-faq__video-wrapper,
    .page-faq__contact-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }

    /* Mobile video responsive adaptation (MUST include !important) */
    .page-faq video,
    .page-faq__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile button responsive adaptation (MUST include !important) */
    .page-faq__cta-button,
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq a[class*="button"],
    .page-faq a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-faq__cta-buttons,
    .page-faq__button-group,
    .page-faq__btn-container,
    .page-faq__contact-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    .page-faq__cta-buttons {
      flex-direction: column !important;
    }
}