/* style/resources.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --login-button-color: #EA7C07;
    --background-color: #FFFFFF;
    --black-color: #000000;
}

.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Assuming body background is dark from shared.css */
    background-color: transparent; /* Body background from shared */
}

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

.page-resources__section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-resources__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources__hero-section {
    position: relative;
    padding: 100px 0;
    padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(135deg, #26A9E0, #1a7bbd);
}

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
    padding: 20px;
    color: var(--text-light);
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

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

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    color: inherit;
}

.page-resources__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.page-resources__dark-section .page-resources__section-title::after {
    background-color: var(--secondary-color);
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

.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: var(--secondary-color);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__dark-section .page-resources__card {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    box-shadow: none;
}

.page-resources__dark-section .page-resources__card-title {
    color: var(--text-light);
}

.page-resources__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-resources__card-description {
    font-size: 1em;
    color: inherit;
}

.page-resources__sub-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: inherit;
}

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

.page-resources__list li {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    margin-bottom: 10px;
    padding: 15px 20px;
    border-left: 5px solid var(--primary-color);
    border-radius: 5px;
    font-size: 1.1em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-resources__dark-section .page-resources__list li {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-left-color: var(--secondary-color);
}

.page-resources__list-item-title {
    font-size: 1.2em;
    margin: 0 0 5px 0;
    color: var(--primary-color);
}

.page-resources__dark-section .page-resources__list-item-title {
    color: var(--secondary-color);
}

.page-resources__content-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    margin: 30px auto;
    display: block;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-resources__cta-section {
    margin-top: 40px;
    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: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-resources__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

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

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

.page-resources__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.page-resources__dark-section .page-resources__btn-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

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

.page-resources__faq-list {
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.page-resources__faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

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

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

.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, padding 0.3s ease;
    color: var(--text-dark);
}

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

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

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

    .page-resources__container {
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

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

    .page-resources__section {
        padding: 40px 0;
    }

    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-resources__text-block {
        font-size: 0.95em;
    }

    .page-resources__card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__card {
        padding: 20px;
    }

    .page-resources__card-title {
        font-size: 1.3em;
    }

    .page-resources__sub-title {
        font-size: 1.5em;
    }

    .page-resources__list li {
        font-size: 1em;
        padding: 12px 15px;
    }

    .page-resources__list-item-title {
        font-size: 1.1em;
    }

    .page-resources__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* Ensure all images and video are responsive */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__hero-section,
    .page-resources__cta-section,
    .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__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;
    }
}

/* Contrast Fixes based on body background (var(--black-color) -> dark) */
.page-resources h1, .page-resources h2, .page-resources h3, .page-resources h4, .page-resources p, .page-resources li, .page-resources__card-description {
    color: inherit; /* Let section/card define, ensure contrast */
}

.page-resources__section {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-resources__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources__faq-item {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-resources__faq-question {
    background-color: #f9f9f9;
    color: var(--text-dark);
}

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

.page-resources__faq-answer {
    color: var(--text-dark);
}