/* ============================================================
   Website Sekolah GLOBIN Khoirul — Colorful Modern
   ============================================================ */
:root {
  --teal: #4f46e5;
  --teal-dark: #4338ca;
  --teal-bright: #22d3ee;
  --teal-100: #e0e7ff;
  --teal-50: #eef2ff;
  --navy: #1e1b4b;
  --ink: #1e1b4b;
  --body: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --acc-pink: #ec4899;
  --acc-amber: #f59e0b;
  --acc-emerald: #10b981;
  --acc-cyan: #06b6d4;
  --acc-fuchsia: #d946ef;
  --grad-main: linear-gradient(120deg, #4f46e5, #7c3aed, #db2777);
  --grad-soft: linear-gradient(120deg, #eef2ff, #fae8ff, #fce7f3);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(30, 27, 75, .04), 0 1px 3px rgba(30, 27, 75, .06);
  --shadow-md: 0 12px 28px -12px rgba(30, 27, 75, .16);
  --shadow-lg: 0 28px 56px -20px rgba(30, 27, 75, .22);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal-dark); }
ul { list-style: none; }
.container { width: min(1200px, 92%); margin-inline: auto; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 800; letter-spacing: -.015em; }

/* ---------- Header ---------- */
.header {
  background: var(--bg); position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -12px rgba(15,23,42,.12); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 48px; height: 48px; border-radius: 14px; padding: 5px; background: var(--teal-50); border: 1px solid var(--teal-100); display: grid; place-items: center; flex-shrink: 0; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand h1 { font-size: 1.05rem; white-space: nowrap; }
.brand .tag { font-size: .7rem; color: var(--muted); font-weight: 600; letter-spacing: .06em; white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); font-size: 1.3rem; width: 42px; height: 42px; border-radius: 11px; cursor: pointer; }
.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 3px; }
.nav ul li { flex-shrink: 0; }
.nav-link { position: relative; padding: 9px 12px; color: var(--body); font-weight: 600; font-size: .9rem; border-radius: 10px; white-space: nowrap; line-height: 1.3; }
.nav-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 99px; background: var(--teal); transform: scaleX(0); transform-origin: center; transition: transform .22s var(--ease); }
.nav-link:hover { color: var(--ink); background: var(--bg-soft); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--ink); }
.btn-nav { margin-left: 10px; background: var(--teal); color: #fff; padding: 9px 16px; border-radius: 10px; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.btn-nav:hover { background: var(--teal-dark); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--teal-50) 0%, var(--bg) 92%); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 300px at 90% -10%, rgba(124,58,237,.16), transparent 65%),
    radial-gradient(420px 260px at -5% 110%, rgba(236,72,153,.14), transparent 60%),
    radial-gradient(360px 240px at 55% 115%, rgba(245,158,11,.12), transparent 60%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-block: 84px 76px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; margin-bottom: 22px;
  background: var(--grad-main); color: #fff; border-radius: 99px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em; box-shadow: 0 8px 18px -8px rgba(124,58,237,.45);
  max-width: 100%; flex-wrap: wrap;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #fbbf24; }
.hero-eyebrow.closed { background: #e2e8f0; color: #475569; box-shadow: none; }
.hero-eyebrow.closed .dot { background: #94a3b8; }
.hero h2 { font-size: clamp(2rem, 4.2vw, 3rem); color: var(--ink); margin-bottom: 20px; }
.hero h2 .hl { position: relative; background: linear-gradient(90deg, #4f46e5, #7c3aed, #db2777); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h2 .hl svg { position: absolute; left: 0; bottom: -5px; width: 100%; height: 11px; }
.hero p { font-size: 1.04rem; color: var(--muted); margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--teal-100); width: 100%; }
.hero-visual::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.04);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; border-radius: 12px; padding: 12px 22px;
  font-family: inherit; font-weight: 700; font-size: .95rem; line-height: 1;
  transition: background .2s var(--ease), transform .18s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-primary { background: var(--grad-main); color: #fff; box-shadow: 0 10px 22px -10px rgba(124,58,237,.55); }
.btn-primary:hover { filter: brightness(1.08); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-50); }
.btn-neutral { background: var(--bg-soft); color: var(--body); border: 1.5px solid var(--line); }
.btn-neutral:hover { background: #e2e8f0; border-color: #cbd5e1; color: var(--ink); transform: translateY(-2px); }
.btn-aksen { background: linear-gradient(120deg, #1e1b4b, #4c1d95); color: #fff; box-shadow: 0 10px 22px -10px rgba(30,27,75,.5); }
.btn-aksen:hover { background: #1e293b; color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid rgba(255,255,255,.5); }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .84rem; border-radius: 10px; }

/* ---------- Stats strip ---------- */
.stats-strip { border-top: 1px solid var(--line); background: var(--bg); }
.stats-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 26px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: none; }
.stat-item .angka { font-size: 1.9rem; font-weight: 800; color: var(--teal); line-height: 1; }
.stat-item .label { font-size: .82rem; color: var(--muted); font-weight: 600; margin-top: 8px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--teal-50); }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 34px; text-align: left; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--teal); font-weight: 800; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 99px; background: var(--teal-bright); }
.section-head h3 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
.section-head .sub { color: var(--muted); margin-top: 12px; font-size: 1.02rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-detail { grid-template-columns: 2fr 1fr; align-items: start; }
@media (max-width: 720px) { .grid-detail { grid-template-columns: 1fr; } }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--teal-100); }
.card-img { aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--teal-50); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h4 { font-size: 1.03rem; }
.card-body h4 a { color: var(--ink); }
.card-body h4 a:hover { color: var(--teal); }
.card-date { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.card-date svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-text { color: var(--muted); font-size: .92rem; flex: 1; }
.card-link { font-weight: 700; font-size: .87rem; display: inline-flex; align-items: center; gap: 6px; }
.card-link svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.card-link:hover svg { transform: translateX(4px); }

.badge { display: inline-flex; align-items: center; width: fit-content; padding: 5px 12px; border-radius: 99px; font-size: .74rem; font-weight: 700; }
.badge-berita { background: var(--teal-100); color: var(--teal-dark); }
.badge-pengumuman { background: #fef3c7; color: #92400e; }
.badge-publish { background: #dcfce7; color: #166534; }
.badge-draft { background: #f1f5f9; color: #64748b; }
.badge-baru { background: #fee2e2; color: #991b1b; }

/* ---------- Guru ---------- */
.guru-foto { aspect-ratio: 1/1.1; overflow: hidden; background: var(--teal-50); }
.guru-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.guru-card:hover .guru-foto img { transform: scale(1.04); }
.guru-card .card-body { align-items: center; text-align: center; }
.guru-card h4 { font-size: 1rem; }
.guru-jabatan { color: var(--teal); font-weight: 700; font-size: .86rem; }
.guru-tugas { font-size: .83rem; color: var(--muted); }
.guru-badge-line { width: 34px; height: 3px; border-radius: 99px; background: var(--teal-bright); }

/* ---------- Jurusan & Ekskul ---------- */
.ikon-box { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: var(--teal-100); color: var(--teal-dark); box-shadow: 0 6px 14px -8px rgba(67,56,202,.32); }
.ikon-box svg { width: 26px; height: 26px; }
.jurusan-card { flex-direction: row; align-items: flex-start; gap: 4px; }
.jurusan-card .card-body { padding: 24px 26px 24px 6px; }
.ekskul-card .ikon-box { width: 48px; height: 48px; margin: 24px 24px 0; }
.ekskul-card .card-body { padding-top: 16px; }
.ekskul-jadwal { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--teal-dark); background: var(--teal-100); padding: 5px 12px; border-radius: 99px; width: fit-content; }
.ekskul-pembina { font-size: .83rem; color: var(--muted); }
.ekskul-mini { padding: 24px; text-align: center; align-items: center; }
.ekskul-mini .ikon-box { margin-bottom: 14px; }

/* ---------- Program Unggulan ---------- */
.unggulan-card { position: relative; flex-direction: row; align-items: flex-start; gap: 4px; }
.unggulan-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--grad-main); }
.unggulan-card .ikon-box { background: var(--grad-soft); color: var(--teal-dark); }
.unggulan-card .card-body { padding: 26px 28px 28px 6px; }
.unggulan-card h4 { color: var(--teal-dark); }

/* ---------- Agenda ---------- */
.agenda-list { display: grid; gap: 16px; }
.agenda-item { display: flex; gap: 22px; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 26px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); min-width: 0; }
.agenda-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-100); }
.agenda-tanggal, .agenda-tanggal-mini { width: 62px; height: 62px; flex-shrink: 0; border-radius: 14px; background: var(--teal); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; box-shadow: 0 8px 18px -8px rgba(67,56,202,.38); }
.agenda-tanggal .hari { font-size: 1.5rem; font-weight: 800; }
.agenda-tanggal .bulan { font-size: .68rem; font-weight: 800; letter-spacing: .08em; opacity: .85; }
.agenda-info h4 { font-size: 1.05rem; margin-bottom: 8px; }
.agenda-info { min-width: 0; }
.agenda-meta { display: flex; gap: 8px 18px; color: var(--muted); font-size: .85rem; flex-wrap: wrap; margin-bottom: 10px; }
.agenda-meta span { display: inline-flex; align-items: center; gap: 6px; }
.agenda-meta svg { width: 15px; height: 15px; stroke: var(--teal); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.agenda-mini { display: flex; gap: 16px; align-items: flex-start; padding: 24px; }
.agenda-mini .agenda-tanggal-mini { width: 56px; height: 56px; }
.agenda-mini .hari { font-size: 1.3rem; font-weight: 800; line-height: 1.1; }
.agenda-mini .bulan { font-size: .62rem; font-weight: 800; letter-spacing: .08em; opacity: .85; }
.agenda-jam { font-size: .8rem; font-weight: 700; color: var(--teal); }
.agenda-lokasi { font-size: .82rem; color: var(--muted); margin-top: 2px; }

/* ---------- Galeri ---------- */
.galeri-img { aspect-ratio: 4/3; }
.galeri-img img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(3, 7, 18, .92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; animation: fadeIn .2s var(--ease); }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
.lightbox-close { position: absolute; top: 18px; right: 24px; color: #fff; font-size: 2.2rem; cursor: pointer; background: rgba(255,255,255,.1); border: none; width: 46px; height: 46px; border-radius: 50%; line-height: 1; }
.lightbox-close:hover { background: rgba(255,255,255,.22); }
.lightbox-caption { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #e2e8f0; font-weight: 600; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

/* ---------- Page hero ---------- */
.page-hero { background: linear-gradient(180deg, var(--teal-50) 0%, var(--bg) 100%); text-align: center; border-bottom: 1px solid var(--line); }
.page-hero .container { padding-block: 60px 56px; }
.page-hero h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 8px; }
.page-hero .crumb { font-size: .85rem; color: var(--muted); display: flex; gap: 8px; align-items: center; justify-content: center; }
.page-hero .crumb a { color: var(--teal); }
.page-hero .crumb a:hover { color: var(--teal-dark); }

/* ---------- Panel ---------- */
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 36px; }

/* ---------- Profil ---------- */
.profil-segment { margin-bottom: 38px; }
.profil-segment:last-child { margin-bottom: 0; }
.profil-segment h4 { font-size: 1.12rem; margin-bottom: 18px; padding-bottom: 10px; position: relative; display: inline-block; }
.profil-segment h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; border-radius: 99px; background: var(--teal-bright); }
.profil-segment p { margin-bottom: 10px; }
.list-check li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.list-check li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 7px; background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234338ca' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat; }
.list-num { counter-reset: langkah; }
.list-num li { position: relative; counter-increment: langkah; padding-left: 52px; margin-bottom: 16px; min-height: 36px; display: flex; align-items: center; }
.list-num li::before { content: counter(langkah); position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 11px; background: var(--teal); color: #fff; font-weight: 800; font-size: .95rem; display: grid; place-items: center; box-shadow: 0 8px 18px -8px rgba(67,56,202,.38); }

/* ---------- Berita detail ---------- */
.artikel-gambar { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; border: 1px solid var(--line); }
.artikel-gambar img { width: 100%; max-height: 460px; object-fit: cover; }
.artikel-meta { display: flex; gap: 8px 20px; color: var(--muted); font-size: .86rem; margin-bottom: 24px; flex-wrap: wrap; align-items: center; }
.artikel-meta span { display: inline-flex; align-items: center; gap: 6px; }
.artikel-konten p { margin-bottom: 16px; font-size: 1.02rem; }
.artikel-konten { overflow-wrap: anywhere; }
.artikel-konten img, .artikel-konten iframe, .artikel-konten video { max-width: 100%; height: auto; }
.artikel-konten pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Kontak ---------- */
.kontak-info { display: grid; gap: 14px; }
.kontak-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.kontak-item:hover { border-color: var(--teal-100); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kontak-item .ikon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--teal-100); color: var(--teal-dark); font-size: 1.05rem; font-weight: 800; }
.kontak-item strong { display: block; color: var(--ink); margin-bottom: 2px; }
.kontak-item span { font-size: .92rem; }
.peta { border: 0; width: 100%; height: 340px; border-radius: var(--radius-lg); display: block; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

/* ---------- PPDB ---------- */
.ppdb-banner { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 34px 38px; background: linear-gradient(120deg, var(--teal-dark), var(--teal)); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; box-shadow: var(--shadow-lg); margin-bottom: 32px; }
.ppdb-banner::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); top: -80px; right: -60px; }
.ppdb-banner h3 { color: #fff; font-size: 1.4rem; }
.ppdb-banner p { margin-top: 6px; font-weight: 600; opacity: .92; }
.ppdb-banner .btn { background: #fff; color: var(--teal-dark); }
.ppdb-banner .btn:hover { background: var(--teal-100); }
.ppdb-banner.closed { background: linear-gradient(120deg, #475569, #64748b); }
.ppdb-banner.closed h3 { font-size: 1.35rem; }

/* ---------- Form ---------- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--ink); font-size: .92rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; color: inherit; background: var(--bg); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(99,102,241,.15); }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.alert { padding: 14px 18px; border-radius: var(--radius-md); margin-bottom: 20px; font-weight: 600; font-size: .93rem; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #94a3b8; margin-top: auto; }
.footer-top { padding: 64px 0 44px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1.2fr; gap: 48px; }
.footer h4 { color: #fff; margin-bottom: 18px; font-size: 1rem; }
.footer p { font-size: .9rem; margin-bottom: 10px; }
.footer .brand-logo { background: #fff; border: none; }
.footer-brand-name { color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: 14px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: #94a3b8; font-size: .9rem; position: relative; padding-left: 16px; }
.footer ul a::before { content: "›"; position: absolute; left: 0; color: var(--teal-bright); font-weight: 800; }
.footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; text-align: center; font-size: .84rem; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: .9rem; }
.footer-contact svg { width: 16px; height: 16px; stroke: var(--teal-bright); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 4px; }
.footer-sosial { display: flex; gap: 10px; margin-top: 20px; }
.footer-sosial a {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-grid; place-items: center;
  background: rgba(255,255,255,.06); color: #a8b3c7;
  border: 1px solid rgba(255,255,255,.1);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.footer-sosial a:hover { background: var(--teal); color: #fff; border-color: var(--teal); transform: translateY(-2px); }
.footer-sosial svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; transition: all .2s var(--ease); }
.pagination a:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-50); transform: translateY(-2px); }
.pagination .active { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 8px 18px -8px rgba(67,56,202,.38); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 48px 46px; color: #fff; background: linear-gradient(120deg, var(--teal-dark), var(--teal)); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; box-shadow: var(--shadow-lg); }
.cta-band::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.09); top: -90px; right: -70px; }
.cta-band h3 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.cta-band p { opacity: .92; }
.cta-band.closed { background: linear-gradient(120deg, #475569, #64748b); }
.cta-band.closed .btn { color: #475569; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1350px) {
  .nav-link { font-size: .84rem; padding: 9px 10px; }
  .btn-nav { font-size: .82rem; padding: 9px 14px; }
}
@media (max-width: 1240px) {
  .nav-link { font-size: .81rem; padding: 8px 9px; }
  .btn-nav { font-size: .79rem; padding: 8px 13px; }
}
@media (max-width: 1180px) {
  .brand .tag { display: none; }
  .brand h1 { font-size: .92rem; }
  .nav-link { font-size: .78rem; padding: 8px 8px; }
  .btn-nav { font-size: .76rem; padding: 8px 12px; }
}
@media (max-width: 1080px) {
  .nav-link { font-size: .75rem; padding: 7px 7px; }
  .btn-nav { font-size: .73rem; padding: 7px 11px; }
}
@media (max-width: 1000px) {
  .nav-link { font-size: .72rem; padding: 7px 6px; }
  .btn-nav { font-size: .7rem; padding: 7px 10px; }
  .brand-text { display: none; }
  .header-inner { gap: 12px; }
}
@media (max-width: 840px) {
  .nav ul { gap: 1px; }
  .nav-link { font-size: .68rem; padding: 6px 5px; }
  .btn-nav { font-size: .66rem; padding: 6px 9px; margin-left: 6px; }
}
@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-top: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 12px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { display: block; padding: 12px 14px; white-space: normal; font-size: .9rem; }
  .nav-link::after { display: none; }
  .nav-link.active { background: var(--teal-50); color: var(--teal-dark); }
  .btn-nav { margin: 6px 0 0; text-align: center; }
}
@media (max-width: 992px) {
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: -1; max-width: 560px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats-strip .container { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .section { padding: 64px 0; }
  .panel { padding: 24px; }
  .ppdb-banner, .cta-band { padding: 30px 26px; }
  .agenda-item { padding: 18px; gap: 16px; }
  .jurusan-card { flex-direction: column; }
  .jurusan-card .card-body { padding: 0 24px 24px; }
  .jurusan-card .ikon-box { margin: 24px 24px 0; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 92px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--acc-fuchsia));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 30px -8px rgba(79, 70, 229, .55);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, box-shadow .2s var(--ease);
}
.scroll-top svg { width: 22px; height: 22px; }
.scroll-top:hover { background: linear-gradient(135deg, var(--teal-dark), #a21caf); box-shadow: 0 18px 36px -8px rgba(79, 70, 229, .65); }
.scroll-top.visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Galeri foto tambahan artikel ---------- */
.artikel-gal-foto {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.artikel-gal-foto a {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  display: block;
  aspect-ratio: 4/3;
  background: var(--teal-50);
}
.artikel-gal-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.artikel-gal-foto a:hover img { transform: scale(1.05); }
@media (max-width: 560px) {
  .artikel-gal-foto { grid-template-columns: 1fr; }
}

/* ============================================================
   Chatbot widget
   ============================================================ */
.chatbot { position: fixed; right: 18px; bottom: 18px; z-index: 120; }
.chatbot-toggle {
  width: 58px; height: 58px; border: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--acc-fuchsia));
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 32px -8px rgba(79, 70, 229, .55);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.chatbot-toggle svg { width: 28px; height: 28px; }
.chatbot-toggle:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 38px -8px rgba(79, 70, 229, .7); }
.chatbot-badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--acc-pink); color: #fff; font-size: 11px; font-weight: 800;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.chatbot-box {
  position: absolute; right: 0; bottom: 68px; width: 340px; max-width: calc(100vw - 28px);
  max-height: calc(100vh - 110px); height: auto;
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  display: flex; flex-direction: column; transform-origin: bottom right;
  animation: chatbot-pop .28s var(--ease);
}
@keyframes chatbot-pop { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
.chatbot-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: var(--grad-main); color: #fff;
}
.chatbot-head-text { flex: 1; }
.chatbot-head-text strong { display: block; font-size: 14px; }
.chatbot-head-text span { font-size: 12px; opacity: .9; }
.chatbot-close {
  width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18);
  color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
}
.chatbot-close:hover { background: rgba(255,255,255,.32); }
.chatbot-body {
  flex: 1 1 auto; min-height: 140px; height: auto; overflow-y: auto; padding: 14px 12px; background: var(--bg-soft);
  display: flex; flex-direction: column; gap: 10px;
}
.chat-msg {
  max-width: 82%; padding: 9px 13px; border-radius: var(--radius-sm);
  font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word;
}
.chat-msg.bot { background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 3px; align-self: flex-start; }
.chat-msg.user { background: var(--teal); color: #fff; border-bottom-right-radius: 3px; align-self: flex-end; }
.chat-msg a { color: var(--teal-bright); text-decoration: underline; word-break: break-all; }
.chatbot-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--line); background: #fff; }
.chatbot-chips:empty { display: none; }
.chat-chip {
  border: 1px solid var(--teal-100); background: var(--teal-50); color: var(--teal-dark);
  font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.chat-chip:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.chatbot-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.chatbot-form input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px;
  font-family: var(--font); font-size: 13.5px; outline: none; background: var(--bg-soft);
}
.chatbot-form input:focus { border-color: var(--teal); background: #fff; }
.chatbot-form button {
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--grad-main); color: #fff; display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.chatbot-form button svg { width: 18px; height: 18px; }
.chatbot-typing { display: inline-flex; gap: 4px; align-items: center; padding: 12px 14px; }
.chatbot-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); opacity: .4; animation: typing .9s infinite; }
.chatbot-typing i:nth-child(2) { animation-delay: .15s; }
.chatbot-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (max-width: 560px) {
  .chatbot-body { min-height: 110px; }
  .chatbot-box { width: calc(100vw - 28px); max-height: calc(100vh - 100px); }
}
.chatbot-box[hidden] { display: none !important; }

/* ===== Mitra kerjasama (logo berjalan) ===== */
.mitra-marquee { overflow: hidden; position: relative; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mitra-track { display: flex; width: max-content; animation: mitra-scroll 28s linear infinite; }
.mitra-group { display: flex; align-items: center; }
.mitra-item {
  flex: 0 0 auto; width: 150px; height: 84px; margin-right: 18px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px; box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}
.mitra-item img {
  max-width: 100%; max-height: 100%; object-fit: contain;
}
.mitra-marquee:hover .mitra-track { animation-play-state: paused; }
@keyframes mitra-scroll { to { transform: translateX(-50%); } }
@media (max-width: 560px) { .mitra-item { width: 120px; height: 68px; } }
@media (prefers-reduced-motion: reduce) { .mitra-track { animation: none; width: 100%; flex-wrap: wrap; gap: 18px; } .mitra-marquee { overflow: visible; } }
