/* ==========================================================================
   modern.css — design system bersama untuk template "modern" baru
   (opd/badung, kecamatan/malili, kelurahan/tanah-merah, desa/tamang,
    puskesmas/sukabumi, sekolah/tembilahan)

   Dipakai SETELAH bootstrap + fontawesome + tenant.css.
   Token warna/typografi di-override per body.tpl-<nama> sehingga tiap
   template cukup mengatur variabel + menyisipkan gaya khasnya sendiri.

   Konvensi kelas: awalan .mx- (modern extended).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Token default
   -------------------------------------------------------------------------- */
:root {
  --mx-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mx-brand: #1d4ed8;
  --mx-brand-dark: #16389b;
  --mx-brand-soft: color-mix(in srgb, var(--mx-brand) 8%, #fff);
  --mx-accent: #f59e0b;
  --mx-ink: #0f172a;
  --mx-muted: #64748b;
  --mx-bg: #f5f7fb;
  --mx-card: #ffffff;
  --mx-line: #e6e9f0;
  --mx-radius: 14px;
  --mx-radius-sm: 9px;
  --mx-shadow: 0 12px 32px rgba(15, 23, 42, .08);
  --mx-shadow-hover: 0 22px 44px rgba(15, 23, 42, .14);
  --mx-nav-h: 74px;
}

/* Warna per template (diisi oleh masing-masing _head.php juga bila perlu) */
body.tpl-badung {
  --mx-brand: #f2163e;
  --mx-brand-dark: #d0103a;
  --mx-accent: #f05f0c;
  --mx-font: 'Inter', sans-serif;
}
body.tpl-malili {
  --mx-brand: #1a4f7a;
  --mx-brand-dark: #123a5c;
  --mx-accent: #c8860a;
  --mx-font: 'Plus Jakarta Sans', sans-serif;
}
body.tpl-tanah-merah {
  --mx-brand: #960000;
  --mx-brand-dark: #6d0000;
  --mx-accent: #0f766e;
  --mx-ink: #0f172a;
  --mx-font: 'Poppins', sans-serif;
}
body.tpl-tamang {
  --mx-brand: #0969ff;
  --mx-brand-dark: #0450c8;
  --mx-accent: #029019;
  --mx-font: 'Poppins', sans-serif;
}
body.tpl-sukabumi {
  --mx-brand: #064ea2;
  --mx-brand-dark: #053b7c;
  --mx-accent: #194f40;
  --mx-font: 'Inter', sans-serif;
}
body.tpl-tembilahan {
  --mx-brand: #00adef;
  --mx-brand-dark: #0382b3;
  --mx-accent: #93003c;
  --mx-font: 'Poppins', sans-serif;
}

/* --------------------------------------------------------------------------
   2. Dasar
   -------------------------------------------------------------------------- */
body.tenant-site {
  font-family: var(--mx-font);
  color: var(--mx-ink);
  background: var(--mx-bg);
  -webkit-font-smoothing: antialiased;
}
body.tenant-site h1, body.tenant-site h2, body.tenant-site h3,
body.tenant-site h4, body.tenant-site h5, body.tenant-site h6 {
  font-family: var(--mx-font);
  color: var(--mx-ink);
  font-weight: 800;
  letter-spacing: -.01em;
}
body.tenant-site a { text-decoration: none; }
body.tenant-site img { max-width: 100%; }
::selection { background: var(--mx-brand); color: #fff; }

/* --------------------------------------------------------------------------
   3. Topbar
   -------------------------------------------------------------------------- */
.mx-topbar {
  background: var(--mx-brand-dark);
  color: rgba(255, 255, 255, .88);
  font-size: .82rem;
  padding: .5rem 0;
}
.mx-topbar a { color: #fff; opacity: .9; }
.mx-topbar a:hover { opacity: 1; color: var(--mx-accent); }
.mx-topbar .mx-topbar-item i { color: var(--mx-accent); margin-right: .4rem; }
.mx-topbar .list-inline-item + .list-inline-item { margin-left: 1.1rem; }
.mx-topbar-dark { background: #0b1220; }

/* --------------------------------------------------------------------------
   4. Navbar
   -------------------------------------------------------------------------- */
.mx-navbar {
  background: var(--mx-card);
  box-shadow: 0 1px 0 var(--mx-line);
  z-index: 1030;
}
.mx-navbar.sticky-top { position: sticky; top: 0; }
.mx-navbar.is-stuck { box-shadow: 0 10px 30px rgba(15, 23, 42, .10); }
.mx-navbar .container { min-height: var(--mx-nav-h); }
.mx-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem 0;
  color: var(--mx-ink);
}
.mx-brand img { height: 46px; width: auto; }
.mx-brand .mx-brand-text { line-height: 1.15; }
.mx-brand .mx-brand-text strong {
  display: block;
  font-size: .98rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.mx-brand .mx-brand-text small {
  display: block;
  font-size: .74rem;
  color: var(--mx-muted);
}
.mx-nav { gap: .15rem; }
.mx-nav .nav-link {
  color: var(--mx-ink);
  font-weight: 600;
  font-size: .93rem;
  padding: .7rem .85rem;
  border-radius: var(--mx-radius-sm);
  position: relative;
  white-space: nowrap;
}
.mx-nav .nav-link:hover { color: var(--mx-brand); background: var(--mx-brand-soft); }
.mx-nav .nav-link.active,
.mx-nav .nav-link[aria-current="page"] { color: #fff; background: var(--mx-brand); }
.mx-nav .dropdown-item { font-weight: 500; color: var(--mx-ink); padding: .55rem 1rem; }
.mx-nav .dropdown-item:hover { background: var(--mx-brand-soft); color: var(--mx-brand); }
.mx-nav .dropdown-menu {
  border: 0;
  box-shadow: var(--mx-shadow);
  border-radius: var(--mx-radius-sm);
  padding: .5rem;
  margin-top: .4rem;
}
.mx-nav .dropdown-menu .dropdown-item { border-radius: 7px; }
/* submenu level 3 */
.mx-nav .dropdown-menu .dropdown-toggle::after { margin-left: .5rem; }
.mx-nav .dropdown-menu .dropdown-submenu {
  position: relative;
}
.mx-nav .dropdown-menu .dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -0.5rem;
}
.mx-navbar-toggler {
  border: 1px solid var(--mx-line);
  border-radius: 10px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--mx-card);
  color: var(--mx-brand);
  font-size: 1.2rem;
}
.mx-cta {
  background: var(--mx-brand);
  color: #fff !important;
  font-weight: 700;
  font-size: .88rem;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.mx-cta:hover { background: var(--mx-brand-dark); }
.mx-cta-accent { background: var(--mx-accent); }
.mx-cta-accent:hover { background: color-mix(in srgb, var(--mx-accent) 85%, #000); }

/* Offcanvas menu mobile */
.mx-drawer .offcanvas-header { border-bottom: 1px solid var(--mx-line); }
.mx-drawer .offcanvas-title { font-weight: 800; font-size: 1rem; }
.mx-drawer .nav-link { font-weight: 600; color: var(--mx-ink); border-radius: 9px; }
.mx-drawer .nav-link:hover { background: var(--mx-brand-soft); color: var(--mx-brand); }
.mx-drawer .dropdown-menu { position: static; box-shadow: none; border: 0; padding: 0 0 .4rem 1rem; background: transparent; }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.mx-hero {
  position: relative;
  background: linear-gradient(120deg, var(--mx-brand-dark), var(--mx-brand));
  color: #fff;
  overflow: hidden;
}
.mx-hero .carousel-item { height: 100%; }
.mx-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.mx-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6, 12, 26, .82) 8%, rgba(6, 12, 26, .35) 60%, rgba(6, 12, 26, .15));
}
.mx-hero-inner {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  max-width: 720px;
}
.mx-hero-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  padding: .35rem .85rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.mx-hero h1 {
  color: #fff;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: .9rem;
}
.mx-hero p { color: rgba(255, 255, 255, .87); font-size: 1.03rem; max-width: 620px; }
.mx-hero .btn { margin-top: 1.4rem; }
.mx-hero-short .mx-hero-inner { padding: 3.4rem 0 3rem; }
.mx-hero .carousel-indicators { bottom: 1rem; }
.mx-hero .carousel-indicators button { width: 10px; height: 10px; border-radius: 50%; }

/* Ticker / running text pengumuman */
.mx-ticker {
  background: var(--mx-card);
  border-bottom: 1px solid var(--mx-line);
  display: flex;
  align-items: stretch;
  font-size: .9rem;
  overflow: hidden;
}
.mx-ticker-label {
  background: var(--mx-brand);
  color: #fff;
  font-weight: 800;
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .7rem 1.1rem;
  display: flex; align-items: center; gap: .45rem;
  white-space: nowrap;
}
.mx-ticker-track {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}
.mx-ticker-track > div {
  display: inline-flex;
  gap: 2.5rem;
  padding-left: 100%;
  white-space: nowrap;
  animation: mxTicker 34s linear infinite;
}
.mx-ticker-track:hover > div { animation-play-state: paused; }
.mx-ticker-track a { color: var(--mx-ink); font-weight: 600; }
.mx-ticker-track a::before { content: '●'; color: var(--mx-accent); margin-right: .55rem; font-size: .6rem; vertical-align: middle; }
@keyframes mxTicker { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* --------------------------------------------------------------------------
   6. Akses cepat / quick menu
   -------------------------------------------------------------------------- */
.mx-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: -2.4rem;
  position: relative;
  z-index: 5;
}
.mx-quick-item {
  background: var(--mx-card);
  border: 1px solid var(--mx-line);
  border-radius: var(--mx-radius);
  padding: 1.15rem 1rem;
  text-align: center;
  box-shadow: var(--mx-shadow);
  transition: .25s;
  color: var(--mx-ink);
}
.mx-quick-item:hover { transform: translateY(-6px); box-shadow: var(--mx-shadow-hover); color: var(--mx-brand); }
.mx-quick-icon {
  width: 52px; height: 52px;
  margin: 0 auto .7rem;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--mx-brand-soft);
  color: var(--mx-brand);
  font-size: 1.35rem;
  transition: .25s;
}
.mx-quick-item:hover .mx-quick-icon { background: var(--mx-brand); color: #fff; }
.mx-quick-item strong { display: block; font-size: .92rem; font-weight: 700; }
.mx-quick-item small { color: var(--mx-muted); font-size: .76rem; }

/* --------------------------------------------------------------------------
   7. Section
   -------------------------------------------------------------------------- */
.mx-sec { padding: 3.4rem 0; }
.mx-sec-sm { padding: 2.2rem 0; }
.mx-sec-alt { background: #fff; }
.mx-sec-dark { background: var(--mx-brand-dark); color: #fff; }
.mx-sec-dark h2, .mx-sec-dark h3 { color: #fff; }
.mx-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.7rem;
}
.mx-sec-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--mx-brand);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .45rem;
}
.mx-sec-kicker::before {
  content: '';
  width: 26px; height: 3px;
  border-radius: 3px;
  background: var(--mx-accent);
}
.mx-sec-title {
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}
.mx-sec-sub { color: var(--mx-muted); margin: .5rem 0 0; font-size: .95rem; }
.mx-more {
  font-size: .85rem;
  font-weight: 700;
  color: var(--mx-brand);
  white-space: nowrap;
}
.mx-more:hover { color: var(--mx-brand-dark); gap: .7rem; }
.mx-more i { transition: .2s; }
.mx-more:hover i { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   8. Kartu
   -------------------------------------------------------------------------- */
.mx-card {
  background: var(--mx-card);
  border: 1px solid var(--mx-line);
  border-radius: var(--mx-radius);
  overflow: hidden;
  height: 100%;
  transition: .28s;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}
.mx-card:hover { transform: translateY(-6px); box-shadow: var(--mx-shadow-hover); border-color: transparent; }
.mx-card-img { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #e9edf5; }
.mx-card-img img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.mx-card:hover .mx-card-img img { transform: scale(1.06); }
.mx-card-body { padding: 1.15rem 1.2rem 1.3rem; }
.mx-card-meta {
  display: flex; flex-wrap: wrap; gap: .9rem;
  color: var(--mx-muted);
  font-size: .78rem;
  margin-bottom: .55rem;
}
.mx-card-meta i { color: var(--mx-brand); margin-right: .3rem; }
.mx-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mx-card a.mx-card-title:hover { color: var(--mx-brand); }
.mx-card-text {
  color: var(--mx-muted);
  font-size: .88rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mx-card-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .84rem; font-weight: 700;
  color: var(--mx-brand);
  margin-top: .8rem;
}
.mx-badge {
  position: absolute; top: .8rem; left: .8rem;
  background: var(--mx-brand);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .65rem;
  border-radius: 999px;
  z-index: 2;
}
.mx-badge-accent { background: var(--mx-accent); }
/* kartu unggulan (lebar besar) */
.mx-card-lead .mx-card-img { aspect-ratio: 16 / 10; }
.mx-card-lead .mx-card-title { font-size: 1.3rem; -webkit-line-clamp: 3; }

/* baris daftar (berita padat / sidebar) */
.mx-row {
  display: flex;
  gap: .9rem;
  padding: .85rem 0;
  border-bottom: 1px dashed var(--mx-line);
  align-items: flex-start;
}
.mx-row:last-child { border-bottom: 0; }
.mx-row-img {
  width: 96px; height: 72px;
  flex: 0 0 96px;
  border-radius: 10px;
  object-fit: cover;
  background: #e9edf5;
}
.mx-row-title {
  font-size: .93rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--mx-ink);
  margin: 0 0 .3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mx-row:hover .mx-row-title { color: var(--mx-brand); }
.mx-row-meta { font-size: .76rem; color: var(--mx-muted); }

/* daftar bernomor (pengumuman ala Badung) */
.mx-numlist { counter-reset: mxn; list-style: none; padding: 0; margin: 0; }
.mx-numlist li {
  counter-increment: mxn;
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: .8rem 0;
  border-bottom: 1px dashed var(--mx-line);
}
.mx-numlist li:last-child { border-bottom: 0; }
.mx-numlist li::before {
  content: counter(mxn, decimal-leading-zero);
  font-size: .85rem;
  font-weight: 800;
  color: var(--mx-brand);
  background: var(--mx-brand-soft);
  border-radius: 8px;
  min-width: 34px;
  height: 30px;
  display: grid; place-items: center;
}
.mx-numlist a { font-weight: 600; font-size: .92rem; color: var(--mx-ink); }
.mx-numlist a:hover { color: var(--mx-brand); }

/* chip / pill kategori */
.mx-chip {
  display: inline-flex; align-items: center;
  background: var(--mx-brand-soft);
  color: var(--mx-brand);
  font-size: .76rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: 999px;
}
.mx-chip-solid { background: var(--mx-brand); color: #fff; }

/* --------------------------------------------------------------------------
   9. Statistik / counter
   -------------------------------------------------------------------------- */
.mx-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.mx-stat {
  background: var(--mx-card);
  border: 1px solid var(--mx-line);
  border-radius: var(--mx-radius);
  padding: 1.4rem 1.2rem;
  text-align: center;
  box-shadow: var(--mx-shadow);
}
.mx-stat-icon {
  width: 46px; height: 46px;
  margin: 0 auto .7rem;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--mx-brand-soft);
  color: var(--mx-brand);
  font-size: 1.2rem;
}
.mx-stat b {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--mx-brand);
  line-height: 1.1;
}
.mx-stat span { font-size: .84rem; color: var(--mx-muted); }

/* --------------------------------------------------------------------------
   10. Sidebar widget
   -------------------------------------------------------------------------- */
.mx-widget {
  background: var(--mx-card);
  border: 1px solid var(--mx-line);
  border-radius: var(--mx-radius);
  overflow: hidden;
  margin-bottom: 1.4rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}
.mx-widget-head {
  background: var(--mx-brand);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  padding: .85rem 1.1rem;
  display: flex; align-items: center; gap: .55rem;
}
.mx-widget-head.accent { background: var(--mx-accent); }
.mx-widget-head.dark { background: var(--mx-brand-dark); }
.mx-widget-body { padding: 1rem 1.1rem 1.2rem; }
.mx-widget-title-sm { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mx-muted); font-weight: 700; margin-bottom: .8rem; }

/* agenda */
.mx-agenda { display: flex; gap: .9rem; padding: .8rem 0; border-bottom: 1px dashed var(--mx-line); }
.mx-agenda:last-child { border-bottom: 0; }
.mx-agenda-date {
  flex: 0 0 58px;
  text-align: center;
  background: var(--mx-brand-soft);
  border-radius: 10px;
  padding: .45rem .2rem;
  color: var(--mx-brand);
}
.mx-agenda-date b { display: block; font-size: 1.2rem; line-height: 1; }
.mx-agenda-date span { font-size: .68rem; text-transform: uppercase; font-weight: 700; }
.mx-agenda a { font-weight: 600; font-size: .9rem; color: var(--mx-ink); }
.mx-agenda a:hover { color: var(--mx-brand); }

/* galeri mini */
.mx-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.mx-gal a { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; display: block; background: #e9edf5; }
.mx-gal img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.mx-gal a:hover img { transform: scale(1.1); filter: brightness(.75); }

/* --------------------------------------------------------------------------
   11. Tombol
   -------------------------------------------------------------------------- */
.btn {
  border-radius: 10px;
  font-weight: 600;
  padding: .6rem 1.25rem;
}
.btn-primary {
  --bs-btn-bg: var(--mx-brand);
  --bs-btn-border-color: var(--mx-brand);
  --bs-btn-hover-bg: var(--mx-brand-dark);
  --bs-btn-hover-border-color: var(--mx-brand-dark);
  --bs-btn-active-bg: var(--mx-brand-dark);
  --bs-btn-active-border-color: var(--mx-brand-dark);
}
.btn-outline-primary {
  --bs-btn-color: var(--mx-brand);
  --bs-btn-border-color: var(--mx-brand);
  --bs-btn-hover-bg: var(--mx-brand);
  --bs-btn-hover-border-color: var(--mx-brand);
  --bs-btn-hover-color: #fff;
}
.mx-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--mx-brand);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  padding: .72rem 1.4rem;
  border-radius: 999px;
  border: 0;
  transition: .25s;
}
.mx-btn:hover { background: var(--mx-brand-dark); color: #fff; transform: translateY(-2px); }
.mx-btn-accent { background: var(--mx-accent); }
.mx-btn-accent:hover { background: color-mix(in srgb, var(--mx-accent) 85%, #000); }
.mx-btn-ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .6);
  color: #fff;
}
.mx-btn-ghost:hover { background: #fff; color: var(--mx-brand); border-color: #fff; }

/* --------------------------------------------------------------------------
   12. Halaman internal (dipakai juga view bersama fallback)
   -------------------------------------------------------------------------- */
.mx-banner {
  background: linear-gradient(120deg, var(--mx-brand-dark), var(--mx-brand));
  color: #fff;
  padding: 2.6rem 0;
}
.mx-banner h1 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); margin: .3rem 0 0; }
.mx-banner .breadcrumb { background: transparent; padding: 0; margin: 0; }
.mx-banner .breadcrumb-item a { color: rgba(255, 255, 255, .8); }
.dashboard-wrapper .mx-banner { border-radius: var(--mx-radius); }
body.tenant-site .page-banner {
  background: linear-gradient(120deg, var(--mx-brand-dark), var(--mx-brand));
  color: #fff;
}
body.tenant-site .page-banner h1 { color: #fff; }
body.tenant-site .page-banner .breadcrumb-item a { color: rgba(255, 255, 255, .82); }
body.tenant-site .page-banner .breadcrumb-item.active { color: rgba(255, 255, 255, .65); }
body.tenant-site .page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .55); }

.mx-panel {
  background: var(--mx-card);
  border: 1px solid var(--mx-line);
  border-radius: var(--mx-radius);
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}
.mx-panel + .mx-panel { margin-top: 1.2rem; }

/* view bersama: kartu berita & list */
body.tenant-site .post-card {
  background: var(--mx-card);
  border: 1px solid var(--mx-line) !important;
  border-radius: var(--mx-radius);
}
body.tenant-site .post-card .card-title a { color: var(--mx-ink); }
body.tenant-site .section-title { color: var(--mx-ink); }
body.tenant-site .section-kicker { color: var(--mx-brand); }
body.tenant-site .sidebar-card {
  background: var(--mx-card);
  border: 1px solid var(--mx-line);
  border-radius: var(--mx-radius);
  box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}
body.tenant-site .pagination .page-item.active .page-link {
  background: var(--mx-brand);
  border-color: var(--mx-brand);
}
body.tenant-site .pagination .page-link { color: var(--mx-brand); }
body.tenant-site .list-group-item { border-color: var(--mx-line); }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.mx-footer {
  background: #0b1220;
  color: rgba(255, 255, 255, .74);
  padding: 3.4rem 0 0;
  font-size: .92rem;
}
.mx-footer h5 {
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.1rem;
  position: relative;
  padding-bottom: .6rem;
}
.mx-footer h5::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 34px; height: 3px;
  border-radius: 3px;
  background: var(--mx-accent);
}
.mx-footer a { color: rgba(255, 255, 255, .74); }
.mx-footer a:hover { color: var(--mx-accent); }
.mx-footer .mx-footer-brand strong { color: #fff; display: block; font-size: 1.05rem; margin-bottom: .6rem; }
.mx-footer ul { list-style: none; padding: 0; margin: 0; }
.mx-footer ul li { margin-bottom: .55rem; display: flex; gap: .6rem; align-items: flex-start; }
.mx-footer ul li i { color: var(--mx-accent); margin-top: .28rem; width: 16px; }
.mx-footer ul li a { display: inline-flex; gap: .55rem; align-items: center; }
.mx-social { display: flex; gap: .6rem; }
.mx-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transition: .25s;
}
.mx-social a:hover { background: var(--mx-brand); transform: translateY(-3px); }
.mx-subfooter {
  margin-top: 2.6rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1rem 0;
  font-size: .82rem;
  color: rgba(255, 255, 255, .55);
}
.mx-subfooter a { color: rgba(255, 255, 255, .75); }

