/* ============================================================
   Perpustakaan Bank Indonesia – Jawa Tengah – Public Theme
   ============================================================ */

/* ── Root Variables ────────────────────────────────────────── */
:root {
    --purple:    #4a2d7a;
    --purple-d:  #311c54;
    --purple-dd: #1a0f2e;
    --purple-l:  #7b4fdb;
    --purple-50: #f0ebff;
    --gold:      #d4a843;
    --gold-l:    #f5c842;
    --white:     #ffffff;
    --gray-50:   #f9fafb;
    --gray-100:  #f3f4f6;
    --gray-200:  #e5e7eb;
    --gray-400:  #9ca3af;
    --text:      #1f1f2e;
    --text-muted:#6b7280;
    --lavender:  #f4f0ff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
    --shadow:    0 4px 20px rgba(0,0,0,.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.15);
    --radius:    12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --font:      'Poppins', sans-serif;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    font-size: 15px;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Search Overlay ─────────────────────────────────────────── */
.search-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(26,15,46,.92);
    display: none; align-items: center; justify-content: center;
    backdrop-filter: blur(6px);
}
.search-overlay.is-open { display: flex; }
.search-close {
    position: absolute; top: 20px; right: 28px;
    color: #fff; font-size: 1.6rem; background: none; border: none;
    cursor: pointer; opacity: .7; transition: opacity .2s;
}
.search-close:hover { opacity: 1; }
.search-panel {
    background: #fff; border-radius: var(--radius-lg);
    padding: 2.5rem 2rem; width: 100%; max-width: 560px;
    box-shadow: var(--shadow-lg);
}
.search-panel h3 {
    font-size: 1.25rem; color: var(--purple);
    margin-bottom: 1.25rem; font-weight: 600;
}
.search-panel form { display: flex; gap: .5rem; }
.search-panel input {
    flex: 1; border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
    padding: .7rem 1rem; font-family: inherit; font-size: .95rem;
    outline: none; transition: border-color .2s;
}
.search-panel input:focus { border-color: var(--purple); }
.search-panel button {
    background: var(--purple); color: #fff; border-radius: var(--radius-sm);
    padding: .7rem 1.4rem; font-weight: 600; font-size: .9rem;
    transition: background .2s;
}
.search-panel button:hover { background: var(--purple-d); }

/* ── Site Header ────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 999;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.hdr-inner {
    display: flex; align-items: center; gap: 1rem;
    height: 68px;
}

/* Brand */
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 77px; width: auto; }
.brand-txt { display: flex; flex-direction: column; }
.brand-txt__top {
    font-size: .7rem; font-weight: 700; letter-spacing: .04em;
    color: var(--purple); line-height: 1.2;
}
.brand-txt__bot {
    font-size: .6rem; font-weight: 500; letter-spacing: .06em;
    color: var(--text-muted); line-height: 1.2;
}

/* Nav */
.main-nav {
    flex: 1; display: flex; align-items: center; justify-content: center;
    gap: .25rem;
}
.main-nav > a,
.main-nav .nav-item > a {
    display: flex; align-items: center; gap: 4px;
    padding: .45rem .75rem; border-radius: 6px;
    font-size: .85rem; font-weight: 500; color: var(--text);
    transition: background .15s, color .15s; white-space: nowrap;
}
.main-nav > a:hover,
.main-nav .nav-item > a:hover { background: var(--lavender); color: var(--purple); }
.main-nav .nav-item > a .fa-chevron-down { font-size: .65rem; opacity: .6; }

/* Dropdown */
.nav-item { position: relative; }
.nav-sub {
    position: absolute; top: calc(100% + 6px); left: 0;
    background: #fff; border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg); min-width: 200px;
    border: 1px solid var(--gray-200);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: all .2s; z-index: 100;
}
.nav-item:hover .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-sub a {
    display: flex; align-items: center; gap: 8px;
    padding: .6rem 1rem; font-size: .84rem; color: var(--text);
    transition: background .15s, color .15s;
}
.nav-sub a i { width: 16px; color: var(--purple); }
.nav-sub a:hover { background: var(--lavender); color: var(--purple); }

/* Actions */
.hdr-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.hdr-icon-btn {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text); font-size: .95rem;
    transition: background .15s, color .15s;
}
.hdr-icon-btn:hover { background: var(--lavender); color: var(--purple); }
.btn-masuk {
    display: flex; align-items: center; gap: 6px;
    background: var(--purple); color: #fff;
    padding: .45rem 1.1rem; border-radius: 20px;
    font-size: .84rem; font-weight: 600;
    transition: background .2s;
}
.btn-masuk:hover { background: var(--purple-d); }
.nav-toggle { display: none; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 6px; color: var(--text); }


/* ══════════════════════════════════════════════════════════════
   HERO SLIDER — full image + overlay gelap
══════════════════════════════════════════════════════════════ */
.hero-section { position: relative; overflow: hidden; background: #1a0f2e; }
.hero-swiper,
.hero-swiper .swiper-slide,
.hero-slide {
    min-height: 620px;
}
.hero-swiper .swiper-slide { height: auto; }

.hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slide__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.02);
}

.hero-slide__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg,
            rgba(0, 0, 0, calc(var(--hero-overlay, .55) + .18)) 0%,
            rgba(0, 0, 0, var(--hero-overlay, .55)) 42%,
            rgba(0, 0, 0, calc(var(--hero-overlay, .55) * .75)) 100%);
    pointer-events: none;
}

.hero-slide__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4.5rem 5rem 5.5rem;
}

.hero-content {
    position: relative;
    max-width: 620px;
}
.hero-content::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: .35rem;
    bottom: .35rem;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, #e8c456, #d4a843);
    opacity: .9;
}

