/* ============================================================
   TEMA SPENDUGA — "Magenta Elegan"
   Preview desain untuk SMP Negeri 2 Glagah
   Palet dasar: magenta tua + fuchsia + emas tipis
   ============================================================ */

:root {
  /* ---- Warna inti ---- */
  --mg-900: #4A0E2C;   /* magenta tergelap — teks kuat, footer */
  --mg-800: #6B1540;   /* magenta tua */
  --mg-700: #9C1E5B;   /* PRIMARY */
  --mg-600: #B8256E;   /* hover primary */
  --mg-500: #E668B3;   /* ACCENT fuchsia */
  --mg-400: #F08FC9;
  --mg-300: #F7B8DC;
  --mg-200: #FBD9EC;
  --mg-100: #FDF0F7;
  --mg-050: #FEF8FB;   /* latar lembut */

  /* ---- Emas (aksen tipis saja) ---- */
  --gold: #C9A227;
  --gold-soft: #E8D18A;

  /* ---- Netral ---- */
  --ink: #2B1B24;      /* teks utama */
  --ink-2: #5C4650;    /* teks sekunder */
  --ink-3: #8A7580;    /* teks muted */
  --line: #EEDDE6;     /* border */
  --surface: #FFFFFF;
  --bg: #FEF8FB;

  /* ---- Tipografi ---- */
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* ---- Bentuk & bayangan ---- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --sh-sm: 0 1px 3px rgba(74, 14, 44, .06), 0 1px 2px rgba(74, 14, 44, .04);
  --sh-md: 0 4px 16px rgba(74, 14, 44, .08), 0 2px 6px rgba(74, 14, 44, .04);
  --sh-lg: 0 12px 40px rgba(74, 14, 44, .12), 0 4px 12px rgba(74, 14, 44, .06);
  --sh-glow: 0 8px 30px rgba(156, 30, 91, .25);

  /* ---- Gradien ---- */
  --grad: linear-gradient(135deg, var(--mg-800) 0%, var(--mg-700) 45%, var(--mg-500) 100%);
  --grad-soft: linear-gradient(135deg, var(--mg-100) 0%, var(--mg-200) 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

a { color: var(--mg-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--mg-500); }

img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============ TOPBAR ============ */
.topbar {
  background: var(--mg-900);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  padding: 8px 0;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar-info { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-info svg { width: 14px; height: 14px; opacity: .7; }
.topbar-sos { display: flex; align-items: center; gap: 10px; }
.topbar-sos a {
  color: rgba(255,255,255,.7);
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  transition: all .2s;
}
.topbar-sos a:hover { background: var(--mg-700); color: #fff; transform: translateY(-1px); }
.topbar-sos svg { width: 16px; height: 16px; }

/* ============ NAVBAR ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--sh-md); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo {
  width: 46px; height: 46px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border-radius: 11px;
  padding: 3px;
  border: 1px solid var(--line);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-family: var(--font-head); font-size: 15px; color: var(--ink); font-weight: 800; }
.brand-text small { font-size: 11px; color: var(--mg-700); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-menu > li > a {
  display: block;
  padding: 9px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: all .2s;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active { background: var(--mg-100); color: var(--mg-700); }

.nav-cta {
  padding: 10px 20px;
  background: var(--grad);
  color: #fff !important;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--sh-glow);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(156,30,91,.35); color:#fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--ink); }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: var(--grad);
  color: #fff;
  padding: 90px 0 110px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 25%, rgba(230,104,179,.35) 0%, transparent 42%),
    radial-gradient(circle at 82% 70%, rgba(201,162,39,.18) 0%, transparent 45%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px; height: 70px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 32%, 100% 100%);
}
.hero .wrap { position: relative; z-index: 2; }

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(232,209,138,.3);
}

.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  color: #fff;
  margin-bottom: 22px;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: normal;
  color: var(--mg-300);
  position: relative;
}
.hero h1 em::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 4px; height: 8px;
  background: rgba(230,104,179,.3);
  border-radius: 4px;
  z-index: -1;
}

.hero p.lead {
  font-size: 17.5px;
  line-height: 1.75;
  color: rgba(255,255,255,.88);
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 30px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-head);
  border: 0; cursor: pointer;
  transition: all .25s;
  text-align: center;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: #fff; color: var(--mg-800); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.26); color: var(--mg-800); }
.btn-ghost {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; transform: translateY(-3px); }

/* Foto hero */
.hero-visual { position: relative; }
.hero-photo {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
  border: 5px solid rgba(255,255,255,.16);
  aspect-ratio: 4/3;
  background: var(--mg-800);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-float {
  position: absolute;
  background: rgba(255,255,255,.97);
  border-radius: var(--r-md);
  padding: 13px 18px;
  box-shadow: var(--sh-lg);
  display: flex; align-items: center; gap: 11px;
  animation: floaty 5s ease-in-out infinite;
}
.hero-float.a { bottom: -20px; left: -22px; }
.hero-float.b { top: 22px; right: -18px; animation-delay: 1.6s; }
.hero-float .ic {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--grad-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--mg-700); flex-shrink: 0;
}
.hero-float .ic svg { width: 19px; height: 19px; }
.hero-float b { display: block; font-family: var(--font-head); font-size: 16px; color: var(--ink); line-height: 1.2; }
.hero-float small { font-size: 11px; color: var(--ink-3); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============ STATISTIK ============ */
.stats { margin-top: -50px; position: relative; z-index: 5; padding-bottom: 10px; }
.stats-grid {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
}
.stat {
  padding: 30px 22px;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: background .25s;
}
.stat:last-child { border-right: 0; }
.stat:hover { background: var(--mg-050); }
.stat .num {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.stat .lbl { font-size: 13px; color: var(--ink-3); font-weight: 600; letter-spacing: .02em; }

/* ============ SECTION UMUM ============ */
section { padding: 84px 0; }
.sec-head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.sec-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mg-700);
  background: var(--mg-100);
  padding: 6px 15px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.sec-head h2 { font-size: clamp(27px, 3.6vw, 40px); margin-bottom: 14px; }
.sec-head p { font-size: 16.5px; color: var(--ink-3); line-height: 1.7; }
.sec-head .rule {
  width: 56px; height: 3px;
  background: var(--grad);
  border-radius: 2px;
  margin: 20px auto 0;
}

/* ============ SAMBUTAN KEPSEK ============ */
.welcome { background: var(--surface); }
.welcome-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.welcome-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 4/5;
  background: var(--mg-100);
  position: relative;
}
.welcome-photo img { width: 100%; height: 100%; object-fit: cover; }
.welcome-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(74,14,44,.35), transparent 55%);
}
.welcome-quote {
  font-family: var(--font-head);
  font-size: 21px;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 22px;
  padding-left: 22px;
  border-left: 4px solid var(--mg-500);
  font-style: italic;
}
.welcome-text { font-size: 16px; line-height: 1.85; color: var(--ink-2); margin-bottom: 26px; }
.welcome-sign { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.welcome-sign .av {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 18px;
  flex-shrink: 0;
}
.welcome-sign b { display: block; font-family: var(--font-head); font-size: 16px; color: var(--ink); }
.welcome-sign small { font-size: 13px; color: var(--mg-700); font-weight: 600; }

/* ============ KEUNGGULAN ============ */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.feat::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}
.feat:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--mg-300); }
.feat:hover::before { transform: scaleX(1); }
.feat-ic {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--grad-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--mg-700);
  margin-bottom: 22px;
  transition: transform .3s;
}
.feat:hover .feat-ic { transform: scale(1.08) rotate(-4deg); }
.feat-ic svg { width: 27px; height: 27px; }
.feat h3 { font-size: 19px; margin-bottom: 11px; }
.feat p { font-size: 15px; color: var(--ink-3); line-height: 1.7; }