/* --------------------------------------------------------------------------
   14. Aksesibilitas toolbar (khas Badung)
   -------------------------------------------------------------------------- */
.mx-a11y {
  position: fixed;
  right: 0;
  top: 38%;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .25);
  border-radius: 10px 0 0 10px;
  overflow: hidden;
}
.mx-a11y button, .mx-a11y a {
  width: 42px; height: 42px;
  border: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #f7a518, #ef3f5c);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}
.mx-a11y button:hover, .mx-a11y a:hover { filter: brightness(1.1); }
body.mx-large { font-size: 118%; }
body.mx-contrast { filter: contrast(1.35); }
body.mx-darkpage { background: #10151f; }
body.mx-darkpage .mx-panel,
body.mx-darkpage .mx-card,
body.mx-darkpage .mx-widget,
body.mx-darkpage .mx-stat { background: #1a2130; border-color: #2a3346; }
body.mx-underline a { text-decoration: underline !important; }

/* --------------------------------------------------------------------------
   15. Elemen pendukung
   -------------------------------------------------------------------------- */
.back-to-top {
  background: var(--mx-brand) !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--mx-brand) 40%, transparent) !important;
}
.mx-empty {
  background: var(--mx-card);
  border: 1px dashed var(--mx-line);
  border-radius: var(--mx-radius);
  padding: 2.2rem 1.2rem;
  text-align: center;
  color: var(--mx-muted);
}
.mx-empty i { display: block; font-size: 1.9rem; color: var(--mx-brand); opacity: .55; margin-bottom: .7rem; }
.mx-scroll { scrollbar-width: thin; }
.mx-dots { display: flex; gap: .4rem; justify-content: center; }
.mx-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--mx-line); }
.mx-dots span.on { background: var(--mx-brand); width: 24px; border-radius: 6px; }

