/* style/resources.css */

/* --- General Styles --- */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: var(--secondary-color); /* #FFFFFF */
}

.page-resources__section {
    padding: 60px 0;
    text-align: center;
}

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

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

.page-resources__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
}

.page-resources__dark-bg .page-resources__section-title {
    color: #ffffff;
}

.page-resources__light-bg {
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text */
}

/* --- Hero Section --- */
.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
    background: linear-gradient(135deg, #26A9E0, #87CEEB); /* Gradient from brand primary to lighter blue */
    color: #ffffff;
}

.page-resources__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-resources__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-resources__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

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

.page-resources__intro-description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07; /* Login color for CTA */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
}

.page-resources__cta-button:hover {
    background: #d46a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- Introduction Section --- */
.page-resources__introduction-section p {
    font-size: 17px;
    max-width: 900px;
    margin: 15px auto;
    color: #555555;
}

/* --- Guides Section --- */
.page-resources__guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

.page-resources__guide-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__guide-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-height: 200px; /* Ensure minimum image size */
}

.page-resources__guide-card .page-resources__card-title {
    font-size: 22px;
    font-weight: bold;
    margin: 20px 20px 10px;
    line-height: 1.3;
}

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

.page-resources__guide-card .page-resources__card-title a:hover {
    color: #1a7bb0;
}

.page-resources__guide-card p {
    font-size: 15px;
    color: #555555;
    margin: 0 20px 20px;
}

.page-resources__btn-primary {
    display: inline-block;
    padding: 10px 25px;
    background: #26A9E0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    margin: 0 20px 20px;
    transition: background-color 0.3s ease;
    border: none;
}

.page-resources__btn-primary:hover {
    background: #1a7bb0;
}

/* --- News Section --- */
.page-resources__news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 20px;
}

.page-resources__news-item {
    display: flex;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-resources__news-item img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    min-width: 200px; /* Ensure minimum image size */
    min-height: 200px; /* Ensure minimum image size */
}

.page-resources__news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-resources__news-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-resources__news-title a:hover {
    color: #1a7bb0;
}

.page-resources__news-date {
    font-size: 14px;
    color: #888888;
    margin-bottom: 15px;
}

.page-resources__news-content p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 15px;
}

.page-resources__btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    background: #ffffff;
    color: #26A9E0;
    text-decoration: none;
    border: 2px solid #26A9E0;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* --- FAQ Section --- */
.page-resources__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: #ffffff; /* White background for FAQ item for contrast */
    color: #333333; /* Dark text for white background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.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;
    background: #f9f9f9;
    color: #555555;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important; /* Ensure content fits, use !important */
    padding: 20px 15px !important; /* Use !important */
    opacity: 1;
    border-radius: 0 0 5px 5px;
}

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

.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: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #26A9E0;
}

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

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: #333;
}


/* --- Quick Links Section --- */
.page-resources__quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding-top: 20px;
}

.page-resources__quick-link-btn {
    display: block; /* Make buttons take full width in their grid cell */
    padding: 15px 20px;
    text-align: center;
    font-size: 17px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

/* Ensure quick link buttons use primary/secondary styles */
.page-resources__quick-link-btn.page-resources__btn-primary {
    background: #26A9E0;
    color: #ffffff;
    border: none;
}

.page-resources__quick-link-btn.page-resources__btn-primary:hover {
    background: #1a7bb0;
    box-shadow: 0 4px 10px rgba(38, 169, 224, 0.3);
}

.page-resources__quick-link-btn.page-resources__btn-secondary {
    background: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-resources__quick-link-btn.page-resources__btn-secondary:hover {
    background: #26A9E0;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(38, 169, 224, 0.3);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-resources__hero-section {
        padding: 50px 15px;
        padding-top: var(--header-offset, 120px);
    }
    .page-resources__main-title {
        font-size: 40px;
    }
    .page-resources__intro-description {
        font-size: 16px;
    }
    .page-resources__section-title {
        font-size: 32px;
    }
    .page-resources__news-item img {
        width: 250px;
        
    }
    .page-resources__news-title {
        font-size: 20px;
    }
}

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

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

    .page-resources__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* --- Hero Section Mobile --- */
    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure space below fixed header */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-resources__intro-description {
        font-size: 15px;
        margin-bottom: 25px;
    }
    .page-resources__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* --- Images Mobile Adaptations --- */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-resources__hero-image img {
        border-radius: 4px;
    }

    .page-resources__guide-card img {
        height: 200px; /* Adjust height for mobile */
    }

    /* --- Guides Section Mobile --- */
    .page-resources__guides-grid {
        gap: 20px;
    }
    .page-resources__guide-card {
        margin-bottom: 20px;
    }
    .page-resources__guide-card .page-resources__card-title {
        font-size: 20px;
        margin: 15px 15px 8px;
    }
    .page-resources__guide-card p {
        font-size: 14px;
        margin: 0 15px 15px;
    }
    .page-resources__btn-primary {
        margin: 0 15px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* --- News Section Mobile --- */
    .page-resources__news-item {
        flex-direction: column;
    }
    .page-resources__news-item img {
        width: 100%;
        height: 220px;
    }
    .page-resources__news-content {
        padding: 15px;
    }
    .page-resources__news-title {
        font-size: 20px;
    }
    .page-resources__news-content p {
        font-size: 15px;
    }
    .page-resources__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* --- FAQ Section Mobile --- */
    .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;
    }

    /* --- Quick Links Section Mobile --- */
    .page-resources__quick-links-grid {
        grid-template-columns: 1fr; /* Stack buttons vertically */
        gap: 15px;
    }
    .page-resources__quick-link-btn {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
}