/* Halaman /standar-layanan — interaktif v2 */
.sl-page {
    background: #f0f9ff;
}

/* ── Hero ── */
.sl-hero {
    position: relative;
    padding: calc(var(--mb-header-h, 128px) + 1.5rem) 0 2.5rem;
    text-align: center;
    overflow: hidden;
    color: #fff;
}

.sl-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, #0c4a6e, #0369a1, #0e7490, #047857, #c2410c);
    background-size: 320% 320%;
    animation: sl-hero-gradient 16s ease infinite;
}

.sl-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 40% at 20% 15%, rgba(251, 191, 36, 0.3), transparent),
        radial-gradient(ellipse 45% 35% at 85% 25%, rgba(56, 189, 248, 0.35), transparent);
    pointer-events: none;
}

@keyframes sl-hero-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.sl-hero__decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.sl-hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.5;
    animation: sl-float 10s ease-in-out infinite;
}

.sl-hero__blob--1 { width: 200px; height: 200px; top: 10%; left: -5%; background: rgba(249, 115, 22, 0.5); }
.sl-hero__blob--2 { width: 160px; height: 160px; top: 25%; right: 0; background: rgba(125, 211, 252, 0.45); animation-delay: -3s; }
.sl-hero__blob--3 { width: 120px; height: 120px; bottom: 8%; left: 40%; background: rgba(52, 211, 153, 0.35); animation-delay: -5s; }

@keyframes sl-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -14px); }
}

.sl-hero .container { position: relative; z-index: 1; }
.sl-hero__content { max-width: 42rem; margin: 0 auto; }

.sl-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.6rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

.sl-hero__anim {
    opacity: 0;
    transform: translateY(12px);
    animation: sl-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--sl-delay, 0ms);
}

@keyframes sl-rise {
    to { opacity: 1; transform: translateY(0); }
}

.sl-hero .breadcrumb-item a { color: rgba(255, 255, 255, 0.65); text-decoration: none; }
.sl-hero .breadcrumb-item a:hover { color: #fde68a; }
.sl-hero .breadcrumb-item.active { color: #fff; }
.sl-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.35); }

.sl-hero__title {
    font-family: var(--pub-display, 'Outfit', sans-serif);
    font-size: clamp(1.75rem, 4.5vw, 2.55rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 0.75rem;
    letter-spacing: -0.03em;
}

.sl-hero__light { color: #ffffff; }
.sl-hero__accent {
    display: inline-block;
    margin: 0 0.15em;
    color: #fde68a;
    text-shadow: 0 0 28px rgba(253, 224, 71, 0.35);
}

.sl-hero__sub {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.9rem, 2vw, 1.02rem);
    line-height: 1.6;
    margin: 0 auto 1.1rem;
    max-width: 36rem;
}

.sl-hero__anchors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
}

.sl-hero__anchor {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.sl-hero__anchor:hover {
    color: #fff;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ── Stats ── */
.sl-stats {
    margin-top: -1.25rem;
    position: relative;
    z-index: 2;
    padding-bottom: 0.5rem;
}

.sl-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    max-width: 52rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .sl-stats__grid { grid-template-columns: repeat(4, 1fr); }
}

.sl-stat {
    text-align: center;
    padding: 1rem 0.75rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(2, 132, 199, 0.12);
    box-shadow: 0 8px 28px rgba(2, 132, 199, 0.1);
    transition: transform 0.25s, box-shadow 0.25s;
}

.sl-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(2, 132, 199, 0.16);
}

.sl-stat__value {
    margin: 0;
    font-family: var(--pub-display, 'Outfit', sans-serif);
    font-size: 1.75rem;
    font-weight: 800;
    color: #0369a1;
    line-height: 1;
}

