/* style/resources.css */

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

/* Fixed header offset */
.page-resources__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    padding: 60px 20px;
    background-color: #26A9E0; /* Brand primary color for dark background */
    color: #ffffff; /* White text for dark background */
    overflow: hidden;
}

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-bottom: 30px;
}

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

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

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15; /* Subtle overlay */
    filter: none; /* No color filter */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* General Section Styles */
.page-resources__content-section {
    padding: 60px 0;
}

.page-resources__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-resources__dark-section {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-resources__section-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 40px;
    color: #26A9E0;
}

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

.page-resources__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-resources__paragraph--white {
    color: #f0f0f0;
}

.page-resources__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    filter: none; /* No color filter */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-resources__image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.page-resources__grid-image {
    width: 100%;
    height: 250px; /* Fixed height for grid images */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    filter: none; /* No color filter */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Call to Action Buttons */
.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    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;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

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

.page-resources__btn-secondary {
    background-color: transparent;
    color: #ffffff; /* White text for dark background */
    border: 2px solid #ffffff;
}
.page-resources__dark-section .page-resources__btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
}
.page-resources__light-bg .page-resources__btn-secondary {
    color: #26A9E0;
    border-color: #26A9E0;
}


.page-resources__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
.page-resources__light-bg .page-resources__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* FAQ Section */
.page-resources__faq-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

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

.page-resources__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #f0faff; /* Light blue background for questions */
    transition: background-color 0.3s ease;
}

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

.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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

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

.page-resources__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
    line-height: 1.6;
    text-align: justify;
}

/* CTA Section at the bottom */
.page-resources__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

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

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

@media (max-width: 768px) {
    /* Mobile fixed header offset in case shared doesn't provide it for body */
    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }

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

    /* Images responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__image-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__grid-image {
        height: auto; /* Allow height to adjust */
    }

    /* Video responsiveness (if any video is added later) */
    .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;
    }

    /* Button responsiveness */
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources a[class*="button"],
    .page-resources a[class*="btn"] {
        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__cta-buttons,
    .page-resources__button-group,
    .page-resources__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;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
    }

    /* General container padding for mobile to prevent overflow */
    .page-resources__container,
    .page-resources__content-section {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-resources__faq-item {
        margin: 0 15px 15px 15px; /* Adjust margin for mobile */
    }
    .page-resources__faq-answer {
        padding: 0 15px; /* Adjust padding for mobile */
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 15px 20px; /* Adjust padding for mobile */
    }
    .page-resources__faq-question {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.6em;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
}