@font-face {
    font-family: "Poppins";
    src: url("assets/image/Poppins-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --library-green: #198754;
    --library-dark: #123a2b;
    --library-soft: #eef7f1;
    --body-text: #343a40;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    margin: 0;
    color: var(--body-text);
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.7;
}

img {
    max-width: 100%;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #ffc107;
    outline-offset: 4px;
}

.navbar {
    z-index: 10;
}

.navbar-brand {
    white-space: normal;
}

.brand-logo {
    display: flex;
    align-items: center;
    margin-right: 0.65rem;
}

.brand-logo img {
    display: block;
    width: 54px;
    height: 36px;
    object-fit: contain;
}

.brand-title {
    max-width: 360px;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
}

.navbar .nav-link {
    margin: 0 0.12rem;
    border-bottom: 3px solid transparent;
    transition: border-color 160ms ease, color 160ms ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
    border-bottom-color: #b8f5d2;
    color: #fff;
}

/* Video hero dipertahankan sebagai latar utama. */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(88vh, 850px);
    min-height: min(88svh, 850px);
    padding: 5rem 1.5rem;
    background: #17382c;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(8, 31, 23, 0.68), rgba(12, 3, 51, 0.38));
}

.back-video {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content {
    position: relative;
    z-index: 1;
    width: min(100%, 1100px);
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

.hero-eyebrow {
    margin-bottom: 0.8rem;
    font-size: clamp(0.85rem, 1.8vw, 1.15rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.content h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.35rem, 6vw, 5.1rem);
    font-weight: 700;
    line-height: 1.12;
    text-wrap: balance;
}

.npp-badge {
    display: inline-block;
    margin: 1.5rem 0 0;
    padding: 0.65rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.section-space {
    padding-top: clamp(3.25rem, 6vw, 5.5rem);
    padding-bottom: clamp(3.25rem, 6vw, 5.5rem);
}

.section-title {
    margin-bottom: 0.8rem;
    color: var(--library-dark);
    font-weight: 700;
    line-height: 1.25;
}

.section-intro {
    max-width: 760px;
    margin: 0 auto;
    color: #59645e;
}

.bg-light .section-title {
    color: var(--library-dark);
}

.lingkaran {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 142px;
    height: 142px;
    border-radius: 50%;
    background: var(--library-green);
    color: #fff;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-icon-link:hover .lingkaran,
.service-icon-link:focus-visible .lingkaran {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(25, 135, 84, 0.2);
}

.layanan h3 {
    color: var(--library-dark);
    font-weight: 700;
}

.layanan .col-md-4 > p {
    max-width: 380px;
    margin-right: auto;
    margin-left: auto;
}

.facility-card {
    overflow: hidden;
    border: 0;
    border-radius: 0.8rem;
    box-shadow: 0 0.3rem 1.2rem rgba(16, 48, 34, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.facility-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.7rem 1.6rem rgba(16, 48, 34, 0.14);
}

.facility-card .card-img-top {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.facility-card .card-title {
    margin-bottom: 0;
    color: var(--library-dark);
    font-weight: 600;
}

.about-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.mission-list {
    padding-left: 1.35rem;
}

.mission-list li {
    padding-left: 0.25rem;
    margin-bottom: 0.4rem;
}

.tim img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border: 7px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0.35rem 1.1rem rgba(16, 48, 34, 0.14);
    transition: transform 180ms ease;
}

.tim a:hover img,
.tim a:focus-visible img {
    transform: scale(1.025);
}

.tim h3 {
    color: var(--library-dark);
}

.client-section {
    background: #fff;
}

.client-section img {
    width: auto;
    max-width: 100%;
    height: 90px;
    object-fit: contain;
}

.contact-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #17382c url("assets/image/bg-socmed.jpg") center / cover no-repeat;
}

.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(4, 22, 15, 0.88), rgba(5, 33, 23, 0.78));
}

.contact-section .section-title {
    color: #fff;
}

.contact-section .section-intro {
    color: rgba(255, 255, 255, 0.9);
}

.contact-panel {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: min(100%, 880px);
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.2);
}

.contact-symbol {
    display: flex;
    flex: 0 0 64px;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e7f6ec;
    color: #16834b;
    font-size: 2rem;
}

.contact-details {
    flex: 1 1 auto;
    min-width: 0;
}

.contact-label {
    color: #626e67;
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-number {
    color: var(--library-dark);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 0.015em;
}

.contact-actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 180px;
}

.contact-button {
    font-weight: 600;
}

.social-block {
    margin-top: 3.5rem;
}

.social-links {
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: #fff;
    font-size: 1.9rem;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 0.65rem 1.2rem rgba(0, 0, 0, 0.2);
}

.social-youtube { color: #d93025; }
.social-instagram { color: #c13584; }
.social-facebook { color: #1877f2; }
.social-tiktok { color: #111; }

.site-footer {
    background: #102d22;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
}

@media (max-width: 991.98px) {
    .brand-title {
        margin-right: auto;
        font-size: 0.92rem;
    }

    .navbar .nav-link {
        border-bottom: 0;
    }

    .navbar .nav-link:hover,
    .navbar .nav-link:focus-visible {
        color: #b8f5d2;
    }
}

@media (max-width: 767.98px) {
    .hero {
        min-height: 72vh;
        min-height: 72svh;
        padding: 4.5rem 1rem;
    }

    .hero-eyebrow {
        letter-spacing: 0.08em;
    }

    .npp-badge {
        margin-top: 1.2rem;
        padding: 0.55rem 1rem;
        font-size: 0.88rem;
    }

    .contact-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.3rem;
        text-align: center;
    }

    .contact-symbol {
        align-self: center;
    }

    .contact-actions {
        width: 100%;
        min-width: 0;
    }

    .contact-button {
        width: 100%;
    }

    .client-section img {
        height: 70px;
    }
}

@media (max-width: 420px) {
    .brand-logo img {
        width: 44px;
        height: 30px;
    }

    .brand-title {
        max-width: 205px;
        font-size: 0.8rem;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-link {
        width: 54px;
        height: 54px;
        font-size: 1.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
