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

.page-resources__hero-section {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    padding-top: var(--header-offset, 120px);
}

.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;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

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

.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

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

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

.page-resources__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-resources__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

.page-resources__content-section {
    padding: 60px 20px;
}

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

.page-resources__sub-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-resources__text-block p,
.page-resources__text-block li {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #333333;
}

.page-resources__dark-section .page-resources__text-block p,
.page-resources__dark-section .page-resources__text-block li {
    color: #ffffff;
}

.page-resources__dark-section .page-resources__section-title,
.page-resources__dark-section .page-resources__sub-title {
    color: #ffffff;
}

.page-resources__grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.page-resources__image-wrapper {
    text-align: center;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.page-resources__numbered-list,
.page-resources__bullet-list {
    list-style-position: inside;
    margin-bottom: 20px;
    padding-left: 0;
}

.page-resources__numbered-list li,
.page-resources__bullet-list li {
    margin-bottom: 10px;
    color: #333333;
}

.page-resources__dark-section .page-resources__numbered-list li,
.page-resources__dark-section .page-resources__bullet-list li {
    color: #ffffff;
}

.page-resources__btn-wide {
    width: fit-content;
    margin: 30px auto 0 auto;
    display: block;
}

.page-resources__faq-section {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 60px 20px;
}

.page-resources__faq-list {
    max-width: 800px;
    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: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.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;
    color: #ffffff;
}

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

.page-resources__faq-answer p {
    margin-bottom: 0;
    color: #ffffff;
}

.page-resources__cta-section {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.page-resources__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-resources__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-resources__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-resources__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-resources__grid-layout {
        grid-template-columns: 1fr 1fr;
    }

    .page-resources__grid-layout--reverse {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "image text";
    }

    .page-resources__grid-layout--reverse .page-resources__image-wrapper {
        grid-area: image;
    }

    .page-resources__grid-layout--reverse .page-resources__text-block {
        grid-area: text;
    }
}

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

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

    .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 {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources__content-section,
    .page-resources__faq-section,
    .page-resources__cta-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 {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-resources__image-wrapper,
    .page-resources__container {
        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 {
        padding: 15px 20px;
        font-size: 1em;
    }
    
    .page-resources__faq-answer {
        padding: 10px 20px;
    }

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

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

    .page-resources__btn-large {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}