/* ============================================
   STIE Indonesia Malang — lapisan desain "G ringkas" (Nov 2026)
   Dimuat SETELAH style.css. Hanya tampilan: kelas/ID yang dipakai JS tidak diganti fungsinya.
   Untuk kembali ke tampilan lama: hapus <link> berkas ini di index.html (dan renderHome lama di home.js).
   ============================================ */

:root {
  --primary: #1d1d1f;
  --primary-light: #2c2c30;
  --primary-mid: #3a3a40;
  --accent: #2f5d99;
  --accent-light: #4a7bc0;
  --blue: #2f5d99;
  --blue-light: #234a7d;
  --surface: #f5f6f8;
  --surface-alt: #eceef2;
  --bg: #ffffff;
  --white: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-light: #a1a1a6;
  --border: #e5e5ea;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 14px rgba(0,0,0,.05);
  --shadow-md: 0 2px 8px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.08);
  --shadow-lg: 0 4px 12px rgba(0,0,0,.07), 0 24px 56px rgba(0,0,0,.12);
  --nav-h: 60px;
  --tautan: #2f6db5;
  --navy: #0b1d38;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px; line-height: 1.6; background: #fff;
}
h1, h2, h3, h4 { letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid #8fb4e6; outline-offset: 3px; }

/* ---------- navigasi: putih tembus pandang ---------- */
.navbar { background: rgba(255,255,255,.85); border-bottom: 1px solid var(--border); }
.navbar.scrolled { background: rgba(255,255,255,.94); box-shadow: none; }
.logo-icon, .logo-icon .logo-img { width: 34px; height: 34px; }
.logo-title { color: var(--text); font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.logo-subtitle { display: none; }
.nav-link { color: #424245; font-size: .875rem; font-weight: 500; border-radius: 8px; padding: 8px 12px; }
.nav-link:hover, .nav-link.active { color: var(--text); background: transparent; }
.dropdown-menu { border-radius: 14px; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.dropdown-menu a:hover { background: var(--surface); color: var(--text); }
.nav-toggle span { background: var(--text); }
.nav-cta, .nav-cta:hover {
  background: var(--blue) !important; color: #fff !important; border-radius: 980px; padding: 8px 18px;
  box-shadow: none; font-weight: 600; transform: none;
}
.nav-cta:hover { background: var(--blue-light) !important; }

/* ---------- pilihan bahasa ID/EN ---------- */
.nav-bahasa { display: flex; align-items: center; margin: 0 6px; }
.bahasa-pilih { display: inline-flex; background: var(--surface); border-radius: 980px; padding: 3px; }
.bahasa-pilih button {
  border: 0; background: transparent; font: inherit; font-size: .75rem; font-weight: 600; line-height: 1;
  color: var(--text-secondary); padding: 6px 10px; border-radius: 980px; cursor: pointer;
}
.bahasa-pilih button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.bahasa-pilih button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

/* ---------- tombol: biru polos, bentuk pil ---------- */
.btn { border-radius: 980px; padding: 12px 24px; font-weight: 600; font-size: .92rem; }
.btn-sm { padding: 8px 16px; font-size: .84rem; }
.btn-primary, .btn-blue, .btn-upload { background: var(--blue); color: #fff; box-shadow: none; }
.btn-primary:hover, .btn-blue:hover, .btn-upload:hover { background: var(--blue-light); transform: none; box-shadow: none; }
.btn-glow, .btn-glow:hover { animation: none; box-shadow: none; }
.btn-outline { border: 1px solid #c7c7cc; color: var(--text); }
.btn-outline:hover { border-color: var(--text); background: transparent; }
.btn-upload, .btn-danger, .btn-ghost { border-radius: 980px; }
.btn-ghost:hover { background: var(--surface); }

/* ---------- judul bagian ---------- */
.section-badge { background: var(--surface); color: var(--text-secondary); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .78rem; }
.section-title { font-weight: 700; letter-spacing: -0.025em; }
.section-desc { color: var(--text-secondary); }

/* ---------- kartu: datar, sudut membulat ---------- */
.program-card, .feature-card, .news-card, .reg-form-card, .auth-card, .dash-stat, .dash-table-card, .editor-card,
.content-card, .tentang-sidebar { border: 1px solid var(--border); box-shadow: none; }
.program-card, .news-card, .reg-form-card, .dash-table-card, .editor-card, .content-card { border-radius: 22px; }
.feature-card, .dash-stat, .tentang-sidebar { border-radius: 18px; }
.program-card:hover, .news-card:hover, .feature-card:hover { box-shadow: var(--shadow); transform: none; }
.program-card::before { display: none; }
.news-category { background: rgba(255,255,255,.92); color: var(--text); text-transform: none; letter-spacing: 0; font-weight: 600; backdrop-filter: none; }
.news-thumb { background: var(--surface); }
.news-thumb .material-symbols-rounded { color: #c7c7cc; }
.news-link { color: var(--tautan); }
.feature-icon, .vm-icon { background: var(--surface); color: var(--blue); }

/* ---------- formulir ---------- */
.form-input { border-radius: 10px; border: 1px solid #d2d2d7; background: #fff; }
.form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,93,153,.12); }
.form-label { font-weight: 600; color: var(--text); }
.rte-wrap { border-radius: 12px; border-width: 1px; }
.rte-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,93,153,.12); }
.rte-btn.active { background: rgba(47,93,153,.1); color: var(--blue); }

/* ---------- login / lupa password ---------- */
.auth-page { background: var(--surface); }
.auth-card { border-radius: 24px; box-shadow: var(--shadow); }
.auth-card h2 { font-weight: 700; }

/* ---------- pendaftaran / portal ---------- */
.registration-page { background: var(--surface); }
.reg-header h1 { font-weight: 700; letter-spacing: -0.025em; }
.reg-form-card { box-shadow: none; }
.reg-step { background: #e5e5ea; }
.reg-step.active, .reg-step.done { background: var(--blue); }
.reg-section-title { border-bottom-color: var(--border); }
.reg-section-title .material-symbols-rounded { color: var(--blue); }

/* ---------- dashboard admin & editor ---------- */
.dashboard-page, .editor-page { background: var(--surface); }
.dash-header h1 { font-weight: 700; letter-spacing: -0.025em; }
.dash-stat-icon { border-radius: 12px; }
.dash-stat-icon.blue { background: rgba(47,93,153,.1); color: var(--blue); }
.dash-stat-value { font-weight: 700; }
.dash-table th { text-transform: none; letter-spacing: 0; font-size: .8rem; background: #fafafa; color: var(--text-secondary); }
.dash-table tr:hover td { background: #fafafa; }
.dash-tabs { border-bottom: none; gap: 2px; padding: 4px; background: #e8e8ed; border-radius: 12px; width: fit-content; max-width: 100%; }
.dash-tab-btn { border-bottom: none; margin-bottom: 0; border-radius: 9px; color: #424245; padding: 8px 14px; }
.dash-tab-btn:hover { color: var(--text); }
.dash-tab-btn.active { color: var(--text); background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.1); border-bottom-color: transparent; }
.editor-title-input { font-weight: 700; }
.post-status { text-transform: none; }

/* ---------- halaman Tentang ---------- */
.tentang-hero { background: var(--navy); }
.tentang-hero .hero-bg-pattern { display: none; }
.hero-badge { background: rgba(255,255,255,.1); border: 0; color: #e5e5ea; text-transform: none; letter-spacing: 0; }
.hero-badge .dot { background: #8fb4e6; animation: none; }
.tentang-sidebar h4 { text-transform: none; letter-spacing: 0; font-size: .85rem; }
.tentang-sidebar a.active { background: var(--surface); color: var(--text); }
.content-card h2 { font-weight: 700; border-bottom-color: var(--border); }
.ketua-card { background: var(--navy); }

/* ---------- artikel ---------- */
.post-page h1 { font-weight: 700; letter-spacing: -0.025em; }
.rte-body blockquote, .post-content blockquote { border-left-color: var(--blue); background: var(--surface); }

/* ---------- notifikasi ---------- */
.toast { border-radius: 12px; box-shadow: var(--shadow-md); }

/* ---------- kaki halaman: abu-abu muda ---------- */
.footer { background: var(--surface); color: var(--text-secondary); border-top: 1px solid var(--border); padding-top: 48px; }
.footer .logo-title { color: var(--text); }
.footer-desc { color: var(--text-secondary); }
.footer-grid { border-bottom-color: var(--border); }
.social-link { background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: 10px; }
.social-link:hover { background: var(--text); color: #fff; }
.footer-links h4, .footer-contact h4 { color: var(--text); text-transform: none; letter-spacing: 0; font-size: .9rem; }
.footer-links a { color: #424245; font-size: .85rem; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.contact-item { color: #424245; }
.contact-item .material-symbols-rounded { color: var(--text-secondary); }
.footer-bottom { color: var(--text-secondary); }

/* ---------- kerangka muat (skeleton): terang ---------- */
#sk-home .sk-hero { background: #fff; }
#sk-home .sk-hero-text .sk-box, #sk-home .sk-hero-btns .sk-box {
  background: linear-gradient(90deg, #eceef2 25%, #f5f6f8 50%, #eceef2 75%); background-size: 600px 100%;
}
#sk-home .sk-hero-card { background: #fff; border-color: var(--border); }

/* ---------- layar kecil ---------- */
@media (max-width: 768px) {
  .navbar, .navbar.scrolled { background: #fff; box-shadow: none; }
  .nav-menu { background: #fff; }
  .nav-link { color: var(--text); border-bottom-color: var(--border); }
  .dropdown-menu { background: var(--surface); border: 0; }
  .dropdown-menu a { color: #424245; }
  .nav-overlay { background: rgba(0,0,0,.25); }
  .dash-tabs { overflow-x: auto; width: auto; }
  .nav-bahasa { justify-content: center; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .bahasa-pilih button { font-size: .85rem; padding: 8px 16px; }
}

/* ============================================
   BERANDA "G ringkas" — kelas gr-*
   ============================================ */
.gr { background: #fff; color: var(--text); }
.gr img { height: auto; }
.gr h1, .gr h2, .gr h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
.gr p { margin: 0; text-wrap: pretty; }
.gr-isi { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.gr-pil { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 980px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 600; }
.gr-pil:hover { background: var(--blue-light); }
.gr-tautan { color: var(--tautan); font-size: 15px; font-weight: 500; }
.gr-tautan:hover { text-decoration: underline; text-underline-offset: 3px; }
.gr-aksi { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; margin-top: 24px; }
.gr-pita { margin-top: var(--nav-h) !important; background: var(--surface); text-align: center; font-size: 13.5px; color: #424245; padding: 11px 20px; }
.gr-pita a { color: var(--tautan); }

.gr-hero { text-align: center; padding: 64px 0 0; }
.gr-hero h1 { font-size: clamp(42px, 6vw, 72px); }
.gr-sub { font-size: clamp(18px, 1.7vw, 22px); color: #424245; margin-top: 14px !important; }
.gr-kecil { font-size: 14px; color: var(--text-secondary); margin-top: 6px !important; }
.gr-hero figure { margin: 40px auto 0; max-width: 1180px; padding: 0 22px; }
.gr-hero figure img { width: 100%; height: min(54vw, 560px); object-fit: cover; border-radius: 24px; }
.gr-angka { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 48px auto 0; padding: 0; text-align: center; }
.gr-angka b { display: block; font-size: clamp(36px, 4.2vw, 52px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.gr-angka span { display: block; margin-top: 8px; font-size: 14px; color: var(--text-secondary); }


.gr-bagian { padding-top: 104px; }
.gr-judul { text-align: center; }
.gr-judul h2 { font-size: clamp(32px, 3.8vw, 46px); }
.gr-judul p { color: var(--text-secondary); font-size: 17px; margin-top: 12px; }
.gr-judul-kiri { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.gr-judul-kiri h2 { font-size: clamp(30px, 3.4vw, 40px); }

.gr-prodi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.gr-prodi article { background: var(--surface); border-radius: 22px; overflow: hidden; }
.gr-prodi img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gr-prodi div { padding: 24px 24px 28px; }
.gr-prodi h3 { font-size: 22px; letter-spacing: -0.02em; }
.gr-prodi p { color: var(--text-secondary); font-size: 15px; margin-top: 8px; }
.gr-prodi .gr-tautan { display: inline-block; margin-top: 14px; }

.gr-daftar { background: var(--surface); border-radius: 28px; padding: 64px 40px; text-align: center; }
.gr-langkah { list-style: none; margin: 40px auto 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: l; text-align: left; max-width: 920px; }
.gr-langkah li { counter-increment: l; background: #fff; border-radius: 18px; padding: 22px 20px; font-size: 15px; color: #424245; }
.gr-langkah li::before { content: counter(l); display: block; font-size: 28px; font-weight: 700; color: var(--blue); margin-bottom: 8px; line-height: 1; }

.gr-berita { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.gr-berita a { color: var(--text); }
.gr-berita a:hover h3 { color: var(--tautan); }
.gr-berita img, .gr-berita .gr-polos { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; }
.gr-berita .gr-polos { display: grid; place-items: center; background: var(--surface); color: #c7c7cc; }
.gr-berita .gr-polos .material-symbols-rounded { font-size: 44px; }
.gr-berita time { display: block; font-size: 13.5px; color: var(--text-secondary); margin-top: 16px; }
.gr-berita h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; margin-top: 6px; }
.gr-kosong { color: var(--text-secondary); margin-top: 24px !important; }

.gr-ig { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 32px 0 0; padding: 0; }
.gr-ig li { min-width: 0; }
.gr-ig a { display: flex; flex-direction: column; height: 100%; border-radius: 22px; overflow: hidden; background: var(--surface); color: var(--text); }
.gr-ig-gambar { position: relative; display: block; }
.gr-ig img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .2s ease; }
.gr-ig a:hover img { opacity: .9; }
.gr-ig-reel { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; font-size: 22px !important; }
.gr-ig-tgl { display: block; padding: 16px 20px 0; font-size: 13px; color: var(--text-secondary); }
.gr-ig-teks { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 6px 20px 20px; font-size: 15px; line-height: 1.55; color: #333336; }
.gr-ig-gambar + .gr-ig-teks { margin-top: 16px; }
.gr-ig a:hover .gr-ig-teks { color: var(--text); }

.gr-fakta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 44px; }
.gr-fakta div { border-top: 1px solid var(--border); padding-top: 22px; }
.gr-fakta b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -0.025em; }
.gr-fakta p { color: var(--text-secondary); font-size: 15px; margin-top: 8px; }
.gr-kutipan { max-width: 760px; margin: 88px auto 0; text-align: center; }
.gr-kutipan blockquote { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.4; letter-spacing: -0.015em; }
.gr-kutipan figcaption { margin-top: 18px; font-size: 14px; color: var(--text-secondary); }
.gr-ujung { height: 112px; }

@media (max-width: 860px) {
  .gr-angka { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .gr-prodi, .gr-berita, .gr-fakta { grid-template-columns: minmax(0, 1fr); }
  .gr-fakta { gap: 24px; }
  .gr-langkah { grid-template-columns: 1fr 1fr; }
  .gr-ig { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 520px) {
  .gr-hero { padding-top: 44px; }
  .gr-hero figure img { height: 84vw; border-radius: 20px; }
  .gr-bagian { padding-top: 80px; }
  /* HP: empat langkah jadi satu kartu daftar bernomor, tombol ditumpuk */
  .gr-daftar { padding: 40px 16px 32px; border-radius: 22px; }
  .gr-langkah { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 28px; background: #fff; border-radius: 18px; padding: 2px 18px; }
  .gr-langkah li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; align-items: start; background: none; border-radius: 0; padding: 16px 0; line-height: 1.5; }
  .gr-langkah li + li { border-top: 1px solid var(--border); }
  .gr-langkah li::before { display: grid; place-items: center; width: 28px; height: 28px; margin: 0; border-radius: 50%; background: var(--blue); color: #fff; font-size: 14px; }
  .gr-daftar .gr-aksi { flex-direction: column; gap: 14px; margin-top: 28px; }
  .gr-daftar .gr-pil { width: 100%; max-width: 320px; }
  .gr-ujung { height: 80px; }
}
/* perjalanan STIEIMA: tonggak + sepanjang 2026 */
.gr-jejak { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 20px; }
.gr-jejak li { border-top: 2px solid var(--text); padding-top: 14px; }
.gr-jejak li.gr-jejak-kini { border-top-color: var(--blue); }
.gr-jejak b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.gr-jejak-kini b { color: var(--blue); }
.gr-jejak span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.gr-2026 { margin-top: 64px; }
.gr-2026 h3 { font-size: 22px; }
.gr-2026 ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.gr-2026 li a { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--border); color: var(--text); }
.gr-2026 time { font-size: 14px; color: var(--text-secondary); padding-top: 2px; font-variant-numeric: tabular-nums; }
.gr-2026 b { display: block; font-size: 16px; font-weight: 600; }
.gr-2026 li span span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--text-secondary); }
.gr-2026 li a:hover b { color: var(--tautan); }
@media (max-width: 860px) {
  .gr-jejak { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 28px; }
  .gr-2026 ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .gr-jejak { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gr-2026 li a { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 520px) {
  .gr-ig { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .gr-ig::-webkit-scrollbar { display: none; }
  .gr-ig li { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .gr-ig img { transition: none; } }

/* ===== Tentang (halaman profil) ===== */
/* Profil, Yayasan, Sejarah, Keunggulan (js/pages/tentang.js). Wadahnya <div class="gr tg">, jadi aturan dasar .gr
   dan komponen beranda (gr-angka, gr-daftar, gr-pil, gr-tautan) ikut berlaku. Semua aturan di sini diawali .tg
   agar menang atas .gr p / .gr h2 { margin: 0 } (spesifisitas 0,1,1). */

/* navigasi lokal: menempel di bawah navbar */
.tg .tg-nav {
  position: sticky; top: var(--nav-h); z-index: 50; margin-top: var(--nav-h);
  background: rgba(255,255,255,.9); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.tg .tg-nav-isi { max-width: 1080px; margin: 0 auto; padding: 0 22px; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tg .tg-nav-judul { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; color: var(--text); white-space: nowrap; }
.tg .tg-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.tg .tg-nav a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 980px; font-size: 14px; color: #424245; white-space: nowrap; }
.tg .tg-nav a:hover { color: var(--text); background: var(--surface); }
.tg .tg-nav a[aria-current="page"] { color: var(--text); background: #e8e8ed; font-weight: 600; }

/* kepala halaman + foto utama */
.tg .tg-kepala { text-align: center; padding-top: 64px; }
.tg .tg-kepala h1 { font-size: clamp(38px, 5.2vw, 64px); }
.tg .tg-kepala .gr-sub { max-width: 680px; margin-left: auto; margin-right: auto; text-wrap: balance; }
.tg figure { margin: 0; }
.tg figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.tg .tg-foto { margin: 40px auto 0; max-width: 1180px; padding: 0 22px; }
.tg .tg-foto img { width: 100%; height: min(54vw, 560px); object-fit: cover; border-radius: 24px; }
.tg .tg-foto-lebar img { height: auto; aspect-ratio: 1200 / 315; }

/* jarak antarbagian dan judul */
.tg .tg-bagian { padding-top: 96px; }
.tg .tg-pembuka { padding-top: 56px; }
.tg .tg-awal { padding-top: 72px; }
.tg .tg-h2 { font-size: clamp(28px, 3.2vw, 40px); }
.tg .tg-sub { margin-top: 36px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-secondary); }

/* teks bacaan */
.tg .tg-baca { max-width: 760px; margin: 0 auto; padding: 0 22px; }
.tg .tg-baca p, .tg .tg-teks { font-size: 17px; line-height: 1.7; color: #424245; }
.tg .tg-baca p + p { margin-top: 16px; }
.tg .tg-baca .tg-lead { font-size: clamp(21px, 2.3vw, 26px); line-height: 1.45; font-weight: 600; letter-spacing: -0.015em; color: var(--text); }
.tg .tg-baca .tg-lead + p { margin-top: 24px; }
.tg .tg-teks { margin-top: 16px; }
.tg .tg-visi { margin-top: 10px; max-width: 920px; font-size: clamp(22px, 2.5vw, 30px); font-weight: 600; line-height: 1.38; letter-spacing: -0.015em; text-wrap: pretty; }

/* kartu abu-abu (misi, program studi, pendiri, fasilitas) */
.tg .tg-kartu { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tg .tg-h2 + .tg-kartu { margin-top: 28px; }
.tg .tg-kartu li { background: var(--surface); border-radius: 22px; padding: 26px 26px 28px; font-size: 16px; line-height: 1.6; color: var(--text); }
.tg .tg-kartu h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; }
.tg .tg-kartu h3 + p { margin-top: 8px; font-size: 15.5px; color: var(--text-secondary); }
.tg .tg-tiga { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tg .tg-pendiri h3 { font-size: 19px; }

/* dua foto berdampingan */
.tg .tg-duafoto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tg .tg-duafoto img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; }

/* kutipan Ketua */
.tg .tg-ketua { max-width: 820px; margin: 0 auto; text-align: center; }
.tg .tg-ketua blockquote { margin: 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; line-height: 1.38; letter-spacing: -0.015em; text-wrap: balance; }
.tg .tg-ketua figcaption { margin-top: 20px; font-size: 15px; }
.tg .tg-ketua figcaption b { display: block; margin-bottom: 2px; font-size: 16px; font-weight: 600; color: var(--text); }

/* daftar bertanggal (akta, tonggak periode, kerja sama) */
.tg .tg-garis { list-style: none; margin: 28px 0 0; padding: 0; border-bottom: 1px solid var(--border); }
.tg .tg-garis li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 24px; padding: 16px 0; border-top: 1px solid var(--border); }
.tg .tg-garis time, .tg .tg-garis .tg-tgl { font-size: 15px; font-weight: 600; line-height: 1.6; color: var(--text); font-variant-numeric: tabular-nums; }
.tg .tg-garis p { font-size: 16px; line-height: 1.6; color: #424245; }

/* Yayasan: visi & misi berdampingan */
.tg .tg-dua { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.tg .tg-kotak { background: var(--surface); border-radius: 22px; padding: 32px 32px 36px; }
.tg .tg-kotak h3 { font-size: 22px; }
.tg .tg-kotak p { margin-top: 12px; font-size: 17px; line-height: 1.65; color: #424245; }

/* Sejarah: tonggak ringkas + periode */
.tg .tg-tonggak { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.tg .tg-tonggak li { border-top: 1px solid var(--border); padding-top: 18px; }
.tg .tg-tonggak b { display: block; font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.tg .tg-tonggak span { display: block; margin-top: 10px; font-size: 14.5px; line-height: 1.45; color: var(--text-secondary); }
.tg .tg-periode { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px 56px; padding: 56px 0; border-top: 1px solid var(--border); }
.tg .tg-periode:first-child { border-top: 0; padding-top: 0; }
.tg .tg-periode:last-child { padding-bottom: 0; }
.tg .tg-periode-kepala { align-self: start; position: sticky; top: calc(var(--nav-h) + 76px); }
.tg .tg-rentang { font-size: 15px; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }
.tg .tg-periode h2 { margin-top: 8px; font-size: clamp(26px, 2.8vw, 34px); }
.tg .tg-periode-isi > p { font-size: 17px; line-height: 1.7; color: #424245; }
.tg .tg-periode-isi > p + p { margin-top: 14px; }
.tg .tg-periode-isi .tg-garis { margin-top: 24px; }
.tg .tg-foto-isi { margin-top: 32px; }
.tg .tg-foto-isi img { width: 100%; height: auto; border-radius: 22px; }

/* Keunggulan: sorotan bergambar, nilai, teks + foto */
.tg .tg-sorot { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; margin-top: 16px; background: var(--surface); border-radius: 22px; overflow: hidden; }
.tg .tg-sorot img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.tg .tg-sorot > div { padding: 36px 40px; }
.tg .tg-sorot h3 { font-size: clamp(24px, 2.4vw, 30px); }
.tg .tg-sorot p { margin-top: 10px; font-size: 17px; color: var(--text-secondary); }
.tg .tg-nilai { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 28px; }
.tg .tg-nilai > div { border-top: 1px solid var(--border); padding-top: 22px; }
.tg .tg-nilai h3 { font-size: 24px; }
.tg .tg-nilai p { margin-top: 10px; font-size: 17px; line-height: 1.6; color: var(--text-secondary); }
.tg .tg-belah { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.tg .tg-belah img { width: 100%; height: auto; border-radius: 22px; }
.tg .tg-belah-balik { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; }
.tg .tg-belah-balik figure { order: -1; }

/* baca juga */
.tg .tg-lain { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tg .tg-lain a { display: block; height: 100%; padding: 24px 26px 26px; border: 1px solid var(--border); border-radius: 22px; color: var(--text); transition: border-color .2s ease; }
.tg .tg-lain a:hover { border-color: #c7c7cc; }
.tg .tg-lain a:hover h3 { color: var(--tautan); }
.tg .tg-lain h3 { font-size: 20px; line-height: 1.25; }
.tg .tg-lain p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--text-secondary); }

@media (max-width: 860px) {
  .tg .tg-tiga, .tg .tg-lain, .tg .tg-dua, .tg .tg-nilai, .tg .tg-belah, .tg .tg-belah-balik, .tg .tg-sorot, .tg .tg-periode { grid-template-columns: minmax(0, 1fr); }
  .tg .tg-nilai { gap: 24px; }
  .tg .tg-belah { gap: 32px; }
  .tg .tg-belah-balik figure { order: 0; }
  .tg .tg-sorot img { min-height: 0; height: auto; aspect-ratio: 3 / 2; }
  .tg .tg-periode-kepala { position: static; }
  .tg .tg-tonggak { grid-template-columns: minmax(0, 1fr); gap: 0; border-bottom: 1px solid var(--border); }
  .tg .tg-tonggak li { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 14px 0; }
  .tg .tg-tonggak b { font-size: 24px; }
  .tg .tg-tonggak span { margin-top: 0; font-size: 15.5px; color: #424245; }
}
@media (max-width: 768px) {
  .tg .tg-nav { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 640px) {
  .tg .tg-nav-judul { display: none; }
  .tg .tg-nav-isi { padding: 0 12px; min-height: 48px; }
  .tg .tg-nav ul { width: 100%; justify-content: space-between; }
  .tg .tg-nav a { padding: 0 12px; }
  .tg .tg-kartu, .tg .tg-duafoto { grid-template-columns: minmax(0, 1fr); }
  .tg .tg-kartu { gap: 12px; }
  .tg .tg-garis li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tg .tg-foto-lebar img { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .tg .tg-kepala { padding-top: 40px; }
  .tg .tg-bagian { padding-top: 72px; }
  .tg .tg-pembuka { padding-top: 40px; }
  .tg .tg-awal { padding-top: 56px; }
  .tg .tg-kartu li { padding: 22px 22px 24px; }
  .tg .tg-foto { margin-top: 32px; }
  .tg .tg-foto img { height: 84vw; border-radius: 20px; }
  .tg .tg-foto-lebar img { height: auto; }
  .tg .tg-periode { padding: 44px 0; }
  .tg .tg-kotak { padding: 26px 24px 28px; }
  .tg .tg-sorot > div { padding: 26px 24px 28px; }
}
@media (prefers-reduced-motion: reduce) { .tg .tg-lain a { transition: none; } }
/* ===== Dashboard di HP ===== */
/* Dashboard admin, editor Blog/Halaman, modal dashboard, dan modal OTP login di layar HP (lebar <= 640px).
   Hanya tata letak: tidak ada id, handler, atau alur data yang berubah. Kelas pendukung di template
   js/pages/dashboard.js (dash-tabel-hp, dk-*, dash-filter*, dfa*, dash-form-2kol, dash-pager, dash-ov-filter)
   dan atribut data-label pada sel tabel hanya dibaca CSS ini, tidak oleh JS. Layar >= 641px tidak tersentuh.
   Banyak gaya dashboard ditulis inline di JS, jadi sebagian aturan di sini perlu !important. */
@media (max-width: 640px) {
  /* ---------- kepala + tab: semua tab terlihat dalam kisi, tanpa geser ke samping ---------- */
  .dash-header { margin-bottom: 16px; }
  .dash-header [onclick^="_showForcePasswordChangeModal"] { margin: 6px 0 0 !important; padding: 6px 12px !important; }
  .dash-tabs {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 4px;
    width: auto; overflow: visible; padding: 4px; margin-bottom: 20px;
  }
  .dash-tab-btn {
    flex-direction: column; justify-content: center; gap: 2px; min-width: 0; min-height: 54px;
    padding: 6px 4px; font-size: .74rem; line-height: 1.2; white-space: normal; text-align: center;
  }
  .dash-tab-btn .material-symbols-rounded { font-size: 20px !important; }

  /* ---------- kartu angka: 3 angka sebaris ringkas, 4 angka 2 x 2 ---------- */
  .dash-stats:not(.dash-stats-4) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .dash-stats:not(.dash-stats-4) .dash-stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .dash-stat > div:last-child { min-width: 0; }

  /* ---------- sentuhan: kolom isian dan tombol setinggi +-44px ---------- */
  .dashboard-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
  .dashboard-page select, .dashboard-page .btn { min-height: 44px; }
  .dashboard-page input, .dashboard-page select { min-width: 0; }
  .dashboard-page input[type="date"] { padding-left: 10px !important; padding-right: 8px !important; }
  .dashboard-page input[type="date"], .dashboard-page input[type="url"] { font-size: 16px !important; }
  .dash-table-card > div[style^="padding:24px"] { padding: 16px !important; }

  /* ---------- bilah filter Blog & Halaman: cari selebar penuh, lalu pilihan + tombol reset ---------- */
  .dash-filter {
    display: grid !important; grid-template-columns: minmax(0, 1fr) 44px; grid-auto-flow: row dense;
    gap: 8px !important; padding: 12px 16px !important;
  }
  .dash-filter > * { min-width: 0 !important; }
  .dash-filter-cari { grid-column: 1 / -1; }
  .dash-filter-tgl { grid-column: 1 / -1; }
  .dash-filter-reset { grid-column: 2; width: 44px; height: 44px; padding: 0 !important; justify-content: center; }
  .dash-filter input, .dash-filter select { width: 100%; }
  .dash-filter-tgl input { flex: 1 1 0; }

  /* ---------- bilah filter Pendaftar ---------- */
  .dfa { padding: 12px 16px !important; }
  .dfa-baris1 { display: grid !important; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px !important; }
  .dfa-baris1 > * { min-width: 0 !important; }
  .dfa-baris1 > :nth-child(-n+2) { grid-column: 1 / -1; }
  .dfa-baris1 select { width: 100% !important; }
  .dfa-baris2 { flex-wrap: wrap; }
  .dfa-baris2 > div { flex: 1 1 100%; min-width: 0; }
  .dfa-baris2 input[type="date"] { width: auto !important; flex: 1 1 0; }
  .dfa-baris2 > .btn { margin-left: auto; }

  /* ---------- filter Overview ---------- */
  .dash-ov-filter { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px !important; }
  .dash-ov-filter input { width: 100% !important; }
  .dash-ov-filter > .btn { justify-self: start; }
  #ov-filter-label { grid-column: 1 / -1; margin-left: 0 !important; }
  #ov-filter-label:empty { display: none; }

  /* ---------- tabel jadi kartu: satu baris data = satu kartu ---------- */
  .dash-tabel-hp, .dash-tabel-hp > tbody, .dash-tabel-hp > thead, .dash-tabel-hp > thead > tr { display: block; width: 100%; }
  .dash-tabel-hp > thead th { display: none; }
  .dash-tabel-hp > thead th.dk-pilih-semua {
    display: flex; align-items: center; gap: 14px; width: auto !important; padding: 10px 16px 10px 17px !important;
    text-align: left !important; font-size: .82rem; font-weight: 600; color: var(--text-secondary);
  }
  .dash-tabel-hp > thead th.dk-pilih-semua::after { content: "Pilih semua di halaman ini"; }
  .dash-tabel-hp > tbody > tr {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; position: relative;
    padding: 14px 16px; border-top: 1px solid var(--border) !important;
  }
  .dash-tabel-hp > tbody > tr:first-child { border-top: 0 !important; }
  .dash-tabel-hp > tbody > tr > td {
    display: block; order: 2; min-width: 0; max-width: 100% !important; padding: 0 !important;
    border: 0 !important; background: none !important; text-align: left !important;
    white-space: normal !important; overflow-wrap: anywhere; font-size: .85rem;
  }
  .dash-tabel-hp td[data-label]::before {
    content: attr(data-label); margin-right: 6px; font-size: .75rem; font-weight: 400; color: var(--text-secondary);
  }
  .dash-tabel-hp.dk-baris td[data-label] { flex: 1 1 100%; }
  .dash-tabel-hp .dk-utama { order: 0; flex: 1 1 calc(100% - 124px); overflow: visible !important; font-size: .95rem; }
  .dash-tabel-hp .dk-status { order: 1; max-width: 112px !important; margin-left: auto; text-align: right !important; }
  .dash-tabel-hp .dk-status br { display: none; }
  .dash-tabel-hp .dk-status br + span { display: block; }
  .dash-tabel-hp .dk-aksi { order: 3; flex: 1 1 100%; display: flex !important; flex-wrap: wrap; gap: 8px; padding-top: 4px !important; }
  .dash-tabel-hp .dk-aksi .dash-actions { flex-wrap: wrap; align-items: center; gap: 8px; }
  .dash-tabel-hp .dk-aksi .btn {
    min-width: 44px; min-height: 44px; margin: 0 !important; padding: 0 12px !important; justify-content: center; font-size: .8rem !important;
  }
  .dash-tabel-hp .dk-aksi .btn-ghost { background: var(--surface); }
  .dash-tabel-hp .dk-aksi .material-symbols-rounded { font-size: 20px !important; }
  .dash-tabel-hp .dk-aksi button[title]::after { content: attr(title); margin-left: 6px; }
  /* aksi Pendaftar (ikon + teks): kisi 2 kolom selebar kartu */
  .dash-tabel-hp.dk-centang .dk-aksi { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 0 0 calc(100% + 40px); max-width: none !important; margin-left: -40px; }
  .dash-tabel-hp.dk-centang .dk-aksi .btn { padding: 0 8px !important; white-space: nowrap; }
  /* kotak centang Pendaftar: di kiri kartu, isi kartu menjorok */
  .dash-tabel-hp.dk-centang > tbody > tr { padding-left: 56px; }
  .dash-tabel-hp > tbody > tr > td.dk-pilih {
    position: absolute; left: 6px; top: 8px; width: 44px; height: 44px;
    display: flex !important; align-items: center; justify-content: center;
  }
  .dash-tabel-hp input[type="checkbox"] { width: 22px !important; height: 22px !important; }

  /* bilah aksi massal Pendaftar tetap terlihat saat daftar digulir */
  .dash-table-card:has(#apps-bulk-bar) { overflow: clip; }
  #apps-bulk-bar { position: sticky; top: var(--nav-h); z-index: 20; padding: 10px 16px !important; box-shadow: 0 8px 12px -10px rgba(0,0,0,.3); }

  /* ---------- halaman (pager) ---------- */
  .dash-pager { flex-wrap: wrap; gap: 8px; padding: 12px 16px !important; }
  #apps-pagination { padding: 12px 16px !important; }
  #apps-pagination > div { flex-wrap: wrap; }
  .dash-pager .btn, #apps-pagination .btn { min-width: 44px !important; padding: 0 10px !important; justify-content: center; }

  /* ---------- Navigasi: daftar item + formulir ---------- */
  .nav-sort-row { flex-wrap: wrap; gap: 4px 10px !important; padding: 12px 14px !important; }
  .nav-sort-row > div:nth-child(2) { flex: 1 1 calc(100% - 40px) !important; }
  .nav-sort-row > span:nth-child(3) { margin-left: 34px; }
  .nav-sort-row > div:last-child { margin-left: auto; gap: 6px !important; }
  .nav-sort-row .btn { min-width: 44px; padding: 0 !important; justify-content: center; }
  .dash-form-2kol { grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; }
  #nav-form-card > div:last-child { padding: 16px !important; }
  .nav-child-row {
    display: grid !important; grid-template-columns: minmax(0, 1fr) 44px; gap: 6px !important;
    padding: 8px; border-radius: 12px; background: var(--surface);
  }
  .nav-child-row > input { grid-column: 1; }
  .nav-child-row > button { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 44px; padding: 0 !important; justify-content: center; }

  /* ---------- Quiz & Pengaturan ---------- */
  #quiz-questions-list { padding: 12px !important; }
  [id^="quiz-row-"] { padding: 14px !important; }
  [id^="quiz-row-"] input[type="radio"] { width: 22px; height: 22px; flex-shrink: 0; }
  [id^="quiz-row-"] button[title="Hapus soal"] {
    width: 44px; height: 44px; margin: -12px -12px -8px 0; display: inline-flex; align-items: center; justify-content: center;
  }
  #ig-posts-list { padding: 14px !important; }
  #notif-emails-list .btn { min-width: 44px; justify-content: center; }

  /* ---------- modal: muat di layar, isi bisa digulir ---------- */
  #force-pw-modal > div, #otp-modal > div { padding: 28px 20px !important; max-height: 100%; overflow-y: auto; }
  #force-pw-modal .btn, #otp-modal .btn { min-height: 48px; }
  #otp-input { font-size: 1.6rem !important; }
  #otp-modal button[onclick^="_cancelOTP"] { min-height: 44px; padding: 0 12px; }
  #app-detail-modal > div { max-height: 100% !important; overscroll-behavior: contain; }
  #app-detail-modal > div > div:first-child { padding: 10px 10px 10px 20px !important; }
  #app-detail-modal > div > div:first-child > button { width: 44px; height: 44px; }
  #app-detail-modal > div > div:nth-child(2) { padding: 16px 20px 20px !important; }
  #app-detail-modal [data-path] { min-height: 40px; padding: 0 16px !important; }
  #app-detail-modal .btn { min-height: 44px; }

  /* ---------- editor Blog & Halaman ---------- */
  .editor-page .post-back { min-height: 44px; margin-bottom: 8px; }
  .rte-toolbar { gap: 2px; padding: 6px; }
  .rte-btn { min-width: 40px; height: 40px; }
  .rte-btn .material-symbols-rounded { font-size: 20px; }
  .rte-select { height: 40px; }
  .rte-sep { height: 26px; }
  #featured-preview-wrap button { width: 40px !important; height: 40px !important; }
  .editor-title-input { min-height: 44px; }
  #editor-slug { min-height: 36px; }
  .editor-page .btn-upload { min-height: 44px; }
  .editor-actions .btn { min-height: 48px; }
}
