/* perpus.css — bagian atas disalin dari pkbm.id/assets/css/style.css supaya tampilannya sama. */
:root {
  --dark:      #0e2e4c;
  --dark2:     #081b2e;
  --gold:      #dda52d;
  --gold-dark: #cc9121;
  --gold-light:#fdf1d9;
  --blue:      #2293b2;
  --paper:     #f7f9fb;
  --light:     #f7f9fb;
  --text:      #57647a;
  --shadow-soft: 0 4px 28px rgba(14,46,76,.08);
  --shadow-soft-lg: 0 16px 48px rgba(14,46,76,.14);
  --radius: 16px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text); margin: 0; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-family: 'Plus Jakarta Sans', sans-serif; letter-spacing: -.01em; }

/* ── Utility ── */
.bg-dark-main   { background: var(--dark) !important; }
.bg-gold        { background: var(--gold) !important; }
.text-gold      { color: var(--gold) !important; }
.text-dark-main { color: var(--dark) !important; }

/* Rebrand Bootstrap's default "primary" (blue) utilities to the site's navy,
   so ad-hoc bg-primary/btn-primary/text-primary usage in views stays on-brand. */
.bg-primary      { background-color: var(--dark) !important; }
.text-primary    { color: var(--dark) !important; }
.btn-primary {
  background-color: var(--dark); border-color: var(--dark);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: var(--dark2) !important; border-color: var(--dark2) !important;
}
.section-gap    { padding: 88px 0; }
.section-gap-sm { padding: 52px 0; }

.section-label {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 999px;
  margin-bottom: .9rem;
  font-family: 'IBM Plex Mono', monospace;
}
.section-label.light {
  background: rgba(221,165,45,.16);
  color: var(--gold);
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 0;
  letter-spacing: -.02em;
}
.section-title.white { color: #fff; }
.section-desc { color: var(--text); font-size: .95rem; line-height: 1.8; margin-top: .75rem; }

/* ────────────────────────────────────────
   TOPBAR
──────────────────────────────────────── */
.topbar {
  background: var(--dark2);
  padding: .55rem 0;
  font-size: .8rem;
  border-bottom: 1px solid rgba(221,165,45,.15);
}
.topbar a, .topbar span { color: rgba(255,255,255,.65); }
.topbar a:hover { color: var(--gold); }
.topbar .topbar-icon { color: var(--gold); margin-right: .4rem; }

/* ────────────────────────────────────────
   NAVBAR
──────────────────────────────────────── */
.main-nav {
  background: var(--dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 20px rgba(0,0,0,.18);
  transition: all .3s;
}
.main-nav .navbar-brand img { height: 46px; }
.main-nav .nav-link {
  color: rgba(255,255,255,.82) !important;
  font-weight: 600;
  padding: 1.4rem 1rem !important;
  font-size: .875rem;
  letter-spacing: .1px;
  transition: color .2s;
  position: relative;
}
.main-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 1rem; right: 1rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .25s;
}
.main-nav .nav-link:hover { color: var(--gold) !important; }
.main-nav .nav-link:hover::after,
.main-nav .nav-link.active-link::after { transform: scaleX(1); }
.main-nav .nav-link.active-link { color: var(--gold) !important; }

.main-nav .dropdown-menu {
  border: none;
  border-top: 2px solid var(--gold);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-soft-lg);
  min-width: 240px;
  padding: .6rem 0;
  animation: dropIn .2s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.main-nav .dropdown-item {
  padding: .65rem 1.5rem;
  font-weight: 600;
  font-size: .85rem;
  color: var(--dark);
  border-left: 2px solid transparent;
  transition: all .2s;
}
.main-nav .dropdown-item:hover {
  background: var(--paper);
  color: var(--dark);
  border-left-color: var(--gold);
  padding-left: 2rem;
}
.main-nav .btn-daftar {
  background: var(--gold) !important;
  color: #fff !important;
  padding: .55rem 1.6rem !important;
  border-radius: 999px;
  font-weight: 700;
  margin-left: .75rem;
  align-self: center;
  transition: all .3s;
  font-size: .85rem;
  letter-spacing: .2px;
}
.main-nav .btn-daftar:hover { background: var(--gold-dark) !important; transform: translateY(-1px); }
.main-nav .btn-daftar::after { display: none; }

/* ────────────────────────────────────────
   PAGE HEADER (inner pages)
──────────────────────────────────────── */
.page-header {
  background: linear-gradient(120deg, var(--dark) 0%, var(--dark2) 100%);
  padding: 4rem 0 3.5rem;
  position: relative;
}
.page-header::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--gold);
}
.page-header h1 { color: #fff; font-weight: 800; margin-bottom: .5rem; letter-spacing: -.02em; }
.page-header .breadcrumb { margin: 0; }
.page-header .breadcrumb-item { color: rgba(255,255,255,.5); font-size: .875rem; }
.page-header .breadcrumb-item a { color: rgba(255,255,255,.8); }
.page-header .breadcrumb-item a:hover { color: var(--gold); }
.page-header .breadcrumb-item.active { color: var(--gold); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3); }

