/* ===== Resources: blog-style cards (/resources/) and detail page ===== */

/* Cards grid */
.res-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto 80px;
    padding: 0 20px;
}
@media (max-width: 991px) { .res-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .res-grid { grid-template-columns: 1fr; } }

.res-card {
    background: var(--white, #fff);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    transition: transform .3s, box-shadow .3s;
}
.res-card:hover { transform: translateY(-5px); box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12); }
.res-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.res-card-image img { display: block; width: 100%; height: 220px; object-fit: cover; }
.res-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.res-card-title { font-size: 1.3rem; font-weight: 600; color: var(--dark-gray, #333); margin: 0; }
.res-card-excerpt { font-size: .95rem; line-height: 1.5; color: #222; margin: 0; }
.res-card-note { color: red; font-weight: 600; }
.res-card-more { margin-top: auto; font-weight: 600; color: var(--primary-hover, #1f3c69); }

/* Detail page (same look as the blog detail page) */
.res-single { background: var(--light-gray, #f9f9f9); padding: 60px 20px; }
.res-single-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white, #fff);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}
.res-back { display: inline-block; margin-bottom: 20px; font-weight: 600; text-decoration: none; color: var(--primary-hover, #1f3c69); }
.res-single-title { font-size: 2.2rem; font-weight: 700; color: var(--dark-gray, #333); margin-bottom: 15px; }
.res-single-meta { font-size: .9rem; color: var(--dark-gray, #333); margin-bottom: 25px; }
.res-single-note { display: inline-block; margin-left: 10px; color: red; font-weight: 600; }
.res-single-image img { width: 100%; height: auto; margin-bottom: 25px; border-radius: 12px; }
.res-single-content { font-size: 1rem; line-height: 1.7; color: var(--dark-gray, #333); }
.res-single-content h2, .res-single-content h3 { margin-top: 25px; }
.res-single-content p { margin-bottom: 18px; }
.res-more { max-width: 1200px; margin: 50px auto 0; }
.res-more > h2 { text-align: center; margin-bottom: 25px; }
@media (max-width: 600px) { .res-single-card { padding: 22px; } .res-single-title { font-size: 1.7rem; } }

/* Fallback: old Site Content cards (only shown while no Resources posts exist) */
.res-grid .card { background: var(--light-gray, #f9f9f9); border: 1px solid #0073AA; border-radius: 16px; padding: 30px; box-shadow: 0 8px 25px rgba(0,0,0,.08); }
.res-grid .card h3 { font-size: 1.3rem; color: var(--dark-gray, #333); margin-bottom: 15px; }
.res-grid .card p { line-height: 1.5; color: #000; }

/* "Read more" switched off: plain card, no link look */
.res-card--static:hover { transform: none; box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08); }
.res-card--static .res-card-link { cursor: default; }