/* Beranda — Prestasi carousel (palet lembut) */
.home-prestasi-section {
    --home-prestasi-card-h: 460px;
    --home-soft-bg: #f0f7f4;
    --home-soft-bg-alt: #e8f2ec;
    --home-soft-primary: color-mix(in srgb, var(--theme-primary, #006838) 72%, #4a8f6a);
    --home-soft-primary-light: color-mix(in srgb, var(--theme-primary, #006838) 14%, #fff);
    --home-soft-text: #2a4036;
    --home-soft-text-muted: #6b8578;
    position: relative;
    padding: 100px 0 90px;
    background: linear-gradient(180deg, var(--home-soft-bg) 0%, #fafcfb 55%, var(--home-soft-bg-alt) 100%);
    overflow: hidden;
}

.home-prestasi-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--theme-primary, #006838) 10%, transparent) 0%, transparent 42%),
        radial-gradient(circle at 88% 82%, color-mix(in srgb, var(--theme-primary, #006838) 8%, transparent) 0%, transparent 38%);
    pointer-events: none;
}

.home-prestasi-section::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .35;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23006838' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.home-prestasi-inner {
    position: relative;
    z-index: 1;
}

.home-prestasi-head {
    text-align: center;
    margin-bottom: 48px;
    color: var(--home-soft-text);
}

.home-prestasi-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--home-soft-primary-light);
    border: 1px solid color-mix(in srgb, var(--theme-primary, #006838) 18%, #fff);
    color: var(--home-soft-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.home-prestasi-head h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: var(--home-soft-text);
    margin-bottom: 12px;
}

.home-prestasi-head h2 span {
    color: var(--home-soft-primary);
}

.home-prestasi-head p {
    color: var(--home-soft-text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

.home-prestasi-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.home-prestasi-stat strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--home-soft-primary);
    line-height: 1.1;
}

.home-prestasi-stat span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8fa598;
}

.home-prestasi-carousel-wrap {
    position: relative;
    padding: 0 50px;
    min-height: var(--home-prestasi-card-h);
}

.home-prestasi-carousel.owl-carousel:not(.owl-loaded) {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.home-prestasi-carousel.owl-carousel:not(.owl-loaded) .home-prestasi-slide {
    width: 100%;
    height: var(--home-prestasi-card-h);
}

.home-prestasi-carousel.owl-loaded .owl-item {
    display: flex;
}

.home-prestasi-slide {
    display: flex;
    width: 100%;
    height: var(--home-prestasi-card-h);
}

.home-prestasi-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e3efe8;
    box-shadow: 0 10px 36px rgba(0, 80, 40, .07);
    display: flex;
    flex-direction: column;
    width: 100%;
    height: var(--home-prestasi-card-h);
    min-height: var(--home-prestasi-card-h);
    max-height: var(--home-prestasi-card-h);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.home-prestasi-carousel .owl-item.center .home-prestasi-card {
    transform: scale(1.02);
    box-shadow: 0 16px 44px color-mix(in srgb, var(--theme-primary, #006838) 14%, transparent);
    border-color: color-mix(in srgb, var(--theme-primary, #006838) 22%, #e3efe8);
}

.home-prestasi-card-img {
    position: relative;
    flex: 0 0 200px;
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    overflow: hidden;
}

.home-prestasi-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.home-prestasi-card:hover .home-prestasi-card-img img {
    transform: scale(1.06);
}

.home-prestasi-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(42, 64, 54, .35) 100%);
}

.home-prestasi-rank {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .03em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    max-width: calc(100% - 28px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-prestasi-rank.prestasi-rank-gold { background: linear-gradient(135deg, #f5d76e, #e8c547); color: #5c4a12; }
.home-prestasi-rank.prestasi-rank-silver { background: linear-gradient(135deg, #e2e8ec, #b8c2ca); color: #4a5560; }
.home-prestasi-rank.prestasi-rank-bronze { background: linear-gradient(135deg, #e8c4a8, #cfa882); color: #5c4030; }
.home-prestasi-rank.prestasi-rank-default {
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary, #006838) 75%, #fff), var(--home-soft-primary));
}

.home-prestasi-rank i { font-size: 14px; flex-shrink: 0; }

.home-prestasi-level {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--home-soft-text);
}

.home-prestasi-card-body {
    padding: 20px 22px 22px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.home-prestasi-year {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--home-soft-primary);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-prestasi-card-body h3 {
    flex: 0 0 auto;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 10px;
    min-height: calc(1.45em * 2);
    max-height: calc(1.45em * 2);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.home-prestasi-card-body h3 a {
    color: var(--home-soft-text);
    text-decoration: none;
    transition: color .2s;
}

.home-prestasi-card-body h3 a:hover {
    color: var(--home-soft-primary);
}

.home-prestasi-card-body p {
    flex: 0 0 auto;
    font-size: 14px;
    color: var(--home-soft-text-muted);
    line-height: 1.6;
    margin-bottom: 10px;
    min-height: calc(1.6em * 3);
    max-height: calc(1.6em * 3);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.home-prestasi-meta {
    flex: 0 0 auto;
    font-size: 12px;
    color: #8fa598;
    min-height: 18px;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-prestasi-meta i {
    color: var(--home-soft-primary);
    width: 16px;
    margin-right: 4px;
}

.home-prestasi-meta-placeholder {
    visibility: hidden;
}

.home-prestasi-link {
    flex: 0 0 auto;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--home-soft-primary);
    text-decoration: none;
}

.home-prestasi-link:hover {
    color: color-mix(in srgb, var(--theme-primary, #006838) 85%, #2a4036);
}

.home-prestasi-cta {
    text-align: center;
    margin-top: 40px;
}

.home-prestasi-cta .default-btn {
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary, #006838) 82%, #fff), var(--home-soft-primary));
    border-color: color-mix(in srgb, var(--theme-primary, #006838) 35%, #fff);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--theme-primary, #006838) 18%, transparent);
}

.home-prestasi-cta .default-btn:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary, #006838) 92%, #fff), color-mix(in srgb, var(--theme-primary, #006838) 65%, #3d6b55));
    border-color: var(--home-soft-primary);
}

/* Owl overrides */
.home-prestasi-carousel.owl-carousel .owl-stage-outer {
    padding: 12px 0 20px;
}

.home-prestasi-carousel.owl-carousel .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50% !important;
    background: #fff !important;
    border: 1px solid #d4e8dc !important;
    color: var(--home-soft-primary) !important;
    font-size: 20px !important;
    box-shadow: 0 4px 16px rgba(0, 80, 40, .08);
    transition: background .2s, border-color .2s, color .2s;
}

.home-prestasi-carousel.owl-carousel .owl-nav button:hover {
    background: var(--home-soft-primary-light) !important;
    border-color: color-mix(in srgb, var(--theme-primary, #006838) 30%, #fff) !important;
    color: var(--home-soft-primary) !important;
}

.home-prestasi-carousel.owl-carousel .owl-nav button.owl-prev {
    left: -50px;
}

.home-prestasi-carousel.owl-carousel .owl-nav button.owl-next {
    right: -50px;
}

.home-prestasi-carousel.owl-carousel .owl-dots {
    margin-top: 8px;
}

.home-prestasi-carousel.owl-carousel .owl-dots .owl-dot span {
    background: #c5ddd0;
    width: 10px;
    height: 10px;
}

.home-prestasi-carousel.owl-carousel .owl-dots .owl-dot.active span {
    background: var(--home-soft-primary);
    width: 28px;
    border-radius: 5px;
}

@media (max-width: 991px) {
    .home-prestasi-carousel-wrap {
        padding: 0 36px;
    }
    .home-prestasi-carousel.owl-carousel .owl-nav button.owl-prev { left: -36px; }
    .home-prestasi-carousel.owl-carousel .owl-nav button.owl-next { right: -36px; }
}

@media (max-width: 575px) {
    .home-prestasi-section {
        --home-prestasi-card-h: 440px;
        padding: 70px 0 60px;
    }
    .home-prestasi-carousel-wrap { padding: 0; }
    .home-prestasi-carousel.owl-carousel .owl-nav button {
        width: 38px;
        height: 38px;
        font-size: 16px !important;
    }
    .home-prestasi-carousel.owl-carousel .owl-nav button.owl-prev { left: 4px; }
    .home-prestasi-carousel.owl-carousel .owl-nav button.owl-next { right: 4px; }
}
