/* ==========================================================================
   BERANDA PORTAL & NAVBAR PORTAL - Perpustakaan MAN 1 Jepara
   Memakai palet dan font dari tema.css (teal, cyan, emas, Nunito).
   ========================================================================== */

/* ---------- Navbar portal (dipakai semua halaman publik) ---------- */
.portal-nav { padding: .55rem 0; }
.portal-nav .portal-container { max-width: 1240px; }
.portal-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; padding: 0; margin-right: 1rem; }
.portal-logo { height: 46px; width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); transition: transform .5s cubic-bezier(.2,.9,.3,1.4); }
.portal-brand:hover .portal-logo { transform: rotate(-6deg) scale(1.08); }
.portal-brand-text { display: flex; flex-direction: column; line-height: 1.15; color: #fff; }
.portal-brand-text strong { font-size: 1rem; letter-spacing: .02em; font-weight: 800; }
.portal-brand-text small { font-size: .72rem; color: rgba(255,255,255,.82); font-weight: 600; }

.portal-nav .nav-link {
    color: #fff !important; font-weight: 700; font-size: .9rem; border-radius: 12px; padding: .55rem .85rem !important;
    border: 0 !important; margin: 0 !important; display: inline-flex; align-items: center; gap: .45rem;
    transition: background .25s ease, transform .25s ease;
}
.portal-nav .nav-link i { opacity: .9; }
.portal-nav .nav-link:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
.portal-nav .nav-link.active { background: rgba(255,255,255,.22); box-shadow: inset 0 -3px 0 var(--t-gold); }
.portal-nav .nav-link.portal-login, .portal-nav .nav-link.portal-user {
    background: linear-gradient(135deg, #f5b82e, #f97316); color: #3b2a00 !important; box-shadow: 0 10px 20px -10px rgba(249,115,22,.9);
}
.portal-nav .nav-link.portal-login:hover, .portal-nav .nav-link.portal-user:hover { filter: brightness(1.06); transform: translateY(-2px); }
.portal-toggler { border: 0; color: #fff; font-size: 1.4rem; background: rgba(255,255,255,.14); border-radius: 12px; padding: .4rem .7rem; }
.portal-toggler:focus { box-shadow: 0 0 0 3px rgba(245,184,46,.5); }
.portal-dropdown { border: 0; border-radius: 16px; padding: .5rem; box-shadow: 0 24px 50px -20px rgba(8,51,68,.55); animation: temaMasuk .25s ease both; }
.portal-dropdown .dropdown-item { border-radius: 10px; font-weight: 600; padding: .55rem .8rem; }
.portal-dropdown .dropdown-item i { width: 22px; text-align: center; }
.portal-dropdown .dropdown-item:hover { background: rgba(8,145,178,.1); }
@media (max-width: 991.98px) {
    .portal-nav .navbar-collapse { background: rgba(8,51,68,.55); border-radius: 16px; padding: .75rem; margin-top: .6rem; backdrop-filter: blur(6px); }
    .portal-nav .nav-link { width: 100%; }
    .portal-nav .dropdown-menu { background: rgba(255,255,255,.96); }
}
@media (max-width: 575.98px) { .portal-brand-text small { display: none; } .portal-brand-text strong { font-size: .88rem; } .portal-logo { height: 40px; } }

/* ---------- Beranda ---------- */
.portal-wrap { max-width: 1240px; margin: 0 auto; padding: 1.25rem 1rem 0; }
.portal-hero {
    position: relative; overflow: hidden; border-radius: 28px; padding: 2.4rem 2.2rem; color: #fff;
    background: linear-gradient(125deg, #083344 0%, #0f766e 55%, #0891b2 115%); background-size: 160% 160%;
    animation: temaGeser 16s ease-in-out infinite alternate;
    box-shadow: 0 30px 60px -28px rgba(8,51,68,.8);
}
.portal-hero::before { content: ''; position: absolute; inset: 0; background: url('../img/pola-buku.svg') repeat; background-size: 230px 230px; opacity: .10; animation: temaPola 80s linear infinite; pointer-events: none; }
.portal-hero .hero-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .4; pointer-events: none; }
.portal-hero .hero-orb.a { width: 300px; height: 300px; background: #f5b82e; top: -120px; right: 30%; animation: orbMelayang 14s ease-in-out infinite alternate; }
.portal-hero .hero-orb.b { width: 260px; height: 260px; background: #10b981; bottom: -110px; left: -60px; animation: orbMelayang 18s ease-in-out infinite alternate-reverse; }
@keyframes orbMelayang { from { transform: translate(0,0) scale(1); } to { transform: translate(36px,-26px) scale(1.14); } }
.portal-hero > .row { position: relative; z-index: 1; }

.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); padding: .3rem .85rem; border-radius: 999px; font-size: .78rem; font-weight: 700; backdrop-filter: blur(4px); }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #f5b82e; box-shadow: 0 0 0 0 rgba(245,184,46,.7); animation: btDenyut2 2s infinite; }
@keyframes btDenyut2 { 70% { box-shadow: 0 0 0 9px rgba(245,184,46,0); } 100% { box-shadow: 0 0 0 0 rgba(245,184,46,0); } }
.hero-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.15; margin: 1rem 0 .8rem; text-shadow: 0 4px 24px rgba(0,0,0,.25); }
.hero-title span { color: #fde68a; }
.hero-desc { font-size: 1rem; color: rgba(255,255,255,.9); max-width: 560px; margin-bottom: 1.3rem; }

.hero-search { background: #fff; border-radius: 18px; padding: .45rem; display: flex; gap: .4rem; align-items: center; box-shadow: 0 20px 40px -18px rgba(0,0,0,.55); max-width: 640px; }
.hero-search .hs-icon { color: #94a3b8; padding: 0 .4rem 0 .8rem; }
.hero-search input[type=text] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: .95rem; padding: .6rem .3rem; font-family: inherit; color: #0f172a; }
.hero-search select { border: 0; outline: 0; background: #f1f5f9; border-radius: 12px; padding: .6rem .7rem; font-size: .85rem; font-weight: 700; color: #334155; font-family: inherit; max-width: 170px; }
.hero-search button { border: 0; border-radius: 13px; padding: .65rem 1.1rem; font-weight: 800; color: #3b2a00; background: linear-gradient(135deg, #f5b82e, #f97316); box-shadow: 0 12px 22px -12px rgba(249,115,22,.95); white-space: nowrap; font-family: inherit; transition: transform .2s ease, filter .2s ease; }
.hero-search button:hover { transform: translateY(-2px); filter: brightness(1.06); }
.hero-chips { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; font-size: .8rem; }
.hero-chips .lbl { color: rgba(255,255,255,.8); font-weight: 700; }
.hero-chips a { color: #fff; text-decoration: none; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); padding: .28rem .8rem; border-radius: 999px; font-weight: 700; transition: background .2s ease, transform .2s ease; }
.hero-chips a:hover { background: rgba(255,255,255,.28); transform: translateY(-2px); }

/* Kartu jam operasional */
.jam-card { background: #fff; color: #0f2f36; border-radius: 22px; padding: 1.25rem; box-shadow: 0 30px 60px -26px rgba(0,0,0,.6); animation: temaMuncul .8s cubic-bezier(.2,.9,.3,1.2) .2s both; }
.jam-head { display: flex; align-items: center; gap: .75rem; }
.jam-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(16,185,129,.18), rgba(8,145,178,.18)); color: #0f766e; font-size: 1.2rem; flex: 0 0 auto; }
.jam-head .t { font-weight: 800; line-height: 1.1; }
.jam-head small { color: #64748b; font-weight: 600; }
.jam-status { margin-left: auto; font-size: .68rem; font-weight: 800; letter-spacing: .06em; padding: .3rem .65rem; border-radius: 999px; white-space: nowrap; }
.jam-status.buka { background: #d1fae5; color: #047857; }
.jam-status.tutup { background: #ffe4e6; color: #be123c; }
.jam-rows { margin: 1rem 0; border-top: 1px dashed #e2e8f0; }
.jam-row { display: flex; justify-content: space-between; gap: .75rem; padding: .55rem 0; border-bottom: 1px dashed #e2e8f0; font-size: .85rem; }
.jam-row span:first-child { color: #475569; font-weight: 600; }
.jam-row b { font-weight: 800; white-space: nowrap; }
.jam-row.sekarang { background: linear-gradient(90deg, rgba(245,184,46,.18), transparent); border-radius: 8px; padding-left: .5rem; }
.jam-row .on { color: #059669; }
.jam-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.jam-stat { background: #f1f8f8; border-radius: 14px; padding: .65rem .4rem; text-align: center; }
.jam-stat b { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.jam-stat small { color: #64748b; font-weight: 700; font-size: .68rem; }
.jam-stat:nth-child(1) b { color: #0f766e; } .jam-stat:nth-child(2) b { color: #d97706; } .jam-stat:nth-child(3) b { color: #be123c; }

/* ---------- Seksi ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.sec-title { font-size: 1.35rem; font-weight: 800; color: #083344; margin: 0; display: flex; align-items: center; gap: .55rem; }
.sec-title i { color: #f97316; }
.sec-sub { color: #64748b; font-size: .85rem; margin: .15rem 0 0; }
.seg { display: inline-flex; background: #fff; border-radius: 14px; padding: 4px; box-shadow: 0 6px 18px -10px rgba(8,51,68,.5); gap: 4px; }
.seg button { border: 0; background: transparent; border-radius: 11px; padding: .45rem .9rem; font-weight: 800; font-size: .82rem; color: #475569; cursor: pointer; font-family: inherit; transition: all .2s ease; }
.seg button.on { background: linear-gradient(135deg, #0f766e, #0891b2); color: #fff; box-shadow: 0 8px 16px -8px rgba(8,145,178,.9); }
.lihat-semua { font-weight: 800; font-size: .85rem; color: #0f766e; text-decoration: none; white-space: nowrap; }
.lihat-semua:hover { color: #f97316; }

/* Kartu buku */
.bk { background: #fff; border-radius: 20px; overflow: hidden; height: 100%; display: flex; flex-direction: column; box-shadow: 0 14px 30px -20px rgba(8,51,68,.6); transition: transform .3s ease, box-shadow .3s ease; }
.bk:hover { transform: translateY(-6px); box-shadow: 0 26px 44px -22px rgba(8,51,68,.65); }
.bk-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #0f766e, #0891b2); display: grid; place-items: center; }
.bk-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bk:hover .bk-cover img { transform: scale(1.06); }
.bk-cover .ph { color: rgba(255,255,255,.85); font-size: 2.6rem; }
.bk-type { position: absolute; left: 10px; top: 10px; background: rgba(15,23,42,.78); color: #fff; font-size: .68rem; font-weight: 800; padding: .25rem .6rem; border-radius: 8px; backdrop-filter: blur(3px); }
.bk-pop { position: absolute; right: 10px; top: 10px; background: linear-gradient(135deg, #f5b82e, #f97316); color: #3b2a00; font-size: .68rem; font-weight: 800; padding: .25rem .6rem; border-radius: 8px; }
.bk-stock { position: absolute; right: 10px; bottom: 10px; font-size: .7rem; font-weight: 800; padding: .25rem .65rem; border-radius: 999px; color: #fff; }
.bk-stock.ok { background: #059669; } .bk-stock.no { background: #e11d48; } .bk-stock.dig { background: #0891b2; }
.bk-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.bk-meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .72rem; color: #64748b; font-weight: 700; margin-bottom: .35rem; }
.bk-meta .yr { color: #d97706; white-space: nowrap; }
.bk-title { font-weight: 800; font-size: .98rem; line-height: 1.25; color: #083344; margin: 0 0 .3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.45em; }
.bk-author { font-size: .8rem; color: #475569; margin-bottom: .4rem; }
.bk-loc { font-size: .78rem; font-weight: 700; color: #059669; margin-bottom: .8rem; }
.bk-actions { display: flex; gap: .5rem; margin-top: auto; }
.bk-actions .btn-detail { flex: 1; border: 0; border-radius: 12px; padding: .55rem .6rem; font-weight: 800; font-size: .8rem; color: #065f46; background: #d1fae5; cursor: pointer; font-family: inherit; transition: background .2s ease, transform .2s ease; }
.bk-actions .btn-detail:hover { background: #a7f3d0; transform: translateY(-1px); }
.bk-actions .btn-fav { border: 0; border-radius: 12px; width: 42px; background: #f1f5f9; color: #94a3b8; cursor: pointer; transition: all .25s cubic-bezier(.2,.9,.3,1.6); }
.bk-actions .btn-fav:hover { color: #f43f5e; transform: scale(1.1); }
.bk-actions .btn-fav.on { color: #fff; background: #f43f5e; }
.koleksi-grid[hidden] { display: none !important; }
.koleksi-grid { animation: temaMasuk .5s cubic-bezier(.2,.8,.2,1) both; }

/* Panel samping */
.side-title { font-size: 1.25rem; font-weight: 800; color: #083344; display: flex; align-items: center; gap: .5rem; margin-bottom: .2rem; }
.side-title i { color: #0891b2; }
.info-item { display: block; text-decoration: none; color: inherit; background: #fff; border-radius: 18px; padding: .9rem 1rem; margin-bottom: .75rem; box-shadow: 0 12px 26px -20px rgba(8,51,68,.7); border: 1px solid rgba(8,145,178,.08); transition: transform .25s ease, box-shadow .25s ease; }
.info-item:hover { transform: translateX(4px); box-shadow: 0 18px 32px -20px rgba(8,51,68,.8); color: inherit; }
.info-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .35rem; }
.info-tag { font-size: .66rem; font-weight: 800; padding: .18rem .55rem; border-radius: 6px; background: #d1fae5; color: #047857; }
.info-tag.t2 { background: #cffafe; color: #0e7490; } .info-tag.t3 { background: #fef3c7; color: #b45309; } .info-tag.t4 { background: #ede9fe; color: #6d28d9; }
.info-count { font-size: .7rem; color: #94a3b8; font-weight: 700; }
.info-item h6 { font-weight: 800; color: #083344; margin: 0 0 .2rem; font-size: .95rem; }
.info-item p { font-size: .8rem; color: #64748b; margin: 0; }
.cta-card { border-radius: 20px; padding: 1.1rem; background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; }
.cta-card .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #f5b82e, #f97316); font-size: 1.1rem; }
.cta-card h6 { font-weight: 800; color: #78350f; margin: 0; }
.cta-card p { font-size: .8rem; color: #92400e; margin: .5rem 0 .8rem; }
.btn-gold { display: block; text-align: center; text-decoration: none; border: 0; width: 100%; padding: .65rem 1rem; border-radius: 13px; font-weight: 800; color: #3b2a00; background: linear-gradient(135deg, #f5b82e, #f97316); box-shadow: 0 12px 22px -12px rgba(249,115,22,.95); cursor: pointer; font-family: inherit; transition: transform .2s ease, filter .2s ease; }
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.06); color: #3b2a00; }
.btn-teal { display: block; text-align: center; text-decoration: none; border: 0; width: 100%; padding: .65rem 1rem; border-radius: 13px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #059669, #0891b2); box-shadow: 0 12px 22px -12px rgba(8,145,178,.9); cursor: pointer; font-family: inherit; transition: transform .2s ease, filter .2s ease; }
.btn-teal:hover { transform: translateY(-2px); filter: brightness(1.06); color: #fff; }

/* Blok bawah */
.band { margin-top: 2.2rem; }
.panel-card { background: #fff; border-radius: 22px; padding: 1.3rem; box-shadow: 0 14px 30px -22px rgba(8,51,68,.7); height: 100%; }
.panel-card h5 { font-weight: 800; color: #083344; display: flex; align-items: center; gap: .5rem; }
.vis-chip { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: 14px; background: #f1f8f8; margin-bottom: .55rem; }
.vis-chip img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.vis-chip b { display: block; font-size: .88rem; color: #083344; }
.vis-chip small { color: #64748b; }
.web-card { background: #fff; border-radius: 18px; padding: 1rem .8rem; text-align: center; height: 100%; box-shadow: 0 12px 26px -22px rgba(8,51,68,.7); transition: transform .25s ease; }
.web-card:hover { transform: translateY(-5px); }
.web-card img { max-height: 70px; max-width: 100%; margin-bottom: .6rem; }
.portal-footer { margin-top: 2.5rem; background: linear-gradient(90deg, #083344, #0f766e); color: rgba(255,255,255,.9); text-align: center; padding: 1.4rem 1rem; font-size: .85rem; }
.portal-footer b { color: #fde68a; }

/* Modal detail buku */
.dtl-cover { border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #0f766e, #0891b2); aspect-ratio: 3 / 4; display: grid; place-items: center; color: rgba(255,255,255,.85); font-size: 3rem; }
.dtl-cover img { width: 100%; height: 100%; object-fit: cover; }
.dtl-table td { padding: .3rem 0; vertical-align: top; font-size: .88rem; }
.dtl-table td:first-child { color: #64748b; width: 120px; font-weight: 700; }

/* HP */
@media (max-width: 767.98px) {
    .portal-hero { padding: 1.5rem 1.1rem; border-radius: 22px; }
    .hero-search { flex-wrap: wrap; padding: .6rem; }
    .hero-search .hs-icon { display: none; }
    .hero-search input[type=text] { flex: 1 1 100%; padding: .55rem .6rem; }
    .hero-search select { flex: 1 1 100%; max-width: none; }
    .hero-search button { flex: 1 1 100%; }
    .sec-title { font-size: 1.15rem; }
    .bk-body { padding: .7rem; }
    .bk-title { font-size: .86rem; }
    .bk-actions .btn-detail { font-size: .72rem; padding: .5rem .3rem; }
    .bk-actions .btn-fav { width: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    .portal-hero, .portal-hero::before, .hero-orb, .jam-card, .koleksi-grid, .hero-badge .dot { animation: none !important; }
}

@media (max-width: 575.98px) {
    .jam-head { flex-wrap: wrap; }
    .jam-status { margin-left: 0; }
    .portal-wrap { padding: .8rem .6rem 0; }
}

/* ---------- Perbaikan: menu dropdown navbar harus di atas konten halaman ---------- */
.portal-nav, body[data-role="publik"] .portal-nav { position: relative; z-index: 1040; }
.portal-nav .dropdown-menu { z-index: 1060; }

/* ==========================================================================
   HALAMAN KATALOG (OPAC) - gaya segar, selaras dengan beranda
   ========================================================================== */
.katalog-page { padding-bottom: 1rem; }
.katalog-page .container-fluid { max-width: 1240px; margin-inline: auto; }
.kat-hero { padding: 1.8rem 2rem; }
.kat-crumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.6); font-size: .8rem; font-weight: 700; }
.kat-crumb .breadcrumb-item, .kat-crumb .breadcrumb-item a { color: rgba(255,255,255,.85); text-decoration: none; }
.kat-crumb .breadcrumb-item.active { color: #fde68a; }
.kat-crumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); }
.kat-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.kat-stat { display: flex; flex-direction: column; align-items: center; gap: .15rem; text-decoration: none; color: #fff; padding: 1rem .5rem; border-radius: 18px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(4px); transition: transform .25s ease, background .25s ease; animation: temaMuncul .7s cubic-bezier(.2,.9,.3,1.2) both; }
.kat-stat:nth-child(2) { animation-delay: .1s; } .kat-stat:nth-child(3) { animation-delay: .2s; }
.kat-stat:hover { transform: translateY(-5px); background: rgba(255,255,255,.24); color: #fff; }
.kat-stat i { font-size: 1.3rem; opacity: .9; }
.kat-stat b { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.kat-stat span { font-size: .72rem; font-weight: 700; opacity: .9; }
.kat-stat.s1 i { color: #fde68a; } .kat-stat.s2 i { color: #5eead4; } .kat-stat.s3 i { color: #fdba74; }

/* Judul bagian */
.katalog-page .category-header {
    border-radius: 20px !important; padding: 1rem 1.4rem !important; margin: 1.6rem 0 1.1rem !important; font-size: 1.1rem !important; letter-spacing: .02em;
    box-shadow: 0 18px 32px -20px rgba(8,51,68,.85) !important; position: relative; overflow: hidden;
}
.katalog-page .category-header::after { content: ''; position: absolute; right: -30px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,.12); pointer-events: none; }
.katalog-page .category-header i { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.18); font-size: 1rem; }

/* Panel filter */
.katalog-page .card-filter { border-radius: 20px !important; overflow: hidden; box-shadow: 0 16px 34px -24px rgba(8,51,68,.85) !important; border: 0 !important; }
.katalog-page .card-filter .card-header { padding: .9rem 1.1rem; }
.katalog-page .card-filter .card-body { padding: 1rem 1.1rem; }
.katalog-page .card-filter label.form-label { font-weight: 800; color: #083344; font-size: .85rem; }
.katalog-page .form-check-input { border-color: #94a3b8; }
.katalog-page .form-check-input:checked { background-color: #0891b2; border-color: #0891b2; }
.katalog-page .form-check-label { font-size: .88rem; color: #334155; }
.katalog-page .form-select, .katalog-page .form-control { border-radius: 12px; border: 2px solid #e2e8f0; }
.katalog-page .form-select:focus, .katalog-page .form-control:focus { border-color: #0891b2; box-shadow: 0 0 0 .22rem rgba(8,145,178,.16); }
.katalog-page .card-filter .btn-success, .katalog-page .card-filter .btn-primary { border-radius: 12px; font-weight: 800; }
.katalog-page .card-filter .btn-outline-secondary { border-radius: 12px; font-weight: 700; }

/* Kartu buku */
.katalog-page .book-card {
    border: 0 !important; border-radius: 22px !important; overflow: hidden; background: #fff;
    box-shadow: 0 16px 34px -24px rgba(8,51,68,.9) !important; transition: transform .3s ease, box-shadow .3s ease;
}
.katalog-page .book-card:hover { transform: translateY(-7px); box-shadow: 0 28px 46px -26px rgba(8,51,68,.95) !important; }
.katalog-page .card-img-wrapper { height: 235px !important; background: linear-gradient(135deg, #0f766e, #0891b2) !important; position: relative; }
.katalog-page .book-cover { transition: transform .6s ease; }
.katalog-page .book-card:hover .book-cover { transform: scale(1.06); }
.katalog-page .no-cover i { color: rgba(255,255,255,.85) !important; font-size: 3rem; }
.katalog-page .book-overlay { background: linear-gradient(0deg, rgba(8,51,68,.78), transparent 60%) !important; }
.katalog-page .book-title { font-weight: 800 !important; color: #083344; line-height: 1.25; }
.katalog-page .book-card .card-text small { color: #475569 !important; line-height: 1.75; font-size: .8rem; }
.katalog-page .book-card .card-text small i { width: 16px; text-align: center; color: #0891b2; }
.katalog-page .book-card .badge { border-radius: 8px; padding: .38em .7em; font-weight: 800; }
.katalog-page .book-card .badge.bg-info { background: #cffafe !important; color: #0e7490 !important; }
.katalog-page .book-card .badge.bg-success { background: #d1fae5 !important; color: #047857 !important; }
.katalog-page .book-card .text-success { color: #059669 !important; font-weight: 800; }
.katalog-page .btn-pinjam { background: linear-gradient(135deg, #059669, #0891b2) !important; color: #fff !important; border: 0 !important; border-radius: 14px !important; padding: .6rem 1rem !important; font-weight: 800; font-size: .85rem !important; box-shadow: 0 14px 24px -14px rgba(8,145,178,.95); }
.katalog-page .book-card .btn-outline-primary { border: 2px solid #0891b2; color: #0e7490; border-radius: 14px; font-weight: 800; background: transparent !important; }
.katalog-page .book-card .btn-outline-primary:hover { background: #0891b2 !important; color: #fff; }
.katalog-page .book-card .btn-secondary[disabled] { background: #e2e8f0 !important; color: #64748b !important; border: 0; border-radius: 14px; font-weight: 700; }
.katalog-page .book-card .btn-success { border-radius: 12px; font-weight: 800; }

/* Urutan & nomor halaman */
.katalog-page .pagination { margin-top: .8rem; }
.katalog-page .page-link { border: 0; border-radius: 12px !important; margin: 0 2px; color: #0f766e; font-weight: 800; background: #fff; box-shadow: 0 8px 18px -12px rgba(8,51,68,.7); min-width: 40px; text-align: center; }
.katalog-page .page-link:hover { background: #d1fae5; color: #065f46; }
.katalog-page .page-item.active .page-link { background: linear-gradient(135deg, #0f766e, #0891b2); color: #fff; }
.katalog-page .page-item.disabled .page-link { background: #f1f5f9; color: #94a3b8; box-shadow: none; }

@media (max-width: 767.98px) {
    .kat-hero { padding: 1.3rem 1rem; }
    .kat-stats { gap: .5rem; } .kat-stat { padding: .7rem .3rem; } .kat-stat b { font-size: 1.25rem; }
    .katalog-page .category-header { font-size: .95rem !important; padding: .8rem 1rem !important; }
    .katalog-page .card-img-wrapper { height: 200px !important; }
}

.katalog-page .card-filter .card-header,
.katalog-page .card-filter .card-header.bg-primary,
.katalog-page .card-filter .card-header.bg-success,
.katalog-page .card-filter .card-header.bg-info {
    background: linear-gradient(135deg, #0f766e, #0891b2) !important; color: #fff !important; border: 0 !important;
}
.katalog-page .card-filter .card-header h6 { font-weight: 800; letter-spacing: .02em; }
.katalog-page .no-cover { background: transparent !important; }
.katalog-page .filter-toggle-btn { margin: 1rem 0 .2rem 1rem !important; border: 0 !important; border-radius: 14px !important; font-weight: 800; background: linear-gradient(135deg, #0f766e, #0891b2) !important; box-shadow: 0 14px 24px -14px rgba(8,145,178,.95); }

/* Montserrat lebih lebar: padatkan navbar di layar menengah agar tidak meluber */
.portal-nav .nav-link { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1399.98px) {
    .portal-nav .nav-link { font-size: .78rem; padding: .5rem .55rem !important; gap: .3rem; }
    .portal-brand { margin-right: .4rem; gap: .5rem; }
    .portal-brand-text strong { font-size: .85rem; }
    .portal-brand-text small { display: none; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .portal-nav .nav-link { font-size: .74rem; padding: .5rem .42rem !important; gap: .25rem; }
    .portal-nav .navbar-nav { gap: 0 !important; }
    .portal-brand-text strong { font-size: .78rem; }
    .portal-logo { height: 38px; }
}
@media (max-width: 575.98px) { .portal-wrap { padding-left: .75rem; padding-right: .75rem; } }
