.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Assuming body is dark, use light text */
    background-color: transparent; /* Use transparent to inherit shared body background */
}

/* Header offset for main content */
.page-faq__hero-section,
.page-faq__video-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset */
}

/* Hero Section */
.page-faq__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background-color: rgba(38, 169, 224, 0.1); /* Light transparent blue overlay */
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

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

.page-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    filter: brightness(0.5); /* Darken image to ensure text contrast */
}

.page-faq__hero-content {
    max-width: 900px;
    z-index: 1;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    border-radius: 10px;
}

.page-faq__hero-title {
    font-size: 2.8em;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-faq__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Video Section */
.page-faq__video-section {
    background-color: #000000; /* Dark background for video */
    padding: 80px 20px;
    text-align: center;
    color: #FFFFFF;
}

.page-faq__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 1280px;
    margin: 40px auto;
    background-color: #000000;
}

.page-faq__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block; /* Ensure it behaves like a block element */
}

.page-faq__video-cta {
    margin-top: 30px;
}

/* Content Area */
.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #0d0d0d; /* Darker background for content */
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-top: -40px; /* Overlap with hero for visual flow */
    position: relative;
    z-index: 2;
}

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

.page-faq__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.page-faq__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #26A9E0;
    border-radius: 2px;
}

.page-faq__section-description,
.page-faq__intro-text {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #f0f0f0;
}

/* FAQ List */
.page-faq__faq-list {
    margin-top: 40px;
}

.page-faq__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for items */
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid rgba(38, 169, 224, 0.3);
    overflow: hidden; /* For smooth max-height transition if not using <details> native */
    color: #ffffff;
}

.page-faq__faq-item[open] {
    background-color: rgba(38, 169, 224, 0.15); /* Highlight open FAQ item */
}

.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: #26A9E0; /* Question text in brand color */
    user-select: none;
    position: relative;
    list-style: none; /* Hide default marker for <summary> */
}

/* Hide default marker for <details> summary */
.page-faq__faq-question::-webkit-details-marker,
.page-faq__faq-question::marker {
    display: none;
}

.page-faq__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFFFFF;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or use '-' */
}

.page-faq__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #f0f0f0;
    max-height: 0; /* For JS fallback */
    overflow: hidden; /* For JS fallback */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* For JS fallback */
}

.page-faq__faq-item[open] .page-faq__faq-answer {
    max-height: 2000px; /* Sufficiently large for content, for JS fallback */
    padding-top: 10px;
    transition: max-height 0.5s ease-in, padding 0.5s ease-in; /* For JS fallback */
}

/* Native <details> handles max-height automatically, no need for JS-specific max-height for [open] */
.page-faq__faq-item:not([open]) .page-faq__faq-answer {
    padding-top: 0;
    padding-bottom: 0;
}


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

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

.page-faq__faq-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.page-faq__cta-section {
    background-color: #26A9E0; /* Brand color background */
    color: #FFFFFF;
    text-align: center;
    padding: 80px 20px;
    margin-top: 60px;
    border-radius: 10px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
}

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-faq__btn-primary {
    background-color: #EA7C07; /* Login/Register color */
    color: #FFFFFF;
    border-color: #EA7C07;
}

.page-faq__btn-primary:hover {
    background-color: #d16b06;
    border-color: #d16b06;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border-color: #26A9E0;
}

.page-faq__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

    .page-faq__section-title,
    .page-faq__cta-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 40px 15px;
    }

    .page-faq__hero-title {
        font-size: 1.8em;
    }

    .page-faq__hero-description {
        font-size: 1em;
    }

    .page-faq__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
    }

    .page-faq__video-section {
        padding: 60px 15px !important; /* Important for header offset in mobile */
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-faq__video-wrapper {
        margin: 30px auto;
    }

    .page-faq__content-area {
        padding: 40px 15px;
        margin-top: -30px;
    }

    .page-faq__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__section-title,
    .page-faq__cta-title {
        font-size: 1.8em;
    }

    .page-faq__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

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

    .page-faq__cta-section {
        padding: 60px 15px;
        margin-top: 40px;
    }

    /* Mobile image responsiveness */
    .page-faq img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure all image containers are responsive */
    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left/right already handled by container, if not, add here */
    }

    /* Mobile video responsiveness */
    .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;
    }
    
    /* Button container mobile adaptations */
    .page-faq__hero-cta-buttons,
    .page-faq__button-group,
    .page-faq__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }
}