@charset "UTF-8";
/* ================================================
   OPAC GABUNGAN ? Halaman Publik
   Tata letak mengikuti template default OPAC SLiMS 9 (hero + pencarian, hasil dengan filter kiri,
   detail dengan tabel Ketersediaan & Informasi Detail), warna mengikuti logo BBGTK.
   Bootstrap 4 + Font Awesome 5
   ================================================ */

:root {
  --op-primary:      #05609A;   /* hover */
  --op-primary-2:    #067AC1;   /* tombol & link (kontras teks putih 4.6:1) */
  --op-brand:        #0090D4;
  --op-primary-soft: #E0F2FB;
  --op-navy:         #072A47;
  --op-accent:       #F9A703;
  --op-accent-hover: #E89B00;
  --op-accent-ink:   #10233A;   /* teks di atas oranye */
  --op-bg:           #F5F7FB;
  --op-surface:      #FFFFFF;
  --op-border:       #E3E8F0;
  --op-text:         #1E293B;
  --op-muted:        #5B6B82;
  --op-success:      #157F3C;
  --op-success-soft: #E3F6EA;
  --op-danger:       #B42318;
  --op-danger-soft:  #FDECEA;
  --op-warn:         #8A5A00;
  --op-warn-soft:    #FFF4DB;
  --op-radius:       12px;
  --op-shadow:       0 1px 2px rgba(15, 30, 70, .06), 0 4px 14px rgba(15, 30, 70, .06);
  --op-shadow-hover: 0 10px 28px rgba(6, 122, 193, .18);
}

html, body { overflow-x: hidden; }

