/* style/faq.css */

/* Base styles for the page-faq scope */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Default background */
}

/* Intelligent contrast assurance: Dark background sections */
.page-faq__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff; /* White text for contrast */
}

/* Intelligent contrast assurance: Light background sections */
.page-faq__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* Container for consistent content width */
.page-faq__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #26A9E0; /* Primary brand color for hero */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Minimum height for visual impact */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-faq__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    z-index: 1;
}

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

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

.page-faq__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 0;
}

.page-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay */
    filter: none; /* No CSS filter to change color */
}

/* Section titles */
.page-faq__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #26A9E0; /* Primary brand color */
}

.page-faq__section-title--light {
    color: #ffffff; /* White text for dark backgrounds */
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

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

.page-faq__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87b8;
    border-color: #1e87b8;
}

/* Accordion Section */
.page-faq__accordion-section {
    padding: 60px 0;
}

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

.page-faq__faq-item {
    background-color: #ffffff;
    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: #f9f9f9;
    transition: background-color 0.3s ease;
    color: #333333; /* Ensure contrast */
}

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

.page-faq__faq-question-title {
    font-size: 1.1em;
    font-weight: bold;
    margin: 0;
    color: #26A9E0; /* Primary brand color for questions */
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    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 20px; /* Initial padding is 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #333333; /* Ensure contrast */
    background-color: #ffffff;
}

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

.page-faq__faq-answer p {
    margin: 0 0 10px 0;
    color: #333333; /* Ensure contrast */
}

.page-faq__faq-answer ul {
    margin: 10px 0 10px 20px;
    padding: 0;
    list-style-type: disc;
    color: #333333; /* Ensure contrast */
}

.page-faq__faq-answer li {
    margin-bottom: 5px;
    color: #333333; /* Ensure contrast */
}

.page-faq__faq-answer a {
    color: #26A9E0; /* Link color */
    text-decoration: none;
}

.page-faq__faq-answer a:hover {
    text-decoration: underline;
}

/* Video Section */
.page-faq__video-section {
    padding: 60px 0;
    text-align: center;
}

.page-faq__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px auto;
    background-color: #000; /* Black background for video */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    box-sizing: border-box; /* Ensure padding/border included in width */
}

.page-faq__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    filter: none; /* No CSS filter to change color */
}

/* Contact CTA Section */
.page-faq__contact-cta {
    padding: 60px 0;
}

.page-faq__contact-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-faq__contact-content {
    flex: 1;
    min-width: 300px;
}

.page-faq__contact-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-faq__contact-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    filter: none; /* No CSS filter to change color */
}

.page-faq__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #333333;
}

/* Responsive styles */
@media (max-width: 768px) {
    .page-faq__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }

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

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

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

    .page-faq__container {
        padding: 15px;
    }

    /* Images responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-faq__hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 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;
    }
    .page-faq__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Adjust video section padding */
    }


    /* Buttons responsiveness */
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__btn-primary--center {
        max-width: 100% !important;
        width: 100% !important;
    }

    .page-faq__contact-grid {
        flex-direction: column;
        gap: 20px;
    }

    .page-faq__contact-content,
    .page-faq__contact-image-wrapper {
        min-width: unset;
        width: 100%;
    }
    
    /* Ensure no horizontal scrollbar */
    .page-faq__accordion-section,
    .page-faq__contact-cta {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
        max-width: 100%;
        overflow-x: hidden;
    }
    .page-faq__faq-list {
        padding: 0;
    }
    .page-faq__faq-item {
        margin-left: 0;
        margin-right: 0;
    }
}