.hero-welcome {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(1.85rem, 3.2vw, 2.35rem);
    font-weight: 400;
    color: #f0cc5a;
    margin-bottom: .45rem;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.hero-h1 {
    display: flex;
    flex-direction: column;
    margin-bottom: .75rem;
    line-height: 1.05;
    gap: .15rem;
}
.hero-h1__top,
.hero-h1__mid {
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .45);
}
.hero-subtitle {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    max-width: 520px;
}
.hero-subtitle__line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a843, transparent);
}
.hero-h1__bot {
    font-size: clamp(.78rem, 1.5vw, .95rem);
    font-weight: 700;
    color: #f0cc5a;
    letter-spacing: .18em;
    white-space: nowrap;
}
.hero-desc {
    font-size: .95rem;
    color: rgba(255, 255, 255, .9);
    line-height: 1.85;
    margin-bottom: 2rem;
    max-width: 540px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #331082;
    font-size: .92rem;
    font-weight: 700;
    padding: .85rem 1.9rem;
    border-radius: 999px;
    transition: all .2s;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
}
.hero-cta:hover {
    background: #f0cc5a;
    color: #1a0f2e;
    transform: translateY(-2px);
}
.hero-cta i { font-size: .8rem; }

.hero-prev, .hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 12;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: #331082;
    border: 1px solid rgba(255, 255, 255, .8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
    transition: all .2s;
}
.hero-prev { left: 24px; }
.hero-next { right: 24px; }
.hero-prev:hover, .hero-next:hover {
    background: #331082;
    color: #fff;
}

.hero-pagination {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 12;
}
.hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .9);
    opacity: 1;
    margin: 0 6px;
    border-radius: 50%;
}
.hero-pagination .swiper-pagination-bullet-active {
    background: #fff;
    border-color: #fff;
}

@media (min-width: 1200px) {
    .hero-swiper,
    .hero-swiper .swiper-slide,
    .hero-slide { min-height: 720px; }
    .hero-slide__inner { padding: 5.5rem 5rem 6.5rem; }
}


/* ══════════════════════════════════════════════════════════════
   TENTANG KAMI
══════════════════════════════════════════════════════════════ */
.about-section { padding: 5rem 0; background: #fff; }
.about-grid {
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem;
    align-items: center;
}
.about-img-wrap {
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: 0 8px 40px rgba(74,45,122,.18);
    aspect-ratio: 4/3;
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.sec-label {
    display: inline-block;
    font-size: .72rem; font-weight: 700; letter-spacing: .14em;
    color: var(--purple); background: var(--purple-50);
    padding: .3rem .8rem; border-radius: 20px;
    margin-bottom: .9rem;
}
.sec-title {
    font-size: 1.65rem; font-weight: 700; color: var(--purple-d);
    line-height: 1.3; margin-bottom: 1rem;
}
.about-desc { color: var(--text-muted); line-height: 1.8; margin-bottom: 1.75rem; font-size: .9rem; }

.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.af-item { display: flex; align-items: flex-start; gap: .75rem; }
.af-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--purple-50); color: var(--purple);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0; margin-top: 2px;
}
.af-text strong { display: block; font-size: .85rem; color: var(--text); margin-bottom: .2rem; }
.af-text span { font-size: .78rem; color: var(--text-muted); line-height: 1.5; }


