/* =====================================================================
   AduanKampus — lapisan desain "Premium" (dimuat setelah style.css)
   Konsep: papan layanan infrastruktur kampus. Navy tegas, kisi cetak biru
   (blueprint) di hero, kartu tiket aduan, dan warna status yang jelas.
   ===================================================================== */
:root {
    --brand: #1f4fd8;
    --brand-2: #0f9d8e;
    --accent: #f5a623;
    --ink: #0f1b33;
    --muted: #5d6b84;
    --line: #dfe5f1;
    --bg: #f4f6fb;
    --card: #ffffff;
    --soft: #eef2fa;
    --navy: #0b1b3a;
    --navy-2: #12295a;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(15, 27, 51, .05), 0 6px 20px -8px rgba(15, 27, 51, .12);
    --shadow-lg: 0 2px 4px rgba(15, 27, 51, .06), 0 24px 48px -20px rgba(15, 27, 51, .28);
    --font-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
}
[data-theme="dark"] {
    --bg: #0a1223;
    --card: #101b32;
    --soft: #0d172b;
    --ink: #e9eefb;
    --muted: #93a3c0;
    --line: #213253;
    --navy: #070f20;
    --navy-2: #0e2149;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 20px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 24px 48px -20px rgba(0, 0, 0, .7);
}

body, body.portal { background: var(--bg); font-size: 15.5px; }
h1, h2, h3, .brand, .stat b, .donut b { font-family: var(--font-display); }

/* ---------- Strip atas & navbar ---------- */
.topstrip { background: var(--navy); color: #a9bce3; font-weight: 500; }
.site-nav { background: color-mix(in srgb, var(--card) 88%, transparent); border-bottom: 1px solid var(--line); box-shadow: none; }
.site-nav.is-scrolled { box-shadow: 0 12px 30px -16px rgba(15, 27, 51, .35); }
.brand { font-size: 21px; letter-spacing: -.4px; }
.brand b { color: var(--brand); }
.brand small { font-family: var(--font); letter-spacing: .2px; }
.brand-logo { border-radius: 12px; background: linear-gradient(145deg, var(--brand), var(--navy-2)); box-shadow: 0 8px 18px -6px rgba(31, 79, 216, .55); }
.links > a, .dd-btn { font-weight: 600; border-radius: 999px; color: var(--muted); }
.links > a:hover, .dd-btn:hover, .dd:hover .dd-btn { background: var(--soft); color: var(--ink); }
.links > a.active, .dd.active .dd-btn, .links > a.spy { background: color-mix(in srgb, var(--brand) 11%, transparent); color: var(--brand); }
.links > a.active::after, .dd.active .dd-btn::after, .links > a.spy::after { display: none; }
[data-theme="dark"] .links > a.active, [data-theme="dark"] .dd.active .dd-btn, [data-theme="dark"] .links > a.spy { color: #9db8ff; }
.dd-menu { border-radius: 14px; box-shadow: var(--shadow-lg); }

/* ---------- Tombol ---------- */
.btn { border-radius: 12px; font-weight: 700; letter-spacing: -.1px; }
.btn:hover { transform: translateY(-1px); }
.btn-accent::after, .btn-primary::after { display: none; }
.btn-primary { background: var(--brand); box-shadow: 0 8px 18px -8px rgba(31, 79, 216, .7); }
.btn-primary:hover { background: #1a43bd; box-shadow: 0 12px 22px -8px rgba(31, 79, 216, .75); }
.btn-accent { background: var(--accent); color: #2b1a00; box-shadow: 0 8px 18px -8px rgba(245, 166, 35, .8); }
.btn-accent:hover { background: #ffb73d; }
.btn-ghost { background: transparent; }
.btn-ghost-light { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); }

/* ---------- Hero: kisi cetak biru ---------- */
.hero-band {
    background:
        radial-gradient(520px 320px at 88% 0%, rgba(15, 157, 142, .38), transparent 65%),
        radial-gradient(420px 280px at 0% 100%, rgba(245, 166, 35, .16), transparent 65%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%) !important;
    padding: 72px 0 112px;
}
.hero-band::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}
.hero-band::after { display: none; animation: none; }
.hero-copy h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -1.8px; font-weight: 800; text-shadow: none; }
.hero-copy h1 span { background: none; -webkit-background-clip: initial; background-clip: initial; color: inherit; }
.hero-copy > p { color: #c3d1ee; opacity: 1; font-size: 17.5px; max-width: 540px; }
.hero-badge { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); box-shadow: none; font-weight: 600; }
.hero-copy > * { animation: none; }
.hero-copy > h1 { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }   /* satu momen masuk */
.track { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); border-radius: 16px; }
.track input { border-radius: 10px; }

/* Panel hero tampil seperti tiket aduan */
.hero-card {
    animation: none;
    background: var(--card) !important; color: var(--ink);
    border: 0 !important; border-radius: 20px; backdrop-filter: none;
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .65) !important;
    position: relative; padding: 30px 26px 24px; gap: 0;
}
.hero-card .hero-donut { padding-bottom: 20px; }
.hero-card .hero-mini { border-top: 2px dashed var(--line); padding-top: 18px; position: relative; }
.hero-mini li { background: var(--soft); color: var(--ink); border-radius: 10px; }
.hero-mini li:hover { transform: none; background: color-mix(in srgb, var(--brand) 8%, var(--soft)); }
.hero-card .donut small { color: var(--muted); }
.wave { height: 48px; }


