.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body bg */
    background-color: var(--dark-bg-1, #0d0d0d); /* Assuming shared provides a dark 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;
    padding-top: var(--header-offset, 120px);
    padding-bottom: 80px;
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.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__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    color: #ffffff;
}

/* Section Titles & Descriptions */
.page-faq__section-title {
    font-size: 2.8em;
    color: #017439; /* Brand color for titles on light background */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-faq__section-description {
    font-size: 1.1em;
    color: #333333; /* Dark text for light backgrounds */
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* CTA Buttons */
.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq a[class*="button"],
.page-faq a[class*="btn"] {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    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;
    max-width: 100%;
}

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

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

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

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

/* Video Section */
.page-faq__video-section {
    padding: 80px 20px;
    background-color: #FFFFFF;
    color: #333333;
}

.page-faq__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    margin: 0 auto;
}

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

/* FAQ Section */
.page-faq__faq-section {
    padding: 80px 20px;
    background-color: #f8f8f8;
    color: #333333;
}

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

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

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #017439; /* Brand color for question */
    color: #ffffff;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}

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

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

.page-faq__faq-qtext {
    font-size: 1.2em;
    margin: 0;
    flex-grow: 1;
    color: #ffffff;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1;
    margin-left: 15px;
    color: #ffffff;
}

.page-faq__faq-item[open] > .page-faq__faq-question .page-faq__faq-toggle {
    content: "−";
}

.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1.1em;
    color: #333333;
    background-color: #ffffff;
    border-top: 1px solid #eee;
}

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

.page-faq__faq-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    display: block;
}

/* Final CTA Section */
.page-faq__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #017439;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

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

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

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 60px;
    }
    .page-faq__hero-title {
        font-size: 2em;
    }
    .page-faq__hero-description {
        font-size: 1em;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq a[class*="button"],
    .page-faq a[class*="btn"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Images responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-faq__container,
    .page-faq__video-section,
    .page-faq__faq-section,
    .page-faq__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }

    /* Video responsiveness */
    .page-faq__video-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-faq__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__faq-qtext {
        font-size: 1em;
    }
    .page-faq__faq-answer {
        font-size: 0.95em;
    }
}

/* Color Contrast Enforcement */
.page-faq__dark-section {
  background-color: #017439;
  color: #ffffff;
}
.page-faq__dark-section .page-faq__section-title,
.page-faq__dark-section .page-faq__section-description,
.page-faq__dark-section p,
.page-faq__dark-section h1,
.page-faq__dark-section h2,
.page-faq__dark-section h3,
.page-faq__dark-section a {
  color: #ffffff; /* Ensure white text on dark sections */
}

.page-faq__light-bg {
  background-color: #ffffff;
  color: #333333;
}
.page-faq__light-bg .page-faq__section-title {
  color: #017439; /* Brand color on light background */
}
.page-faq__light-bg p,
.page-faq__light-bg h2,
.page-faq__light-bg h3,
.page-faq__light-bg a {
  color: #333333; /* Dark text on light backgrounds */
}

/* Specific overrides for FAQ items to ensure contrast */
.page-faq__faq-item {
    background-color: #ffffff; /* Explicitly white for answer background */
    color: #333333; /* Dark text for answer */
}
.page-faq__faq-question {
    background-color: #017439; /* Brand green for question background */
    color: #ffffff; /* White text for question */
}
.page-faq__faq-qtext, .page-faq__faq-toggle {
    color: #ffffff; /* Ensure toggle and text are white */
}
.page-faq__faq-answer p {
    color: #333333; /* Ensure paragraph text in answer is dark */
}