/* 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;
    --dark-bg-1: var(--dark-bg-1); /* Placeholder for shared variable */
}

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

.page-resources__section {
    padding: 60px 20px;
    background-color: var(--background-color);
    color: var(--text-dark);
}

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

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

.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 600px;
    overflow: hidden;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
}

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: var(--text-light);
}

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

.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__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

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

.page-resources__btn-primary:hover {
    background-color: darken(var(--login-button-color), 10%);
    border-color: darken(var(--login-button-color), 10%);
}

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

.page-resources__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    border-color: var(--text-light);
}

.page-resources__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit;
}

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

.page-resources__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: inherit;
}

.page-resources__image-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-resources__image-text-grid--reverse {
    grid-template-areas: "text image";
}

.page-resources__image-text-grid--reverse .page-resources__grid-item:first-child {
    grid-area: image;
}

.page-resources__image-text-grid--reverse .page-resources__grid-item:last-child {
    grid-area: text;
}

.page-resources__grid-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

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

.page-resources__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

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

/* FAQ Section */
.page-resources__faq-section {
    padding: 60px 20px;
}

.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;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.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: var(--text-light);
    background-color: rgba(255, 255, 255, 0.05);
}

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

.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;
    font-size: 1.1em;
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.02);
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Ensure enough height for content */
    padding: 15px 25px;
}

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

/* Final CTA Section */
.page-resources__cta-final-section {
    text-align: center;
    background-color: var(--background-color);
    color: var(--text-dark);
}

.page-resources__cta-final-section .page-resources__btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-resources__cta-final-section .page-resources__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

.page-resources__cta-final-section .page-resources__btn-secondary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-resources__cta-final-section .page-resources__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* General image styling to prevent small icons */
.page-resources img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__sub-title {
        font-size: 1.5em;
    }
    .page-resources__paragraph,
    .page-resources__list-item,
    .page-resources__faq-question,
    .page-resources__faq-answer {
        font-size: 1em;
    }
}

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

    .page-resources__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }

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

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

    .page-resources__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

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

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

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

    .page-resources__image-text-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-resources__image-text-grid--reverse {
        grid-template-areas: unset;
    }

    .page-resources__image-text-grid--reverse .page-resources__grid-item:first-child,
    .page-resources__image-text-grid--reverse .page-resources__grid-item:last-child {
        grid-area: unset;
    }

    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-resources__grid-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

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

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

/* Fallback for darken() if Sass is not used, though it should be handled by a preprocessor */
.page-resources__btn-primary:hover {
    background-color: #c96d06; /* A slightly darker shade of #EA7C07 */
    border-color: #c96d06;
}
.page-resources__cta-final-section .page-resources__btn-primary:hover {
    background-color: #2087b3; /* A slightly darker shade of #26A9E0 */
    border-color: #2087b3;
}