/* ── Resource Panel Block ── */
.rp-panel {
    margin-bottom: 2rem;
}

.rp-panel-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #222;
}

.rp-panel-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 1rem;
}

/* ── Flexbox Grid ── */
.rp-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.rp-card {
    flex: 0 0 calc((100% - (var(--rp-columns) - 1) * 1rem) / var(--rp-columns));
    max-width: calc((100% - (var(--rp-columns) - 1) * 1rem) / var(--rp-columns));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.25rem 1rem;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    min-height: 100px;
}

a.rp-card:hover,
a.rp-card:focus {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    text-decoration: none;
    color: #111;
    border-color: #b0b0b0;
}

/* ── Card Image ── */
.rp-card-image {
    margin-bottom: 0.75rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.rp-card-image img {
    max-width: 100%;
    max-height: 80px;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

/* ── Card Label ── */
.rp-card-label {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .rp-card {
        flex: 0 0 calc((100% - 1rem) / 2);
        max-width: calc((100% - 1rem) / 2);
    }
}

@media (max-width: 575px) {
    .rp-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}