/* ============================================
   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; }

/* ---------- 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; }
}

/* ============================================
   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); 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-pengumuman { max-width: 1080px; margin: 88px auto 0; padding: 0 22px; text-align: center; }
.gr-pengumuman h2 { font-size: clamp(28px, 3.2vw, 38px); }
.gr-pengumuman p { color: var(--text-secondary); font-size: 17px; margin-top: 10px; }
.gr-pengumuman img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 22px; margin-top: 28px; }

.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(6, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 32px 0 0; padding: 0; }
.gr-ig a { display: block; border-radius: 14px; overflow: hidden; background: var(--surface); }
.gr-ig img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .2s ease; }
.gr-ig a:hover img { opacity: .88; }

.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(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .gr-hero { padding-top: 44px; }
  .gr-hero figure img { height: 84vw; border-radius: 20px; }
  .gr-bagian { padding-top: 80px; }
  .gr-daftar { padding: 48px 20px; border-radius: 22px; }
  .gr-langkah { grid-template-columns: minmax(0, 1fr); }
  .gr-ujung { height: 80px; }
}
@media (prefers-reduced-motion: reduce) { .gr-ig img { transition: none; } }