/* ══════════════════════════════════════════════════════════════
   QUICK LINKS
══════════════════════════════════════════════════════════════ */
.quicklink-section {
    padding: 0 0 2.5rem;
    background: #fff;
}
.ql-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.ql-card {
    position: relative;
    background: #fff; border: 1px solid var(--gray-200);
    border-radius: var(--radius); padding: 1.75rem 1.5rem 2.5rem;
    box-shadow: var(--shadow-sm); transition: all .25s;
    display: block;
}
.ql-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.ql-icon {
    width: 50px; height: 50px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 1rem;
}
.ql-icon--purple { background: #ede9fe; color: #6d28d9; }
.ql-icon--green  { background: #d1fae5; color: #059669; }
.ql-icon--orange { background: #ffedd5; color: #ea580c; }
.ql-icon--indigo { background: #e0e7ff; color: #4338ca; }
.ql-card h3 { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: .45rem; }
.ql-card p  { font-size: .8rem; color: var(--text-muted); line-height: 1.6; }
.ql-arrow {
    position: absolute; right: 1.25rem; bottom: 1.25rem;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--purple-50); color: var(--purple);
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; transition: all .2s;
}
.ql-card:hover .ql-arrow { background: var(--purple); color: #fff; }


/* ══════════════════════════════════════════════════════════════
   STATISTIK
══════════════════════════════════════════════════════════════ */
.stats-section {
    background: linear-gradient(110deg, var(--purple-dd) 0%, var(--purple) 60%, var(--purple-l) 100%);
    padding: 2.75rem 0;
}
.stats-title {
    text-align: center; color: rgba(255,255,255,.7);
    font-size: .78rem; font-weight: 600; letter-spacing: .12em;
    text-transform: uppercase; margin-bottom: 2rem;
}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
    text-align: center;
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.stat-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; color: var(--gold-l);
    margin-bottom: .25rem;
}
.stat-item strong {
    font-size: 1.8rem; font-weight: 800; color: #fff;
    line-height: 1;
}
.stat-item span { font-size: .8rem; color: rgba(255,255,255,.7); font-weight: 500; }
.stat-item em {
    font-size: .7rem; color: rgba(255,255,255,.45);
    font-style: normal;
}
.stat-item--total .stat-item strong { color: var(--gold-l); }
.stat-item--total .stat-icon { background: rgba(212,168,67,.25); color: var(--gold-l); }


/* ══════════════════════════════════════════════════════════════
   OPAC SEARCH
══════════════════════════════════════════════════════════════ */
.opac-section { padding: 5rem 0; background: var(--lavender); }
.opac-grid {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem;
    align-items: center;
}

/* CSS illustration */
.opac-ilu {
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
}
.opac-ilu-inner { position: relative; width: 220px; }
.ilu-laptop {
    width: 200px; background: #4338ca; border-radius: 10px 10px 0 0;
    padding: 10px;
}
.ilu-screen {
    background: #e0e7ff; border-radius: 6px; padding: 10px; min-height: 120px;
}
.ilu-screen-bar {
    height: 10px; border-radius: 4px; background: #4338ca; margin-bottom: 8px;
}
.ilu-screen-line {
    height: 7px; border-radius: 3px; background: rgba(67,56,202,.3); margin-bottom: 6px;
}
.ilu-screen-line.short { width: 60%; }
.ilu-keyboard {
    width: 220px; height: 14px; background: #312e81; border-radius: 0 0 8px 8px;
    margin: 0 -10px; box-shadow: 0 6px 16px rgba(0,0,0,.3);
}
.ilu-book {
    position: absolute; border-radius: 4px 6px 6px 4px;
    box-shadow: 2px 2px 8px rgba(0,0,0,.2);
}
.ilu-book--back {
    width: 40px; height: 90px; background: var(--purple);
    right: -20px; bottom: 12px; transform: rotate(8deg);
}
.ilu-book--mid {
    width: 36px; height: 80px; background: var(--gold);
    right: -4px; bottom: 12px; transform: rotate(3deg);
}
.ilu-book--front {
    width: 38px; height: 85px; background: #7c3aed;
    left: -22px; bottom: 12px; transform: rotate(-6deg);
}

/* OPAC form */
.opac-body .sec-title { margin-bottom: .5rem; }
.opac-sub { color: var(--text-muted); margin-bottom: 1.5rem; font-size: .9rem; }
.opac-form {
    display: flex; flex-wrap: wrap; gap: .5rem;
    background: #fff; padding: .5rem; border-radius: var(--radius);
    box-shadow: var(--shadow); margin-bottom: 1.25rem;
}
.opac-form input {
    flex: 1; min-width: 160px; border: none; outline: none;
    padding: .55rem .75rem; font-family: inherit; font-size: .88rem;
    color: var(--text);
}
.opac-form select {
    border: none; outline: none; background: var(--gray-100);
    border-radius: 6px; padding: .55rem .7rem;
    font-family: inherit; font-size: .84rem; color: var(--text);
}
.opac-form button {
    background: var(--purple); color: #fff;
    border-radius: 8px; padding: .55rem 1.25rem;
    font-weight: 600; font-size: .88rem;
    display: flex; align-items: center; gap: 6px;
    transition: background .2s;
}
.opac-form button:hover { background: var(--purple-d); }
.opac-popular { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.pop-label { font-size: .78rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.pop-tag {
    font-size: .76rem; padding: .3rem .75rem;
    border: 1px solid var(--purple-l); border-radius: 20px;
    color: var(--purple); background: #fff;
    transition: all .2s; cursor: pointer;
}
.pop-tag:hover { background: var(--purple); color: #fff; border-color: var(--purple); }


/* ══════════════════════════════════════════════════════════════
   KOLEKSI BUKU TERBARU
══════════════════════════════════════════════════════════════ */
.books-new-section { padding: 4rem 0; background: #fff; }
.sec-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 1.75rem; gap: 1rem;
}
.sec-head__title { font-size: 1.35rem; font-weight: 700; color: var(--text); }
.sec-head__sub { font-size: .82rem; color: var(--text-muted); margin-top: .25rem; }
.sec-head__more {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .82rem; font-weight: 600; color: var(--purple);
    white-space: nowrap; transition: gap .2s;
}
.sec-head__more:hover { gap: 8px; }

/* Swiper wrapper */
.buku-swiper-wrap {
    position: relative;
    padding: 0 36px 2.5rem;   /* ruang untuk nav arrows kiri-kanan */
}
.buku-swiper { overflow: hidden; }  /* PENTING: clip slides agar tidak meluber */
.buku-swiper .swiper-wrapper { align-items: stretch; }
.buku-swiper .swiper-slide {
    display: flex;
    height: auto;
    box-sizing: border-box;
}
.buku-swiper .swiper-slide > .buku-card,
.buku-swiper .swiper-slide > a.buku-card {
    width: 100%;
    flex: 1;
}

/* Swiper nav buttons */
.swiper-nav {
    position: absolute; top: calc(50% - 1.25rem); transform: translateY(-50%);
    z-index: 10;
    width: 36px; height: 36px; border-radius: 50%;
    background: #fff; color: var(--purple);
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; transition: all .2s;
}
.swiper-nav--prev { left: 0; }
.swiper-nav--next { right: 0; }
.swiper-nav:hover { background: var(--purple); color: #fff; }
.swiper-nav.swiper-button-disabled { opacity: .35; pointer-events: none; }

/* Buku card */
.buku-card {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); overflow: hidden;
    border: 1px solid var(--gray-200);
    display: flex; flex-direction: column;
    transition: box-shadow .25s, transform .25s; height: 100%;
    text-decoration: none; color: inherit;
}
.buku-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.buku-card__cover {
    position: relative;
    width: 100%; aspect-ratio: 2/3; overflow: hidden;
    background: var(--purple-50);
    display: flex; align-items: center; justify-content: center;
}
.buku-card__cover img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.buku-badge {
    position: absolute; top: 7px; left: 7px;
    background: var(--gold); color: #fff;
    font-size: .6rem; font-weight: 700; letter-spacing: .08em;
    padding: .18rem .45rem; border-radius: 3px; text-transform: uppercase;
}
.buku-card__body {
    padding: .7rem .8rem; flex: 1; display: flex; flex-direction: column;
    min-height: 4.5rem;
}
.buku-card__title {
    font-size: .78rem; font-weight: 600; color: var(--text);
    line-height: 1.4; margin-bottom: .25rem;
    min-height: calc(1.4em * 2);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.buku-card__meta {
    font-size: .7rem; color: var(--text-muted);
    margin-top: auto;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.buku-card__author { font-size: .7rem; color: var(--text-muted); }

/* Loading placeholder */
.buku-card--loading .buku-card__cover { background: var(--gray-100); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* Pagination */
.buku-pagination {
    position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
    white-space: nowrap;
}
.buku-pagination .swiper-pagination-bullet {
    background: var(--purple-l); opacity: .4;
    width: 7px; height: 7px; margin: 0 3px;
}
.buku-pagination .swiper-pagination-bullet-active {
    opacity: 1; background: var(--purple);
    width: 20px; border-radius: 4px;
}


/* ══════════════════════════════════════════════════════════════
   REKOMENDASI BUKU
══════════════════════════════════════════════════════════════ */
.rek-section { padding: 4rem 0; background: var(--lavender); }
.rek-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}
.rek-card {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); overflow: hidden;
    display: flex; flex-direction: column;
    transition: all .25s;
}
.rek-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rek-card__cover { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--purple-50); }
.rek-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.rek-card__body { padding: .9rem; flex: 1; display: flex; flex-direction: column; }
.rek-card__title {
    font-size: .82rem; font-weight: 600; color: var(--text);
    margin-bottom: .35rem; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rek-card__author { font-size: .74rem; color: var(--text-muted); margin-bottom: .5rem; }
.rek-card__rating { display: flex; align-items: center; gap: 4px; font-size: .75rem; margin-top: auto; }
.rek-card__stars { color: var(--gold); }
.rek-card__count { color: var(--text-muted); font-size: .7rem; }


/* ══════════════════════════════════════════════════════════════
   BERITA & PENGUMUMAN
══════════════════════════════════════════════════════════════ */
.news-section { padding: 4rem 0; background: var(--lavender); }
.news-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }

.news-col {
    background: #fff; border: 1px solid var(--gray-200);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
}
.news-col__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}
.news-col__head h2 { font-size: 1rem; font-weight: 700; color: var(--purple-d); }
.news-list { flex: 1; padding: .5rem 0; }
.news-loading { padding: 1rem 1.5rem; color: var(--text-muted); font-size: .85rem; }

/* News item (berita) */
a.news-item, a.ann-item { text-decoration: none; color: inherit; }
.news-item {
    display: grid; grid-template-columns: 76px 1fr; gap: .75rem;
    padding: .85rem 1.5rem; border-bottom: 1px solid var(--gray-100);
    transition: background .15s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--lavender); }
.news-item__thumb {
    width: 76px; height: 60px; border-radius: var(--radius-sm);
    overflow: hidden; flex-shrink: 0; background: var(--gray-100);
}
.news-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item__body {}
.news-item__meta { display: flex; align-items: center; gap: .4rem; margin-bottom: .3rem; }
.news-badge {
    font-size: .62rem; font-weight: 700; letter-spacing: .06em;
    background: var(--purple); color: #fff;
    padding: .15rem .45rem; border-radius: 3px;
}
.news-badge--ann { background: var(--gold); }
.news-item__date { font-size: .72rem; color: var(--text-muted); }
.news-item__title {
    font-size: .82rem; font-weight: 600; color: var(--text);
    line-height: 1.4; margin-bottom: .2rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-item__excerpt { font-size: .75rem; color: var(--text-muted); line-height: 1.5; }

/* Announcement item */
.ann-item {
    display: flex; align-items: flex-start; gap: .75rem;
    padding: .85rem 1.5rem; border-bottom: 1px solid var(--gray-100);
    transition: background .15s;
}
.ann-item:last-child { border-bottom: none; }
.ann-item:hover { background: var(--lavender); }
.ann-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: #fff5e0; color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem; flex-shrink: 0; border: 1px solid #ffe4a0;
    margin-top: 2px;
}
.ann-body {}
.ann-meta { display: flex; align-items: center; gap: .4rem; margin-bottom: .3rem; }
.ann-date { font-size: .72rem; color: var(--text-muted); }
.ann-title {
    font-size: .82rem; font-weight: 600; color: var(--text);
    line-height: 1.4; margin-bottom: .2rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ann-excerpt { font-size: .75rem; color: var(--text-muted); line-height: 1.5; }

/* Layanan digital & e-resource */
.eresource-section { padding: 4rem 0; background: #fff; }
.eresource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.eresource-card {
    display: flex; align-items: center; gap: .9rem;
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
    padding: 1rem 1.1rem; text-decoration: none; color: inherit;
    box-shadow: var(--shadow-sm);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.eresource-card:hover {
    border-color: var(--purple-l); box-shadow: var(--shadow); transform: translateY(-2px);
}
.eresource-card__icon {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
    background: #f3f4f6; color: var(--purple);
}
.eresource-card__icon img {
    width: 42px; height: 42px; border-radius: 10px;
}
.eresource-card__body {
    flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem;
}
.eresource-card__body strong {
    font-size: .88rem; font-weight: 600; color: var(--purple-d); line-height: 1.35;
}
.eresource-card__body span {
    font-size: .75rem; color: var(--text-muted); line-height: 1.4;
}
.eresource-card__ext {
    font-size: .72rem; color: var(--gray-200); flex-shrink: 0;
    transition: color .2s;
}
.eresource-card:hover .eresource-card__ext { color: var(--purple); }

/* Statistik pengunjung */
.visitor-section {
    padding: 2.5rem 0 3rem;
    background: var(--lavender);
    border-top: 1px solid var(--gray-100);
}
.visitor-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}
.visitor-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    min-height: 140px;
}
.visitor-card__icon {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.visitor-card__icon--blue { background: #dbeafe; color: #2563eb; }
.visitor-card__icon--green { background: #dcfce7; color: #16a34a; }
.visitor-card__icon--orange { background: #ffedd5; color: #ea580c; }
.visitor-card__icon--purple { background: #ede9fe; color: #7c3aed; }
.visitor-card__icon--indigo { background: #e0e7ff; color: #4338ca; }
.visitor-card__icon--teal { background: #ccfbf1; color: #0d9488; }
.visitor-card__label {
    font-size: .72rem; color: var(--text-muted); line-height: 1.35;
}
.visitor-card__value {
    font-size: 1.65rem; font-weight: 700; color: #1e3a5f; line-height: 1.2;
}
.visitor-card__value--date {
    font-size: .95rem; font-weight: 600;
}

.news-col__footer {
    display: block; padding: .9rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    font-size: .8rem; font-weight: 600; color: var(--purple);
    background: var(--gray-50); text-align: center;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    transition: background .15s;
}
.news-col__footer:hover { background: var(--lavender); }


/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.site-footer {
    background: linear-gradient(150deg, var(--purple-dd) 0%, var(--purple-d) 100%);
    color: rgba(255,255,255,.75);
    padding: 3.5rem 0 0;
}
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-logo { height: 60px; width: auto; margin-bottom: .75rem; }
.footer-brand h4 { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: .6rem; line-height: 1.4; }
.footer-brand p { font-size: .8rem; line-height: 1.7; margin-bottom: 1rem; }

.footer-social { display: flex; gap: .5rem; }
.footer-social a {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,.12); color: rgba(255,255,255,.75);
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; transition: all .2s;
}
.footer-social a:hover { background: var(--purple-l); color: #fff; }

.footer-col h5 { font-size: .88rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { font-size: .8rem; color: rgba(255,255,255,.65); transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }

.footer-contact { display: flex; flex-direction: column; gap: .6rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact i { color: var(--gold); font-size: .85rem; margin-top: .15rem; flex-shrink: 0; width: 14px; }
.footer-contact span { font-size: .8rem; line-height: 1.5; }

.footer-col--hours { position: relative; }
.footer-hours p { font-size: .8rem; margin-bottom: .6rem; line-height: 1.6; }
.footer-hours strong { color: #fff; }
.footer-building {
    position: absolute; bottom: 0; right: 0;
    width: 120px; opacity: .4;
}

.footer-bottom {
    padding: 1.25rem 0; text-align: center;
    font-size: .78rem; color: rgba(255,255,255,.45);
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .rek-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    /* Nav collapse */
    .main-nav {
        display: none; flex-direction: column; align-items: stretch;
        position: fixed; top: 68px; left: 0; right: 0;
        background: #fff; box-shadow: var(--shadow);
        padding: 1rem; gap: .25rem; z-index: 998;
    }
    .main-nav.is-open { display: flex; }
    .main-nav .nav-item,
    .main-nav > a { width: 100%; }
    .main-nav > a,
    .main-nav .nav-item > a {
        justify-content: space-between; padding: .7rem 1rem;
        border-radius: 8px; font-size: .9rem;
    }
    .nav-sub {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none;
        background: var(--gray-50); border-radius: 8px;
        display: none;
    }
    .nav-item:hover .nav-sub,
    .nav-item.is-open .nav-sub { display: block; }
    .nav-toggle { display: flex; }

    .brand img[src*="logo-bi-blue"] { display: none; }
    .hdr-actions .btn-masuk { display: none; }

    .hero-swiper,
    .hero-swiper .swiper-slide,
    .hero-slide { min-height: 480px; }
    .hero-slide__inner { padding: 3.5rem 1.5rem 5rem; }
    .hero-h1__top,
    .hero-h1__mid { font-size: 1.75rem; }
    .hero-prev { left: 12px; }
    .hero-next { right: 12px; }

    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .opac-grid { grid-template-columns: 1fr; }
    .opac-ilu { display: none; }

    .ql-grid { grid-template-columns: 1fr 1fr; }
    .news-cols { grid-template-columns: 1fr; }
    .rek-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .visitor-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .hero-h1__mid { font-size: 1.6rem; }
    .ql-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .rek-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-building { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   INTERNAL PAGES
══════════════════════════════════════════════════════════════ */
.main-nav a.nav-active,
.nav-item.has-sub > a.nav-active {
    color: var(--purple);
    background: var(--lavender);
    font-weight: 600;
}

.page-hero {
    background: linear-gradient(135deg, var(--purple-dd) 0%, var(--purple) 55%, var(--purple-l) 100%);
    color: #fff;
    padding: 2.75rem 0 3rem;
}
.page-hero--compact { padding: 2rem 0 2.25rem; }
.page-hero h1 { font-size: 1.85rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.25; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 640px; font-size: .92rem; line-height: 1.7; }

.breadcrumb {
    display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
    font-size: .78rem; margin-bottom: 1rem; color: rgba(255,255,255,.65);
}
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-size: .6rem; opacity: .6; }
.breadcrumb span { color: var(--gold-l); }

.page-main { padding: 3rem 0 4rem; background: #fff; }
.page-main--detail { padding: 2rem 0 3rem; background: var(--gray-50); }

.page-with-sidebar {
    display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; align-items: start;
}
.page-sidebar { position: sticky; top: 84px; }
.side-nav { display: flex; flex-direction: column; gap: .25rem; }
.side-nav__link {
    display: flex; align-items: center; gap: .6rem;
    padding: .65rem .9rem; border-radius: 8px;
    font-size: .85rem; color: var(--text); transition: all .15s;
}
.side-nav__link:hover { background: var(--lavender); color: var(--purple); }
.side-nav__link i { width: 18px; color: var(--purple); }

.side-stat-card {
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
    padding: 1.25rem; box-shadow: var(--shadow-sm); margin-bottom: 1rem;
}
.side-stat-card h4 { font-size: .85rem; color: var(--purple); margin-bottom: 1rem; }
.side-stat-item {
    display: flex; align-items: center; gap: .75rem; padding: .5rem 0;
    border-bottom: 1px solid var(--gray-100);
}
.side-stat-item:last-child { border-bottom: none; }
.side-stat-item i { color: var(--purple-l); font-size: 1.1rem; width: 24px; text-align: center; }
.side-stat-item strong { display: block; font-size: 1.1rem; color: var(--text); line-height: 1.2; }
.side-stat-item span { font-size: .72rem; color: var(--text-muted); }
.side-cta {
    display: flex; align-items: center; gap: .5rem;
    padding: .75rem 1rem; background: var(--purple); color: #fff;
    border-radius: 8px; font-size: .84rem; font-weight: 600;
}
.side-cta:hover { background: var(--purple-d); color: #fff; }

.content-block { margin-bottom: 3rem; }
.content-block--lavender {
    background: var(--lavender); margin-left: -1.5rem; margin-right: -1.5rem;
    padding: 2rem 1.5rem; border-radius: var(--radius);
}
.content-block h2 { font-size: 1.35rem; font-weight: 700; color: var(--purple-d); margin-bottom: .75rem; }
.content-block .lead { color: var(--text-muted); line-height: 1.8; margin-bottom: 1.5rem; }

.highlight-box {
    display: flex; gap: 1rem; align-items: flex-start;
    background: var(--purple-50); border-left: 4px solid var(--purple);
    padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin-bottom: 2rem;
}
.highlight-box i { color: var(--purple); font-size: 1.2rem; margin-top: 2px; }
.highlight-box p { font-size: .88rem; color: var(--text); line-height: 1.7; }

.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
    display: grid; grid-template-columns: 48px 1fr; gap: 1rem;
    padding-bottom: 1.75rem; position: relative;
}
.timeline-item:not(:last-child)::before {
    content: ''; position: absolute; left: 23px; top: 48px; bottom: 0;
    width: 2px; background: var(--gray-200);
}
.timeline-item__dot {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--purple); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem; flex-shrink: 0; z-index: 1;
}
.timeline-item__label {
    font-size: .72rem; font-weight: 700; letter-spacing: .08em;
    color: var(--purple); text-transform: uppercase;
}
.timeline-item h3 { font-size: .95rem; font-weight: 600; margin: .2rem 0 .4rem; }
.timeline-item p { font-size: .85rem; color: var(--text-muted); line-height: 1.7; }

.visi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.25rem; }
.visi-card {
    background: #fff; border-radius: var(--radius); padding: 1.25rem;
    border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
}
.visi-card--main { grid-column: 1 / -1; background: linear-gradient(135deg, var(--purple-dd), var(--purple)); color: #fff; border: none; }
.visi-card--main h3 { color: var(--gold-l); }
.visi-card--main p { color: rgba(255,255,255,.85); }
.visi-card h3 { font-size: .9rem; font-weight: 700; color: var(--purple); margin-bottom: .75rem; }
.visi-card h3 i { margin-right: .4rem; }
.check-list { list-style: none; }
.check-list li {
    display: flex; align-items: flex-start; gap: .5rem;
    font-size: .84rem; color: var(--text-muted); padding: .35rem 0; line-height: 1.6;
}
.check-list li i { color: var(--purple); margin-top: 3px; flex-shrink: 0; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.info-card {
    display: flex; gap: .75rem; align-items: flex-start;
    padding: 1rem; background: #fff; border: 1px solid var(--gray-200);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.info-card__icon {
    width: 36px; height: 36px; border-radius: 8px; background: var(--purple-50);
    color: var(--purple); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-card h3 { font-size: .85rem; font-weight: 600; margin-bottom: .25rem; }
.info-card p { font-size: .8rem; color: var(--text-muted); line-height: 1.6; }

.struktur-wrap img { max-width: 100%; border-radius: var(--radius); margin-bottom: 1rem; box-shadow: var(--shadow); }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.25rem 0; }
.status-card {
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
    padding: 1.25rem; box-shadow: var(--shadow-sm);
}
.status-card h3 { font-size: .82rem; font-weight: 700; color: var(--purple); margin-bottom: .5rem; }
.status-card p { font-size: .82rem; color: var(--text-muted); line-height: 1.7; }

.ringkasan-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
    background: #fff; border-radius: var(--radius); padding: 1.25rem;
    border: 1px solid var(--gray-200); margin-top: 1rem;
}
.ringkasan-bar strong { display: block; font-size: .72rem; color: var(--purple); margin-bottom: .25rem; }
.ringkasan-bar span { font-size: .8rem; color: var(--text-muted); }

.opac-toolbar {
    display: flex; flex-wrap: wrap; gap: .5rem;
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
    padding: .5rem; box-shadow: var(--shadow-sm); margin-bottom: 1.25rem;
}
.opac-toolbar input {
    flex: 1; min-width: 180px; border: none; outline: none;
    padding: .6rem .75rem; font-family: inherit; font-size: .88rem;
}
.opac-toolbar select {
    border: none; background: var(--gray-100); border-radius: 6px;
    padding: .6rem .75rem; font-family: inherit; font-size: .84rem;
}
.opac-toolbar button {
    background: var(--purple); color: #fff; border-radius: 8px;
    padding: .6rem 1.25rem; font-weight: 600; font-size: .88rem;
    display: flex; align-items: center; gap: 6px;
}
.opac-result-info { font-size: .82rem; color: var(--text-muted); margin-bottom: 1rem; }

.opac-results {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.25rem;
}
.opac-card {
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm); transition: all .2s; display: block;
}
.opac-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.opac-card__cover { aspect-ratio: 2/3; overflow: hidden; background: var(--purple-50); }
.opac-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.opac-card__body { padding: .75rem; }
.opac-card__kat {
    font-size: .65rem; font-weight: 600; color: var(--purple);
    background: var(--purple-50); padding: .15rem .4rem; border-radius: 3px;
    display: inline-block; margin-bottom: .35rem;
}
.opac-card h3 {
    font-size: .8rem; font-weight: 600; line-height: 1.4; margin-bottom: .25rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.opac-card p { font-size: .72rem; color: var(--text-muted); }

.opac-pager { display: flex; justify-content: center; gap: .35rem; margin-top: 2rem; flex-wrap: wrap; }
.pager-btn {
    min-width: 36px; height: 36px; border-radius: 8px;
    border: 1px solid var(--gray-200); background: #fff;
    font-size: .84rem; color: var(--text); transition: all .15s;
}
.pager-btn:hover, .pager-btn.is-active { background: var(--purple); color: #fff; border-color: var(--purple); }
.pager-ellipsis {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2rem; padding: 0 .25rem; color: var(--text-muted); font-size: .85rem;
}

.layanan-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.5rem;
}
.layanan-stat {
    background: linear-gradient(135deg, var(--purple-dd), var(--purple));
    color: #fff; border-radius: var(--radius); padding: 1.5rem; text-align: center;
}
.layanan-stat i { font-size: 1.5rem; color: var(--gold-l); margin-bottom: .5rem; }
.layanan-stat strong { display: block; font-size: 1.5rem; font-weight: 800; }
.layanan-stat span { font-size: .78rem; opacity: .8; }

.panduan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1rem; }
.panduan-item {
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
    padding: 1.25rem; box-shadow: var(--shadow-sm);
}
.panduan-item i { font-size: 1.4rem; color: var(--purple); margin-bottom: .75rem; }
.panduan-item h3 { font-size: .88rem; font-weight: 700; margin-bottom: .4rem; }
.panduan-item p { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }

.layanan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.layanan-card {
    background: #fff; border-radius: var(--radius); padding: 1.25rem;
    border: 1px solid rgba(255,255,255,.5); box-shadow: var(--shadow-sm);
}
.layanan-card__icon {
    width: 42px; height: 42px; border-radius: 10px; background: var(--purple-50);
    color: var(--purple); display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; margin-bottom: .75rem;
}
.layanan-card h3 { font-size: .88rem; font-weight: 700; margin-bottom: .4rem; }
.layanan-card p { font-size: .8rem; color: var(--text-muted); line-height: 1.6; }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn-page {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--purple); color: #fff; padding: .65rem 1.25rem;
    border-radius: 8px; font-size: .88rem; font-weight: 600; transition: background .2s;
}
.btn-page:hover { background: var(--purple-d); color: #fff; }
.btn-page--outline { background: #fff; color: var(--purple); border: 2px solid var(--purple); }
.btn-page--outline:hover { background: var(--lavender); }
.btn-page--block { display: flex; justify-content: center; width: 100%; margin-top: 1rem; }

.kontak-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; }
.kontak-card {
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
    padding: 1.75rem; box-shadow: var(--shadow-sm);
}
.kontak-card--main { background: linear-gradient(160deg, var(--purple-dd), var(--purple)); color: #fff; border: none; }
.kontak-card--main h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: .25rem; }
.kontak-induk { font-size: .82rem; opacity: .75; margin-bottom: 1.25rem; }
.kontak-list { list-style: none; }
.kontak-list li {
    display: flex; gap: .75rem; align-items: flex-start;
    padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .88rem;
}
.kontak-card:not(.kontak-card--main) .kontak-list li { border-color: var(--gray-100); color: var(--text); }
.kontak-list i { width: 18px; color: var(--gold-l); margin-top: 2px; }
.kontak-card:not(.kontak-card--main) .kontak-list i { color: var(--purple); }
.kontak-list a { color: inherit; }
.kontak-social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.kontak-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.15); color: #fff;
    display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.kontak-social a:hover { background: rgba(255,255,255,.3); }
.kontak-card h3 { font-size: .95rem; font-weight: 700; color: var(--purple-d); margin-bottom: 1rem; }
.kontak-card h3 i { margin-right: .4rem; color: var(--purple); }
.jam-list p { font-size: .84rem; color: var(--text-muted); margin-bottom: .75rem; line-height: 1.6; }
.jam-list strong { color: var(--text); }
.map-placeholder {
    background: var(--lavender); border-radius: var(--radius); padding: 2rem;
    text-align: center; color: var(--purple); min-height: 140px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
}
.map-placeholder i { font-size: 2rem; opacity: .5; }
.map-placeholder p { font-size: .82rem; color: var(--text-muted); }

.detail-grid { display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: start; }
.detail-cover {
    background: #fff; border-radius: var(--radius); padding: 1rem;
    box-shadow: var(--shadow); border: 1px solid var(--gray-200);
}
.detail-cover img { width: 100%; border-radius: 8px; aspect-ratio: 2/3; object-fit: cover; }
.detail-info .breadcrumb { color: var(--text-muted); margin-bottom: 1.25rem; }
.detail-info .breadcrumb a { color: var(--purple); }
.detail-info .breadcrumb span { color: var(--text); }
.detail-title { font-size: 1.5rem; font-weight: 700; color: var(--purple-d); margin-bottom: .35rem; line-height: 1.3; }
.detail-meta { font-size: .9rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.detail-deskripsi {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    margin-bottom: 1.5rem;
}
.detail-deskripsi h2 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--purple-d);
    margin: 0 0 .5rem;
}
.detail-deskripsi p {
    margin: 0;
    font-size: .88rem;
    line-height: 1.65;
    color: var(--text);
    white-space: pre-wrap;
}
.detail-table { background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-200); overflow: hidden; margin-bottom: 1.5rem; }
.detail-row { display: grid; grid-template-columns: 140px 1fr; border-bottom: 1px solid var(--gray-100); }
.detail-row:last-child { border-bottom: none; }
.detail-row span { padding: .7rem 1rem; font-size: .82rem; color: var(--text-muted); background: var(--gray-50); }
.detail-row strong { padding: .7rem 1rem; font-size: .84rem; font-weight: 500; color: var(--text); }

.page-empty, .page-loading {
    text-align: center; padding: 3rem 1rem; color: var(--text-muted); font-size: .9rem;
}
.page-empty i { font-size: 2.5rem; color: var(--gray-200); display: block; margin-bottom: .75rem; }

.side-nav__link.is-active { background: var(--lavender); color: var(--purple); font-weight: 600; }

/* Berita list page */
.berita-feed { display: flex; flex-direction: column; gap: 1rem; }
.berita-feed-card {
    display: grid; grid-template-columns: 200px 1fr; gap: 1.25rem;
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
    padding: 1rem; text-decoration: none; color: inherit;
    transition: box-shadow .2s, border-color .2s;
}
.berita-feed-card:hover {
    border-color: var(--purple-l); box-shadow: var(--shadow);
}
.berita-feed-card__thumb {
    border-radius: 8px; overflow: hidden; background: var(--gray-100); aspect-ratio: 4/3;
}
.berita-feed-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.berita-feed-card__meta {
    display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem;
    font-size: .75rem; color: var(--text-muted);
}
.berita-feed-card h3 {
    font-size: 1rem; font-weight: 600; color: var(--purple-d);
    margin-bottom: .35rem; line-height: 1.4;
}
.berita-feed-card p { font-size: .84rem; color: var(--text-muted); line-height: 1.6; margin-bottom: .5rem; }
.berita-feed-card__more {
    font-size: .8rem; font-weight: 600; color: var(--purple);
}
.berita-feed-card__more i { font-size: .7rem; margin-left: .2rem; }

/* Pengumuman list page */
.pengumuman-feed { display: flex; flex-direction: column; gap: .75rem; }
.pengumuman-feed-item {
    display: flex; align-items: flex-start; gap: 1rem;
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
    padding: 1.1rem 1.25rem; text-decoration: none; color: inherit;
    transition: box-shadow .2s, border-color .2s;
}
.pengumuman-feed-item:hover {
    border-color: var(--gold); box-shadow: var(--shadow-sm); background: #fffdf8;
}
.pengumuman-feed-item__icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: #fff5e0; color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0; border: 1px solid #ffe4a0;
}
.pengumuman-feed-item__body { flex: 1; min-width: 0; }
.pengumuman-feed-item__meta {
    display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem;
    font-size: .75rem; color: var(--text-muted);
}
.pengumuman-feed-item h3 {
    font-size: .95rem; font-weight: 600; color: var(--text);
    margin-bottom: .25rem; line-height: 1.4;
}
.pengumuman-feed-item p { font-size: .82rem; color: var(--text-muted); line-height: 1.55; }
.pengumuman-feed-item__arrow { color: var(--gray-200); margin-top: .5rem; flex-shrink: 0; }
.pengumuman-feed-item:hover .pengumuman-feed-item__arrow { color: var(--gold); }

/* Post detail */
.post-detail {
    max-width: 800px; margin: 0 auto;
    background: #fff; border-radius: var(--radius);
    border: 1px solid var(--gray-200); padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.post-detail .breadcrumb { color: var(--text-muted); margin-bottom: 1.5rem; font-size: .82rem; }
.post-detail .breadcrumb a { color: var(--purple); }
.post-detail .breadcrumb span { color: var(--text); }
.post-detail__hero {
    border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem;
    max-height: 360px;
}
.post-detail__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-detail__icon {
    width: 56px; height: 56px; border-radius: 12px;
    background: #fff5e0; color: var(--gold); border: 1px solid #ffe4a0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem; margin-bottom: 1rem;
}
.post-detail__meta {
    display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem;
    font-size: .8rem; color: var(--text-muted);
}
.post-detail__title {
    font-size: 1.65rem; font-weight: 700; color: var(--purple-d);
    line-height: 1.3; margin-bottom: 1.25rem;
}
.post-detail__content {
    font-size: .92rem; line-height: 1.8; color: var(--text);
    border-top: 1px solid var(--gray-100); padding-top: 1.25rem;
}
.post-detail__content p { margin-bottom: 1rem; }
.post-detail__content img { max-width: 100%; height: auto; border-radius: 8px; }
.post-detail__content ul, .post-detail__content ol { margin: 0 0 1rem 1.25rem; }
.post-detail__footer { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--gray-100); }

@media (max-width: 900px) {
    .page-with-sidebar { grid-template-columns: 1fr; }
    .page-sidebar { position: static; }
    .side-nav { flex-direction: row; flex-wrap: wrap; }
    .visi-grid, .info-grid, .status-grid, .ringkasan-bar,
    .layanan-stats, .panduan-grid, .layanan-cards, .kontak-grid, .detail-grid,
    .berita-feed-card, .eresource-grid {
        grid-template-columns: 1fr;
    }
    .visitor-grid { grid-template-columns: repeat(2, 1fr); }
    .visi-card--main { grid-column: auto; }
}
