/* style/resources.css */

/* --- Base Styles --- */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text color for white background */
    background-color: #FFFFFF; /* Explicitly set body background to white */
    padding-top: var(--header-offset, 120px); /* Account for fixed header */
}

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

.page-resources__section-title {
    font-size: 32px;
    color: #26A9E0; /* Brand color for main titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.page-resources__text-block p {
    margin-bottom: 15px;
    font-size: 16px;
}

/* --- Hero Section --- */
.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #26A9E0, #36b9f0); /* Gradient with brand color */
    color: #FFFFFF; /* White text for dark background */
}

.page-resources__hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-resources__intro-text {
    font-size: 18px;
    margin-bottom: 30px;
    color: #F0F0F0; /* Slightly off-white for better contrast on gradient */
}

.page-resources__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* --- Buttons --- */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    text-align: center;
}

.page-resources__btn-primary,
.page-resources__cta-button {
    background-color: #26A9E0; /* Primary brand color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-resources__btn-primary:hover,
.page-resources__cta-button:hover {
    background-color: #1a7fb3; /* Darker shade of primary */
    border-color: #1a7fb3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-resources__btn-secondary:hover {
    background-color: #e0f2f7; /* Lighter shade of primary */
    color: #1a7fb3;
    border-color: #1a7fb3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Specific login button color */
.page-resources__btn-login { /* If a login button were present */
    background-color: #EA7C07;
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}
.page-resources__btn-login:hover {
    background-color: #c96706;
    border-color: #c96706;
}

/* --- Content Sections --- */
.page-resources__content-section {
    padding: 60px 0;
}

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

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

.page-resources__dark-section .page-resources__section-title,
.page-resources__dark-section .page-resources__sub-title {
    color: #FFFFFF; /* White text for titles on dark background */
}

.page-resources__image-wrapper {
    margin-bottom: 30px;
    text-align: center;
}

.page-resources__image-wrapper img {
    width: 100%;
    height: auto;
    max-width: 800px; /* Example max-width for content images */
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    object-fit: cover;
    /* Ensure image colors are not altered */
    filter: none; /* Explicitly prevent any filter */
}

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

.page-resources a:hover {
    color: #1a7fb3;
    text-decoration: underline;
}

/* --- FAQ Section --- */
.page-resources__faq-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

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

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-resources__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-resources__faq-question:active {
    background: #eeeeee;
}

.page-resources__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: #333333;
}

.page-resources__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: #333;
    transform: rotate(0deg); /* Reset rotation for '-' */
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    color: #555555;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important; /* Ensure it expands sufficiently */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f0f0f0;
    border-radius: 0 0 5px 5px;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

/* --- Call to Action Section --- */
.page-resources__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #26A9E0; /* Primary brand color */
    color: #FFFFFF;
}

.page-resources__cta-container {
    max-width: 800px;
}

.page-resources__cta-container .page-resources__section-title {
    color: #FFFFFF;
    margin-bottom: 20px;
}

.page-resources__cta-container .page-resources__text-block {
    font-size: 18px;
    margin-bottom: 30px;
    color: #F0F0F0;
}

.page-resources__cta-button {
    margin-top: 20px;
    padding: 18px 40px;
    font-size: 20px;
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top is correct */
    }

    .page-resources__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }

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

    .page-resources__sub-title {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    /* Hero Section */
    .page-resources__hero-section {
        padding: 60px 15px;
    }

    .page-resources__main-title {
        font-size: 36px;
    }

    .page-resources__intro-text {
        font-size: 16px;
    }

    .page-resources__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    /* Buttons responsive */
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources__cta-button {
        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;
        font-size: 16px;
    }

    /* Images responsive */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__image-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* FAQ Section */
    .page-resources__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-resources__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-resources__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-resources__faq-answer {
        padding: 0 15px;
    }
    
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px !important;
    }

    /* CTA Section */
    .page-resources__cta-section {
        padding: 60px 15px;
    }
    .page-resources__cta-container .page-resources__text-block {
        font-size: 16px;
    }
    .page-resources__cta-button {
        padding: 15px 30px;
        font-size: 18px;
    }
}