.page-resources .content-area {
    background: #f3f5f8;
}

/* =====================================================
   Resources Header
===================================================== */

.resource-page-header {
    background-image: url("../img/portfolio/drop_deck_02.png");
    background-position: center 47%;
}


/* =====================================================
   Resources Sections
===================================================== */

.page-resources .resources-sections {
    width: 100%;
    max-width: 1900px;
    margin: 0 auto;
    padding: 0 24px 20px;
    box-sizing: border-box;
}

.page-resources .resources-section {
    margin-top: 40px;
}


/* =====================================================
   Section Headers / Dividers
===================================================== */

.page-resources .resources-section-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.page-resources .resources-section-header h2 {
    margin: 0;
    font-size: 36px;
    font-weight: 750;
    line-height: 1.15;
    color: #1a3f74;
    white-space: nowrap;
}

.page-resources .resources-section-divider {
    flex: 1;
    height: 2px;
    background: #cfcfcf;
    min-width: 40px;
}


/* =====================================================
   Resources Grid
===================================================== */

.page-resources .resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 340px);
    gap: 30px;
    justify-content: center;
    margin-top: 0;
}


/* =====================================================
   Resource Item
===================================================== */

.page-resources .resource-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}


/* =====================================================
   Resource Card
===================================================== */

.page-resources .resource-card {
    position: relative;
    width: 340px;
    height: 400px;
    overflow: hidden;

    display: block;
    text-decoration: none;

    background: #fdfdfd;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


/* =====================================================
   Resource Image
===================================================== */

.page-resources .resource-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;

    padding: 12px;
    box-sizing: border-box;

    transition: transform 0.25s ease;
}


/* =====================================================
   Resource Card Title
===================================================== */

.page-resources .resource-card-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;

    padding: 18px 20px;
    box-sizing: border-box;

    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(4px);

    font-size: 26px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    color: #1a3f74;

    transition: color 0.2s ease, background 0.2s ease;
}


/* =====================================================
   Placeholder Cards
===================================================== */

.page-resources .resource-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    background: #e8e8e8;
    border: 1px solid #d6d6d6;

    cursor: default;
}

.page-resources .resource-card-placeholder .resource-card-title {
    position: static;
    background: none;
    backdrop-filter: none;
    border-top: none;
    padding: 0;

    color: #1a3f74;
    text-align: center;
    font-size: 26px;
}

.page-resources .resource-card-status {
    font-size: 18px;
    font-weight: 600;
    color: #a51b25;
}


/* =====================================================
   Resource Description
===================================================== */

.page-resources .resource-description {
    margin: 8px auto 0 auto;
    font-size: 15px;
    line-height: 1.4;
    color: #555;
    text-align: center;

    max-width: 300px;
}


/* =====================================================
   Media Queries
===================================================== */

/* Mobile optimization */
@media (max-width: 899px) {

    /* Resource section adjustments and sizing */
    .page-resources .resources-section {
        margin-top: 30px;
    }

    .page-resources .resources-section-header {
        gap: 12px;
        margin-bottom: 14px;
    }

    .page-resources .resources-section-header h2 {
        font-size: 26px;
    }

    .page-resources .resources-section-divider {
        height: 1px;
    }

    .page-resources .resources-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        justify-items: center;
        margin-top: 25px;

        padding-left: 20px;
        padding-right: 20px;
    }

    .page-resources .resource-item {
        width: 100%;
        max-width: 420px;
    }

    .page-resources .resource-card,
    .page-resources .resource-card-placeholder {
        width: 100%;
        max-width: none;
        height: 360px;
    }

    .page-resources .resource-description {
        max-width: 420px;
        padding: 0 10px;
        font-size: 14.5px;
    }
}

/* Only apply hover effects on desktop (when hover is supported) */
@media (hover: hover) and (pointer: fine) {

    .page-resources .resource-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
    }

    .page-resources .resource-card:hover .resource-card-image {
        transform: scale(1.03);
    }

    .page-resources .resource-card:hover .resource-card-title {
        color: #a51b25;
        background: rgba(255, 255, 255, 0.78);
    }

    .page-resources .resource-card-placeholder:hover {
        transform: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    .page-resources .resource-card-placeholder:hover .resource-card-title {
        color: #1a3f74;
        background: none;
    }
}
