/* ==========================================================================
   Template Website Penjaminan Mutu — situs publik (tata letak & komponen)

   Berkas ini TIDAK berisi warna/font tetap. Semua warna, font, radius, dan
   motif berasal dari variabel tema di assets/themes/<tema>/theme.css.
   Ganti tema = ganti tampilan, tanpa menyentuh berkas ini.
   ========================================================================== */

body { font-family: var(--font-body); background: var(--bg); color: var(--text); }
h1, h2, h3, h4, h5, .brand-title { font-family: var(--font-heading); }
a { text-decoration: none; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; background: var(--highlight); color: var(--on-highlight); padding: .5rem 1rem; font-weight: 700; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Ticker ---------- */
.news-ticker { background: var(--accent); color: var(--on-dark); font-size: .85rem; }
.news-ticker .label { background: rgba(0, 0, 0, .6); padding: .35rem .75rem; font-weight: 700; letter-spacing: .03em; flex: none; }
.news-ticker .msg { padding: .35rem 0; color: var(--on-dark); }
.news-ticker a.msg:hover { text-decoration: underline; }
.ticker-slide { min-width: 0; }
.ticker-slide .carousel-item a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker-slide .ticker-date { opacity: .8; font-size: .78rem; }
.ticker-nav { flex: none; }
.ticker-nav button { background: none; border: 0; color: var(--on-dark); padding: .35rem .45rem; line-height: 1; opacity: .85; }
.ticker-nav button:hover { opacity: 1; background: rgba(0, 0, 0, .15); }

/* ---------- Header ---------- */
.site-header { background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%); }
.site-header a { color: inherit; }
.logo-badge { width: 56px; height: 56px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--heading); font-size: 1.4rem; flex: none; box-shadow: 0 0 0 3px var(--highlight); overflow: hidden; }
.logo-badge.is-long { font-size: .78rem; letter-spacing: -.01em; }
.logo-badge img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.brand-title { color: var(--on-dark); font-weight: 700; font-size: 1.35rem; line-height: 1.2; margin: 0; }
.brand-sub { color: var(--on-dark-muted); font-size: .78rem; margin: 0; }

.navbar-main { background: var(--surface); border-bottom: 3px solid var(--highlight); }
.navbar-main .nav-link { color: var(--heading); font-weight: 600; font-size: .92rem; padding: .85rem 1rem; }
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active,
.navbar-main .nav-link.show { color: var(--accent); }
.navbar-main .dropdown-menu { border: none; box-shadow: 0 10px 25px rgba(0, 0, 0, .12); }
.navbar-main .dropdown-item.active,
.navbar-main .dropdown-item:active { background: var(--primary); color: var(--on-dark); }
.navbar-main .navbar-brand-mobile { font-weight: 700; color: var(--heading); font-size: .95rem; }

/* ---------- Slider gambar beranda ---------- */
.hero-slider { position: relative; background: var(--hero-deepest); }
.hero-slide { display: block; position: relative; color: var(--on-dark); }
.hero-slide-img { display: block; width: 100%; aspect-ratio: 16 / 5; object-fit: cover; }
.hero-slide-kosong { position: relative; background: radial-gradient(circle at 30% 20%, var(--primary-soft) 0%, var(--hero-deep) 60%, var(--hero-deepest) 100%); }
.hero-slide-kosong::before { content: ""; position: absolute; inset: 0; background: var(--hero-pattern); }
.hero-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 4rem 0 3rem; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.hero-caption-title { display: block; font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.2rem, 3.4vw, 2.6rem); line-height: 1.2; color: var(--highlight); text-shadow: 0 3px 14px rgba(0, 0, 0, .5); }
.hero-caption-text { display: block; max-width: 760px; margin-top: .4rem; font-size: clamp(.85rem, 1.5vw, 1.05rem); font-weight: 500; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.hero-caption-more { display: inline-flex; align-items: center; gap: .2rem; margin-top: .75rem; padding: .35rem .9rem; border-radius: 50px; background: var(--accent); font-size: .8rem; font-weight: 600; }
a.hero-slide:hover .hero-caption-more { background: var(--accent-hover); }
a.hero-slide:focus-visible { outline: 3px solid var(--highlight); outline-offset: -3px; }
.hero-slider .carousel-indicators { margin-bottom: .9rem; }
.hero-slider .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 4px; background: var(--highlight); }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { width: 6%; }
.page-header { position: relative; background: radial-gradient(circle at 30% 20%, var(--primary-soft) 0%, var(--hero-deep) 60%, var(--hero-deepest) 100%); overflow: hidden; }
.page-header::before { content: ""; position: absolute; inset: 0; background: var(--hero-pattern); pointer-events: none; }

