/* style/resources.css */

/* Base styles for the page content area */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--dark-bg-1, #1a1a1a); /* Assuming --dark-bg-1 is dark */
}

/* Section styling */
.page-resources__section {
    padding: 60px 20px;
    text-align: center;
}

.page-resources__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
}

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

.page-resources__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-resources__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
    color: #ffffff;
    text-align: center;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #017439; /* Brand color for titles */
    text-align: center;
}

.page-resources__dark-section .page-resources__section-title {
    color: #ffffff;
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333; /* Default dark text for light backgrounds */
}

.page-resources__dark-section .page-resources__text-block,
.page-resources__dark-section .page-resources__card-text,
.page-resources__dark-section .page-resources__card-title a {
    color: #f0f0f0; /* Light text for dark backgrounds */
}

.page-resources__dark-section {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff;
}

.page-resources__light-bg {
    background-color: #ffffff; /* Auxiliary color for light sections */
    color: #333333;
}

/* Two column layout */
.page-resources__two-column-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-resources__two-column-layout--reverse {
    flex-direction: row-reverse;
}

.page-resources__content-block,
.page-resources__image-block {
    flex: 1;
}

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

.page-resources__image-block--full-width {
    margin-top: 40px;
    text-align: center;
}

/* Card grid */
.page-resources__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark section */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease;
}

.page-resources__light-bg .page-resources__card {
    background-color: #f9f9f9; /* Lighter background for light section cards */
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-resources__card:hover {
    transform: translateY(-5px);
}

.page-resources__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ffffff; /* Light color for dark section card titles */
}

.page-resources__light-bg .page-resources__card-title {
    color: #017439; /* Brand color for light section card titles */
}

.page-resources__card-title a {
    color: inherit;
    text-decoration: none;
}

.page-resources__card-title a:hover {
    text-decoration: underline;
}

.page-resources__card-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-resources__light-bg .page-resources__card-text {
    color: #555555;
}

/* Video section */
.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    cursor: pointer; /* Indicate clickability */
}

/* FAQ section */
.page-resources__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark section */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-resources__light-bg .page-resources__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
}

.page-resources__faq-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__light-bg .page-resources__faq-item:hover {
    background-color: #f0f0f0;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
}

.page-resources__light-bg .page-resources__faq-question {
    color: #017439;
}

.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); /* Change + to X or - */
}

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

.page-resources__light-bg .page-resources__faq-answer {
    color: #555555;
}

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

.page-resources__faq-answer p {
    margin-bottom: 0;
}

/* CTA Section */
.page-resources__cta-section {
    padding: 80px 20px;
    background-color: #ffffff;
    text-align: center;
}

.page-resources__cta-content {
    max-width: 800px;
}

.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-tertiary,
.page-resources__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* For mobile responsiveness */
}

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

.page-resources__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
    color: #fff;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

.page-resources__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

.page-resources__btn-tertiary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
    margin-top: 20px;
}

.page-resources__btn-tertiary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-resources__btn-link {
    background: none;
    border: none;
    color: #017439;
    text-decoration: underline;
    padding: 0;
    font-size: 1em;
}

.page-resources__btn-link:hover {
    color: #005a2e;
}

/* General link styling within content */
.page-resources a {
    color: #017439;
    text-decoration: underline;
}

.page-resources__dark-section a,
.page-resources__faq-answer a {
    color: #90ee90; /* Lighter green for links on dark background */
}

.page-resources a:hover {
    text-decoration: none;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__two-column-layout {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__two-column-layout--reverse {
        flex-direction: column; /* Revert to default column on smaller screens */
    }
    .page-resources__content-block,
    .page-resources__image-block {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__section {
        padding: 40px 15px;
    }
    .page-resources__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not covered by fixed header */
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__text-block {
        font-size: 1em;
    }

    /* Images responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__image-block,
    .page-resources__image-block--full-width {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 0 15px; /* Add padding to prevent edge-to-edge content */
    }
    .page-resources__image-block img,
    .page-resources__image-block--full-width img {
        margin: 0 auto; /* Center images if smaller than 100% width */
    }

    /* Video responsiveness */
    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__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__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    }
    /* Ensure video section itself has top padding if it's the first element */
    .page-resources__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Button responsiveness */
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources__btn-tertiary,
    .page-resources__btn-link {
        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-resources__hero-cta-buttons,
    .page-resources__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-resources__card-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__card {
        padding: 20px;
    }
    .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: 10px 20px 15px;
    }

    /* Container padding for mobile */
    .page-resources__container {
        padding: 0 15px;
    }
}