.sl-stat__suffix { font-size: 1rem; color: #f97316; }
.sl-stat__label { margin: 0.35rem 0 0; font-size: 0.72rem; font-weight: 600; color: #64748b; }

/* ── Sections ── */
.sl-section { padding: 3rem 0; }
.sl-section--light { background: #fff; }
.sl-section--plus {
    background: linear-gradient(180deg, #ecfdf5 0%, #f0f9ff 50%, #fff 100%);
}

.sl-section__head { margin-bottom: 2rem; }
.sl-pretitle {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0369a1;
    margin-bottom: 0.35rem;
}

.sl-title {
    font-family: var(--pub-display, 'Outfit', sans-serif);
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    color: #0c4a6e;
    margin-bottom: 0.5rem;
}

.sl-title-accent { color: #ea580c; }
.sl-subtitle { color: #64748b; max-width: 36rem; margin: 0 auto; font-size: 0.92rem; line-height: 1.55; }

/* ── Journey ── */
.sl-journey {
    display: grid;
    gap: 1.25rem;
    max-width: 56rem;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .sl-journey {
        grid-template-columns: minmax(220px, 280px) 1fr;
        align-items: start;
    }
}

.sl-journey__nav {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sl-journey__progress {
    display: none;
    position: absolute;
    left: 1.1rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 3px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.sl-journey__progress span {
    display: block;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, #0284c7, #f97316);
    border-radius: 4px;
    transition: height 0.4s ease;
}

@media (min-width: 992px) {
    .sl-journey__progress { display: block; }
    .sl-journey__progress span { height: 20%; width: 100%; transition: height 0.45s ease; }
}

.sl-journey__tab {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.85rem;
    border: 2px solid transparent;
    border-radius: 0.75rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.sl-journey__tab:hover {
    border-color: #bae6fd;
    transform: translateX(4px);
}

.sl-journey__tab.is-active {
    border-color: #0284c7;
    background: linear-gradient(135deg, #f0f9ff, #fff);
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.15);
}

.sl-journey__tab-num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    background: #e0f2fe;
    color: #0369a1;
}

.sl-journey__tab.is-active .sl-journey__tab-num {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
}

.sl-journey__tab-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}

.sl-journey__panels {
    position: relative;
    min-height: 220px;
}

.sl-journey__panel {
    padding: 1.5rem 1.35rem;
    border-radius: 1.1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 36px rgba(2, 132, 199, 0.1);
    animation: sl-panel-in 0.35s ease;
}

.sl-journey__panel:not(.is-active) { display: none; }

@keyframes sl-panel-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.sl-journey__panel-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    margin-bottom: 0.85rem;
}

.sl-journey__panel-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0c4a6e;
    margin-bottom: 0.5rem;
}

.sl-journey__panel-desc {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.sl-journey__panel-tip {
    font-size: 0.78rem;
    font-weight: 600;
    color: #0369a1;
    margin: 0 0 1rem;
}

.sl-journey__panel-tip i { color: #fbbf24; margin-right: 0.25rem; }

.sl-journey__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 0.65rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
    transition: transform 0.2s;
}

.sl-journey__cta:hover { color: #fff; transform: translateY(-2px); }

/* ── Filter ── */
.sl-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.sl-filter--center { justify-content: center; }

.sl-filter__btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}

.sl-filter__btn:hover {
    border-color: #7dd3fc;
    color: #0369a1;
}

.sl-filter__btn.is-active {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

/* ── Facility cards ── */
.sl-fac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.85rem;
}

.sl-fac-card {
    position: relative;
    padding: 1.15rem 1.2rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.sl-fac-card.is-hidden {
    display: none;
}

.sl-fac-card__glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(2, 132, 199, 0.12), transparent 45%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.sl-fac-card:hover {
    transform: translateY(-4px);
    border-color: #7dd3fc;
    box-shadow: 0 12px 32px rgba(2, 132, 199, 0.14);
}

.sl-fac-card:hover .sl-fac-card__glow { opacity: 1; }

.sl-fac-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.sl-fac-card__num {
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(2, 132, 199, 0.2);
    line-height: 1;
}

.sl-fac-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 1rem;
    transition: transform 0.3s, background 0.3s;
}

.sl-fac-card:hover .sl-fac-card__icon {
    transform: scale(1.08) rotate(-4deg);
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #fff;
}

.sl-fac-card__title {
    font-size: 1rem;
    font-weight: 800;
    color: #0c4a6e;
    margin-bottom: 0.4rem;
}

.sl-fac-card__desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.sl-empty { color: #94a3b8; font-size: 0.9rem; padding: 2rem 0; }

/* ── Plus flip cards ── */
.sl-plus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    max-width: 56rem;
    margin: 0 auto;
}

.sl-plus-card {
    perspective: 900px;
    min-height: 200px;
}

.sl-plus-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.sl-plus-card:hover .sl-plus-card__inner,
.sl-plus-card:focus-within .sl-plus-card__inner {
    transform: rotateY(180deg);
}

.sl-plus-card__front,
.sl-plus-card__back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sl-plus-card__front {
    background: #fff;
    box-shadow: 0 6px 24px rgba(2, 132, 199, 0.08);
}

.sl-plus-card__back {
    background: linear-gradient(145deg, #0c4a6e, #0369a1);
    color: #fff;
    transform: rotateY(180deg);
    font-size: 0.88rem;
    line-height: 1.55;
}

.sl-plus-card__back p { margin: 0; }

.sl-plus-card__tag {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
}

.sl-plus-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: #e0f2fe;
    color: #0369a1;
    margin-bottom: 0.75rem;
}

.sl-plus-card__title {
    font-size: 1rem;
    font-weight: 800;
    color: #0c4a6e;
    margin-bottom: 0.35rem;
}

.sl-plus-card__hint {
    font-size: 0.72rem;
    color: #94a3b8;
    margin: 0;
}

/* ── CTA ── */
.sl-cta {
    padding: 3rem 0 3.5rem;
    background: linear-gradient(155deg, #0c4a6e 0%, #0369a1 55%, #0e7490 100%);
    color: #fff;
    text-align: center;
}

.sl-cta__icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sl-cta__title {
    font-family: var(--pub-display, 'Outfit', sans-serif);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
}

.sl-cta__text {
    max-width: 32rem;
    margin: 0 auto 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
}

.sl-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.sl-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.15rem;
    border-radius: 0.65rem;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sl-btn:hover { transform: translateY(-2px); }

.sl-btn--white {
    background: #fff;
    color: #0369a1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.sl-btn--outline {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.sl-btn--outline:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ── Mobile ── */
@media (max-width: 575.98px) {
    .sl-hero { padding-bottom: 2rem; }
    .sl-hero__anchor { font-size: 0.72rem; padding: 0.35rem 0.6rem; }
    .sl-journey__tab-label { font-size: 0.75rem; }
    .sl-fac-grid { grid-template-columns: 1fr; }
    .sl-plus-card { min-height: auto; }
    .sl-plus-card__inner {
        min-height: auto;
        transform: none !important;
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .sl-plus-card__front,
    .sl-plus-card__back {
        position: relative;
        inset: auto;
        transform: none;
        backface-visibility: visible;
    }
    .sl-plus-card__back {
        margin-top: 0;
        padding-top: 0.85rem;
        border-top: 1px dashed #e2e8f0;
        background: transparent;
        color: #475569;
        font-size: 0.82rem;
    }
    .sl-plus-card__hint { display: none; }
}

/* Mouse glow on facility cards */
@media (hover: hover) {
    .sl-fac-card { --mx: 50%; --my: 50%; }
}

/* Dark mode */
html[data-bs-theme='dark'] .sl-page { background: #0f172a; }
html[data-bs-theme='dark'] .sl-stat,
html[data-bs-theme='dark'] .sl-journey__tab,
html[data-bs-theme='dark'] .sl-journey__panel,
html[data-bs-theme='dark'] .sl-fac-card,
html[data-bs-theme='dark'] .sl-plus-card__front {
    background: #1e293b;
    border-color: #334155;
}
html[data-bs-theme='dark'] .sl-title,
html[data-bs-theme='dark'] .sl-fac-card__title,
html[data-bs-theme='dark'] .sl-journey__panel-title,
html[data-bs-theme='dark'] .sl-plus-card__title { color: #e2e8f0; }
html[data-bs-theme='dark'] .sl-section--light { background: #0f172a; }

@media (prefers-reduced-motion: reduce) {
    .sl-hero::before,
    .sl-hero__blob,
    .sl-hero__anim,
    .sl-journey__panel,
    .sl-plus-card__inner {
        animation: none !important;
        transition: none !important;
    }
    .sl-hero__anim { opacity: 1; transform: none; }
}