/* ============ PRESTASI ============ */
.achievements { background: linear-gradient(180deg, var(--mg-050) 0%, var(--bg) 100%); }
.ach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ach {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform .3s, box-shadow .3s;
  border: 1px solid var(--line);
}
.ach:hover { transform: translateY(-7px); box-shadow: var(--sh-lg); }
.ach-img { aspect-ratio: 4/3; overflow: hidden; background: var(--mg-100); position: relative; }
.ach-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ach:hover .ach-img img { transform: scale(1.07); }
.ach-medal {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold);
  color: #fff;
  font-size: 11px; font-weight: 800;
  padding: 5px 11px;
  border-radius: 100px;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(201,162,39,.4);
}
.ach-body { padding: 20px; }
.ach-body h3 { font-size: 16px; line-height: 1.4; margin-bottom: 7px; }
.ach-body p { font-size: 13.5px; color: var(--ink-3); }

/* ============ EKSKUL ============ */
.ekskul-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.eks {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 20px;
  display: flex; align-items: flex-start; gap: 14px;
  transition: all .25s;
}
.eks:hover {
  border-color: var(--mg-500);
  background: var(--mg-050);
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
.eks-ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--mg-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--mg-700); flex-shrink: 0;
}
.eks-ic svg { width: 21px; height: 21px; }
.eks b { display: block; font-family: var(--font-head); font-size: 14.5px; color: var(--ink); line-height: 1.35; margin-bottom: 4px; }
.eks small { font-size: 12px; color: var(--ink-3); }

