.res-library-wrapper {
    font-family: inherit;
}

.res-library-wrapper .res-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.res-library-wrapper .res-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-top: 4px solid #409587;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.res-library-wrapper .res-meta {
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.res-library-wrapper .res-badge-type {
    background: #e6ebf0;
    color: #409587;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.res-library-wrapper .res-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #409587;
}

.res-library-wrapper .res-date {
    font-size: 12px;
    color: #777;
    margin-bottom: 8px;
}

.res-library-wrapper .res-desc {
    font-size: 13px;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.res-library-wrapper .res-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #409587;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    transition: background 0.2s;
}

.res-library-wrapper .res-btn:hover,
.res-library-wrapper .res-btn:focus {
    background: #317469;
    color: #fff;
}

.res-library-wrapper .res-recent-title {
    font-size: 24px;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaeaea;
    color: #333;
}

.res-library-wrapper .res-recent-resources {
    margin-bottom: 50px;
}

@media (max-width: 1024px) {
    .res-library-wrapper .res-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .res-library-wrapper .res-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
