/* =========================================================
   SMK Cakrawala Nusantara - Sistem Informasi Akademik
   ========================================================= */
:root {
  --navy: #0b333a;
  --navy-2: #0d3c44;
  --blue: #1b6975;
  --blue-2: #1ea2b6;
  --sky: #e3f8fc;
  --sky-2: #d0f3f9;
  --ink: #0f262a;
  --muted: #4e6266;
  --line: #d8ecf0;
  --ok: #16a34a;
  --warn: #d97706;
  --off: #dc2626;
  --radius: 14px;
  --shadow: 0 6px 22px rgba(13,60,68, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--sky);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.2; color: var(--navy); }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.container { width: min(1140px, 92%); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--blue); color: #fff; font: inherit; font-weight: 600;
  padding: .8rem 1.6rem; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(27,105,117, .3);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--navy-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .5rem 1.2rem; font-size: .9rem; box-shadow: none; }
.btn-light { background: #fff; color: var(--blue); box-shadow: none; }
.btn-light:hover { background: var(--sky); }
.btn-block { display: block; width: 100%; border-radius: 10px; }

/* ---------- Tag & alert ---------- */
.tag {
  display: inline-block; font-size: .72rem; font-weight: 600;
  padding: .15rem .6rem; border-radius: 999px;
  background: var(--sky-2); color: var(--blue); vertical-align: middle;
}
.tag.ok { background: #dcfce7; color: var(--ok); }
.tag.warn { background: #fee3c7; color: var(--warn); }
.tag.off { background: #fee2e2; color: var(--off); }

.alert { padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .92rem; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-ok { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }

/* ---------- Ilustrasi siswa (animasi) ---------- */
.illus { width: 100%; height: auto; display: block; animation: bob 4s ease-in-out infinite; }
.plane { transform-box: fill-box; animation: fly 5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes fly { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(12px, -10px) rotate(-6deg); } }

/* =========================================================
   HALAMAN PUBLIK
   ========================================================= */
body.public { background: #c9f2f8; }

/* Satu lebar untuk header, hero, kartu fitur, pengumuman, dan footer */
.container, .wrap { width: min(1400px, 92%); margin-inline: auto; }

/* ---------- Header ---------- */
.pub-header { position: sticky; top: 0; z-index: 20; background: #fff; box-shadow: 0 2px 14px rgba(13,60,68, .08); }
.pub-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.pub-brand { display: flex; align-items: center; gap: .7rem; color: var(--navy); }
.pub-brand:hover { text-decoration: none; }
.pub-brand img { width: 46px; height: 46px; object-fit: contain; }
.pub-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.pub-brand strong { font-size: 1rem; }
.pub-brand small { color: var(--muted); font-size: .76rem; }

.pub-menu { display: flex; align-items: center; gap: .3rem; }
.pub-menu > a, .drop-btn { color: var(--navy); font-weight: 600; font-size: .92rem; padding: .45rem 1rem; border-radius: 999px; }
.pub-menu > a:hover, .drop-btn:hover { background: var(--sky); text-decoration: none; }
.pub-menu > a.active { background: var(--blue); color: #fff; }
.pub-menu > a.btn { color: #fff; margin-left: .4rem; padding: .5rem 1.4rem; }
.pub-menu > a.btn:hover { background: var(--navy-2); }
.pub-menu > a.btn-outline { background: #fff; color: var(--blue); border: 2px solid var(--blue); box-shadow: none; padding: .4rem 1.3rem; }
.pub-menu > a.btn-outline:hover { background: var(--sky); }

.dropdown { position: relative; }
.drop-list {
  display: none; position: absolute; right: 0; top: 100%; min-width: 210px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: .5rem; z-index: 30;
}
.dropdown:hover .drop-list, .dropdown:focus-within .drop-list { display: block; }
.drop-list a { display: block; padding: .55rem .8rem; border-radius: 8px; color: var(--navy); font-size: .9rem; }
.drop-list a:hover { background: var(--sky); text-decoration: none; }
.nav-burger { display: none; font-size: 1.6rem; cursor: pointer; color: var(--navy); }

/* ---------- Hero (tanpa awan bergerak) ---------- */
.hero {
  position: relative; overflow: hidden; min-height: 520px; display: flex; align-items: center;
  background: linear-gradient(180deg, #def7fb 0%, #c9f2f8 100%);
}
/* Foto sekolah: memudar di kiri, kanan, dan bawah supaya menyatu */
.hero::before {
  content: ""; position: absolute; inset: 0 0 0 38%;
  background: var(--bg) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%, #000 90%, transparent 100%),
                      linear-gradient(180deg, #000 52%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0, #000 34%, #000 90%, transparent 100%),
                      linear-gradient(180deg, #000 52%, transparent 100%);
          mask-composite: intersect;
}
.hero-inner { position: relative; padding: 3.5rem 0 6rem; }
.hero-inner > *:not(.motto) { max-width: 480px; }
.eyebrow { color: var(--blue); font-weight: 600; font-size: 1.1rem; margin-bottom: .3rem; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-bottom: .4rem; }
.hero h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.lead { color: #24383b; font-size: 1.02rem; margin-bottom: 1.5rem; }

/* Semboyan: digeser ke kiri, di atas kartu semi-transparan agar terbaca jelas */
.motto {
  position: absolute; left: 54%; top: 2.4rem; margin: 0; padding: .7rem 1.5rem .8rem;
  font-family: "Caveat", cursive; font-size: 2.1rem; line-height: 1.1; color: var(--navy);
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(6px);
  border-radius: 26px 8px 26px 8px; box-shadow: 0 8px 22px rgba(11,51,58, .18);
  transform: rotate(-4deg);
}

/* ---------- Area langit berawan di bawah hero ---------- */
.sky {
  position: relative; display: flow-root; padding-bottom: 6.5rem;
  background:
    radial-gradient(rgba(27,105,117, .08) 1.2px, transparent 1.4px) 0 0 / 24px 24px,
    url("../images/awan.svg") center top / cover no-repeat,   /* ganti awan.svg jadi awan.jpg bila memakai foto */
    #c9f2f8;
}
/* Gelombang pembatas ke footer */
.sky::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 72px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cpath fill='%230e4a58' d='M0 42 C240 0 480 72 720 36 C960 0 1200 62 1440 26 V72 H0 Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}

/* ---------- Kartu fitur (selebar header) ---------- */
.features {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  margin-top: -2.4rem; position: relative; z-index: 2; padding: 1.4rem .5rem;
}
.feature { text-align: center; padding: .4rem 1rem; border-right: 1px solid var(--line); }
.feature:last-child { border-right: 0; }
.feature span {
  display: inline-grid; place-items: center; width: 54px; height: 54px;
  border-radius: 50%; background: var(--sky); font-size: 1.5rem; margin-bottom: .5rem;
}
.feature h3 { font-size: 1rem; }
.feature p { color: var(--muted); font-size: .84rem; margin: 0; }
.feature .ic-1 { background: #cff3f9; }
.feature .ic-2 { background: #d1fae5; }
.feature .ic-3 { background: #e9fafe; }
.feature .ic-4 { background: #cffafe; }
.feature .ic-5 { background: #ffedd5; }

/* ---------- Pengumuman + promo ---------- */
.home-bottom { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.4rem; margin-top: 1.6rem; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem 1.4rem; margin-bottom: 1.2rem; }
.home-bottom .panel { margin-bottom: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .9rem; flex-wrap: wrap; }
.panel-head h3 { margin: 0; font-size: 1.05rem; }
.panel-head a { font-size: .85rem; font-weight: 600; }

.news { display: flex; gap: .9rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.news:first-of-type { border-top: 0; }
.news .date {
  flex: 0 0 52px; height: 52px; border-radius: 10px; background: var(--sky);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
}
.news .date strong { font-size: 1.15rem; color: var(--navy); }
.news .date small { color: var(--muted); font-size: .72rem; }
.news p { margin: .2rem 0 0; font-size: .85rem; }

.promo {
  position: relative; overflow: hidden; border-radius: var(--radius);
  color: #fff; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; gap: .5rem;
  padding: 2rem 1.5rem 0 2rem; min-height: 260px;
  background: linear-gradient(135deg, #0d3c44 0%, #1ea2b6 100%);
}
.promo::before { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; right: -60px; bottom: -90px; background: rgba(255, 255, 255, .12); }
.promo-text { align-self: center; padding-bottom: 2rem; position: relative; }
.promo-text h3 { color: #fff; font-size: 1.5rem; }
.promo-text p { opacity: .92; margin-bottom: 1.2rem; }
.promo-art { position: relative; align-self: end; }

/* ---------- Halaman isi ---------- */
.page { padding: 2.5rem 0 3rem; }
.page h1 { font-size: 2rem; margin-bottom: 1.2rem; }
.page .news { background: #fff; padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: .8rem; border: 0; box-shadow: var(--shadow); }

/* ---------- Footer bertekstur (foto sekolah + titik) ---------- */
.pub-footer { position: relative; overflow: hidden; background: var(--navy); color: #bde5ec; padding: 2rem 0; font-size: .88rem; }
.pub-footer::before {
  content: ""; position: absolute; inset: 0; opacity: .2;
  background: var(--bg) center 35% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 70%);
          mask-image: linear-gradient(180deg, transparent 0, #000 70%);
}
.pub-footer::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(rgba(255, 255, 255, .08) 1.2px, transparent 1.4px) 0 0 / 22px 22px;
}
.pub-footer .foot { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: center; gap: 1rem; }
.foot-motto { text-align: right; line-height: 1.4; }
.foot-motto small { display: block; margin-top: .5rem; opacity: .6; font-size: .75rem; }
.pub-footer .pub-brand, .pub-footer .pub-brand small { color: #fff; }
.pub-footer .pub-brand small { opacity: .75; }

/* Pastikan tidak ada awan bergerak tersisa */
.cloud { display: none !important; animation: none !important; }

/* =========================================================
   LOGIN
   ========================================================= */
body.login-page {
  min-height: 100vh; display: grid; place-items: center; padding: 1.5rem;
  background: linear-gradient(rgba(11,51,58, .8), rgba(27,105,117, .65)), var(--bg) center / cover no-repeat;
}
.login-wrap {
  width: min(940px, 100%); display: grid; grid-template-columns: 1fr 1.1fr;
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(7,42,49, .4);
}
.login-side {
  padding: 1.8rem; color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
  background: linear-gradient(160deg, var(--navy) 0%, var(--blue-2) 100%);
}
.login-side .pub-brand, .login-side .pub-brand small { color: #fff; }
.login-side .pub-brand small { opacity: .75; }
.login-art { padding: 0 .5rem; }
.login-motto { text-align: center; margin: 0; font-family: "Caveat", cursive; font-size: 1.6rem; }

.login-main { padding: 2.2rem 2.4rem; }
.role-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.4rem; }
.role-tab {
  border: 1.5px solid var(--line); background: #fff; color: var(--navy); cursor: pointer;
  padding: .4rem .85rem; border-radius: 999px; font: inherit; font-size: .82rem; font-weight: 600;
  transition: background .15s, color .15s, border-color .15s;
}
.role-tab:hover { background: var(--sky); }
.role-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.login-main h2 { font-size: 1.6rem; margin-bottom: .2rem; }
.login-main label { display: block; font-weight: 600; font-size: .86rem; margin: 1rem 0 .3rem; color: var(--navy); }
.login-main input {
  width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--sky); transition: border-color .15s, background .15s;
}
.login-main input:focus { outline: none; border-color: var(--blue-2); background: #fff; }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 3rem; }
.pass-wrap button {
  position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; padding: .3rem .5rem;
}
.login-main .btn-block { margin-top: 1.4rem; }
.login-main p.center { margin: 1.1rem 0 0; font-size: .88rem; }

/* =========================================================
   DASHBOARD: sidebar lengkung, hamburger, bottom nav
   ========================================================= */
body.app {
  --page: #eef9fb;
  --shape: 28px 10px 28px 10px;          /* bentuk menekuk, tidak kotak */
  background: var(--page); min-height: 100vh;
}
body.app .panel, body.app .stat, body.app .hub-card { border-radius: var(--shape); }

/* Sidebar (laci) */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 50;
  display: flex; flex-direction: column; overflow-y: auto;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #bde5ec;
  border-radius: 0 46px 46px 0;
  transform: translateX(-104%); transition: transform .3s ease;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }
body.nav-open .sidebar { transform: none; }

.side-brand { display: flex; align-items: center; gap: .6rem; padding: 1.2rem 1.1rem 1rem; color: #fff; }
.side-brand:hover { text-decoration: none; }
.side-brand img { width: 42px; height: 42px; object-fit: contain; }
.side-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.side-brand strong { font-size: .88rem; }
.side-brand small { font-size: .68rem; opacity: .7; }

.side-menu { flex: 1; padding: .4rem 0 1rem .8rem; display: flex; flex-direction: column; gap: .15rem; }
.side-label { margin: 1rem 0 .3rem .9rem; font-size: .76rem; font-weight: 700; color: #6cc8d8; }
.side-menu a {
  position: relative; display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1rem; color: #bde5ec; font-size: .9rem; font-weight: 500;
  border-radius: 999px 0 0 999px;
}
.side-menu a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.side-menu .ico { width: 1.4rem; text-align: center; }

/* Menu aktif: tab menekuk menyatu dengan halaman */
.side-menu a.active { background: var(--page); color: var(--navy); font-weight: 700; }
.side-menu a.active::before, .side-menu a.active::after {
  content: ""; position: absolute; right: 0; width: 22px; height: 22px; pointer-events: none;
}
.side-menu a.active::before { top: -22px;    background: radial-gradient(circle at 0 0,    transparent 22px, var(--page) 22.5px); }
.side-menu a.active::after  { bottom: -22px; background: radial-gradient(circle at 0 100%, transparent 22px, var(--page) 22.5px); }

.side-user {
  display: flex; align-items: center; gap: .65rem; margin: .5rem 1rem 1.2rem .8rem; padding: .7rem .8rem;
  background: rgba(255, 255, 255, .08); border-radius: 22px 8px 22px 8px;
}
.side-user > div:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.side-user strong { color: #fff; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user small { font-size: .72rem; opacity: .7; }
.avatar { width: 38px; height: 38px; border-radius: 14px 14px 14px 5px; background: var(--blue-2); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.logout { color: #fff; font-size: 1.2rem; padding: .3rem; border-radius: 10px; }
.logout:hover { background: rgba(255, 255, 255, .14); text-decoration: none; }

.scrim { position: fixed; inset: 0; z-index: 45; background: rgba(11,51,58, .45); opacity: 0; pointer-events: none; transition: opacity .3s; }
body.nav-open .scrim { opacity: 1; pointer-events: auto; }

/* Konten */
.content { min-height: 100vh; display: flex; flex-direction: column; transition: margin-left .3s ease; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1.4rem; background: rgba(238,249,251, .92); backdrop-filter: blur(8px);
}
.topbar h1 { margin: 0; font-size: 1.3rem; }
.topbar-date { margin-left: auto; font-size: .88rem; }
.content-body { padding: .6rem 1.6rem 8rem; }   /* ruang untuk bottom nav */
.greet { font-size: 1.05rem; margin-bottom: 1.1rem; }

/* Hamburger (garis tiga) berbentuk menekuk */
.burger {
  flex: none; width: 46px; height: 46px; border: 0; cursor: pointer; background: #fff;
  border-radius: 18px 18px 18px 6px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  transition: background .2s;
}
.burger:hover { background: var(--sky-2); }
.burger span { display: block; width: 20px; height: 2.5px; border-radius: 3px; background: var(--navy); transition: transform .25s, opacity .2s; }
body.nav-open .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Bottom navigation bar */
.bottom-nav {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 40;
  width: min(560px, calc(100% - 24px)); display: flex; align-items: flex-end; justify-content: space-around;
  padding: .5rem .5rem .45rem; background: var(--navy); border-radius: 34px;
  box-shadow: 0 12px 32px rgba(11,51,58, .38);
}
.bn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: .1rem;
  color: #8cd3df; font-size: .7rem; font-weight: 600; padding: .2rem 0;
}
.bn-item:hover { text-decoration: none; color: #fff; }
.bn-ico {
  width: 42px; height: 42px; display: grid; place-items: center; font-size: 1.3rem;
  border-radius: 18px 18px 18px 6px; transition: transform .25s, background .25s, box-shadow .25s;
}
.bn-txt { transition: transform .25s; }
.bn-item.active { color: #fff; }
.bn-item.active .bn-ico {
  background: var(--blue-2); transform: translateY(-16px);
  box-shadow: 0 0 0 5px var(--navy), 0 8px 16px rgba(30,162,182, .5);
}
.bn-item.active .bn-txt { transform: translateY(-14px); }

/* Halaman induk tab */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.hub-card {
  display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem;
  background: #fff; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s;
}
.hub-card:hover { transform: translateY(-3px); text-decoration: none; }
.hub-card .hc-ico { flex: none; width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.5rem; background: var(--sky); border-radius: 18px 18px 18px 6px; }
.hub-card strong { display: block; color: var(--navy); }
.hub-card small { color: var(--muted); font-size: .8rem; line-height: 1.35; display: block; }

/* Statistik, tabel, bar */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.3rem; }
.stat { display: flex; align-items: center; gap: .9rem; background: #fff; padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.stat > span { width: 48px; height: 48px; border-radius: 16px 16px 16px 5px; background: var(--sky); display: grid; place-items: center; font-size: 1.4rem; flex: none; }
.stat small { display: block; color: var(--muted); font-size: .78rem; }
.stat strong { font-size: 1.45rem; color: var(--navy); line-height: 1.2; }
.panel .stats { margin-top: .2rem; }
.panel .stat { box-shadow: none; border: 1px solid var(--line); }

.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem; align-items: start; }
.two-col .panel { margin-bottom: 0; }

.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .78rem; color: var(--muted); font-weight: 600; padding: .55rem .6rem; border-bottom: 2px solid var(--line); }
.table td { padding: .65rem .6rem; border-bottom: 1px solid var(--line); }
.table tbody tr:hover { background: var(--sky); }

.bar-row { display: grid; grid-template-columns: 110px 1fr 44px; align-items: center; gap: .7rem; margin-bottom: .7rem; font-size: .88rem; }
.bar { height: 10px; background: var(--sky-2); border-radius: 99px; overflow: hidden; }
.bar > div { height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-2)); border-radius: 99px; }
.bar-row strong { text-align: right; color: var(--navy); }

.big-ico { font-size: 3rem; margin-bottom: .4rem; }
.panel.center { padding: 3rem 1.4rem; }

/* Layar lebar: sidebar mendorong konten */
@media (min-width: 992px) {
  body.nav-open .content { margin-left: 270px; }
  .scrim { display: none; }
}

/* =========================================================
   RESPONSIF
   ========================================================= */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); gap: .6rem 0; }
  .feature:nth-child(2n) { border-right: 0; }
  .home-bottom, .two-col { grid-template-columns: 1fr; }
  .hero::before { inset: 0; opacity: .35; -webkit-mask-image: none; mask-image: none; }
  .motto { display: none; }
  .pub-footer .foot { grid-template-columns: 1fr; }
  .foot-motto { text-align: left; }
  .promo { grid-template-columns: 1fr; padding-right: 2rem; }
  .promo-art { max-width: 280px; margin-inline: auto; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-side { display: none; }
}
@media (max-width: 760px) {
  .pub-nav { flex-wrap: wrap; }
  .nav-burger { display: block; }
  .pub-menu { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: .6rem 0; }
  .nav-toggle:checked ~ .pub-menu { display: flex; }
  .drop-list { position: static; box-shadow: none; display: block; padding-left: 1rem; }
  .pub-menu > a.btn { margin: .4rem 0 0; text-align: center; }
  .login-main { padding: 1.6rem 1.3rem; }
  .bar-row { grid-template-columns: 80px 1fr 40px; }
}
@media (max-width: 600px) {
  .topbar { padding: .8rem 1rem; }
  .topbar h1 { font-size: 1.1rem; }
  .topbar-date { display: none; }
  .content-body { padding: .4rem 1rem 8rem; }
  /* awan lebih kecil di layar kecil */
  .hero::after { background-size: 100% 70px, 150px auto, 200px auto, 170px auto, 110px auto, auto, auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
}

/* =========================================================
   v3: background animasi, hero, teks berjalan, banner geser
   ========================================================= */
body.app { isolation: isolate; }
body.app::before {
  content: ""; position: fixed; inset: -12%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 380px at 85% 10%, rgba(30,162,182, .18), transparent 70%),
    radial-gradient(480px 360px at 8% 88%, rgba(27,105,117, .14), transparent 70%),
    radial-gradient(rgba(27,105,117, .10) 1.2px, transparent 1.4px) 0 0 / 22px 22px;
  animation: bgdrift 20s ease-in-out infinite alternate;
}
@keyframes bgdrift { from { transform: translate(0, 0); } to { transform: translate(-3%, 2.5%); } }

.sec-title { margin: 1.4rem 0 .8rem; font-size: 1.05rem; }
.hub-grid.quick { margin-bottom: 1.4rem; }

/* Hero header */
.dash-hero {
  position: relative; overflow: hidden; min-height: 170px; margin-bottom: 1rem;
  padding: 1.7rem 1.9rem; color: #fff; box-shadow: var(--shadow);
  border-radius: 38px 12px 38px 12px;
  background: linear-gradient(110deg, rgba(11,51,58, .93) 28%, rgba(30,162,182, .55)), var(--bg) center / cover no-repeat;
}
.hero-text { position: relative; z-index: 2; max-width: 520px; }
.hero-text small { opacity: .85; font-size: .82rem; }
.hero-text h2 { color: #fff; font-size: clamp(1.3rem, 3vw, 1.9rem); margin: .2rem 0 .3rem; }
.hero-text p { margin: 0; opacity: .92; }
.cloud { position: absolute; z-index: 1; height: 34px; width: 110px; border-radius: 40px; background: rgba(255, 255, 255, .16); animation: cloudmove linear infinite; }
.cloud::before { content: ""; position: absolute; left: 20px; top: -16px; width: 50px; height: 50px; border-radius: 50%; background: inherit; }
.c1 { top: 18%; animation-duration: 38s; }
.c2 { top: 52%; animation-duration: 52s; animation-delay: -20s; transform: scale(.7); }
.c3 { top: 76%; animation-duration: 44s; animation-delay: -8s; transform: scale(1.2); opacity: .7; }
@keyframes cloudmove { from { left: -140px; } to { left: 105%; } }
.hero-plane { position: absolute; z-index: 2; right: 6%; top: 18%; font-size: 2.2rem; animation: planefly 6s ease-in-out infinite; }
@keyframes planefly { 0%, 100% { transform: translate(0, 0) rotate(-8deg); } 50% { transform: translate(-22px, -14px) rotate(-14deg); } }

/* Teks berjalan */
.ticker {
  display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; padding: .35rem;
  background: #fff; box-shadow: var(--shadow); border-radius: 999px 22px 999px 22px; overflow: hidden;
}
.tk-label { flex: none; padding: .38rem .95rem; font-size: .78rem; font-weight: 700; color: #fff; background: var(--blue); border-radius: 999px 14px 999px 14px; }
.tk-track { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tk-move { display: inline-flex; white-space: nowrap; animation: tick 34s linear infinite; }
.tk-track:hover .tk-move { animation-play-state: paused; }
.tk-move span { padding-right: 2.4rem; font-size: .88rem; font-weight: 600; color: var(--navy); }
.tk-move span::before { content: "•"; margin-right: 2.4rem; color: var(--blue-2); }
@keyframes tick { to { transform: translateX(-50%); } }

/* Banner geser otomatis */
.slider { position: relative; height: 158px; margin-bottom: 1.2rem; overflow: hidden; box-shadow: var(--shadow); border-radius: 12px 34px 12px 34px; }
.slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.8rem; color: #fff; opacity: 0; visibility: hidden; animation: slidefade 15s infinite;
}
.slide h3 { color: #fff; font-size: 1.25rem; margin-bottom: .2rem; }
.slide p { margin: 0 0 .7rem; opacity: .92; font-size: .9rem; }
.s1 { background: linear-gradient(120deg, #0d3c44, #1ea2b6); }
.s2 { background: linear-gradient(120deg, #0b4148, #1ba5c9); animation-delay: 5s; }
.s3 { background: linear-gradient(120deg, #15424e, #2fbadb); animation-delay: 10s; }
.slide::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.sl-art { position: relative; z-index: 1; font-size: 4.2rem; animation: floaty 3s ease-in-out infinite; }
.slide > div:first-child { position: relative; z-index: 1; }
@keyframes slidefade {
  0%       { opacity: 0; visibility: hidden;  transform: translateX(28px); }
  5%, 30%  { opacity: 1; visibility: visible; transform: none; }
  35%, 100%{ opacity: 0; visibility: hidden;  transform: translateX(-28px); }
}
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }

/* Cincin pencapaian */
.rings { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; padding: .4rem 0 .2rem; }
.ring-item { text-align: center; font-size: .85rem; color: var(--muted); font-weight: 600; }
.ring {
  --p: 0; position: relative; width: 124px; height: 124px; margin: 0 auto .5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--blue-2) calc(var(--p) * 1%), var(--sky-2) 0);
}
.ring::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: #fff; }
.ring strong { position: relative; font-size: 1.5rem; color: var(--navy); }
.ring.r2 { background: conic-gradient(#22b8cf calc(var(--p) * 1%), var(--sky-2) 0); }

/* Titik notifikasi di tab Notifikasi */
.bn-item[href$="menu/notifikasi"] .bn-ico { position: relative; }
.bn-item[href$="menu/notifikasi"] .bn-ico::after {
  content: ""; position: absolute; top: 6px; right: 7px; width: 9px; height: 9px; border-radius: 50%;
  background: #ff5d5d; box-shadow: 0 0 0 2px var(--navy); animation: ping 1.8s ease-out infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 2px var(--navy), 0 0 0 2px rgba(255, 93, 93, .6); } 100% { box-shadow: 0 0 0 2px var(--navy), 0 0 0 10px rgba(255, 93, 93, 0); } }

@media (max-width: 600px) {
  .dash-hero { padding: 1.3rem 1.3rem; border-radius: 28px 10px 28px 10px; }
  .hero-plane { display: none; }
  .slider { height: 178px; }
  .slide { padding: 1rem 1.2rem; }
  .sl-art { font-size: 3rem; }
  .slide h3 { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  body.app::before, .cloud, .hero-plane, .tk-move, .sl-art, .bn-ico::after { animation: none !important; }
  .slide { animation: none !important; }
  .slide.s1 { opacity: 1; visibility: visible; }
}

/* =========================================================
   v4: animasi scroll (muncul/hilang naik-turun, halus)
   Dipakai bersama assets/js/reveal.js
   ========================================================= */
.js .reveal {
  opacity: 0;
  transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
.js .reveal.out-down { transform: translateY(44px); }    /* belum terlihat, di bawah layar */
.js .reveal.out-up   { transform: translateY(-44px); }   /* sudah lewat, di atas layar */
.js .reveal.in       { opacity: 1; transform: none; transition-delay: var(--d, 0s); }

/* Tulisan tangan miring tetap miring saat dianimasikan */
.js .motto.reveal.out-down,
.js .motto.reveal.out-up { transform: rotate(-8deg) translateY(30px); }
.js .motto.reveal.in     { transform: rotate(-8deg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before, .hero::after { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   v4: semboyan, menu halus, scroll reveal, hero mobile, profil
   ========================================================= */

/* ---------- Semboyan tanpa latar ---------- */
.motto {
  background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: none; border-radius: 0; padding: 0;
  color: #fff; font-size: 2.3rem; transform: rotate(-5deg);
  text-shadow: 0 2px 3px rgba(9,43,50, .65), 0 4px 18px rgba(9,43,50, .55);
}

/* ---------- Muncul / hilang mengikuti scroll ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(38px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}
.js [data-reveal].above { transform: translateY(-38px); }
.js [data-reveal].in { opacity: 1; transform: none; transition-delay: var(--d, 0s); }

/* ---------- Dropdown Layanan: buka-tutup halus ---------- */
.drop-list {
  display: block; opacity: 0; visibility: hidden; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.dropdown.open .drop-list { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
@media (hover: hover) and (min-width: 1025px) {
  .dropdown:hover .drop-list { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
}

/* ---------- Tombol garis tiga (animasi jadi X) ---------- */
.nav-burger {
  display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; cursor: pointer; border-radius: 14px; background: var(--sky);
}
.nav-burger span { display: block; width: 20px; height: 2.5px; border-radius: 3px; background: var(--navy); transition: transform .3s, opacity .2s; }
.nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Menu mobile & tablet: turun pelan, naik pelan ---------- */
@media (max-width: 1024px) {
  .nav-burger { display: flex; }
  .pub-nav { flex-wrap: wrap; }
  .pub-menu {
    display: flex; flex-direction: column; align-items: stretch; gap: .2rem; width: 100%;
    max-height: 0; overflow: hidden; padding: 0; opacity: 0; visibility: hidden;
    transition: max-height .5s cubic-bezier(.4, 0, .2, 1), opacity .35s ease, padding .35s ease, visibility 0s linear .5s;
  }
  .nav-toggle:checked ~ .pub-menu {
    max-height: 760px; opacity: 1; visibility: visible; padding: .6rem 0 .9rem;
    transition: max-height .5s cubic-bezier(.4, 0, .2, 1), opacity .35s ease, padding .35s ease, visibility 0s;
  }
  .pub-menu > a, .drop-btn { display: block; padding: .7rem 1rem; }
  .pub-menu > a.btn { margin: .3rem 0 0; text-align: center; }
  .dropdown { width: 100%; }
  .drop-list {
    position: static; min-width: 0; background: transparent; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
    max-height: 0; overflow: hidden; padding: 0 0 0 1rem; transition: max-height .4s ease;
  }
  .dropdown.open .drop-list { max-height: 260px; }
}

/* ---------- Hero di tablet & mobile: foto di bawah teks, memudar halus ---------- */
@media (max-width: 960px) {
  .hero { display: block; min-height: 0; }
  .hero::before {
    inset: auto 0 0 0; height: 340px; opacity: 1;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 60%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 60%, transparent 100%);
    -webkit-mask-composite: source-over; mask-composite: add;
  }
  .hero-inner { padding: 2.4rem 0 15rem; }
  .hero-inner > *:not(.motto) { max-width: 100%; }
  .lead { color: #112529; font-weight: 600; }
  .motto { display: block; left: auto; right: 6%; top: auto; bottom: 8.5rem; font-size: 1.9rem; }
}

/* =========================================================
   PROFIL SEKOLAH
   ========================================================= */
/* awan statis di belakang seluruh halaman (tidak ikut bergulir) */
.sky-fixed { background: radial-gradient(rgba(27,105,117, .08) 1.2px, transparent 1.4px) 0 0 / 24px 24px; }
.sky-fixed::before { content: ""; position: fixed; inset: 0; z-index: -1; background: url("../images/awan.svg") center / cover no-repeat, #c9f2f8; }
.pf { padding-top: 2rem; }

.pf-hero {
  position: relative; overflow: hidden; color: #fff; padding: 3.2rem 2.4rem;
  border-radius: 42px 14px 42px 14px; box-shadow: var(--shadow);
  background: linear-gradient(110deg, rgba(11,51,58, .93) 30%, rgba(30,162,182, .45)), var(--bg) center 40% / cover no-repeat;
}
.pf-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin: .2rem 0 .6rem; }
.pf-hero p { max-width: 640px; opacity: .95; }
.pf-hero .eyebrow { color: #91e4f1; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chip { padding: .3rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: .8rem; font-weight: 600; }

.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.2rem; }
.pf-stat { background: #fff; border-radius: 26px 8px 26px 8px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow); text-align: center; }
.pf-stat strong { display: block; font-size: 1.8rem; color: var(--blue); line-height: 1.2; }
.pf-stat small { color: var(--muted); font-weight: 600; }

.pf-sec { margin-top: 2.8rem; }
.pf-sec > h2 { font-size: 1.5rem; display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.pf-sec > h2::after { content: ""; flex: 1; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--blue-2), transparent); }
.pf-two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.2rem; }
.pf-card { background: #fff; border-radius: 30px 10px 30px 10px; box-shadow: var(--shadow); padding: 1.5rem 1.6rem; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; margin: 0; font-size: .9rem; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; font-weight: 600; color: var(--navy); word-break: break-word; }

.vm { display: grid; grid-template-columns: 1fr 1.5fr; gap: 1.2rem; }
.vision { color: #fff; border-radius: 34px 10px 34px 10px; padding: 1.8rem; box-shadow: var(--shadow); background: linear-gradient(135deg, var(--navy-2), var(--blue-2)); }
.vision h3 { color: #fff; }
.vision .big { font-size: 1.45rem; font-weight: 800; line-height: 1.3; }
.misi { counter-reset: m; list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.misi li { counter-increment: m; display: flex; gap: .8rem; align-items: flex-start; }
.misi li::before {
  content: counter(m); flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 11px 11px 11px 4px; background: var(--sky); color: var(--blue); font-weight: 800;
}

.timeline { margin: 0; padding: 0 0 0 1.6rem; list-style: none; border-left: 3px solid var(--sky-2); }
.timeline li { position: relative; padding: 0 0 1.3rem 1rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: calc(-1.6rem - 9.5px); top: .25rem; width: 16px; height: 16px;
  border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 0 5px #fff;
}
.timeline time { font-weight: 800; color: var(--blue); }
.timeline p { margin: .1rem 0 0; }

.jur-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.jur { background: #fff; border-radius: 30px 10px 30px 10px; padding: 1.5rem; box-shadow: var(--shadow); }
.jur .ji { width: 60px; height: 60px; display: grid; place-items: center; font-size: 1.9rem; margin-bottom: .8rem; border-radius: 20px 20px 20px 6px; background: linear-gradient(135deg, var(--blue), var(--blue-2)); }
.jur:nth-child(2) .ji { background: linear-gradient(135deg, #0b4148, #1ba5c9); }
.jur:nth-child(3) .ji { background: linear-gradient(135deg, #15424e, #2fbadb); }
.jur h3 { font-size: 1.05rem; }
.jur p { font-size: .9rem; color: #24383b; }
.jur small { color: var(--muted); }

.fas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.fas { text-align: center; background: #fff; border-radius: 24px 8px 24px 8px; padding: 1.2rem; box-shadow: var(--shadow); }
.fas b { display: block; font-size: 2rem; color: var(--blue); line-height: 1.2; }
.fas span { color: var(--muted); font-weight: 600; font-size: .88rem; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: .8rem; }
.gal {
  border-radius: 26px 8px 26px 8px; box-shadow: var(--shadow);
  background-image: var(--img); background-position: var(--pos); background-size: var(--zoom); background-repeat: no-repeat;
}
.gal.w2 { grid-column: span 2; }
.gal.h2 { grid-row: span 2; }

.contact { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }
.contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }

@media (max-width: 900px) {
  .pf-stats { grid-template-columns: repeat(2, 1fr); }
  .pf-two, .vm { grid-template-columns: 1fr; }
  .jur-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .pf-hero { padding: 2.2rem 1.5rem; border-radius: 30px 10px 30px 10px; }
}

/* ===== Hero: teks lead di HP lebih lembut ===== */
@media (max-width: 640px) {
  .hero .lead {
    font-weight: 400;
    font-size: 15px;
    line-height: 1.7;
    color: #364a4d;
    letter-spacing: 0;
  }
}

/* ===== Kontak: ikon SVG + teks sejajar ===== */
.contact ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.contact li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.55; }
.contact .ci {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: #e1f7fb; color: #1d92aa;
}
.contact .ci svg { width: 18px; height: 18px; }
.contact .ct { flex: 1; min-width: 0; padding-top: 6px; overflow-wrap: anywhere; }
.contact .ct a { color: inherit; text-decoration: none; border-bottom: 1px solid #b3e2eb; }

/* ===== Halaman Jurusan & Berita ===== */
.page-head { text-align: center; padding: 48px 0 28px; }
.page-head .eyebrow { color: #1d92aa; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.page-head h1 { margin: 0 0 10px; font-size: clamp(26px, 5vw, 38px); color: #0d2e34; }
.page-head p { margin: 0 auto; max-width: 620px; color: #364a4d; line-height: 1.7; }

.jx-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); padding-bottom: 56px; }
.jx-card {
  background: #fff; border-radius: 18px; padding: 24px;
  box-shadow: 0 6px 24px rgba(13,46,52, .08);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s, box-shadow .25s;
}
.jx-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(13,46,52, .14); }
.jx-top { display: flex; align-items: center; gap: 14px; }
.jx-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: #e1f7fb; flex: none; }
.jx-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #1d92aa; background: #e1f7fb; padding: 4px 10px; border-radius: 999px; }
.jx-card h3 { margin: 0; font-size: 18px; line-height: 1.35; color: #0d2e34; }
.jx-card p { margin: 0; color: #364a4d; line-height: 1.7; font-size: 14.5px; }

.nw-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.nw-filter a {
  padding: 7px 16px; border-radius: 999px; font-size: 13.5px; text-decoration: none;
  background: #fff; color: #364a4d; border: 1px solid #cde6eb;
}
.nw-filter a.on { background: #1d92aa; border-color: #1d92aa; color: #fff; }

.nw-list { display: grid; gap: 16px; padding-bottom: 40px; max-width: 860px; margin: 0 auto; }
.nw-item {
  display: flex; gap: 18px; background: #fff; border-radius: 16px; padding: 20px;
  box-shadow: 0 6px 24px rgba(13,46,52, .07);
}
.nw-date {
  flex: none; width: 62px; height: 68px; border-radius: 14px;
  background: linear-gradient(160deg, #1d92aa, #1e788c); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.nw-date strong { font-size: 24px; line-height: 1; }
.nw-date small { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .9; margin-top: 4px; }
.nw-body { flex: 1; min-width: 0; }
.nw-body h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.4; color: #0d2e34; }
.nw-body .tag { display: inline-block; font-size: 12px; color: #1d92aa; background: #e1f7fb; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.nw-body p { margin: 0; color: #364a4d; line-height: 1.7; font-size: 14.5px; }
.nw-empty { text-align: center; color: #364a4d; background: #fff; border-radius: 16px; padding: 40px 20px; }

@media (max-width: 520px) {
  .nw-item { padding: 16px; gap: 14px; }
  .nw-date { width: 54px; height: 60px; }
  .jx-card { padding: 20px; }
}

/* =========================================================
   v6: laporan, filter, persetujuan, kuesioner, cetak
   ========================================================= */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .7rem; margin-bottom: 1rem; padding: .9rem 1.1rem; background: #fff; border-radius: 26px 8px 26px 8px; box-shadow: var(--shadow); }
.filters form { display: contents; }
.fld { display: flex; flex-direction: column; gap: .2rem; font-size: .76rem; font-weight: 700; color: var(--muted); }
.fld select, .fld input, .input { padding: .55rem .8rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--sky); font: inherit; font-size: .9rem; color: var(--ink); }
.fld select:focus, .fld input:focus, .input:focus { outline: none; border-color: var(--blue-2); background: #fff; }
.grow { flex: 1; }
.btn-outline { background: #fff; color: var(--blue); border: 2px solid var(--blue); box-shadow: none; }
.btn-outline:hover { background: var(--sky); }
.btn-ok { background: var(--ok); box-shadow: none; }
.btn-ok:hover { background: #12853d; }
.btn-no { background: var(--off); box-shadow: none; }
.btn-no:hover { background: #b91c1c; }

.tbl-wrap { overflow-x: auto; }
.tbl-wrap .table { min-width: 560px; }
.inl { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.inl .input { flex: 1 1 160px; min-width: 140px; padding: .45rem .7rem; }
.row-warn { background: #fff5eb; }
.row-bad { background: #fef2f2; }

.bdg { margin-left: auto; background: #ff5d5d; color: #fff; border-radius: 999px; padding: .05rem .55rem; font-size: .72rem; font-style: normal; font-weight: 800; }
.panel-head .bdg { margin-left: .4rem; }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tab { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1.1rem; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 700; font-size: .88rem; box-shadow: var(--shadow); }
.tab:hover { text-decoration: none; background: var(--sky); }
.tab.active { background: var(--blue); color: #fff; }
.tab .bdg { margin-left: 0; background: rgba(0, 0, 0, .15); }
.tab.active .bdg { background: rgba(255, 255, 255, .25); }

.bar-row.wide { grid-template-columns: 210px 1fr 52px; }

.linechart { width: 100%; height: auto; }
.linechart .gl { stroke: var(--line); }
.linechart .gt { fill: var(--muted); font-size: 11px; }
.linechart .ll { fill: none; stroke: var(--blue-2); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.linechart .la { fill: rgba(30,162,182, .12); }
.linechart .ld { fill: #fff; stroke: var(--blue); stroke-width: 2.5; }

.form-card { max-width: 640px; }
.form-grid { display: grid; gap: .9rem; }
.form-grid label { display: flex; flex-direction: column; gap: .3rem; font-weight: 700; font-size: .86rem; color: var(--navy); }
.form-grid textarea.input { resize: vertical; }
.rating { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .35rem; }
.rating label { position: relative; flex-direction: row; }
.rating input { position: absolute; opacity: 0; }
.rating span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px 14px 14px 5px; border: 1.5px solid var(--line); background: #fff; font-weight: 800; color: var(--navy); cursor: pointer; transition: background .15s, color .15s; }
.rating input:checked + span { background: var(--blue); color: #fff; border-color: var(--blue); }
.rating input:focus-visible + span { outline: 3px solid var(--blue-2); outline-offset: 2px; }

@media (max-width: 700px) {
  .bar-row.wide { grid-template-columns: 110px 1fr 44px; }
  .filters { border-radius: 22px 8px 22px 8px; }
}
@media print {
  .sidebar, .scrim, .burger, .bottom-nav, .filters, .tabs, .btn, .dash-hero, .ticker, .slider { display: none !important; }
  body.app::before { display: none; }
  .content { margin: 0 !important; }
  .content-body { padding: 0 !important; }
  .panel, .stat { box-shadow: none !important; border: 1px solid #bcd4d8; break-inside: avoid; }
}