/* style/resources.css */

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

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure space for 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.5); /* Dark overlay for text readability */
    z-index: 2;
}

.page-resources__hero-content {
    position: relative;
    z-index: 3;
    color: #FFFFFF;
    max-width: 800px;
}

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

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

/* General Section Styles */
.page-resources__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
}

.page-resources__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #555555;
}

.page-resources__section-subtitle {
    font-size: 2em;
    color: #26A9E0;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #26A9E0;
    padding-bottom: 10px;
}

.page-resources__section-sub-sub-title {
    font-size: 1.5em;
    color: #333333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-resources__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-resources__list li {
    margin-bottom: 10px;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box; /* Ensure padding doesn't cause overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

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

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

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

.page-resources__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a7fb3;
    border-color: #1a7fb3;
}

/* Video Section */
.page-resources__video-section {
    background-color: #26A9E0; /* Brand color background */
    color: #FFFFFF;
    padding: 80px 20px;
    text-align: center;
}

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

.page-resources__video-section .page-resources__section-description {
    color: #f0f0f0;
}

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-resources__video-cta {
    margin-top: 30px;
}

/* Content Area */
.page-resources__content-area {
    padding: 60px 20px;
    background-color: #FFFFFF;
}

/* Category Grid */
.page-resources__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 60px;
}

.page-resources__category-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards are same height */
}

.page-resources__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-resources__category-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-resources__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin: 20px 15px 10px;
}

.page-resources__card-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
    color: #1a7fb3;
}

.page-resources__card-text {
    font-size: 1em;
    color: #555555;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1; /* Push link to bottom */
}

.page-resources__card-link {
    display: inline-block;
    padding: 10px 20px;
    margin-bottom: 20px;
    background-color: #26A9E0;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.page-resources__card-link:hover {
    background-color: #1a7fb3;
}

/* Detailed Sections */
.page-resources__detailed-section {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

/* FAQ Section */
.page-resources__faq-section {
    background-color: #26A9E0;
    color: #FFFFFF;
    padding: 80px 20px;
}

.page-resources__faq-section .page-resources__section-title {
    color: #FFFFFF;
    margin-bottom: 40px;
}

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

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    color: #FFFFFF;
    transition: background-color 0.3s ease;
    user-select: none; /* Prevent text selection on click */
}

.page-resources__faq-item[open] .page-resources__faq-question {
    background-color: rgba(255, 255, 255, 0.15);
}

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

.page-resources__faq-qtext {
    flex-grow: 1;
}

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

.page-resources__faq-item[open] .page-resources__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

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

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

.page-resources__faq-answer a {
    color: #FFFFFF;
    text-decoration: underline;
}

/* CTA Section */
.page-resources__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #FFFFFF;
    border-top: 1px solid #e0e0e0;
}

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

/* --- Responsive Styles --- */

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

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

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

    .page-resources__section-description {
        font-size: 1em;
        margin-bottom: 40px;
    }

    .page-resources__category-grid {
        gap: 20px;
    }
}

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

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

    .page-resources__hero-content {
        padding: 0 15px;
    }

    .page-resources__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-resources__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

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

    .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__section-title {
        font-size: 1.8em;
    }

    .page-resources__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-resources__section-subtitle {
        font-size: 1.5em;
    }

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

    .page-resources__video-section {
        padding: 60px 15px;
    }

    .page-resources__video-wrapper {
        margin: 30px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 0;
        padding-right: 0;
    }

    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources__category-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

    .page-resources__category-card {
        margin: 0 15px;
    }

    .page-resources__category-image {
        height: 200px; /* Adjust height for mobile */
    }

    .page-resources__content-area,
    .page-resources__faq-section,
    .page-resources__cta-section {
        padding: 40px 15px;
    }

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

    .page-resources__faq-toggle {
        font-size: 1.2em;
    }

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

    /* General image responsiveness */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources__section,
    .page-resources__card,
    .page-resources__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}