/* ────────────────────────────────────────
   PAGINATION
──────────────────────────────────────── */
.page-link { color: var(--dark); border-color: #e5eaf0; font-weight: 600; }
.page-link:hover { color: var(--gold-dark); border-color: var(--gold); }
.page-item.active .page-link { background: var(--dark); border-color: var(--dark); }

/* ────────────────────────────────────────
   FOOTER
──────────────────────────────────────── */
.site-footer { background: var(--dark2); color: rgba(255,255,255,.68); border-top: 2px solid var(--gold); }
.site-footer .footer-top { padding: 80px 0 55px; }
.site-footer .widget-title {
  color: #fff; font-weight: 700;
  margin-bottom: 1.5rem; font-size: .98rem;
  position: relative; padding-bottom: .75rem;
}
.site-footer .widget-title::after {
  content: ''; position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px; background: var(--gold);
}
.site-footer .footer-logo { max-height: 56px; }
.site-footer p { font-size: .875rem; line-height: 1.75; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .65rem; font-size: .875rem; }
.site-footer ul li a { color: rgba(255,255,255,.6); transition: .2s; display: inline-block; }
.site-footer ul li a:hover { color: var(--gold); padding-left: 6px; }
.site-footer ul li a i { color: var(--gold); margin-right: .4rem; width: 14px; }
.site-footer .contact-list li { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1rem; }
.site-footer .contact-list .ci { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.site-footer .social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.65);
  border-radius: 50%; margin-right: .35rem; font-size: .85rem; transition: .3s;
}
.site-footer .social-links a:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.25rem 0; font-size: .8rem;
  color: rgba(255,255,255,.35);
}
.site-footer .footer-bottom a { color: rgba(255,255,255,.35); }
.site-footer .footer-bottom a:hover { color: var(--gold); }