/* ---------- Page header (halaman dalam) ---------- */
.page-header { padding: 2.5rem 0; }
.page-header h1 { color: var(--highlight); font-weight: 800; font-size: clamp(1.5rem, 3.5vw, 2.3rem); text-shadow: 0 4px 18px rgba(0, 0, 0, .5); margin: 0; }
.page-header .breadcrumb { margin: .6rem 0 0; font-size: .82rem; }
.page-header .breadcrumb a { color: var(--on-dark-muted); }
.page-header .breadcrumb a:hover { color: var(--on-dark); }
.page-header .breadcrumb-item.active { color: var(--on-dark); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: var(--on-dark-faint); }

/* ---------- Section headings ---------- */
.section-title { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.05rem; color: var(--heading); border-bottom: 2px solid var(--line); padding-bottom: .6rem; margin-bottom: 1.2rem; }
.section-title i { color: var(--accent); }
.section-title[id] { scroll-margin-top: 80px; }
.section-title .more { margin-left: auto; font-size: .8rem; font-weight: 600; color: var(--link); }
.section-title .more:hover { color: var(--accent); }

/* ---------- Announcement card ---------- */
.ann-card { display: flex; gap: .9rem; margin-bottom: 1.5rem; }
.ann-card img { width: 110px; height: 90px; object-fit: cover; border-radius: var(--radius-sm); flex: none; }
.ann-card .meta { font-size: .75rem; color: var(--meta); }
.ann-card h3 { font-size: .98rem; font-weight: 700; color: var(--heading); margin: .2rem 0; }
.ann-card h3 a { color: inherit; }
.ann-card h3 a:hover { color: var(--accent); }
.ann-card p { font-size: .83rem; color: var(--muted); margin: 0; }

.download-title { font-weight: 700; color: var(--heading); font-size: .95rem; }
.download-title a { color: inherit; }
.download-title a:hover { color: var(--accent); }

