/* ==========================================================================
   Redesign tampilan home (IPT Library) — layout FULL WIDTH
   - Navbar & footer jadi full-bleed (tidak lagi "melayang" dengan sisa kiri/kanan)
   - Hero baru: headline, pencarian, pencarian populer, kartu statistik
   - Section lain di home (kartu 3D, hexagon, koleksi, galeri, berita) tidak
     diubah bentuknya; hanya dilebarkan mengikuti lebar layar.
   Semua kelas memakai prefix .ipt- agar tidak bentrok dengan Tailwind.
   ========================================================================== */

:root {
    --ipt-navy: #143377;
    --ipt-blue: #0e45a1;
    --ipt-orange: #f7931e;
    --ipt-gutter: clamp(16px, 3.4vw, 64px);
    --ipt-max: 1840px;
}

body { background: #f4f7fc; }

/* Lebar konten: ikut layar (maks 1840px) — sebelumnya dikunci 80rem */
.max-w-7xl { max-width: var(--ipt-max); }

.ipt-container {
    width: 100%;
    max-width: var(--ipt-max);
    margin-inline: auto;
    padding-inline: var(--ipt-gutter);
}

/* Home: setiap section diberi gutter yang sama dengan navbar/hero */
.ipt-home > section:not(.ipt-hero),
.ipt-home > div {
    padding-left: var(--ipt-gutter) !important;
    padding-right: var(--ipt-gutter) !important;
}
.ipt-home .ipt-flush { padding-left: 0 !important; padding-right: 0 !important; }

/* ==========================================================================
   NAVBAR — putih, full width
   ========================================================================== */
.ipt-nav {
    background: #fff;
    color: var(--ipt-navy);
    box-shadow: 0 1px 0 rgba(15, 42, 96, .06), 0 8px 26px -14px rgba(15, 42, 96, .25);
}
html.dark .ipt-nav { background: #0f172a; box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }

.ipt-brand-name { color: var(--ipt-navy); font-weight: 800; letter-spacing: -.01em; }
.ipt-brand-sub { color: #64748b; font-weight: 500; }
html.dark .ipt-brand-name { color: #f1f5f9; }
html.dark .ipt-brand-sub { color: #94a3b8; }

.ipt-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: .55rem .7rem;
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    border-radius: 10px;
    white-space: nowrap;
    transition: color .2s, background-color .2s;
}
@media (min-width: 1280px) { .ipt-nav-link { font-size: 14px; padding: .55rem .85rem; } }
.ipt-nav-link:hover,
.ipt-nav-link.is-open { color: var(--ipt-navy); background: #eef3fb; }
.ipt-nav-link.is-active { color: var(--ipt-navy); }
.ipt-nav-link.is-active::after {
    content: '';
    position: absolute;
    left: .85rem; right: .85rem; bottom: -21px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--ipt-blue);
}
html.dark .ipt-nav-link { color: #e2e8f0; }
html.dark .ipt-nav-link:hover,
html.dark .ipt-nav-link.is-open { color: #fff; background: rgba(255, 255, 255, .08); }
html.dark .ipt-nav-link.is-active { color: #7ea9e6; }
html.dark .ipt-nav-link.is-active::after { background: #7ea9e6; }

.ipt-nav-icon {
    color: var(--ipt-navy);
    border-radius: 9999px;
    transition: background-color .2s;
}
.ipt-nav-icon:hover { background: #eef3fb; }
html.dark .ipt-nav-icon { color: #e2e8f0; }
html.dark .ipt-nav-icon:hover { background: rgba(255, 255, 255, .08); }

.ipt-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.15rem;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 9999px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background-color .2s, color .2s;
    text-decoration: none;
}
.ipt-btn:hover { transform: translateY(-1px); }
.ipt-nav a.ipt-btn-login[href*="perpus"],
.ipt-nav a.ipt-btn-login[href*="perpus"] * {
    background-color: #fff !important;
    color: var(--ipt-navy) !important;
    border-color: var(--ipt-navy) !important;
}
.ipt-nav a.ipt-btn-login[href*="perpus"] { border: 1.5px solid var(--ipt-navy) !important; }
.ipt-nav a.ipt-btn-login[href*="perpus"]:hover { background-color: #eef3fb !important; }
.ipt-nav a.ipt-btn-daftar[href*="perpus"],
.ipt-nav a.ipt-btn-daftar[href*="perpus"] * {
    background-color: transparent !important;
    color: #fff !important;
    border-color: transparent !important;
}
.ipt-nav a.ipt-btn-daftar[href*="perpus"] {
    background: linear-gradient(135deg, #f9a43a 0%, #f7931e 100%) !important;
    box-shadow: 0 6px 16px -6px rgba(247, 147, 30, .7) !important;
}
.ipt-nav a.ipt-btn-daftar[href*="perpus"]:hover { filter: brightness(1.06); }
html.dark .ipt-nav a.ipt-btn-login[href*="perpus"],
html.dark .ipt-nav a.ipt-btn-login[href*="perpus"] * {
    background-color: transparent !important;
    color: #e2e8f0 !important;
    border-color: #64748b !important;
}
html.dark .ipt-nav a.ipt-btn-login[href*="perpus"] { border: 1.5px solid #64748b !important; }

/* Dropdown menu mobile menempel penuh di bawah navbar */
.ipt-mobile-menu { margin-top: 0 !important; border-radius: 0 0 18px 18px !important; }

/* ==========================================================================
   HERO
   ========================================================================== */
.ipt-hero {
    position: relative;
    z-index: 30;
    color: #fff;
    background: linear-gradient(105deg, #0a2b66 0%, #0e45a1 50%, #2477de 100%);
    padding: clamp(44px, 5vw, 84px) 0 clamp(64px, 6.4vw, 108px);
    /* tinggi minimal = rasio banner (2159x728 ≈ 33.7vw) supaya gambar tampil utuh, tidak terpotong */
    min-height: max(440px, 33.8vw);
    display: flex;
    align-items: center;
}
.ipt-hero-deco {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.ipt-hero-deco::before {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        radial-gradient(60% 80% at 82% 18%, rgba(125, 190, 255, .38) 0%, rgba(125, 190, 255, 0) 62%),
        radial-gradient(40% 55% at 6% 100%, rgba(10, 43, 102, .7) 0%, rgba(10, 43, 102, 0) 70%);
}
.ipt-hero-deco::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
}
/* Banner sebagai latar belakang hero (slideshow, ganti otomatis) */
.ipt-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: right center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.1s ease, transform 7s ease-out;
}
.ipt-hero-slide.is-active { opacity: 1; transform: scale(1); }
/* Overlay biru: kiri pekat supaya teks terbaca, kanan lebih transparan supaya banner terlihat */
.ipt-hero.has-slides .ipt-hero-deco::before {
    background:
        linear-gradient(90deg, rgba(8, 32, 84, .98) 0%, rgba(10, 43, 102, .94) 42%, rgba(14, 69, 161, .6) 72%, rgba(14, 69, 161, .35) 100%),
        linear-gradient(0deg, rgba(8, 32, 84, .55) 0%, rgba(8, 32, 84, 0) 45%);
}
.ipt-hero.has-slides .ipt-hero-deco::after { opacity: .55; }
.ipt-hero-dots {
    position: absolute;
    left: 0; right: 0; bottom: 1.4rem;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: .5rem;
}
.ipt-hero-dots button {
    width: .6rem; height: .6rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: width .3s, background-color .3s;
}
.ipt-hero-dots button:hover { background: rgba(255, 255, 255, .8); }
.ipt-hero-dots button.is-active { width: 1.8rem; background: #fff; }
.ipt-hero-ring {
    position: absolute;
    z-index: 1;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, .14);
}

.ipt-hero > .ipt-container { position: relative; z-index: 2; }
.ipt-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: clamp(24px, 4vw, 72px);
    align-items: center;
}
@media (max-width: 1023px) { .ipt-hero-inner { grid-template-columns: minmax(0, 1fr); } }

.ipt-eyebrow {
    font-size: clamp(11px, .9vw, 13px);
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #cfe0ff;
}
.ipt-hero h1 {
    margin: .55rem 0 0;
    font-size: clamp(2.3rem, 4.6vw, 4rem);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
}
.ipt-hero h1 span { display: block; color: #f7a21b; }
.ipt-hero-lead {
    margin-top: 1.25rem;
    max-width: 38rem;
    font-size: clamp(.95rem, 1.1vw, 1.1rem);
    line-height: 1.55;
    color: #e6efff;
}

/* Jarak pencarian dari teks di atasnya */
.ipt-search-wrap { margin-top: clamp(1.75rem, 2.6vw, 2.5rem); }

/* Search pill */
.ipt-search {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 9999px;
    box-shadow: 0 18px 40px -16px rgba(3, 10, 30, .55);
    max-width: 52rem;
    transition: box-shadow .25s;
}
.ipt-search:focus-within { box-shadow: 0 0 0 4px rgba(247, 147, 30, .35), 0 18px 40px -16px rgba(3, 10, 30, .55); }
.ipt-search input#hero-search-input {
    background: transparent !important;
    color: #1e293b !important;
    height: 3.5rem;
    font-size: 15px;
}
.ipt-search #dropdown-trigger,
.ipt-search #dropdown-label { color: #334155 !important; }
.ipt-search .fa-search, .ipt-search .fa-chevron-down { color: #94a3b8; }
.ipt-search .ipt-search-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: .4rem;
    padding: 0 clamp(1.1rem, 2.2vw, 2rem);
    height: 2.7rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #f9a43a 0%, #f7931e 100%);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.ipt-search .ipt-search-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -6px rgba(247, 147, 30, .8); }
.ipt-search .search-divider { background: #e2e8f0; }

.ipt-chips { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ipt-chips > b { font-size: 13px; font-weight: 700; color: #fff; margin-right: .25rem; }
.ipt-chip {
    padding: .28rem .85rem;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 9999px;
    background: rgba(255, 255, 255, .06);
    text-decoration: none;
    transition: background-color .2s, border-color .2s;
}
.ipt-chip:hover { background: rgba(255, 255, 255, .2); border-color: #fff; }

/* Kartu statistik (kaca buram) */
.ipt-stats {
    justify-self: start;
    width: 100%;
    max-width: 19rem;
    padding: 1.4rem 1.5rem;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    -webkit-backdrop-filter: blur(14px);
            backdrop-filter: blur(14px);
    box-shadow: 0 24px 50px -24px rgba(3, 10, 30, .6);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.ipt-stat { display: flex; align-items: center; gap: .9rem; }
.ipt-stat-icon {
    flex: none;
    width: 2.75rem; height: 2.75rem;
    display: grid; place-items: center;
    border-radius: .9rem;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 1.15rem;
}
.ipt-stat strong { display: block; font-size: 1.7rem; line-height: 1; font-weight: 800; color: #fff; }
.ipt-stat span { display: block; margin-top: .2rem; font-size: 12px; font-weight: 500; color: #dbe8ff; }

/* ==========================================================================
   Info band: Dukungan Riset + Jam Layanan
   ========================================================================== */
.ipt-info {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1.5rem;
}
@media (max-width: 899px) { .ipt-info { grid-template-columns: minmax(0, 1fr); } }

.ipt-panel {
    background: #fff;
    border: 1px solid #e8edf6;
    border-radius: 1.5rem;
    padding: clamp(1.2rem, 2vw, 1.75rem);
    box-shadow: 0 10px 30px -20px rgba(15, 42, 96, .35);
}
html.dark .ipt-panel { background: #1e293b; border-color: #334155; }
.ipt-panel-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.1rem; }
.ipt-panel-head h3 { margin: 0; font-size: 1.25rem; font-weight: 800; color: #0f2860; display: flex; align-items: center; gap: .55rem; }
html.dark .ipt-panel-head h3 { color: #f1f5f9; }

.ipt-support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 639px) { .ipt-support-grid { grid-template-columns: minmax(0, 1fr); } }
.ipt-support {
    display: flex; align-items: center; gap: .85rem;
    padding: .85rem 1rem;
    border-radius: 1rem;
    background: #f3f7ff;
    border: 1px solid #e3ebfa;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ipt-support:hover { transform: translateY(-2px); border-color: #b9cdf2; box-shadow: 0 10px 22px -14px rgba(14, 69, 161, .5); }
.ipt-support-icon {
    flex: none; width: 2.5rem; height: 2.5rem;
    display: grid; place-items: center;
    border-radius: .8rem;
    background: #fff; color: var(--ipt-blue);
    box-shadow: 0 4px 10px -6px rgba(14, 69, 161, .5);
}
.ipt-support b { display: block; font-size: 14px; font-weight: 700; color: #1e293b; }
.ipt-support small { display: block; margin-top: .1rem; font-size: 12px; color: #64748b; }
html.dark .ipt-support { background: #0f172a; border-color: #334155; }
html.dark .ipt-support-icon { background: #1e293b; color: #7ea9e6; }
html.dark .ipt-support b { color: #f1f5f9; }
html.dark .ipt-support small { color: #94a3b8; }

.ipt-hours { display: flex; flex-direction: column; gap: .7rem; }
.ipt-hour {
    display: flex; align-items: center; gap: .85rem;
    padding: .8rem 1rem;
    border-radius: 1rem;
    background: #fff4e4;
    color: #7a4a06;
}
.ipt-hour.is-open { background: #f3f7ff; color: #0f2860; }
.ipt-hour i { font-size: 1.35rem; color: var(--ipt-orange); }
.ipt-hour.is-open i { color: var(--ipt-blue); }
.ipt-hour b { display: block; font-size: 14px; font-weight: 700; }
.ipt-hour small { display: block; font-size: 12.5px; opacity: .85; }
html.dark .ipt-hour { background: rgba(247, 147, 30, .12); color: #fcd9a4; }
html.dark .ipt-hour.is-open { background: #0f172a; color: #cfe0ff; }

.ipt-actions { margin-top: .9rem; display: flex; flex-direction: column; gap: .55rem; }
.ipt-action {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    padding: .75rem 1rem;
    border-radius: .9rem;
    font-size: 13.5px; font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: transform .2s, filter .2s;
}
.ipt-action:hover { transform: translateY(-1px); filter: brightness(1.07); }
.ipt-action.is-navy { background: #143377; }
.ipt-action.is-blue { background: #2f6fe0; }
.ipt-action.is-wa { background: #25d366; }

/* ==========================================================================
   FOOTER — full width
   ========================================================================== */
.ipt-footer {
    margin-top: 3rem;
    color: #fff;
    background: linear-gradient(135deg, #0a2b66 0%, #0e45a1 55%, #2f6fd0 100%);
}
.ipt-footer-inner { padding-block: clamp(2.2rem, 4vw, 3.5rem); }

/* ==========================================================================
   Dark mode: hero tetap sama (override global dark-mode-overrides.css
   menggelapkan kotak putih & menimpa warna aksen)
   ========================================================================== */
html.dark .ipt-hero h1 { color: #fff !important; }
html.dark.dark main section.ipt-hero.ipt-hero h1 span { color: #f7a21b !important; }
html.dark.dark .ipt-search.ipt-search .ipt-search-btn.ipt-search-btn,
html.dark.dark .ipt-search.ipt-search .ipt-search-btn.ipt-search-btn span,
html.dark.dark .ipt-search.ipt-search .ipt-search-btn.ipt-search-btn i {
    color: #fff !important;
}
html.dark .ipt-search .ipt-search-btn { background: linear-gradient(135deg, #f9a43a 0%, #f7931e 100%) !important; }
html.dark .ipt-action { color: #fff !important; }
html.dark .ipt-action.is-navy { background: #143377 !important; }
html.dark .ipt-action.is-blue { background: #2f6fe0 !important; }
html.dark .ipt-action.is-wa { background: #25d366 !important; }

/* ==========================================================================
   Koleksi Terpopuler — lebih lega
   ========================================================================== */
.ipt-home .koleksi-buku-section > .max-w-7xl { padding: clamp(1.5rem, 3.2vw, 3rem); }
.ipt-book { max-width: 205px; }

/* ==========================================================================
   Band biru (Menu Akses Cepat, E-Resource, Mitra): full-bleed, tanpa sudut membulat
   ========================================================================== */
.ipt-home > section.ipt-fullband {
    margin-top: 1.5rem;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: linear-gradient(135deg, #0a2b66 0%, #124191 100%);
}
.ipt-home > section.ipt-fullband > .max-w-7xl {
    max-width: var(--ipt-max);
    padding: clamp(2rem, 3.4vw, 3.5rem) var(--ipt-gutter);
    border-radius: 0;
    box-shadow: none;
    border: 0;
    background: transparent;
}

/* ==========================================================================
   Koleksi Terpopuler: full-bleed, tanpa sudut membulat
   (warna dark mode diatur di dark-mode-overrides.css lewat .koleksi-buku-section)
   ========================================================================== */
.ipt-home > .koleksi-buku-section {
    margin-top: 1.5rem;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: #fff;
}
.ipt-home > .koleksi-buku-section > .max-w-7xl {
    max-width: var(--ipt-max);
    padding: clamp(2rem, 3.4vw, 3.5rem) var(--ipt-gutter);
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: transparent !important;
}

/* Layar 1024–1499px: kartu statistik dikecilkan & diturunkan ke bawah supaya
   tidak menutupi wajah/papan nama pada foto banner */
@media (min-width: 1024px) and (max-width: 1499px) {
    .ipt-hero-inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
    .ipt-stats {
        align-self: end;
        max-width: 15.5rem;
        padding: 1rem 1.1rem;
        gap: .8rem;
    }
    .ipt-stat strong { font-size: 1.35rem; }
    .ipt-stat-icon { width: 2.3rem; height: 2.3rem; font-size: 1rem; }
}

/* ==========================================================================
   Beranda ala dashboard: kartu di kiri (Menu Akses Cepat, E-Resource, Mitra)
   dan kolom kanan (Tourism Knowledge Hub, Berita & Kegiatan, slogan)
   ========================================================================== */
.ipt-home > section.ipt-dash { margin-top: 1.5rem; padding-top: 0; padding-bottom: 0; }
.ipt-home > section.ipt-dash { padding-left: clamp(12px, 1.6vw, 32px) !important; padding-right: clamp(12px, 1.6vw, 32px) !important; }
.ipt-dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(300px, 24vw, 400px);
    gap: 1.25rem;
    align-items: stretch;
    max-width: none;
}
.ipt-dash-main, .ipt-dash-side { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }

.ipt-card {
    background: #fff;
    border: 1px solid #e3eaf6;
    border-radius: 22px;
    padding: 1.25rem 1.35rem 1.4rem;
    box-shadow: 0 10px 30px -14px rgba(15, 42, 96, .2);
}
.ipt-card-head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.05rem; }
.ipt-card-head h2, .ipt-card-head h3 { margin: 0; font-size: 1.02rem; font-weight: 800; color: #0f2860; line-height: 1.25; }
.ipt-card-ico {
    flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center; font-size: .95rem;
}
.ipt-card-ico.is-orange { background: #fff1e0; color: #f7931e; }
.ipt-card-ico.is-amber { background: #fff4e0; color: #e8890c; }
.ipt-card-ico.is-glass { background: rgba(255, 255, 255, .14); color: #fff; }
.ipt-card-link {
    margin-left: auto; background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap;
    font-size: .78rem; font-weight: 700; color: #1d4ed8; display: inline-flex; align-items: center; gap: .35rem;
}
.ipt-card-link i { font-size: .65rem; transition: transform .2s; }
.ipt-card-link:hover i { transform: translateX(3px); }

/* --- Menu Akses Cepat: 6 kolom --- */
.ipt-quick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
.ipt-tile {
    display: flex; align-items: center; gap: .5rem; text-align: left; cursor: pointer;
    padding: .7rem .6rem; min-height: 4.4rem;
    background: linear-gradient(145deg, #f6f9ff 0%, #eaf1ff 100%);
    border: 1px solid #dce7fb; border-radius: 14px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ipt-tile:hover { transform: translateY(-3px); border-color: #b8cdf5; box-shadow: 0 10px 22px -12px rgba(14, 69, 161, .45); }
.ipt-tile-img { flex: 0 0 auto; width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center; color: #0e45a1; }
.ipt-tile-img img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(14, 69, 161, .25)); }
.ipt-tile-name {
    font-size: .66rem; font-weight: 800; line-height: 1.32; letter-spacing: -.005em; color: #10234f; overflow-wrap: normal; word-break: normal; hyphens: none; min-width: 0; text-wrap: balance;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

/* --- E-Resource: logo di atas, nama di bawah --- */
.ipt-eres { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .7rem; }
.ipt-eres-item {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .45rem; cursor: pointer;
    padding: .75rem .4rem .7rem; background: #fff; border: 1px solid #e3eaf6; border-radius: 14px;
    box-shadow: 0 4px 12px -8px rgba(15, 42, 96, .35);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ipt-eres-item:hover { transform: translateY(-3px); border-color: #b8cdf5; box-shadow: 0 12px 24px -12px rgba(14, 69, 161, .4); }
.ipt-eres-img { height: 2.7rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #0e45a1; }
.ipt-eres-img img { max-width: 3.4rem; max-height: 2.7rem; object-fit: contain; }
.ipt-eres-name { font-size: .64rem; font-weight: 800; line-height: 1.3; letter-spacing: -.005em; color: #10234f; text-align: center; overflow-wrap: normal; word-break: normal; hyphens: none; text-wrap: balance; }

/* --- Pita Jaringan Kerjasama + slogan ---
   Latar = gambar transparan (lekukan + foto gedung) yang dipasang di pita itu sendiri, selebar layar, dengan bagian
   transparannya naik menimpa baris kartu sehingga kartu "mengambang" di atas lekukan. Isi pita selalu dimulai di
   bawah lekukan, berapa pun tinggi isinya. Rasio gambar 2170x725 → tinggi = lebar / 2.993; lekukan kiri ≈ 33.5% tinggi. */
.ipt-home > section.ipt-dash {
    --band-bg-h: calc(100vw / 2.993);
    --band-wave: calc(var(--band-bg-h) * .335);
    --band-drop: calc(var(--band-bg-h) * -.02 - 2px); /* pita dinaikkan: lekukan lebih dekat ke kartu E-Resource; 3 berita di kartu kanan tetap di atas lekukan */
    overflow-x: clip;
}
.ipt-dash-main, .ipt-dash-side { position: relative; z-index: 1; }
/* Pita di LAPISAN ATAS: bagian transparan gambar memperlihatkan kartu di belakangnya, lekukan biru menimpa bagian bawah kartu.
   Pita tidak menangkap klik (kartu di belakangnya tetap bisa diklik); hanya isinya yang menerima klik. */
.ipt-dash-grid > .ipt-band { z-index: 3; pointer-events: none; }
.ipt-band > * { pointer-events: auto; }
.ipt-dash-grid > .ipt-band { grid-column: 1 / -1; }
.ipt-band {
    position: relative; color: #fff;
    display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 22vw, 340px); gap: 1.5rem; align-items: end;
    margin: calc(-1 * var(--band-wave) - 10px + var(--band-drop)) calc(50% - 50vw) 0;
    padding: calc(var(--band-wave) + 2.4rem) calc(50vw - 50%) 2.4rem;
    min-height: calc(var(--band-bg-h) * .8);
    background:
        var(--band-img, url('../images/jaringan-bg.webp')) center top / 100% auto no-repeat,
        linear-gradient(90deg, #013a7e 0%, #013a7e 40%, #013f85 60%, #02428d 90%, #02408a 100%) 0 calc(var(--band-bg-h) - 3px) / 100% 100% no-repeat;
}
.ipt-band-partners { min-width: 0; }

.ipt-card-head.is-dark h2 { color: #fff; }
.ipt-hexrow { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem .3rem; }
/* Heksagon bersudut membulat: bentuk = mask SVG (rasio tetap 120:112, jadi tidak terdistorsi); bayangan lembut lewat drop-shadow di tombolnya */
.ipt-hex {
    --hex-w: clamp(80px, 10.3%, 124px);
    --hex-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20120%20150%27%3E%3Cpath%20d%3D%27M48.87%2C9.72Q60%2C3%2071.13%2C9.72L101.87%2C28.28Q113%2C35%20113%2C48L113%2C102Q113%2C115%20101.87%2C121.72L71.13%2C140.28Q60%2C147%2048.87%2C140.28L18.13%2C121.72Q7%2C115%207%2C102L7%2C48Q7%2C35%2018.13%2C28.28Z%27%2F%3E%3C%2Fsvg%3E");
    width: var(--hex-w); aspect-ratio: 120 / 150; padding: 0; border: 0; cursor: pointer; position: relative; background: none;
    filter: drop-shadow(0 7px 9px rgba(2, 14, 48, .38));
    transition: transform .25s, filter .25s;
}
.ipt-hex::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg, #ffffff 0%, #e4eeff 100%);
    -webkit-mask: var(--hex-mask) center / 100% 100% no-repeat;
    mask: var(--hex-mask) center / 100% 100% no-repeat;
}
.ipt-hex:hover { transform: translateY(-5px) scale(1.05); filter: drop-shadow(0 12px 14px rgba(2, 14, 48, .5)); }
.ipt-hex-in {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .3rem; padding: 19% 8% 17%; text-align: center;
}
.ipt-hex-in img { width: 40%; max-height: 30%; object-fit: contain; flex: 0 0 auto; }
.ipt-hex-in i { font-size: 1.5rem; color: #0e45a1; }
.ipt-hex-in b {
    font-size: .62rem; line-height: 1.15; font-weight: 800; color: #10234f; overflow-wrap: break-word; min-width: 0; max-width: 100%;
}
/* --- Kolom kanan --- */
.ipt-hub {
    position: relative; overflow: hidden; isolation: isolate; color: #fff;
    border-radius: 22px; padding: 1.4rem 1.35rem 1.5rem; min-height: 11rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    background: linear-gradient(120deg, #0a2b66 0%, #1b57b8 100%);
    box-shadow: 0 14px 34px -16px rgba(10, 43, 102, .7);
}
.ipt-hub::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--hub-img, url('../images/hub-bg.webp')) center right / cover no-repeat;
}
.ipt-hub::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(8, 36, 90, .92) 0%, rgba(8, 36, 90, .62) 48%, rgba(8, 36, 90, .05) 100%);
}
.ipt-hub h3 { margin: 0 0 .35rem; max-width: 80%; font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.ipt-hub p { margin: 0 0 .9rem; font-size: .78rem; line-height: 1.5; color: rgba(255, 255, 255, .92); max-width: min(15rem, 62%); text-shadow: 0 1px 8px rgba(0, 20, 60, .6); }
.ipt-hub-btn {
    display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; text-decoration: none;
    background: #f7931e; color: #fff; border: 0; border-radius: 999px; padding: .5rem 1rem;
    font-size: .76rem; font-weight: 800; box-shadow: 0 8px 18px -8px rgba(247, 147, 30, .9);
    transition: transform .2s, background .2s;
}
.ipt-hub-btn:hover { background: #e8820c; transform: translateY(-2px); }
.ipt-hub-btn i { font-size: .65rem; }

.ipt-news-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.ipt-news-item {
    display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit;
    padding: .35rem; border-radius: 12px; transition: background .2s;
}
.ipt-news-item:hover { background: #f1f6ff; }
.ipt-news-thumb { flex: 0 0 auto; width: 4.2rem; height: 3.1rem; border-radius: 9px; overflow: hidden; background: #e9eef8; }
.ipt-news-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.ipt-news-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.ipt-news-text small { font-size: .68rem; color: #64748b; }
.ipt-news-text strong {
    font-size: .8rem; line-height: 1.28; font-weight: 800; color: #10234f;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ipt-news-item > i { flex: 0 0 auto; font-size: .7rem; color: #1d4ed8; }

.ipt-quote {
    margin: 0; position: relative; color: #fff; padding: 0 0 .2rem 2.6rem; align-self: end;
}
.ipt-quote i { position: absolute; left: 0; top: .1rem; font-size: 1.6rem; color: #f7931e; opacity: .95; }
.ipt-quote p { margin: 0; font-size: 1.15rem; font-weight: 800; line-height: 1.35; font-style: italic; }

/* --- Kartu Berita menyambung ke pita biru (hanya saat latar lengkung dipakai, >= 1280px) ---
   Kolom kanan diperpanjang ke bawah sampai kartu Berita menyentuh ujung kanan lekukan (≈ 12% tinggi gambar latar). */
.ipt-news { display: flex; flex-direction: column; flex: 1 1 auto; }
.ipt-news-list { flex: 1 1 auto; justify-content: space-between; }
@media (min-width: 1280px) {
    /* kartu Berita turun ke belakang pita: bagian bawahnya tertutup lekukan biru */
    .ipt-dash-side { margin-bottom: calc(-1 * (var(--band-bg-h) * .12 + 48px + var(--band-drop))); }
    /* Daftar tidak diregangkan; ruang tambahan ada di bawahnya (tersembunyi di balik pita) */
    .ipt-news-list { flex: 0 0 auto; justify-content: flex-start; }
    .ipt-news { padding-bottom: 5rem; }
    /* kartu terakhir di kolom kiri ikut memanjang supaya rapat dengan lekukan (tidak ada celah) */
    .ipt-dash-main > .ipt-card:last-child { flex: 1 1 auto; display: flex; flex-direction: column; }
    .ipt-dash-main > .ipt-card:last-child .ipt-eres { flex: 1 1 auto; align-content: center; }
}
/* Slogan: tanda kutip penutup + garis oranye di bawahnya */
.ipt-quote p { position: relative; padding-bottom: .55rem; }
.ipt-quote p::after { content: ""; position: absolute; left: 0; bottom: 0; width: 2rem; height: 3px; border-radius: 3px; background: #f7931e; }
.ipt-quote-end { position: static !important; font-size: .9rem !important; margin-left: .2rem; color: #f7931e; opacity: .7 !important; }
/* --- Responsif --- */
@media (max-width: 1439px) {
    .ipt-quick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ipt-eres { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1279px) {
    .ipt-band {
        margin: 0; min-height: 0; padding: 1.3rem 1.4rem 1.6rem; align-items: center;
        border-radius: 22px;
        background: linear-gradient(135deg, #0a2b66 0%, #124191 100%);
        box-shadow: 0 14px 34px -16px rgba(10, 43, 102, .7);
    }
}
@media (max-width: 1023px) {
    .ipt-dash-grid { grid-template-columns: minmax(0, 1fr); }
    .ipt-band { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .ipt-hex { --hex-w: clamp(80px, 17%, 110px); }
}
@media (max-width: 639px) {
    .ipt-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ipt-eres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ipt-card { padding: 1rem; }
    .ipt-card-head { flex-wrap: wrap; }
    /* Ponsel: heksagon BERATURAN (proporsi 104:120, tidak melebar/gepeng) dan lebih besar; bentuk desktop tetap memanjang */
    .ipt-hexrow { gap: .7rem .5rem; }
    .ipt-hex { --hex-w: clamp(98px, 31%, 128px); --hex-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20104%20120%27%3E%3Cpath%20d%3D%27M44.22%2C7.52Q52%2C3%2059.78%2C7.52L93.22%2C26.98Q101%2C31.5%20101%2C40.5L101%2C79.5Q101%2C88.5%2093.22%2C93.02L59.78%2C112.48Q52%2C117%2044.22%2C112.48L10.78%2C93.02Q3%2C88.5%203%2C79.5L3%2C40.5Q3%2C31.5%2010.78%2C26.98Z%27%2F%3E%3C%2Fsvg%3E"); aspect-ratio: 104 / 120; }
    .ipt-hex-in { padding: 14% 11% 12%; gap: .2rem; }
    .ipt-hex-in img { width: 34%; max-height: 28%; }
    .ipt-hex-in b { font-size: .54rem; line-height: 1.14; overflow-wrap: normal; }
}

/* --- Mode gelap --- */
html.dark .ipt-card { background: #1e293b; border-color: #334155; box-shadow: none; }
html.dark .ipt-card-head h2, html.dark .ipt-card-head h3 { color: #f1f5f9; }
html.dark .ipt-card-link { color: #7ea9e6; }
html.dark .ipt-tile { background: linear-gradient(145deg, #243247 0%, #1f2b3d 100%); border-color: #334155; }
html.dark .ipt-tile-name, html.dark .ipt-eres-name, html.dark .ipt-news-text strong { color: #f1f5f9; }
html.dark .ipt-tile-img, html.dark .ipt-eres-img { color: #7ea9e6; }
html.dark .ipt-eres-item { background: #243247; border-color: #334155; box-shadow: none; }
html.dark .ipt-news-item:hover { background: #243247; }
html.dark .ipt-news-text small { color: #94a3b8; }
html.dark .ipt-news-thumb { background: #334155; }

/* ==========================================================================
   Jendela detail layanan: animasi halus (masuk DAN keluar)
   - latar: gelap + blur yang naik/turun bertahap (radius blur & warna dianimasikan, bukan sekadar opacity,
     sehingga blur tidak "mendadak hilang" saat menutup)
   - panel: naik/turun + skala kecil, hanya transform/opacity
   ========================================================================== */
.ipt-fade-enter { transition: opacity .3s cubic-bezier(.22, 1, .36, 1); }
.ipt-fade-leave { transition: opacity .3s cubic-bezier(.4, 0, .2, 1); }
.ipt-modal-backdrop {
    background-color: rgba(2, 10, 32, .72);
    -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
    transition: background-color .3s ease, -webkit-backdrop-filter .3s ease, backdrop-filter .3s ease;
    transform: translateZ(0);
}
.ipt-modal-off .ipt-modal-backdrop {
    background-color: rgba(2, 10, 32, 0);
    -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
}
.ipt-modal-panel {
    animation: iptModalIn .36s cubic-bezier(.16, 1, .3, 1) backwards;
    transition: transform .28s cubic-bezier(.4, 0, .2, 1), opacity .28s cubic-bezier(.4, 0, .2, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
}
.ipt-modal-off .ipt-modal-panel { opacity: 0; transform: translate3d(0, 14px, 0) scale(.97); }
@keyframes iptModalIn {
    from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.96); }
    to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .ipt-modal-panel { animation: none; transition: none; }
    .ipt-fade-enter, .ipt-fade-leave, .ipt-modal-backdrop { transition: none; }
}

/* ==========================================================================
   Koleksi Unggulan (carousel) + Dukungan Riset + Jam Layanan dalam satu baris
   ========================================================================== */
.ipt-home > section.ipt-kol { margin-top: 1.5rem; padding-left: clamp(12px, 1.6vw, 32px) !important; padding-right: clamp(12px, 1.6vw, 32px) !important; padding-bottom: 2.5rem; }
.ipt-kol-grid {
    display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, .85fr) minmax(0, .8fr); gap: 1.25rem; align-items: stretch;
}
.ipt-kol-main {
    min-width: 0; background: #fff; border: 1px solid #e3eaf6; border-radius: 22px; padding: 1.25rem 1.35rem 1.4rem;
    box-shadow: 0 10px 30px -14px rgba(15, 42, 96, .2);
    /* Tinggi kartu mengikuti panel di sebelahnya: carousel diletakkan di tengah sisa ruang, bukan menempel di atas */
    display: flex; flex-direction: column;
}
.ipt-kol-title { min-width: 0; }
.ipt-kol-title h2 { margin: 0; font-size: 1.02rem; font-weight: 800; color: #0f2860; line-height: 1.25; }
.ipt-kol-title small { display: block; font-size: .7rem; color: #64748b; margin-top: .1rem; }
.ipt-kol-side { margin: 0; min-width: 0; }
.ipt-kol-side .ipt-panel-head h3 { font-size: 1.02rem; }
.ipt-kol-side .ipt-card-link { font-size: .74rem; }
.ipt-support-list { display: flex; flex-direction: column; gap: .65rem; }

.ipt-kol-carousel { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.ipt-kol-track {
    display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: .25rem .15rem .6rem; scrollbar-width: none; -ms-overflow-style: none;
}
.ipt-kol-track::-webkit-scrollbar { display: none; }
.ipt-kol-book {
    flex: 0 0 calc((100% - 3rem) / 4); min-width: 7.5rem; scroll-snap-align: start; text-decoration: none; color: inherit;
    display: flex; flex-direction: column; gap: .3rem;
}
.ipt-kol-cover {
    position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #eef3fb, #dde7f6);
    box-shadow: 0 10px 22px -12px rgba(15, 42, 96, .5); transition: transform .25s, box-shadow .25s;
}
.ipt-kol-book:hover .ipt-kol-cover { transform: translateY(-4px); box-shadow: 0 18px 30px -14px rgba(15, 42, 96, .6); }
.ipt-kol-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ipt-kol-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: #b6c4dc; z-index: 0; }
.ipt-kol-cover img { z-index: 1; }
.ipt-kol-rank, .ipt-kol-loan { position: absolute; z-index: 2; font-style: normal; font-weight: 800; color: #fff; }
.ipt-kol-rank { top: .5rem; left: .5rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; background: linear-gradient(135deg, #143377, #1a5276); box-shadow: 0 4px 8px rgba(0, 0, 0, .3); }
.ipt-kol-loan { top: .5rem; right: .5rem; padding: .15rem .45rem; border-radius: 6px; font-size: .58rem; background: rgba(14, 165, 233, .92); }
/* Judul selalu setinggi 2 baris (dipotong "…" bila lebih), supaya pengarang dan penerbit di bawahnya sejajar antarkartu */
.ipt-kol-book strong { margin-top: .35rem; font-size: .78rem; font-weight: 800; line-height: 1.28; color: #10234f; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.28em); }
.ipt-kol-book small { font-size: .68rem; line-height: 1.4; min-height: 1.4em; color: #64748b; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ipt-kol-meta { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-top: auto; padding-top: .15rem; min-height: 1.5rem; font-size: .64rem; }
.ipt-kol-meta b { font-weight: 700; color: #0e45a1; background: #e8f0ff; border-radius: 6px; padding: .1rem .4rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ipt-kol-meta i { font-style: normal; color: #94a3b8; font-weight: 700; flex: 0 0 auto; margin-left: auto; }
.ipt-kol-empty { margin: 1rem 0; color: #64748b; font-size: .9rem; }
.ipt-kol-nav {
    position: absolute; top: 38%; transform: translateY(-50%); z-index: 5; width: 2.2rem; height: 2.2rem; border-radius: 50%;
    border: 1px solid #dbe5f6; background: #fff; color: #143377; cursor: pointer; font-size: .8rem;
    box-shadow: 0 8px 18px -6px rgba(15, 42, 96, .45); transition: transform .2s, background .2s, color .2s;
}
.ipt-kol-nav:hover { background: #143377; color: #fff; transform: translateY(-50%) scale(1.08); }
.ipt-kol-nav.is-prev { left: -.6rem; }
.ipt-kol-nav.is-next { right: -.6rem; }

@media (max-width: 1279px) {
    .ipt-kol-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .ipt-kol-main { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    .ipt-kol-grid { grid-template-columns: minmax(0, 1fr); }
    .ipt-kol-book { flex-basis: calc((100% - 1rem) / 2); }
    .ipt-kol-nav.is-prev { left: -.35rem; } .ipt-kol-nav.is-next { right: -.35rem; }
}
html.dark .ipt-kol-main { background: #1e293b; border-color: #334155; box-shadow: none; }
html.dark .ipt-kol-title h2, html.dark .ipt-kol-book strong { color: #f1f5f9; }
html.dark .ipt-kol-title small, html.dark .ipt-kol-book small { color: #94a3b8; }
html.dark .ipt-kol-cover { background: #243247; }
html.dark .ipt-kol-meta b { background: #243247; color: #7ea9e6; }
html.dark .ipt-kol-nav { background: #243247; border-color: #334155; color: #cfe0ff; }
.ipt-home > section.ipt-kol { overflow-x: clip; }
