/* style/resources-faq.css */

/* Base Styles */
.page-resources-faq {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    background-color: #FFFFFF; /* Ensure consistency with body background */
}

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

.page-resources-faq__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

/* Hero Section */
.page-resources-faq__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #017439; /* Brand color background */
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.page-resources-faq__hero-content {
    max-width: 900px;
    z-index: 1;
    position: relative;
}

.page-resources-faq__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
}

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

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

.page-resources-faq__btn-primary,
.page-resources-faq__btn-secondary {
    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;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

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

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

.page-resources-faq__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

.page-resources-faq__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
}

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

.page-resources-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: brightness(0.8); /* Allow subtle brightness filter for background image */
}

/* Content Area */
.page-resources-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-resources-faq__section-title {
    font-size: 2.2em;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

/* FAQ List */
.page-resources-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-resources-faq__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.page-resources-faq__faq-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.page-resources-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #f8f8f8;
    cursor: pointer;
    font-weight: bold;
    color: #333333;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-resources-faq__faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: #333333;
}

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

.page-resources-faq__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: #017439;
}

.page-resources-faq__faq-item.active .page-resources-faq__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an 'x' or 'minus' */
}

.page-resources-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #555555;
    background-color: #FFFFFF;
}

.page-resources-faq__faq-item.active .page-resources-faq__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to contain content */
    padding: 15px 25px;
}

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

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

.page-resources-faq__conclusion {
    text-align: center;
    margin-top: 60px;
    padding: 40px 20px;
    background-color: #f0fdf5; /* Light green background */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

.page-resources-faq__cta-buttons--conclusion {
    margin-top: 20px;
}

/* Floating Buttons */
.page-resources-faq__floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 100px; /* Adjust to be above footer placeholder */
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.page-resources-faq__floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 45px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9em;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.page-resources-faq__floating-btn:hover {
    transform: translateY(-3px);
}

.page-resources-faq__floating-btn--register {
    background-color: #C30808;
    color: #FFFF00;
}

.page-resources-faq__floating-btn--login {
    background-color: #017439;
    color: #FFFFFF;
}

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

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

@media (max-width: 768px) {
    .page-resources-faq {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources-faq__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }

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

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

    .page-resources-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources-faq__btn-primary,
    .page-resources-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-resources-faq__content-area {
        padding: 30px 15px;
    }

    .page-resources-faq__section-title {
        font-size: 1.6em;
        margin-bottom: 30px;
    }

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

    .page-resources-faq__faq-question h3 {
        font-size: 1em;
    }

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

    .page-resources-faq__faq-item.active .page-resources-faq__faq-answer {
        padding: 10px 20px;
    }

    .page-resources-faq__conclusion {
        margin-top: 40px;
        padding: 30px 15px;
    }

    .page-resources-faq__conclusion p {
        font-size: 1em;
    }

    .page-resources-faq__floating-buttons {
        right: 10px;
        bottom: 80px;
        flex-direction: row; /* Keep floating buttons side-by-side on mobile */
        width: auto;
        gap: 8px;
    }

    .page-resources-faq__floating-btn {
        width: 80px;
        height: 40px;
        font-size: 0.85em;
    }

    /* Image responsiveness for content area */
    .page-resources-faq img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources-faq__section,
    .page-resources-faq__card,
    .page-resources-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Video responsiveness for content area */
    .page-resources-faq video,
    .page-resources-faq__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

@media (max-width: 480px) {
    .page-resources-faq__main-title {
        font-size: 1.8em;
    }

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