/* ---------- Download list ---------- */
.dl-item { display: flex; gap: .9rem; margin-bottom: 1.4rem; }
.dl-date { background: var(--primary); color: var(--on-dark); text-align: center; border-radius: var(--radius-sm); width: 58px; flex: none; padding: .4rem 0; line-height: 1.1; align-self: flex-start; }
.dl-date .m { font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; color: var(--highlight); }
.dl-date .d { font-size: 1.25rem; font-weight: 800; }
.dl-body { flex: 1; min-width: 0; }
.dl-body p { font-size: .8rem; color: var(--muted); margin: .15rem 0 0; }
.dl-meta { font-size: .72rem; color: var(--meta); margin-top: .3rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.dl-meta .dl-cat { color: var(--link); font-weight: 600; }
.file-badge { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .15rem .45rem; border-radius: 4px; color: #fff; background: var(--link); }
.file-badge.pdf { background: #c0392b; }
.file-badge.xlsx { background: #1e7e45; }
.file-badge.docx { background: #2b579a; }
.dl-list-page .dl-item { background: var(--surface); border-radius: var(--radius); padding: 1rem; box-shadow: 0 6px 18px rgba(var(--shadow-rgb), .06); align-items: center; }
.dl-filter { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.dl-filter a { font-size: .8rem; font-weight: 600; padding: .35rem .85rem; border-radius: 50px; background: var(--surface); color: var(--heading); border: 1px solid var(--line); }
.dl-filter a:hover { border-color: var(--accent); color: var(--accent); }
.dl-filter a.active { background: var(--primary); border-color: var(--primary); color: var(--on-dark); }

/* ---------- Berita cards ---------- */
.news-card { border: none; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 18px rgba(var(--shadow-rgb), .08); height: 100%; transition: transform .2s ease; background: var(--surface); }
.news-card:hover { transform: translateY(-4px); }
.news-card img { height: 150px; object-fit: cover; }
.news-card .card-body { padding: 1rem; }
.news-card h3 { font-size: .92rem; font-weight: 700; color: var(--heading); }
.news-card h3 a { color: inherit; }
.news-card h3 a:hover { color: var(--accent); }
.news-card .meta { font-size: .72rem; color: var(--meta); }
.news-card .meta a { color: var(--link); }
.news-card p { font-size: .8rem; color: var(--muted); }

/* ---------- Unit / layanan ---------- */
.unit-card { display: flex; align-items: center; gap: .9rem; background: var(--surface); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: 0 6px 18px rgba(var(--shadow-rgb), .06); height: 100%; border-left: 4px solid var(--highlight); transition: transform .2s ease, border-color .2s ease; color: var(--text); }
a.unit-card:hover { transform: translateY(-3px); border-left-color: var(--accent); }
.unit-code { width: 54px; height: 54px; border-radius: 10px; background: var(--primary); color: var(--highlight); font-weight: 800; font-size: .78rem; display: flex; align-items: center; justify-content: center; flex: none; text-align: center; line-height: 1.1; padding: 2px; }
.unit-card h3 { font-size: .92rem; font-weight: 700; color: var(--heading); margin: 0 0 .15rem; }
.unit-card p { font-size: .78rem; color: var(--muted); margin: 0; }

/* ---------- Pimpinan (foto bingkai lingkaran) ---------- */
.pimpinan-card { text-align: center; height: 100%; padding: 1.25rem .75rem 1rem; background: var(--surface); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(var(--shadow-rgb), .06); transition: transform .2s ease; }
.pimpinan-card:hover { transform: translateY(-3px); }
.pimpinan-foto { width: 116px; height: 116px; margin: 0 auto .9rem; border-radius: 50%; padding: 4px; background: linear-gradient(135deg, var(--highlight), var(--accent)); box-shadow: 0 8px 18px rgba(var(--shadow-rgb), .18); }
.pimpinan-foto img, .pimpinan-foto .kosong { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--surface); object-fit: cover; object-position: center 20%; display: block; background: var(--bg); }
.pimpinan-foto .kosong { display: flex; align-items: flex-end; justify-content: center; overflow: hidden; color: var(--meta); font-size: 4.6rem; line-height: 1; }
.pimpinan-card h3 { font-size: .86rem; font-weight: 700; color: var(--heading); margin: 0 0 .35rem; line-height: 1.35; }
.pimpinan-card h3.belum { color: var(--meta); font-weight: 600; font-style: italic; }
.pimpinan-jabatan { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--on-dark); background: var(--primary); padding: .25rem .6rem; border-radius: 50px; }
.pimpinan-ket { display: block; font-size: .72rem; color: var(--meta); margin-top: .35rem; }

/* ---------- Rekap akreditasi (widget warna-warni mengikuti tema) ---------- */
.rekap-akreditasi { position: relative; overflow: hidden; padding: 2.75rem 0 3rem; background: radial-gradient(circle at 30% 20%, var(--primary-soft) 0%, var(--hero-deep) 60%, var(--hero-deepest) 100%); }
.rekap-akreditasi::before { content: ""; position: absolute; inset: 0; background: var(--hero-pattern); pointer-events: none; }
.rekap-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.rekap-eyebrow { color: var(--on-dark-muted); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 .25rem; }
.rekap-eyebrow i { color: var(--highlight); }
.rekap-judul { color: var(--highlight); font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin: 0; text-shadow: 0 3px 14px rgba(0, 0, 0, .35); }
.rekap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.rekap-widget { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .15rem; padding: 1.1rem 1.15rem 1rem; min-height: 132px; border-radius: var(--radius-lg); color: var(--on-dark); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); transition: transform .2s ease, box-shadow .2s ease; }
.rekap-widget:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(0, 0, 0, .24); color: var(--on-dark); }
.rekap-widget::after { content: ""; position: absolute; width: 120px; height: 120px; right: -34px; top: -34px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.rekap-ikon { position: absolute; right: 1rem; top: .9rem; font-size: 1.6rem; opacity: .85; z-index: 1; }
.rekap-angka { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; line-height: 1.1; margin-top: .2rem; }
.rekap-angka.is-teks { font-size: 1.35rem; padding-right: 2.2rem; margin-top: .45rem; }
.rekap-label { font-size: .85rem; font-weight: 700; line-height: 1.3; }
.rekap-sub { font-size: .72rem; opacity: .85; margin-top: auto; padding-top: .35rem; }
.rekap-widget.w-1 { background: linear-gradient(135deg, var(--accent), var(--accent-hover)); }
.rekap-widget.w-2 { background: linear-gradient(135deg, color-mix(in srgb, var(--link) 72%, #000), color-mix(in srgb, var(--link) 50%, #000)); }
.rekap-widget.w-3 { background: linear-gradient(135deg, var(--highlight), color-mix(in srgb, var(--highlight) 72%, var(--accent))); color: var(--on-highlight); }
.rekap-widget.w-3:hover { color: var(--on-highlight); }
.rekap-widget.w-4 { background: linear-gradient(135deg, var(--primary-soft), var(--primary)); }
.rekap-widget.w-5 { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 55%, var(--primary)), var(--primary-dark)); }
.rekap-widget.w-6 { background: linear-gradient(135deg, color-mix(in srgb, var(--link) 45%, var(--accent)), color-mix(in srgb, var(--accent) 60%, #000)); }
.rekap-widget.w-peringatan { background: linear-gradient(135deg, #d97706, #b45309); }
/* Di halaman akreditasi (latar terang) widget berdiri sendiri tanpa latar banner. */

/* ---------- Tabel akreditasi ---------- */
.akr-table { font-size: .82rem; --bs-table-bg: var(--surface); min-width: 860px; }
.akr-table thead th { background: var(--primary); color: var(--on-dark); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; border: 0; padding: .75rem .5rem; vertical-align: middle; line-height: 1.3; }
.akr-table tbody td { padding: .65rem .5rem; border-color: var(--line-soft); color: var(--text-soft); }
.akr-table .akr-nama { min-width: 140px; }
.akr-table .akr-ket { min-width: 90px; max-width: 180px; }
.akr-table .akr-sk { min-width: 120px; max-width: 170px; }
.akr-table .peringkat-badge { white-space: normal; text-align: center; line-height: 1.25; max-width: 110px; border-radius: 12px; }
.akr-table tbody tr:hover td { background: color-mix(in srgb, var(--highlight) 8%, var(--surface)); }
.akr-table .akr-nama strong { color: var(--heading); }
.akr-institusi { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); border: 1px solid currentColor; border-radius: 4px; padding: 0 .3rem; margin-left: .25rem; }
.akr-filter .form-label { color: var(--heading); margin-bottom: .2rem; }

/* DataTables di halaman akreditasi (warna mengikuti tema) */
.akr-box { padding: 1rem .75rem; }
.akr-box table.dataTable thead > tr > th.sorting, .akr-box table.dataTable thead > tr > th.sorting_asc, .akr-box table.dataTable thead > tr > th.sorting_desc { padding-right: 18px; }
.akr-box table.dataTable thead > tr > th.sorting::before, .akr-box table.dataTable thead > tr > th.sorting::after { right: 5px; }
.akr-box .dataTables_wrapper .row { --bs-gutter-x: 1rem; }
.akr-box .dataTables_length, .akr-box .dataTables_filter, .akr-box .dataTables_info { font-size: .82rem; color: var(--muted); }
.akr-box .dataTables_filter input { min-width: 240px; }
.akr-box .dataTables_filter input:focus, .akr-box .dataTables_length select:focus, .akr-filter .form-select:focus { border-color: var(--highlight); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--highlight) 20%, transparent); }
.akr-box .dataTables_scrollHead { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.akr-box table.dataTable thead th { position: relative; }
.akr-box table.dataTable thead > tr > th.sorting::before, .akr-box table.dataTable thead > tr > th.sorting::after { color: var(--on-dark); }
.akr-box table.dataTable > tbody > tr.odd > * { box-shadow: inset 0 0 0 9999px color-mix(in srgb, var(--primary) 3%, transparent); }
.akr-box .pagination { margin-top: .5rem; }
@media (max-width: 575.98px) {
  .akr-box { padding: .9rem; }
  .akr-box .dataTables_filter input { min-width: 0; width: 100%; }
}

/* ---------- Lencana akreditasi (peringkat & masa berlaku) (peringkat & masa berlaku) ---------- */
.peringkat-badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 50px; color: var(--on-dark); background: var(--primary); white-space: nowrap; }
.peringkat-badge.pk-1, .peringkat-badge.pk-4 { background: var(--accent); }
.peringkat-badge.pk-2, .peringkat-badge.pk-5 { background: color-mix(in srgb, var(--link) 70%, #000); }
.peringkat-badge.pk-3, .peringkat-badge.pk-6 { background: var(--highlight); color: var(--on-highlight); }
.peringkat-badge.pk-9 { background: var(--meta); }
.masa-badge { display: inline-block; font-size: .68rem; font-weight: 600; padding: .1rem .45rem; border-radius: 4px; margin-top: .2rem; }
.masa-badge.masa-berlaku { background: color-mix(in srgb, #198754 14%, transparent); color: #198754; }
.masa-badge.masa-segera { background: color-mix(in srgb, #d97706 16%, transparent); color: #b45309; }
.masa-badge.masa-kedaluwarsa { background: color-mix(in srgb, #dc3545 14%, transparent); color: #dc3545; }
.masa-badge.masa-tanpa { background: var(--line-soft); color: var(--muted); }
[data-bs-theme="dark"] .masa-badge.masa-berlaku { color: #75d99f; }
[data-bs-theme="dark"] .masa-badge.masa-segera { color: #fbbf24; }
[data-bs-theme="dark"] .masa-badge.masa-kedaluwarsa { color: #f28b95; }

/* ---------- Video / gallery ---------- */
.video-box { border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 28px rgba(0, 0, 0, .15); position: relative; background: #000; }
.video-box img { width: 100%; display: block; }
.video-box .ratio iframe { border: 0; }
.play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; width: 100%; }
.play-btn i { font-size: 3.2rem; color: #fff; background: rgba(224, 0, 0, .56); border-radius: 50%; padding: .6rem; transition: transform .2s ease; }
.play-btn:hover i { transform: scale(1.08); }

.gallery-item { position: relative; display: block; border-radius: 10px; overflow: hidden; margin-bottom: 1rem; box-shadow: 0 6px 16px rgba(0, 0, 0, .1); border: 0; padding: 0; width: 100%; background: none; }
.gallery-item img { width: 100%; height: 230px; object-fit: cover; display: block; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .9rem .7rem; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); color: #fff; text-align: left; font-size: .85rem; font-weight: 600; }
.gallery-item .caption small { display: block; font-weight: 400; color: rgba(255, 255, 255, .78); font-size: .72rem; }

/* ---------- Sidebar ---------- */
.side-box { background: var(--surface); border-radius: var(--radius); padding: 1.1rem; box-shadow: 0 6px 18px rgba(var(--shadow-rgb), .06); margin-bottom: 1.5rem; }
.side-box h2 { font-weight: 700; color: var(--heading); font-size: 1rem; border-bottom: 2px solid var(--highlight); padding-bottom: .5rem; margin-bottom: .9rem; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li { padding: .45rem 0; border-bottom: 1px dashed var(--line-soft); font-size: .85rem; }
.side-box li:last-child { border-bottom: none; }
.side-box li a { color: var(--text-soft); display: flex; gap: .4rem; }
.side-box li a:hover, .side-box li a.active { color: var(--accent); }
.side-box li .count { margin-left: auto; font-size: .72rem; color: var(--meta); }
.archive-list { max-height: 340px; overflow-y: auto; }
.archive-list::-webkit-scrollbar { width: 6px; }
.archive-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }

/* ---------- Artikel / halaman ---------- */
.content-box { background: var(--surface); border-radius: var(--radius); padding: 1.75rem; box-shadow: 0 6px 18px rgba(var(--shadow-rgb), .06); }
.article-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: 10px; margin-bottom: 1.25rem; }
.article-meta { font-size: .8rem; color: var(--meta); display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: 1.25rem; }
.article-meta a { color: var(--link); }
.article-content { font-size: .95rem; line-height: 1.8; color: var(--text-soft); }
.article-content h2 { font-size: 1.15rem; font-weight: 700; color: var(--heading); margin: 1.5rem 0 .6rem; }
.article-content h2:first-child { margin-top: 0; }
.article-content a { color: var(--link); text-decoration: underline; }
.article-content table { font-size: .88rem; }
.article-content table th { background: var(--bg); color: var(--heading); }
.share-bar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1rem; font-size: .85rem; font-weight: 600; color: var(--heading); }
.share-bar a, .share-bar button { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg); color: var(--heading); border: 0; }
.share-bar a:hover, .share-bar button:hover { background: var(--accent); color: var(--on-dark); }

.empty-state { background: var(--surface); border-radius: var(--radius); padding: 3rem 1.5rem; text-align: center; color: var(--muted); box-shadow: 0 6px 18px rgba(var(--shadow-rgb), .06); }
.empty-state i { font-size: 2.5rem; color: var(--highlight); display: block; margin-bottom: .5rem; }

.filter-info { background: var(--surface); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: .7rem 1rem; font-size: .85rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.filter-info > i { color: var(--accent); }
.filter-info a { margin-left: auto; font-weight: 600; color: var(--link); }

/* ---------- Pagination ---------- */
.pagination .page-link { color: var(--heading); border-color: var(--line); background: var(--surface); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: var(--on-dark); }
.pagination .page-link:hover { color: var(--accent); }

/* ---------- Kontak ---------- */
.contact-card { background: var(--surface); border-radius: var(--radius); padding: 1.25rem; box-shadow: 0 6px 18px rgba(var(--shadow-rgb), .06); height: 100%; display: flex; gap: .9rem; }
.contact-card .ic { width: 46px; height: 46px; border-radius: var(--radius); background: var(--primary); color: var(--highlight); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex: none; }
.contact-card h2 { font-size: .9rem; font-weight: 700; color: var(--heading); margin: 0 0 .2rem; }
.contact-card p { font-size: .85rem; color: var(--muted); margin: 0; word-break: break-word; }
.contact-card a { color: var(--link); }
.map-box { border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 18px rgba(var(--shadow-rgb), .06); }
.map-box iframe { border: 0; width: 100%; height: 380px; display: block; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--primary-dark); color: var(--on-dark-muted); font-size: .85rem; }
.footer-top { padding: 3rem 0 2rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-footer h2 { color: var(--highlight); font-size: .95rem; font-weight: 700; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; display: flex; gap: .55rem; }
.site-footer li i { color: var(--highlight); }
.site-footer a { color: var(--on-dark-muted); }
.site-footer a:hover { color: var(--on-dark); }
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.footer-brand .logo-badge { width: 46px; height: 46px; font-size: 1.1rem; }
.footer-brand .logo-badge.is-long { font-size: .65rem; }
.footer-brand strong { color: var(--on-dark); display: block; line-height: 1.3; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; justify-content: center; margin-right: .35rem; }
.footer-social a:hover { background: var(--accent); color: var(--on-dark); }
.footer-bottom { padding: 1.1rem 0; font-size: .8rem; }

/* ---------- Tombol ---------- */
.btn-accent { background: var(--accent); color: var(--on-dark); border: none; }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-hover); color: var(--on-dark); }
.btn-outline-theme { border: 1px solid var(--heading); color: var(--heading); font-weight: 600; }
.btn-outline-theme:hover { background: var(--primary); color: var(--on-dark); }

.back-to-top { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: var(--on-dark); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; z-index: 1000; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); color: var(--on-dark); }

/* ---------- Bilah pratinjau tema (hanya development) ---------- */
.theme-preview-bar { position: fixed; left: 1rem; bottom: 1rem; z-index: 1050; background: #111; color: #fff; font-size: .78rem; padding: .5rem .8rem; border-radius: 50px; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); display: flex; align-items: center; gap: .5rem; }
.theme-preview-bar a { color: #ffd166; font-weight: 600; }

/* ---------- Logo gambar: tampil apa adanya, tanpa lingkaran ---------- */
.logo-badge.has-image { width: auto; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.logo-badge.has-image img { width: auto; height: 100%; max-width: 220px; padding: 0; }
.footer-brand .logo-badge.has-image { width: auto; }

@media (max-width: 767.98px) {
  .hero-slide-img { aspect-ratio: 16 / 7; }
  .hero-caption { padding: 2.5rem 0 3.25rem; }
}

@media (max-width: 575.98px) {
  .rekap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .rekap-widget { min-height: 118px; padding: .9rem .9rem .8rem; }
  .rekap-angka { font-size: 1.75rem; }
  .rekap-angka.is-teks { font-size: 1.1rem; padding-right: 1.6rem; }
  .rekap-ikon { font-size: 1.25rem; right: .75rem; top: .75rem; }
  .rekap-label { font-size: .78rem; }
  .hero-caption-text, .hero-caption-more { display: none; }
  .brand-title { font-size: 1.05rem; }
  .ann-card img { width: 88px; height: 76px; }
  .content-box { padding: 1.25rem; }
}

/* Latar permukaan yang mengikuti tema (pengganti .bg-white agar mendukung tema gelap). */
.bg-surface { background-color: var(--surface) !important; }