/* bottom nav khas situs sekolah */
.mx-bottomnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1045;
  background: #fff;
  border-top: 1px solid var(--mx-line);
  display: none;
  box-shadow: 0 -6px 20px rgba(15, 23, 42, .1);
}
.mx-bottomnav a {
  flex: 1;
  text-align: center;
  padding: .5rem .2rem .55rem;
  font-size: .68rem;
  font-weight: 700;
  color: var(--mx-muted);
  display: grid;
  gap: .15rem;
  justify-items: center;
}
.mx-bottomnav a i { font-size: 1.05rem; color: var(--mx-brand); }
.mx-bottomnav a:hover, .mx-bottomnav a.active { color: var(--mx-brand); }
@media (max-width: 767.98px) {
  .mx-bottomnav { display: flex; }
  body.tenant-site { padding-bottom: 62px; }
}

/* --------------------------------------------------------------------------
   16. Responsif
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .mx-hero-inner { padding: 4rem 0 3.4rem; }
  .mx-sec { padding: 2.6rem 0; }
  .mx-nav .nav-link { padding: .55rem .7rem; font-size: .9rem; }
}
@media (max-width: 575.98px) {
  .mx-brand .mx-brand-text strong { font-size: .85rem; }
  .mx-quick { margin-top: -1.6rem; }
  .mx-stat b { font-size: 1.45rem; }
  .mx-a11y { top: auto; bottom: 78px; }
}