body.op-page {
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--op-bg);
  color: var(--op-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
a { color: var(--op-primary-2); }
a:hover { color: var(--op-primary); }
:focus-visible { outline: 3px solid var(--op-accent); outline-offset: 2px; }

.skip-link:focus { position: absolute; z-index: 2000; top: .5rem; left: .5rem; background: #fff; padding: .5rem 1rem; border-radius: 8px; }

/* ---------- Tombol ---------- */
.op-btn-primary { background: var(--op-primary-2); border-color: var(--op-primary-2); color: #fff; font-weight: 700; border-radius: 8px; }
.op-btn-primary:hover, .op-btn-primary:focus { background: var(--op-primary); border-color: var(--op-primary); color: #fff; }
.op-btn-outline { border: 1px solid var(--op-primary-2); color: var(--op-primary-2); background: transparent; font-weight: 700; border-radius: 8px; }
.op-btn-outline:hover, .op-btn-outline:focus { background: var(--op-primary-soft); color: var(--op-primary); }
.op-link-muted { color: var(--op-muted); font-weight: 700; }

/* ---------- Navbar ---------- */
.op-nav {
  background: var(--op-surface);
  border-bottom: 1px solid var(--op-border);
  border-top: 3px solid var(--op-accent);
  position: sticky; top: 0; z-index: 1020;
}
.op-nav .container { display: flex; align-items: center; min-height: 66px; gap: 1rem; flex-wrap: wrap; }
.op-brand { display: flex; align-items: center; gap: .7rem; color: var(--op-text); text-decoration: none !important; min-width: 0; }
.op-brand img { height: 42px; width: auto; flex-shrink: 0; }
.op-brand-text { line-height: 1.15; min-width: 0; padding-left: .75rem; border-left: 2px solid var(--op-border); }
.op-brand-text strong { display: block; font-size: 1.1rem; font-weight: 800; color: var(--op-primary-2); white-space: nowrap; }
.op-brand-text small { color: var(--op-muted); font-weight: 600; font-size: .78rem; }
.op-menu { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.op-menu a, .op-menu-btn {
  padding: .45rem .75rem; border-radius: 8px; color: var(--op-muted); background: transparent; border: 0;
  font-weight: 700; font-size: .9rem; text-decoration: none !important; white-space: nowrap;
}
.op-menu a i, .op-menu-btn i { margin-right: .4rem; }
.op-menu a:hover, .op-menu-btn:hover { color: var(--op-primary); background: var(--op-primary-soft); }
.op-menu a.active { color: var(--op-primary-2); background: var(--op-primary-soft); box-shadow: inset 0 -3px 0 var(--op-accent); }
.op-menu-btn { border: 1px solid var(--op-border); margin-left: .35rem; }
.op-nav-toggle { display: none; margin-left: auto; border: 1px solid var(--op-border); background: transparent; border-radius: 8px; padding: .35rem .7rem; color: var(--op-text); }

/* Navbar di atas hero beranda */
.op-nav.transparan { background: transparent; border-bottom-color: rgba(255, 255, 255, .15); position: relative; }
.op-nav.transparan .op-brand img { background: #fff; border-radius: 8px; padding: 3px 6px; }
.op-nav.transparan .op-brand-text { border-left-color: rgba(255, 255, 255, .3); }
.op-nav.transparan .op-brand-text strong { color: #fff; }
.op-nav.transparan .op-brand-text small { color: rgba(255, 255, 255, .78); }
.op-nav.transparan .op-menu a, .op-nav.transparan .op-menu-btn { color: rgba(255, 255, 255, .88); }
.op-nav.transparan .op-menu a:hover, .op-nav.transparan .op-menu-btn:hover,
.op-nav.transparan .op-menu a.active { color: #fff; background: rgba(255, 255, 255, .14); }
.op-nav.transparan .op-menu-btn { border-color: rgba(255, 255, 255, .35); }
.op-nav.transparan .op-nav-toggle { color: #fff; border-color: rgba(255, 255, 255, .35); }

.op-alert-init { background: var(--op-warn-soft); color: var(--op-warn); font-weight: 700; font-size: .9rem; padding: .6rem 0; border-bottom: 1px solid #F3D9A4; }

/* ---------- Hero beranda ---------- */
.op-hero {
  color: #fff;
  background:
    radial-gradient(900px 300px at 85% -5%, rgba(249, 167, 3, .25), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 18px, transparent 18px 46px),
    linear-gradient(135deg, var(--op-navy) 0%, var(--op-primary-2) 62%, var(--op-brand) 100%);
}
.op-hero-body { padding: 3.5rem 15px 4.5rem; text-align: center; }
.op-hero h1 { font-weight: 800; font-size: 2.2rem; line-height: 1.25; margin-bottom: .6rem; letter-spacing: -.01em; }
.op-hero h1 .hl { color: var(--op-accent); }
.op-hero-sub { color: rgba(255, 255, 255, .85); font-size: 1.02rem; margin-bottom: 1.75rem; }
.op-hero-sub strong { color: #fff; }

/* ---------- Kotak pencarian ---------- */
.op-search { position: relative; max-width: 720px; margin: 0 auto; }
.op-search .fa-search { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: #94A3B8; pointer-events: none; }
.op-search input {
  width: 100%; height: 50px; border: 1px solid var(--op-border); border-radius: 12px;
  padding: 0 7rem 0 2.9rem; font-size: 1rem; color: var(--op-text); background: #fff; outline: none;
}
.op-search input:focus { border-color: var(--op-primary-2); box-shadow: 0 0 0 3px rgba(6, 122, 193, .2); }
.op-search button {
  position: absolute; right: 5px; top: 5px; bottom: 5px;
  border: 0; border-radius: 9px; padding: 0 1.4rem;
  background: var(--op-accent); color: var(--op-accent-ink); font-weight: 800;
}
.op-search button:hover { background: var(--op-accent-hover); }
.op-search-lg input { height: 58px; border: 0; box-shadow: 0 12px 32px rgba(0, 0, 0, .2); font-size: 1.05rem; }
.op-search-lg input:focus { box-shadow: 0 0 0 4px rgba(249, 167, 3, .55), 0 12px 32px rgba(0, 0, 0, .2); }
.op-link-spesifik { background: transparent; border: 0; color: #fff; font-weight: 700; font-size: .92rem; margin-top: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.op-link-spesifik:hover { color: var(--op-accent); }

.op-searchbar { background: linear-gradient(135deg, var(--op-navy) 0%, var(--op-primary-2) 100%); padding: 1.1rem 0 1.2rem; }
.op-searchbar .container { display: flex; align-items: center; gap: 1rem; }
.op-searchbar .op-search { flex: 1; margin: 0; max-width: none; }
.op-searchbar .op-search input { border: 0; }
.op-searchbar .op-link-spesifik { margin: 0; white-space: nowrap; }

/* ---------- Bagian beranda ---------- */
.op-section { padding: 2.75rem 0; }
.op-section-alt { background: var(--op-surface); border-top: 1px solid var(--op-border); border-bottom: 1px solid var(--op-border); }
.op-section-title { font-weight: 800; font-size: 1.4rem; margin-bottom: .35rem; }
.op-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.op-section-head p { color: var(--op-muted); margin: 0; font-size: .92rem; }
.op-more { font-weight: 800; font-size: .9rem; white-space: nowrap; }

.op-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.1rem; }
.op-tag {
  display: inline-block; padding: .4rem .9rem; border-radius: 999px; background: var(--op-surface);
  border: 1px solid var(--op-border); color: var(--op-text); font-weight: 700; font-size: .88rem; text-decoration: none !important;
}
.op-tag:hover { border-color: var(--op-primary-2); color: var(--op-primary-2); background: var(--op-primary-soft); }
.op-tag-sm { padding: .15rem .6rem; font-size: .82rem; margin: 0 .25rem .3rem 0; }

/* Rak buku (koleksi terbaru / terpopuler) */
.op-shelf {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, 1fr);
  gap: 1.25rem; overflow-x: auto; padding: .5rem .25rem 1rem; scroll-snap-type: x mandatory;
}
.op-shelf .op-book { scroll-snap-align: start; }
@media (min-width: 1200px) { .op-shelf { grid-auto-columns: calc((100% - 5 * 1.25rem) / 6); } }

.op-book { display: block; color: var(--op-text); text-decoration: none !important; min-width: 0; }
.op-book:hover .op-cover { transform: translateY(-4px); box-shadow: var(--op-shadow-hover); }
.op-book:hover .op-book-title { color: var(--op-primary); }
.op-book-title { font-weight: 800; font-size: .9rem; line-height: 1.35; margin-top: .65rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.op-book-meta { font-size: .8rem; color: var(--op-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Sampul */
.op-cover {
  position: relative; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden;
  background: #E2E8F0; box-shadow: var(--op-shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.op-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.op-cover-fallback {
  position: absolute; inset: 0; display: none; flex-direction: column; gap: .7rem;
  padding: .9rem .8rem .9rem 1.1rem; color: #fff;
  background:
    linear-gradient(90deg, var(--op-accent) 0, var(--op-accent) 5px, transparent 5px),
    linear-gradient(160deg, var(--op-navy) 0%, var(--op-primary-2) 60%, var(--op-brand) 100%);
}
.op-cover.no-img img { display: none; }
.op-cover.no-img .op-cover-fallback { display: flex; }
.op-cover-fallback .fa-book { opacity: .8; }
.op-cover-fallback span { font-weight: 800; font-size: .85rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.op-cover-sumber, .op-cover-count {
  position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px);
  background: rgba(7, 42, 71, .85); color: #fff; font-size: .7rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.op-cover-count { left: auto; right: 6px; bottom: auto; top: 6px; background: var(--op-accent); color: var(--op-accent-ink); }

/* Subjek DDC */
.op-subjects { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.op-subject {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem;
  padding: 1.25rem .75rem; border-radius: var(--op-radius); background: var(--op-bg); border: 1px solid var(--op-border);
  color: var(--op-text); text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease;
}
.op-subject:hover { transform: translateY(-3px); box-shadow: var(--op-shadow-hover); border-color: var(--op-primary-2); color: var(--op-text); }
.op-subject i { font-size: 1.6rem; color: var(--op-primary-2); margin-bottom: .4rem; }
.op-subject-code { font-size: .75rem; font-weight: 800; color: var(--op-accent-hover); letter-spacing: .05em; }
.op-subject-name { font-weight: 800; font-size: .9rem; line-height: 1.25; }
.op-subject-count { font-size: .78rem; color: var(--op-muted); }

/* Perpustakaan anggota */
.op-libs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.op-lib { background: var(--op-surface); border: 1px solid var(--op-border); border-top: 4px solid var(--op-brand); border-radius: var(--op-radius); padding: 1.5rem; text-align: center; box-shadow: var(--op-shadow); }
.op-lib h2, .op-lib h3 { font-weight: 800; font-size: 1.15rem; margin: .5rem 0 .25rem; }
.op-lib-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--op-primary-soft); color: var(--op-primary-2); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.op-lib-addr { color: var(--op-muted); font-size: .88rem; margin-bottom: .5rem; }
.op-lib-stats { display: flex; justify-content: center; gap: 1.5rem; margin: .9rem 0 1.1rem; }
.op-lib-stats div { display: flex; flex-direction: column; }
.op-lib-stats strong { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.op-lib-stats span { font-size: .78rem; color: var(--op-muted); }
.op-lib-sync { font-size: .82rem; color: var(--op-muted); }

/* ---------- Halaman statis ---------- */
.op-page-head { background: var(--op-surface); border-bottom: 1px solid var(--op-border); padding: 2rem 0 1.5rem; }
.op-page-head h1 { font-weight: 800; font-size: 1.7rem; margin: 0; }
.op-page-head p { color: var(--op-muted); margin: .3rem 0 0; }

/* ---------- Hasil pencarian ---------- */
.op-results-wrap { padding-top: 1.75rem; padding-bottom: 2.5rem; }
.op-filter-toggle { width: 100%; border: 1px solid var(--op-border); background: var(--op-surface); border-radius: 10px; padding: .6rem; font-weight: 800; color: var(--op-text); margin-bottom: .75rem; }
.op-filter { background: var(--op-surface); border: 1px solid var(--op-border); border-radius: var(--op-radius); padding: 1rem; box-shadow: var(--op-shadow); }
.op-filter-head { font-weight: 800; font-size: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--op-border); margin-bottom: .75rem; }
.op-filter-group { margin-bottom: 1.1rem; }
.op-filter-label { display: block; font-size: .75rem; font-weight: 800; color: var(--op-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem; }
.op-filter .custom-control-label { font-size: .88rem; }
.op-filter-empty { color: var(--op-muted); font-size: .85rem; }
.op-facet {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  padding: .3rem .5rem; margin: 0 -.5rem; border-radius: 6px; color: var(--op-text); font-size: .88rem; text-decoration: none !important;
}
.op-facet:hover { background: var(--op-primary-soft); color: var(--op-primary); }
.op-facet.active { color: var(--op-primary-2); font-weight: 800; background: var(--op-primary-soft); }
.op-facet-count { font-size: .75rem; font-weight: 700; color: var(--op-muted); background: var(--op-bg); border-radius: 999px; padding: 0 .5rem; font-variant-numeric: tabular-nums; }
.op-facet-more { display: none; }
.op-filter-group.terbuka .op-facet-more { display: flex; }
.op-facet-toggle { border: 0; background: transparent; color: var(--op-primary-2); font-weight: 700; font-size: .82rem; padding: .25rem 0; }

.op-results-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.op-results-info { font-size: .95rem; }
.op-results-time { font-size: .8rem; color: var(--op-muted); margin-top: .15rem; }
.op-sort { display: flex; align-items: center; gap: .5rem; }
.op-sort label { margin: 0; font-size: .8rem; font-weight: 800; color: var(--op-muted); text-transform: uppercase; letter-spacing: .04em; }
.op-sort select { min-width: 190px; border-radius: 8px; }

.op-chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: 1rem; }
.op-chip { display: inline-flex; align-items: center; padding: .25rem .7rem; border-radius: 999px; background: var(--op-primary-soft); color: var(--op-primary); font-size: .82rem; font-weight: 700; text-decoration: none !important; }
.op-chip:hover { background: #CDE9F8; }
.op-chip-reset { font-size: .82rem; font-weight: 700; margin-left: .25rem; }

.op-item {
  display: flex; gap: 1.25rem; background: var(--op-surface); border: 1px solid var(--op-border);
  border-radius: var(--op-radius); padding: 1.1rem; margin-bottom: 1rem; box-shadow: var(--op-shadow);
}
.op-item-cover { flex: 0 0 104px; text-decoration: none !important; }
.op-item-body { flex: 1; min-width: 0; }
.op-item-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .35rem; }
.op-badge { display: inline-block; font-size: .72rem; font-weight: 800; padding: .15rem .55rem; border-radius: 999px; background: var(--op-bg); color: var(--op-muted); border: 1px solid var(--op-border); text-decoration: none !important; }
.op-badge-sumber { background: var(--op-navy); color: #fff; border-color: var(--op-navy); }
a.op-badge-sumber:hover { background: var(--op-primary-2); color: #fff; }
.op-item-title { font-size: 1.08rem; font-weight: 800; line-height: 1.35; margin: 0 0 .25rem; }
.op-item-title a { color: var(--op-text); }
.op-item-title a:hover { color: var(--op-primary-2); }
.op-item-authors { font-size: .88rem; margin-bottom: .3rem; }
.op-item-authors a { color: var(--op-primary-2); }
.op-item-meta { font-size: .84rem; color: var(--op-muted); display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-bottom: .45rem; }
.op-item-avail { display: inline-block; font-size: .84rem; padding: .25rem .6rem; border-radius: 6px; margin-bottom: .7rem; }
.op-item-avail.ada { background: var(--op-success-soft); color: var(--op-success); }
.op-item-avail.kosong { background: var(--op-danger-soft); color: var(--op-danger); }
.op-item-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }

.op-empty { text-align: center; padding: 3.5rem 1rem; color: var(--op-muted); background: var(--op-surface); border: 1px dashed var(--op-border); border-radius: var(--op-radius); }
.op-empty i { font-size: 2.4rem; color: #CBD5E1; margin-bottom: 1rem; }
.op-empty h2 { color: var(--op-text); font-weight: 800; font-size: 1.15rem; }

.op-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: 1.5rem 0 1rem; }
.op-pagination a, .op-pagination span {
  min-width: 40px; height: 40px; padding: 0 .75rem; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; text-decoration: none !important;
  border: 1px solid var(--op-border); background: var(--op-surface); color: var(--op-text);
}
.op-pagination a:hover { border-color: var(--op-primary-2); color: var(--op-primary-2); }
.op-pagination .current { background: var(--op-primary-2); border-color: var(--op-primary-2); color: #fff; }
.op-pagination .gap { border: 0; background: transparent; min-width: 20px; padding: 0; }

/* ---------- Detail cantuman ---------- */
.op-detail-wrap { padding-top: 1.25rem; padding-bottom: 2.5rem; }
.op-breadcrumb { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: 0 0 1.25rem; font-size: .85rem; color: var(--op-muted); }
.op-breadcrumb li + li::before { content: "\203A"; margin: 0 .5rem; color: #94A3B8; }
.op-detail-cover .op-cover { max-width: 260px; margin: 0 auto; }
.op-detail-actions { max-width: 260px; margin: 1rem auto 0; display: grid; gap: .5rem; }
.op-detail-actions .btn { margin: 0; }
.op-detail-title { font-weight: 800; font-size: 1.6rem; line-height: 1.3; margin: 0 0 .35rem; }
.op-detail-sor { color: var(--op-muted); margin-bottom: .6rem; }
.op-detail-authors { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: .9rem; font-weight: 700; font-size: .92rem; }
.op-detail-notes { white-space: pre-line; background: var(--op-surface); border-left: 4px solid var(--op-accent); padding: .8rem 1rem; border-radius: 0 8px 8px 0; color: #334155; }

.op-block { background: var(--op-surface); border: 1px solid var(--op-border); border-radius: var(--op-radius); padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; box-shadow: var(--op-shadow); }
.op-block h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: .85rem; color: var(--op-navy); }
.op-block h2 i { color: var(--op-primary-2); }
.op-block p:last-child, .op-block ul:last-child { margin-bottom: 0; }

.op-table { font-size: .9rem; }
.op-table thead th { border-top: 0; border-bottom: 2px solid var(--op-border); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--op-muted); font-weight: 800; }
.op-table td, .op-table th { border-color: var(--op-border); vertical-align: top; }
.op-table-info th { width: 32%; font-weight: 700; color: var(--op-muted); background: #FAFBFD; }
.op-table-info tr:first-child th, .op-table-info tr:first-child td { border-top: 0; }

.op-status { display: inline-block; font-size: .8rem; font-weight: 800; padding: .2rem .55rem; border-radius: 6px; }
.op-status.tersedia { background: var(--op-success-soft); color: var(--op-success); }
.op-status.dipinjam { background: var(--op-danger-soft); color: var(--op-danger); }
.op-status.tidak { background: var(--op-warn-soft); color: var(--op-warn); }

.op-list { list-style: none; padding: 0; margin: 0; }
.op-list li { padding: .55rem 0; border-top: 1px solid var(--op-border); }
.op-list li:first-child { border-top: 0; padding-top: 0; }

/* ---------- Modal ---------- */
.op-modal { border: 0; border-radius: 14px; overflow: hidden; }
.op-modal .modal-header { background: var(--op-navy); color: #fff; border-bottom: 3px solid var(--op-accent); }
.op-modal .modal-title { font-size: 1.1rem; font-weight: 800; }
.op-modal .close { color: #fff; text-shadow: none; opacity: .85; }
.op-modal label { font-size: .8rem; font-weight: 800; color: var(--op-muted); text-transform: uppercase; letter-spacing: .04em; }
.op-sitasi { background: var(--op-bg); border: 1px solid var(--op-border); border-radius: 8px; padding: .9rem 1rem; margin: 0; user-select: all; }

/* ---------- Footer ---------- */
.op-footer { background: var(--op-navy); border-top: 3px solid var(--op-accent); color: rgba(255, 255, 255, .75); font-size: .9rem; padding: 2.5rem 0 1rem; flex-shrink: 0; }
.op-footer-title { color: #fff; font-size: 1rem; font-weight: 800; margin-bottom: .8rem; }
.op-footer strong { color: #fff; }
.op-footer-links li { margin-bottom: .35rem; }
.op-footer a { color: rgba(255, 255, 255, .85); }
.op-footer a:hover { color: var(--op-accent); }
.op-footer-search { display: flex; }
.op-footer-search .form-control { border-radius: 8px 0 0 8px; border: 0; }
.op-footer-search .btn { border-radius: 0 8px 8px 0; background: var(--op-accent); color: var(--op-accent-ink); font-weight: 800; }
.op-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1rem; margin-top: .5rem; font-size: .85rem; }

/* ---------- Responsif ---------- */
@media (max-width: 991.98px) {
  .op-nav-toggle { display: inline-block; flex-shrink: 0; }
  .op-menu { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: .75rem; }
  .op-menu.terbuka { display: flex; }
  .op-menu-btn { margin-left: 0; text-align: left; }
  .op-nav.transparan .op-menu.terbuka { background: rgba(7, 42, 71, .92); border-radius: 10px; padding: .5rem; }
  .op-subjects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .op-brand img { height: 32px; }
  .op-brand-text small { display: none; }
  .op-nav .container { flex-wrap: wrap; }
  .op-brand { flex: 1 1 0; }
  .op-brand-text strong { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; }
  .op-item-cover .op-cover-fallback { padding: .6rem .45rem .6rem .7rem; }
  .op-item-cover .op-cover-fallback span { font-size: .68rem; -webkit-line-clamp: 4; word-break: break-word; }
  .op-hero-body { padding: 2.25rem 16px 3rem; }
  .op-hero h1 { font-size: 1.55rem; }
  .op-search input { padding-right: 5.25rem; }
  .op-search button { padding: 0 .9rem; }
  .op-searchbar .container { flex-direction: column; align-items: stretch; gap: .5rem; }
  .op-searchbar .op-link-spesifik { text-align: right; }
  .op-section { padding: 2rem 0; }
  .op-section-head { flex-direction: column; align-items: flex-start; }
  .op-subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .op-item { gap: .9rem; padding: .9rem; }
  .op-item-cover { flex-basis: 72px; }
  .op-sort { width: 100%; }
  .op-sort select { flex: 1; min-width: 0; }
  .op-detail-title { font-size: 1.3rem; }
  .op-table-info th { width: 40%; }
}