/* ============ BERITA ============ */
.news { background: var(--surface); }
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.news-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.news-img { aspect-ratio: 16/10; overflow: hidden; background: var(--mg-100); }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-img img { transform: scale(1.06); }
.news-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--ink-3); margin-bottom: 11px;
}
.news-meta .cat {
  background: var(--mg-100); color: var(--mg-700);
  padding: 3px 10px; border-radius: 100px;
  font-weight: 700; font-size: 11.5px;
}
.news-card h3 { font-size: 17px; line-height: 1.42; margin-bottom: 10px; }
.news-card.featured h3 { font-size: 23px; }
.news-body p { font-size: 14.5px; color: var(--ink-3); line-height: 1.65; flex: 1; }
.news-more {
  margin-top: 16px; font-size: 14px; font-weight: 700;
  color: var(--mg-700); display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 0;
}
.news-more svg { width: 15px; height: 15px; transition: transform .2s; }
.news-card:hover .news-more svg { transform: translateX(4px); }

/* ============ VIDEO ============ */
.video-sec { background: var(--mg-900); color: #fff; position: relative; overflow: hidden; }
.video-sec::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 75% 30%, rgba(230,104,179,.22) 0%, transparent 50%);
}
.video-sec .wrap { position: relative; z-index: 2; }
.video-sec .sec-head h2 { color: #fff; }
.video-sec .sec-head p { color: rgba(255,255,255,.72); }
.video-sec .sec-tag { background: rgba(255,255,255,.13); color: var(--mg-300); }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.video-item {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .3s;
}
.video-item:hover { transform: translateY(-5px); }
.video-frame { aspect-ratio: 16/9; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-cap { padding: 20px 22px; }
.video-cap b { font-family: var(--font-head); font-size: 16.5px; display: block; margin-bottom: 5px; color: #fff; }
.video-cap small { color: rgba(255,255,255,.6); font-size: 13.5px; }

/* ============ GALERI ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 14px;
}
.gal-item {
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  background: var(--mg-100);
  cursor: pointer;
}
.gal-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gal-item:nth-child(6) { grid-column: span 2; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gal-item:hover img { transform: scale(1.08); }
.gal-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(74,14,44,.75), transparent 55%);
  opacity: 0; transition: opacity .3s;
}
.gal-item:hover::after { opacity: 1; }
.gal-cap {
  position: absolute; bottom: 14px; left: 16px; right: 16px;
  color: #fff; font-size: 13.5px; font-weight: 600;
  opacity: 0; transform: translateY(8px);
  transition: all .3s; z-index: 2;
}
.gal-item:hover .gal-cap { opacity: 1; transform: translateY(0); }

/* ============ CTA ============ */
.cta { padding: 0 0 84px; }
.cta-box {
  background: var(--grad);
  border-radius: var(--r-xl);
  padding: 62px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.cta-box::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.14) 0%, transparent 38%),
    radial-gradient(circle at 88% 82%, rgba(201,162,39,.2) 0%, transparent 40%);
}
.cta-box > * { position: relative; z-index: 2; }
.cta-box h2 { color: #fff; font-size: clamp(25px, 3.4vw, 37px); margin-bottom: 15px; }
.cta-box p { color: rgba(255,255,255,.9); font-size: 16.5px; max-width: 580px; margin: 0 auto 32px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ FOOTER ============ */
footer { background: var(--mg-900); color: rgba(255,255,255,.7); padding: 66px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 46px; }
.foot-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.foot-brand img {
  width: 56px; height: 56px; object-fit: contain;
  background: #fff;
  border-radius: 14px;
  padding: 5px;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
}
.foot-brand b { font-family: var(--font-head); font-size: 17px; color: #fff; display: block; line-height: 1.25; }
.foot-brand small { font-size: 12px; color: var(--mg-300); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
footer p { font-size: 14.5px; line-height: 1.75; }
.foot-col h4 {
  font-family: var(--font-head); font-size: 14px; color: #fff;
  margin-bottom: 18px; letter-spacing: .05em; text-transform: uppercase; font-weight: 800;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 10px; }
.foot-col a { color: rgba(255,255,255,.7); font-size: 14.5px; }
.foot-col a:hover { color: var(--mg-300); padding-left: 4px; }
.foot-contact li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; margin-bottom: 14px; }
.foot-contact svg { width: 17px; height: 17px; color: var(--mg-400); flex-shrink: 0; margin-top: 3px; }
.foot-sos { display: flex; gap: 9px; margin-top: 20px; }
.foot-sos a {
  width: 38px; height: 38px; border-radius: 11px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8);
  transition: all .25s;
}
.foot-sos a:hover { background: var(--mg-700); color: #fff; transform: translateY(-3px); }
.foot-sos svg { width: 17px; height: 17px; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 13.5px; flex-wrap: wrap;
}
.foot-bottom .gold { color: var(--gold-soft); font-weight: 600; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .welcome-grid { grid-template-columns: 1fr; gap: 36px; }
  .welcome-photo { max-width: 340px; margin: 0 auto; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .ach-grid, .ekskul-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card.featured { grid-column: span 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; padding: 14px; gap: 4px;
    box-shadow: var(--sh-lg); border-bottom: 1px solid var(--line);
    align-items: stretch;
  }
  .nav-menu.open > li > a { padding: 13px 16px; }
  .nav-toggle { display: block; }
  .topbar-info span:nth-child(n+2) { display: none; }
  .hero { padding: 60px 0 84px; }
  .hero-float { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: 0; }
  .stat .num { font-size: 32px; }
  section { padding: 60px 0; }
  .feat-grid, .ach-grid, .ekskul-grid, .news-grid, .video-grid { grid-template-columns: 1fr; }
  .news-card.featured { grid-column: span 1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gal-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .gal-item:nth-child(6) { grid-column: span 2; }
  .cta-box { padding: 44px 26px; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .foot-bottom { flex-direction: column; text-align: center; }
}

/* Aksesibilitas */
:focus-visible { outline: 3px solid var(--mg-500); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }


/* ============================================================
   TAMBAHAN: Galeri Lightbox, Modal Ekskul, Visi-Misi
   ============================================================ */

/* ---- Galeri: layout masonry rapi ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.gal-item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--mg-100);
  cursor: zoom-in;
  border: 0; padding: 0;
  display: block;
  width: 100%; height: 100%;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.3,1); }
.gal-item:hover img { transform: scale(1.09); }
.gal-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(74,14,44,.82) 0%, rgba(74,14,44,.15) 42%, transparent 65%);
  opacity: 0; transition: opacity .3s;
}
.gal-item:hover::after, .gal-item:focus-visible::after { opacity: 1; }
.gal-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 18px;
  color: #fff; font-size: 13.5px; font-weight: 700;
  font-family: var(--font-head);
  opacity: 0; transform: translateY(10px);
  transition: all .3s .05s; z-index: 2;
  text-align: left;
}
.gal-item:hover .gal-cap, .gal-item:focus-visible .gal-cap { opacity: 1; transform: translateY(0); }
.gal-zoom {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.94);
  display: flex; align-items: center; justify-content: center;
  color: var(--mg-800);
  opacity: 0; transform: scale(.8);
  transition: all .3s; z-index: 2;
}
.gal-item:hover .gal-zoom { opacity: 1; transform: scale(1); }
.gal-zoom svg { width: 16px; height: 16px; }

/* Item besar (featured) */
.gal-item.big { grid-column: span 2; grid-row: span 2; }
.gal-item.wide { grid-column: span 2; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(20, 5, 14, .94);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .25s;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lb-close {
  position: absolute; top: 20px; right: 20px;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-close:hover { background: rgba(255,255,255,.28); }
.lb-close svg { width: 22px; height: 22px; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-nav svg { width: 22px; height: 22px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-caption {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 14.5px; font-weight: 600;
  background: rgba(0,0,0,.55);
  padding: 10px 22px; border-radius: 100px;
  white-space: nowrap; max-width: 90vw; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 768px) {
  .lb-nav { width: 42px; height: 42px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-close { top: 12px; right: 12px; width: 42px; height: 42px; }
}

/* ---- Modal 15 Ekskul ---- */
.modal {
  position: fixed; inset: 0; z-index: 998;
  background: rgba(20, 5, 14, .72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-box {
  background: var(--surface);
  border-radius: var(--r-lg);
  max-width: 860px; width: 100%;
  max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 90px rgba(0,0,0,.4);
  overflow: hidden;
}
.modal-head {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--mg-050);
}
.modal-head h3 { font-size: 21px; margin-bottom: 3px; }
.modal-head p { font-size: 13.5px; color: var(--ink-3); }
.modal-close {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2); cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.modal-close:hover { background: var(--mg-100); color: var(--mg-700); border-color: var(--mg-300); }
.modal-close svg { width: 20px; height: 20px; }
.modal-body { padding: 24px 28px; overflow-y: auto; }
.eks-full {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.eks-full .item {
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md);
  display: flex; align-items: center; gap: 12px;
  transition: all .2s;
}
.eks-full .item:hover { border-color: var(--mg-500); background: var(--mg-050); }
.eks-full .dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad);
}
.eks-full b { font-family: var(--font-head); font-size: 14px; color: var(--ink); }
.eks-full small { display: block; font-size: 11.5px; color: var(--ink-3); }
.eks-wajib {
  display: inline-block; font-size: 10px; font-weight: 800;
  background: var(--gold); color: #fff;
  padding: 2px 7px; border-radius: 4px; margin-left: 6px;
  letter-spacing: .04em; text-transform: uppercase;
}
@media (max-width: 768px) {
  .eks-full { grid-template-columns: 1fr; }
  .modal-head { padding: 18px 20px; }
  .modal-body { padding: 18px 20px; }
  .modal-head h3 { font-size: 18px; }
}

/* ---- Tombol outline (Lihat Semua) ---- */
.btn-outline {
  background: transparent; color: var(--mg-700);
  border: 2px solid var(--mg-300);
}
.btn-outline:hover { background: var(--mg-700); color: #fff; border-color: var(--mg-700); transform: translateY(-3px); }

/* ---- Visi & Misi ---- */
.vm-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: start; }
.vm-visi {
  background: var(--grad); color: #fff;
  border-radius: var(--r-lg); padding: 38px 34px;
  box-shadow: var(--sh-lg);
  position: relative; overflow: hidden;
}
.vm-visi::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 80% 15%, rgba(255,255,255,.16) 0%, transparent 45%);
}
.vm-visi > * { position: relative; z-index: 2; }
.vm-visi .lbl {
  font-size: 11.5px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--mg-300); margin-bottom: 14px; display: block;
}
.vm-visi p { font-family: var(--font-head); font-size: 19px; line-height: 1.6; font-weight: 600; color: #fff; }
.vm-misi { display: flex; flex-direction: column; gap: 12px; }
.vm-misi .item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 18px 20px;
  display: flex; gap: 14px; align-items: flex-start;
  transition: all .25s;
}
.vm-misi .item:hover { border-color: var(--mg-300); box-shadow: var(--sh-md); transform: translateX(4px); }
.vm-misi .n {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: var(--mg-100); color: var(--mg-700);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 13.5px;
}
.vm-misi p { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
@media (max-width: 1024px) { .vm-grid { grid-template-columns: 1fr; } }

/* ---- Kokurikuler ---- */
.koku-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.koku {
  border-radius: var(--r-lg); padding: 32px 30px;
  border: 1px solid var(--line); background: var(--surface);
  position: relative; overflow: hidden;
  transition: all .3s;
}
.koku:hover { box-shadow: var(--sh-lg); transform: translateY(-5px); }
.koku::before {
  content: ''; position: absolute; top: 0; left: 0; width: 5px; height: 100%;
  background: var(--grad);
}
.koku .sem {
  display: inline-block; font-size: 11.5px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--mg-700); background: var(--mg-100);
  padding: 5px 13px; border-radius: 100px; margin-bottom: 15px;
}
.koku h3 { font-size: 20px; margin-bottom: 11px; }
.koku p { font-size: 14.5px; color: var(--ink-3); line-height: 1.7; }
.koku .mapel {
  margin-top: 16px; padding-top: 15px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--ink-3);
}
.koku .mapel b { color: var(--mg-700); }
@media (max-width: 768px) { .koku-grid { grid-template-columns: 1fr; } }

/* ---- Info strip (kontak cepat) ---- */
.info-strip {
  background: var(--surface); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); padding: 30px 0;
}
.info-strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item .ic {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--grad-soft); color: var(--mg-700);
  display: flex; align-items: center; justify-content: center;
}
.info-item .ic svg { width: 20px; height: 20px; }
.info-item b { display: block; font-family: var(--font-head); font-size: 14.5px; color: var(--ink); margin-bottom: 3px; }
.info-item span { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }
@media (max-width: 768px) { .info-strip .wrap { grid-template-columns: 1fr; gap: 18px; } }


/* ============================================================
   PERBAIKAN MOBILE (ditaruh paling akhir agar menang cascade)
   ============================================================ */
@media (max-width: 768px) {
  /* Galeri: 2 kolom di HP, bukan 4 yang bikin thumbnail 77px */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: 10px;
  }
  .gal-item.big { grid-column: span 2; grid-row: span 1; }
  .gal-item.wide { grid-column: span 2; }
  .gal-cap { opacity: 1; transform: translateY(0); font-size: 12px; padding: 12px 14px; }
  .gal-zoom { display: none; }

  /* Target sentuh ikon sosial ≥ 40px */
  .topbar-sos a { width: 40px; height: 40px; }
  .topbar-sos svg { width: 18px; height: 18px; }
  .foot-sos a { width: 44px; height: 44px; }

  /* Tombol full-width agar mudah ditekan */
  .hero-btns .btn, .cta-btns .btn { width: 100%; justify-content: center; }
  .hero-btns, .cta-btns { flex-direction: column; }

  /* Statistik: angka tidak terlalu besar */
  .stat .num { font-size: 30px; }
  .stat { padding: 22px 14px; }

  /* Berita utama jangan terlalu tinggi */
  .news-card.featured h3 { font-size: 19px; }

  /* Video caption lebih rapat */
  .video-cap { padding: 16px 18px; }
  .video-cap b { font-size: 15px; }

  /* Visi box padding lebih kecil */
  .vm-visi { padding: 28px 24px; }
  .vm-visi p { font-size: 17px; }

  /* Kokurikuler */
  .koku { padding: 26px 22px; }
  .koku h3 { font-size: 18px; }

  /* Footer brand */
  .foot-brand img { width: 50px; height: 50px; }
}

@media (max-width: 400px) {
  .gallery-grid { grid-auto-rows: 130px; }
  .stat .num { font-size: 26px; }
  .stat .lbl { font-size: 11.5px; }
}


/* Target sentuh link footer di HP — 17px terlalu kecil untuk jari */
@media (max-width: 768px) {
  .foot-col li { margin-bottom: 2px; }
  .foot-col a {
    display: block;
    padding: 11px 0;
    min-height: 44px;
    line-height: 22px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .foot-col a:hover { padding-left: 6px; }
  .foot-contact li { padding: 6px 0; }
  /* Link dalam berita */
  .news-more { min-height: 48px; }
}


/* ============================================================
   KARTU BERITA dari TikTok + badge play + views
   ============================================================ */
.news-img { position: relative; display: block; }
.play-badge {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20,5,14,.22);
  transition: background .3s;
}
.play-badge::after {
  content: '';
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.95);
  position: absolute;
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
  transition: transform .3s;
}
.play-badge svg {
  width: 24px; height: 24px; color: var(--mg-800);
  position: relative; z-index: 2; margin-left: 3px;
}
.news-card:hover .play-badge { background: rgba(20,5,14,.38); }
.news-card:hover .play-badge::after { transform: scale(1.12); }
.news-meta .views {
  color: var(--mg-700); font-weight: 700;
  background: var(--mg-050); padding: 3px 9px; border-radius: 100px;
}
.news-meta .views::before { content: '▶ '; font-size: 9px; }

/* Baris kedua berita: 2 kartu tambahan */
.news-grid.second { margin-top: 24px; grid-template-columns: repeat(3, 1fr); }

/* Strip TikTok: daftar video vertikal */
.tt-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.tt-card {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  transition: all .3s; display: block;
}
.tt-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--mg-300); }
.tt-thumb { position: relative; aspect-ratio: 9/13; background: var(--mg-100); overflow: hidden; }
.tt-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tt-card:hover .tt-thumb img { transform: scale(1.06); }
.tt-dur {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,.72); color: #fff;
  font-size: 11.5px; font-weight: 700;
  padding: 3px 8px; border-radius: 5px;
  font-variant-numeric: tabular-nums;
}
.tt-ico {
  position: absolute; top: 10px; left: 10px;
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(0,0,0,.62);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.tt-ico svg { width: 16px; height: 16px; }
.tt-body { padding: 16px 18px 18px; }
.tt-body b {
  display: block; font-family: var(--font-head); font-size: 14.5px;
  color: var(--ink); line-height: 1.4; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tt-stats { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-3); }
.tt-stats span { display: inline-flex; align-items: center; gap: 5px; }
.tt-stats svg { width: 13px; height: 13px; }

@media (max-width: 1024px) {
  .news-grid.second, .tt-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .news-grid.second, .tt-strip { grid-template-columns: 1fr; }
  .tt-thumb { aspect-ratio: 4/5; }
  .play-badge::after { width: 48px; height: 48px; }
}



/* ============================================================
   KARTU INSTAGRAM
   ============================================================ */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ig-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex; flex-direction: column;
  transition: all .3s;
}
.ig-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--mg-300); }
.ig-thumb {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--mg-100);
  overflow: hidden;
}
.ig-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ig-card:hover .ig-thumb img { transform: scale(1.06); }
.ig-ico {
  position: absolute; top: 11px; left: 11px;
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #833AB4 0%, #E1306C 50%, #F77737 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,.3);
}
.ig-ico svg { width: 16px; height: 16px; }
.ig-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.94);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.28);
  transition: transform .3s;
}
.ig-play svg { width: 20px; height: 20px; color: var(--mg-800); margin-left: 2px; }
.ig-card:hover .ig-play { transform: translate(-50%,-50%) scale(1.1); }
.ig-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.ig-body b {
  font-family: var(--font-head); font-size: 14.5px; color: var(--ink);
  line-height: 1.4; margin-bottom: 7px; display: block;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ig-body p {
  font-size: 13px; color: var(--ink-3); line-height: 1.6; flex: 1; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ig-stats {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--mg-700);
  background: var(--mg-050); padding: 5px 11px; border-radius: 100px;
  align-self: flex-start;
}
.ig-stats svg { width: 13px; height: 13px; }

@media (max-width: 1024px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .ig-grid { grid-template-columns: 1fr; }
  .ig-thumb { aspect-ratio: 4/3; }
  .ig-body b { font-size: 15px; -webkit-line-clamp: 3; }
  .ig-body p { -webkit-line-clamp: 4; }
}


/* ============================================================
   AGENDA / KALENDER KEGIATAN
   Tab filter + timeline kartu
   ============================================================ */
.agenda { background: linear-gradient(180deg, var(--mg-050) 0%, var(--bg) 100%); }

/* Tab filter */
.ag-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-bottom: 34px;
}
.ag-tab {
  padding: 11px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-family: var(--font-head);
  font-size: 13.5px; font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .22s;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
}
.ag-tab:hover { border-color: var(--mg-300); color: var(--mg-700); }
.ag-tab.active {
  background: var(--grad); color: #fff;
  border-color: transparent;
  box-shadow: var(--sh-glow);
}
.ag-tab .cnt {
  font-size: 11.5px; padding: 2px 8px; border-radius: 100px;
  background: var(--mg-100); color: var(--mg-700);
  font-weight: 800;
}
.ag-tab.active .cnt { background: rgba(255,255,255,.25); color: #fff; }

/* Panel */
.ag-panel { display: none; }
.ag-panel.active { display: block; animation: agFade .35s ease; }
@keyframes agFade { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform:none; } }