/* ────────────────────────────────────────
   WHATSAPP FLOAT
──────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  background: #25d366; color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  z-index: 9999; transition: all .3s;
}
.wa-float:hover {
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(37,211,102,.5);
}


/* ────────────────────────────────────────
   PERPUSTAKAAN
──────────────────────────────────────── */
body { background: var(--paper); }
.btn-gold { background: var(--gold); color: #fff; font-weight: 700; border-radius: 999px; padding: .8rem 1.8rem; border: 0; transition: all .25s; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; }
.btn-gold:hover, .btn-gold:focus { background: var(--gold-dark); color: #fff; transform: translateY(-1px); }
.btn-garis { background: #fff; color: var(--dark); font-weight: 700; border-radius: 999px; padding: .75rem 1.6rem; border: 2px solid #dfe5ec; transition: all .25s; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; }
.btn-garis:hover, .btn-garis:focus { border-color: var(--gold); color: var(--gold-dark); }

.hero-perpus { background: linear-gradient(120deg, var(--dark) 0%, var(--dark2) 100%); color: #fff; padding: 4.5rem 0 4rem; }
.hero-kicker { font-family: 'IBM Plex Mono', monospace; color: var(--gold); font-size: .75rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.hero-kicker::before { content: ''; width: 32px; height: 1px; background: var(--gold); }
.hero-perpus h1 { font-weight: 800; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.03em; line-height: 1.12; color: #fff; max-width: 780px; }
.hero-perpus p { color: rgba(255,255,255,.72); font-size: 1.02rem; line-height: 1.75; max-width: 640px; margin: 1rem 0 0; }
.cari-besar { display: flex; gap: .5rem; background: #fff; padding: .4rem; border-radius: 999px; max-width: 680px; margin-top: 1.8rem; box-shadow: var(--shadow-soft-lg); }
.cari-besar input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 0 1.1rem; color: var(--dark); font-weight: 500; }
.cari-besar .btn-gold { padding: .7rem 1.5rem; flex-shrink: 0; }
.statbar { background: var(--dark2); padding: 1.5rem 0; }
.statbar .angka { font-family: 'IBM Plex Mono', monospace; color: var(--gold); font-weight: 600; font-size: 1.7rem; line-height: 1.2; }
.statbar .label { color: rgba(255,255,255,.6); font-size: .72rem; letter-spacing: 1px; text-transform: uppercase; }

.kartu-jenjang { display: flex; align-items: center; gap: .9rem; height: 100%; background: #fff; border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-soft); transition: all .25s; color: var(--dark); }
.kartu-jenjang:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft-lg); color: var(--dark); }
.kartu-jenjang .ikon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--gold-light); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.kartu-jenjang b { display: block; font-size: .9rem; line-height: 1.3; }
.kartu-jenjang small { color: var(--text); }

.grid-buku { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1rem; }
@media (min-width: 576px) { .grid-buku { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .grid-buku { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid-buku.enam { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kartu-buku { display: block; color: var(--dark); }
.kartu-buku:hover { color: var(--gold-dark); }
.kartu-buku .judul { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-weight: 700; font-size: .875rem; line-height: 1.4; margin-top: .65rem; }
.kartu-buku .kecil { display: block; font-size: .75rem; color: var(--text); margin-top: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sampul { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-soft); transition: all .25s; }
.kartu-buku:hover .sampul { transform: translateY(-3px); box-shadow: var(--shadow-soft-lg); }
.sampul img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.sampul-teks { position: absolute; inset: 0; padding: .85rem; display: flex; flex-direction: column; color: #fff; }
.sampul-teks .mapel { font-family: 'IBM Plex Mono', monospace; font-size: .6rem; letter-spacing: 1px; text-transform: uppercase; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sampul-teks .jdl { margin-top: .5rem; font-weight: 800; font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.sampul-teks .jjg { margin-top: auto; font-size: .62rem; opacity: .8; }

.kotak { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.kotak-saring { padding: 1.1rem 1.2rem; }
.kotak-saring summary { font-weight: 700; color: var(--dark); cursor: pointer; font-size: .92rem; }
.kotak-saring label { font-size: .75rem; font-weight: 700; color: var(--dark); margin-bottom: .25rem; }
.lencana { background: var(--gold); color: #fff; border-radius: 999px; font-size: .68rem; padding: .1rem .55rem; margin-left: .3rem; }
.cari-katalog { display: flex; gap: .5rem; }
.cari-katalog input { flex: 1; min-width: 0; border: 1px solid #dfe5ec; border-radius: 999px; padding: .65rem 1.2rem; color: var(--dark); }
.cari-katalog input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.cari-katalog .btn-gold { padding: .6rem 1.4rem; }
@media (min-width: 992px) { .kolom-saring { position: sticky; top: 92px; } }

.detail-meta { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: .5rem .9rem; font-size: .9rem; margin: 0; }
.detail-meta dt { font-weight: 500; color: var(--text); }
.detail-meta dd { margin: 0; color: var(--dark); font-weight: 600; overflow-wrap: anywhere; }
.tautan-lain a { color: var(--blue); font-weight: 700; }
.tautan-lain a:hover { color: var(--gold-dark); }

.tanda-fisik { position: absolute; top: .45rem; right: .45rem; background: var(--gold); color: #fff; font-size: .62rem; font-weight: 700; border-radius: 999px; padding: .15rem .5rem; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.kotak-fisik { background: var(--gold-light); color: var(--dark); border-radius: var(--radius-sm); padding: .75rem 1rem; font-size: .9rem; }

/* HP */
.kotak-saring summary { padding: .35rem 0; }
.tautan-lain a, .kartu-kecil-tautan { display: inline-block; padding: .3rem 0; }
@media (max-width: 767px) {
  .form-select, .form-select-sm { font-size: 16px; min-height: 44px; }
  .wa-float { width: 50px; height: 50px; font-size: 1.5rem; right: 14px; bottom: 14px; }
  .hero-perpus { padding: 2.5rem 0 2.5rem; }
  .page-header { padding: 2rem 0 1.6rem; }
  .btn-gold, .btn-garis { min-height: 46px; }
  .detail-tombol > * { flex: 1 1 100%; }
  .site-footer .footer-top { padding: 48px 0 32px; }
  main { padding-bottom: 12px; }
}

/* Empat pintu beranda */
.pintu-wadah { margin-top: 2rem; }
.pintu { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-soft); transition: box-shadow .25s, transform .25s; }
.pintu:hover { box-shadow: var(--shadow-soft-lg); transform: translateY(-3px); }
.pintu-utama { display: block; flex: 1; padding: 1.3rem 1.3rem .9rem; color: var(--dark); }
.pintu-utama:hover { color: var(--dark); }
.pintu-utama .ikon { width: 48px; height: 48px; border-radius: 14px; background: var(--gold-light); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: .9rem; }
.pintu-utama b { display: block; font-size: 1.08rem; font-weight: 800; }
.pintu-utama .ket { display: block; font-size: .85rem; line-height: 1.55; color: var(--text); margin-top: .3rem; }
.pintu-bawah { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: 0 1.3rem 1.2rem; }
.pintu-bawah .pil { background: var(--paper); color: var(--dark); border: 1px solid #e5eaf0; border-radius: 999px; font-size: .78rem; font-weight: 700; padding: .35rem .75rem; }
.pintu-bawah .pil:hover { border-color: var(--gold); color: var(--gold-dark); }
.pintu-bawah .jml { margin-left: auto; font-family: 'IBM Plex Mono', monospace; font-size: .72rem; color: var(--gold-dark); white-space: nowrap; }
@media (max-width: 767px) { .pintu-wadah { margin-top: 1.25rem; } .pintu-bawah .pil { padding: .5rem .8rem; } .main-nav .btn-daftar { display: inline-block; margin-left: 0; } }
