/* style/resources.css */

/* Base styles for the page-resources scope */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-resources__hero-section.page-resources__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
}

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

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

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

/* 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: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-width: 150px; /* Ensure buttons are not too small */
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-resources__btn-primary:hover {
    background-color: #1e87b8; /* Slightly darker */
    border-color: #1e87b8;
}

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

.page-resources__btn-secondary:hover {
    background-color: #e0f2f7; /* Light background on hover */
    color: #1e87b8;
    border-color: #1e87b8;
}

/* General Section Styles */
.page-resources__section {
    padding: 60px 0;
    text-align: center;
}

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

.page-resources__section.page-resources__dark-bg {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-resources__section-title {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from section for contrast */
}

.page-resources__section-description,
.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    color: inherit;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

/* Video Section */
.page-resources__section-video {
    background-color: #f8f8f8;
    color: #333333;
}

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.page-resources__video-link {
    display: block; /* Make the whole area clickable */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Ensure video takes full space */
}

/* List Styles */
.page-resources__list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 30px auto;
    text-align: left;
}

.page-resources__list-item {
    background-color: #f9f9f9;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 5px solid #26A9E0;
    border-radius: 4px;
    font-size: 1.05em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-resources__list-item strong {
    color: #26A9E0;
}

/* FAQ Section */
.page-resources__faq-list {
    max-width: 900px;
    margin: 30px auto;
    text-align: left;
}

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

.page-resources__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    outline: none;
    list-style: none; /* Remove default marker for details */
    transition: background-color 0.3s ease;
}

.page-resources__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

.page-resources__faq-item summary:hover {
    background-color: #eef7fc;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
    margin-left: 15px;
}

.page-resources__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #555555;
    line-height: 1.6;
}

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

/* CTA Section at the end */
.page-resources__cta-section {
    background-color: #26A9E0;
    color: #FFFFFF;
    padding: 80px 0;
}

.page-resources__cta-section .page-resources__section-title {
    color: #FFFFFF;
}

.page-resources__cta-section .page-resources__text-block {
    color: #FFFFFF;
}


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

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__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-resources__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-description,
    .page-resources__text-block,
    .page-resources__list-item,
    .page-resources__faq-item summary,
    .page-resources__faq-answer {
        font-size: 0.95em;
    }

    .page-resources__container {
        padding: 0 15px; /* Add padding to prevent content touching edges */
    }

    /* Images responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure minimum size */
        min-height: 200px !important; /* Ensure minimum size */
    }
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper,
    .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;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    /* Video responsiveness */
    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__video-wrapper {
        padding-left: 0 !important; /* Remove container padding if applied to wrapper */
        padding-right: 0 !important;
    }
}