/* Sumber strip */
.ag-src {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--mg-500);
  border-radius: var(--r-md);
  padding: 15px 18px;
  margin-bottom: 24px;
  font-size: 13px; color: var(--ink-3); line-height: 1.6;
}
.ag-src svg { width: 18px; height: 18px; color: var(--mg-700); flex-shrink: 0; margin-top: 2px; }
.ag-src b { color: var(--ink); }

/* Grid kartu agenda */
.ag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ag-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 22px 20px;
  position: relative; overflow: hidden;
  transition: all .28s;
  display: flex; flex-direction: column;
}
.ag-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .35s;
}
.ag-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--mg-300); }
.ag-card:hover::before { transform: scaleX(1); }

.ag-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px;
  margin-bottom: 13px; align-self: flex-start;
}
.ag-badge.nasional { background: #E8F0FE; color: #1A56C4; }
.ag-badge.provinsi { background: #FDF0F7; color: var(--mg-700); }
.ag-badge.pemkab   { background: #FFF6E5; color: #9A6B00; }
.ag-badge.sekolah  { background: #E9F7F1; color: #0B7355; }

.ag-card h3 {
  font-size: 16px; line-height: 1.4; margin-bottom: 9px;
  color: var(--ink);
}
.ag-card p { font-size: 13.5px; color: var(--ink-3); line-height: 1.62; flex: 1; }

.ag-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 15px; padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--ink-3);
}
.ag-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ag-meta svg { width: 14px; height: 14px; color: var(--mg-500); }
.ag-meta .tgl { color: var(--mg-700); font-weight: 700; }

.ag-link {
  margin-top: 14px; font-size: 13px; font-weight: 700;
  color: var(--mg-700); display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px;
}
.ag-link svg { width: 14px; height: 14px; transition: transform .2s; }
.ag-card:hover .ag-link svg { transform: translateX(4px); }

/* Timeline jadwal sekolah */
.ag-timeline { position: relative; padding-left: 30px; }
.ag-timeline::before {
  content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(180deg, var(--mg-500), var(--mg-200));
  border-radius: 2px;
}
.ag-tl-item {
  position: relative; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 18px 20px;
  transition: all .25s;
}
.ag-tl-item:hover { border-color: var(--mg-300); box-shadow: var(--sh-md); transform: translateX(4px); }
.ag-tl-item::before {
  content: ''; position: absolute; left: -27px; top: 24px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--mg-500);
  box-shadow: 0 0 0 3px var(--mg-050);
}
.ag-tl-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.ag-tl-tgl {
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  color: var(--mg-700);
  background: var(--mg-050); padding: 4px 11px; border-radius: 100px;
}
.ag-tl-sem {
  font-size: 11px; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 5px;
}
.ag-tl-sem.ganjil { background: #E8F0FE; color: #1A56C4; }
.ag-tl-sem.genap  { background: #E9F7F1; color: #0B7355; }
.ag-tl-kat {
  font-size: 11px; font-weight: 700; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .05em;
}
.ag-tl-item h4 { font-size: 15.5px; line-height: 1.4; margin-bottom: 5px; }
.ag-tl-item .ketua { font-size: 12.5px; color: var(--ink-3); }
.ag-tl-item .ketua b { color: var(--ink-2); font-weight: 600; }

@media (max-width: 1024px) { .ag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .ag-grid { grid-template-columns: 1fr; }
  .ag-tabs { gap: 6px; }
  .ag-tab { padding: 10px 15px; font-size: 12.5px; flex: 1 1 auto; justify-content: center; }
  .ag-timeline { padding-left: 24px; }
  .ag-tl-item::before { left: -21px; width: 10px; height: 10px; }
  .ag-card h3 { font-size: 15px; }
}


/* ============================================================
   FIX: tombol CBT Online di layar kecil
   Sebelumnya terpotong jadi 2 baris (68px). Sekarang 1 baris.
   ============================================================ */
.nav-cta {
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .nav-cta {
    padding: 8px 14px;
    font-size: 12.5px;
  }
  .brand-text small { display: none; }
  .brand-text b { font-size: 13.5px; }
}
@media (max-width: 360px) {
  .nav-cta { padding: 7px 11px; font-size: 11.5px; }
}
