.hp-prestasi {
    padding: 48px 0;
    background: #f8fafc;
    scroll-margin-top: 70px;
}
.hp-prestasi .section-header {
    text-align: center;
    margin-bottom: 28px;
}

@media (min-width: 1025px) {
    .hp-prestasi {
        min-height: 100vh;
        min-height: 100svh;
        display: flex;
        align-items: center;
        padding: 80px 0 40px;
        box-sizing: border-box;
    }
    .hp-prestasi .container { width: 100%; }
}

.hp-prestasi__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.hp-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(26, 43, 95, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}
.hp-card:hover,
.hp-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(26, 43, 95, .16);
}

.hp-card__photo {
    position: relative;
    height: clamp(110px, 21vh, 210px);
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    overflow: hidden;
}
.hp-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hp-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #94a3b8;
}

.hp-rank {
    position: absolute;
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #1a2b5f;
}
.hp-rank--gold   { background: #d4af37; color: #1a2b5f; }
.hp-rank--silver { background: #64748b; }
.hp-rank--bronze { background: #b45309; }

.hp-card__body { padding: 12px 14px 14px; }
.hp-card__title {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.35;
    color: #1a2b5f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-card__meta {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.hp-prestasi__more {
    text-align: center;
    margin-top: 28px;
}
.hp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    background: #1a2b5f;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s ease, opacity .2s ease;
}
.hp-btn:hover { transform: translateY(-2px); opacity: .92; }

.hp-prestasi__empty {
    text-align: center;
    color: #94a3b8;
    padding: 40px 0;
}

@media (max-width: 1024px) {
    .hp-prestasi__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .hp-card__photo { height: 160px; }
}
@media (max-width: 480px) {
    .hp-prestasi { padding: 36px 0; }
    .hp-prestasi__grid { gap: 12px; }
    .hp-card__photo { height: 110px; }
    .hp-card__body { padding: 10px; }
    .hp-card__title { font-size: 13px; }
    .hp-card__meta { font-size: 12px; }
    .hp-rank { font-size: 11px; padding: 3px 8px; left: 6px; bottom: 6px; }
}