/* Cincin persentase di kartu hero (latar kartu putih) */
.hero-card .donut { background: conic-gradient(var(--selesai) calc(var(--pct) * 1%), var(--line) 0); }
.hero-card .donut > div { background: var(--card); color: var(--ink); }
.hero-card .donut small { color: var(--muted); }

/* ---------- Banner halaman dalam ---------- */
.page-banner {
    background: linear-gradient(160deg, var(--navy), var(--navy-2));
    padding: 34px 0 40px;
}
.page-banner::before {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 40px 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 80%); mask-image: linear-gradient(90deg, transparent, #000 80%);
}
.page-banner::after { display: none; }
.page-banner .wrap { position: relative; z-index: 1; }
.page-banner h1 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.9px; }

/* ---------- Judul seksi: rata kiri, tanpa label kapital ---------- */
.sec { padding-top: 80px; padding-bottom: 80px; }
.sec-head { text-align: left; margin: 0 0 36px; max-width: 680px; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -1.1px; line-height: 1.12; }
.sec-head h2::after { display: none; }
.sec-head p { font-size: 16.5px; margin-top: 10px; }
.eyebrow-b {
    text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 700; background: none; box-shadow: none;
    padding: 0 0 0 14px; border-left: 4px solid var(--accent); border-radius: 0; margin-bottom: 12px; color: var(--brand);
}
[data-theme="dark"] .eyebrow-b { color: #9db8ff; }
.sec-alt { background: var(--card); }

/* ---------- Kartu: satu bahasa, hover tenang ---------- */
.card, .report-card, .stat, .crit article, .contact article, .flow > *, .faq details, .table-card {
    border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.report-card::before, .stat::before, .flow > *::before, .cards-3 article::before { height: 3px; opacity: 1; }
.report-card:hover, .stat:hover, .flow > *:hover, .contact article:hover, .crit article:hover {
    transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}
.report-card:hover .rc-ico, .stat:hover .stat-ico { transform: none; }
.rc-ico { border-radius: 14px; background: color-mix(in srgb, var(--brand) 10%, var(--card)); }
.report-card a { display: inline-flex; align-items: center; gap: 6px; }
.report-card a:hover { text-decoration: none; letter-spacing: .1px; }
.crit article, .contact article { background: var(--card); }

/* ---------- Alur: langkah polos, garis penghubung jelas ---------- */
.flow > li { background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
.flow > li::before { display: none; }
.flow > li:hover { transform: none; box-shadow: none; }
.flow li span { background: var(--navy-2); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 12%, transparent); font-family: var(--font-display); }
.flow li:not(:last-child)::after { border-top: 2px dashed color-mix(in srgb, var(--brand) 35%, var(--line)); }

/* ---------- Statistik & status ---------- */
.stat b { font-size: 38px; letter-spacing: -1.4px; }
.stat::after { display: none; }
.s-baru::before { background: var(--baru) !important; }
.s-proses::before { background: var(--proses) !important; }
.s-selesai::before { background: var(--selesai) !important; }
.kcol { border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.kcol-head { font-family: var(--font-display); font-weight: 700; }
.ticket { border-radius: 12px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 1px 2px rgba(15, 27, 51, .05); border-left-width: 4px; }
.ticket:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.badge { font-weight: 700; border-radius: 999px; padding: 4px 11px; }

/* ---------- Tabel ---------- */
.table th { background: var(--soft); color: var(--muted); font-weight: 700; font-size: 13px; border-bottom: 1px solid var(--line); }
.table td { border-bottom: 1px solid var(--line); }
.table tbody tr:hover { background: color-mix(in srgb, var(--brand) 5%, var(--card)); }
.row-title { font-weight: 700; }

/* ---------- Form ---------- */
.filters input, .filters select, .field input, .field select, .field textarea {
    border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); transition: border-color .15s, box-shadow .15s;
}
.filters input:focus, .filters select:focus, .field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); outline: none;
}
.radio-card input:checked + span { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.login-card { border-radius: 20px; box-shadow: var(--shadow-lg); }
.login-ico { background: linear-gradient(145deg, var(--brand), var(--navy-2)); box-shadow: 0 14px 28px -10px rgba(31, 79, 216, .6); }

/* ---------- FAQ, toast, footer ---------- */
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { font-family: var(--font-display); font-size: 17px; }
.toast { border-radius: 14px; box-shadow: var(--shadow-lg); }
.site-footer { background: var(--navy); background-image: none; }
.site-footer .brand-logo { box-shadow: none; }
.foot-links a { color: #c3d1ee; }
.foot-copy { border-top-color: rgba(255, 255, 255, .1); }
#toTop { border-radius: 14px; background: var(--brand); box-shadow: 0 12px 24px -8px rgba(31, 79, 216, .6); }

/* ---------- Responsif ---------- */
@media (max-width: 1000px) {
    .hero-band { padding: 52px 0 96px; }
    .sec { padding-top: 56px; padding-bottom: 56px; }
}
@media (max-width: 640px) {
    .sec-head { margin-bottom: 26px; }
    .stat b { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
@media print {
    .topstrip, .site-nav, .site-footer, #toTop, #scrollBar { display: none !important; }
}

/* ===== Logo Politeknik Negeri Manado ===== */
.brand-logo.brand-logo-img { background: #fff; box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; padding: 3px; }
.brand-logo-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.site-footer .brand-logo-img { box-shadow: none; }

/* ===== Foto kampus: hero berlatar foto + galeri mozaik ===== */
.hero-photo { position: absolute; inset: 0; z-index: 0; background: url('../img/kampus-2.jpg') center 62% / cover no-repeat; }
.hero-photo::after { content: ''; position: absolute; inset: 0;
    background: linear-gradient(96deg, rgba(7, 15, 32, .95) 0%, rgba(9, 22, 48, .86) 36%, rgba(11, 27, 58, .5) 68%, rgba(11, 27, 58, .38) 100%); }
.hero-band::before { z-index: 1; pointer-events: none; }
.hero-band .hero-grid { z-index: 2; }

.page-banner {
    background: linear-gradient(160deg, rgba(7, 15, 32, .94), rgba(18, 41, 90, .8)), url('../img/kampus-2.jpg') center 48% / cover no-repeat;
}

.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 214px; gap: 14px; }
.tile { margin: 0; position: relative; overflow: hidden; border-radius: 18px; background: var(--navy); isolation: isolate; box-shadow: var(--shadow); }
.tile > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(7, 15, 32, .82)); z-index: 1; pointer-events: none; }
.tile figcaption { position: absolute; left: 16px; right: 16px; bottom: 13px; z-index: 2; color: #fff; display: flex; flex-direction: column; gap: 1px; transition: transform .35s; }
.tile figcaption b { font-family: var(--font-display); font-size: 16px; letter-spacing: -.2px; }
.tile figcaption small { color: #c9d6f2; font-size: 12.5px; }
.tile:hover > img { transform: scale(1.07); }
.tile:hover figcaption { transform: translateY(-3px); }
.tile-main { grid-column: span 2; grid-row: span 2; }
.tile-main figcaption b { font-size: 22px; }
.tile .seal { position: absolute; top: 16px; left: 16px; z-index: 2; width: 62px; height: 62px; border-radius: 50%; background: #fff; display: grid; place-items: center;
    box-shadow: 0 0 0 3px var(--accent), 0 12px 24px -8px rgba(0, 0, 0, .55); }
.tile .seal img { width: 40px; height: auto; transform: none !important; }

@media (max-width: 900px) {
    .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
    .tile-main { grid-column: span 2; grid-row: span 1; }
    .tile-main > img { object-position: center 55%; }
    .hero-photo::after { background: linear-gradient(180deg, rgba(7, 15, 32, .9), rgba(11, 27, 58, .75)); }
}
@media (prefers-reduced-motion: reduce) { .tile > img, .tile figcaption { transition: none; } }
