/* style/resources.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-color: #C30808;
    --login-color: #C30808;
    --font-color-light-bg: #333333;
    --font-color-dark-bg: #ffffff;
    --register-login-font-color: #FFFF00;
}

.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--font-color-light-bg); /* Default text color for light sections */
}

.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-resources__hero-section {
    position: relative;
    width: 100%;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--primary-color);
    color: var(--font-color-dark-bg);
}

.page-resources__hero-section .page-resources__container {
    position: relative;
    z-index: 10;
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--font-color-dark-bg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary {
    background-color: var(--register-color); /* Using custom color for primary action */
    color: var(--register-login-font-color); /* Using custom font color for primary action */
    border: 2px solid var(--register-color);
}

.page-resources__btn-primary:hover {
    background-color: darken(var(--register-color), 10%);
    border-color: darken(var(--register-color), 10%);
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: var(--font-color-dark-bg);
    border: 2px solid var(--font-color-dark-bg);
}

.page-resources__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

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

.page-resources__hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.4);
}

.page-resources__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: pointer;
}

.page-resources__content-section,
.page-resources__strategy-section,
.page-resources__faq-section {
    background-color: var(--secondary-color);
    color: var(--font-color-light-bg);
    padding: 60px 0;
}

.page-resources__guide-section,
.page-resources__safety-section,
.page-resources__cta-section {
    background-color: var(--primary-color);
    color: var(--font-color-dark-bg);
    padding: 60px 0;
}

.page-resources__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit;
}

.page-resources__text-block {
    max-width: 900px;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
    line-height: 1.8;
}

.page-resources__text-block p {
    margin-bottom: 20px;
}

.page-resources__image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__numbered-list,
.page-resources__bullet-list {
    list-style-position: inside;
    max-width: 900px;
    margin: 0 auto 30px auto;
    padding-left: 20px;
}

.page-resources__numbered-list li,
.page-resources__bullet-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
    line-height: 1.7;
}

.page-resources__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-resources__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #f0f0f0;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2em;
    color: var(--font-color-light-bg);
    transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
    background-color: #e5e5e5;
}

.page-resources__faq-title {
    margin: 0;
    font-size: 1em;
    color: inherit;
}

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

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg);
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

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

.page-resources__cta-content {
    text-align: center;
}

.page-resources__cta-content .page-resources__section-title {
    color: var(--font-color-dark-bg);
}

.page-resources__cta-content .page-resources__text-block {
    color: var(--font-color-dark-bg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
}

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

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

    .page-resources__hero-title {
        font-size: 2.2em;
    }

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

    .page-resources__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources__container,
    .page-resources__text-block,
    .page-resources__numbered-list,
    .page-resources__bullet-list,
    .page-resources__faq-list {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-resources__image {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-resources__hero-video,
    .page-resources__hero-video-wrapper video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        position: static;
        transform: none;
        min-height: auto;
    }

    .page-resources__hero-video-wrapper {
        position: relative;
        height: auto;
        padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
        overflow: hidden;
    }

    .page-resources__hero-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .page-resources__hero-video-wrapper .page-resources__video-overlay-link {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 5;
    }

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

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

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

    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 0.95em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
}