/* =========================================================
   MA Al Asror Semarang — Public Website Theme
   Modern, responsive, animated
   ========================================================= */
:root {
  --green-900: #073c25;
  --green-800: #0a4f2e;
  --green-700: #0d6b3f;
  --green-600: #128252;
  --green-100: #e8f5ee;
  --green-50: #f3fbf7;
  --gold-500: #d4a017;
  --gold-400: #e8b923;
  --gold-100: #fff8e1;
  --text-900: #1a2332;
  --text-700: #3d4a5c;
  --text-500: #6b7a8d;
  --text-300: #a0aec0;
  --line: #e2e8f0;
  --line-light: #edf2f7;
  --bg: #f7faf8;
  --white: #ffffff;
  --red: #dc2626;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --ease: cubic-bezier(.4,0,.2,1);
  --transition: .25s var(--ease);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-arabic: 'Amiri', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text-900); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-600); }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; font-size: 1rem; }

.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 88px 0; }
.section--white { background: var(--white); }
.section--tint { background: var(--green-50); }
.section--dark { background: linear-gradient(135deg, var(--green-900), var(--green-800)); color: #fff; }
.section__head { margin-bottom: 48px; text-align: center; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; text-align: left; }
.section__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); margin-bottom: 12px; }
.section__eyebrow::before { content: ''; width: 28px; height: 3px; background: var(--gold-500); border-radius: 2px; }
.section--dark .section__eyebrow { color: var(--gold-400); }
.section__title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.2; color: var(--text-900); letter-spacing: -.02em; }
.section__title--light { color: #fff; }
.section__sub { margin-top: 14px; font-size: 1.02rem; color: var(--text-500); max-width: 640px; margin-left: auto; margin-right: auto; }
.section__head--row .section__sub { margin-left: 0; }

.icon { flex-shrink: 0; vertical-align: middle; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: .92rem; line-height: 1; white-space: nowrap; transition: all var(--transition); border: 2px solid transparent; cursor: pointer; text-decoration: none; }
.btn--brand { background: var(--green-700); color: #fff; }
.btn--brand:hover { background: var(--green-800); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13,107,63,.3); }
.btn--gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: #3a2800; }
.btn--gold:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(212,160,23,.35); color: #3a2800; }
.btn--ghost { background: transparent; color: var(--green-700); border-color: var(--line); }
.btn--ghost:hover { background: var(--green-50); border-color: var(--green-600); color: var(--green-700); }
.btn--ghost-light { color: #fff; border-color: rgba(255,255,255,.3); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--sm { padding: 8px 16px; font-size: .84rem; border-radius: 8px; }
.btn--lg { padding: 14px 30px; font-size: .95rem; border-radius: 12px; }
.btn--block { width: 100%; }/* Topbar */
.topbar { background: var(--green-900); color: rgba(255,255,255,.85); font-size: .78rem; padding: 8px 0; position: relative; z-index: 110; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar__contact { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar__contact a, .topbar__addr { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.85); }
.topbar__contact a:hover { color: #fff; }
.topbar__contact .icon, .topbar__addr .icon { opacity: .7; }
.topbar__meta { display: flex; align-items: center; gap: 8px; }
.topbar__badge { padding: 3px 10px; border-radius: 20px; font-size: .7rem; font-weight: 700; letter-spacing: .03em; background: rgba(255,255,255,.12); color: #fff; }
.topbar__badge--gold { background: rgba(212,160,23,.25); color: var(--gold-400); }

/* Navbar */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-light); transition: box-shadow var(--transition); }
.navbar.is-scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.navbar__inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand__logo { width: 48px; height: 48px; object-fit: contain; }
.brand__name { display: block; font-size: 1.15rem; font-weight: 800; color: var(--green-800); line-height: 1.2; letter-spacing: -.01em; }
.brand__tagline { display: block; font-size: .72rem; color: var(--text-500); font-weight: 500; }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__tagline { color: rgba(255,255,255,.65); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; font-size: .86rem; font-weight: 600; color: var(--text-700); border-radius: 8px; transition: all var(--transition); white-space: nowrap; }
.nav__label { display: inline-flex; align-items: center; gap: 7px; }
.nav__icon { width:30px; height:30px; padding:6px; border-radius:8px; background:var(--green-50); color: var(--green-700); opacity: 1; flex-shrink: 0; transition:all var(--transition); }
.nav__link:hover .nav__icon, .nav__item.is-active > .nav__link .nav__icon { background:var(--green-100); color:var(--green-800); transform:translateY(-1px); }
.nav__link:hover, .nav__item.is-active > .nav__link { color: var(--green-700); background: var(--green-50); }
.nav__caret { transition: transform var(--transition); opacity: .7; }
.nav__item--drop:hover > .nav__link .nav__caret { transform: rotate(180deg); }

.nav__drop { position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--line-light); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s var(--ease); z-index: 200; }
.nav__item--drop:hover > .nav__drop, .nav__item--drop:focus-within > .nav__drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__drop-link { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: .86rem; font-weight: 500; color: var(--text-700); border-radius: 8px; transition: all .15s; }
.nav__drop-link:hover { background: var(--green-50); color: var(--green-700); }
.nav__drop-link .icon { color: var(--green-600); opacity: .8; flex-shrink: 0; }

.navbar__cta { margin-left: 8px; flex-shrink: 0; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; color: var(--text-700); margin-left: auto; }
.nav-toggle:hover { background: var(--green-50); color: var(--green-700); }
/* Hero */
.hero { position: relative; height: 600px; overflow: hidden; background: var(--green-900); }
.hero__track { position: relative; height: 100%; }
.hero__slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity .8s ease; background-size: cover; background-position: center; }
.hero__slide.is-active { opacity: 1; }
.hero__slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7,60,37,.92) 0%, rgba(7,60,37,.75) 45%, rgba(7,60,37,.35) 100%); }
.hero__slide--1 { background: linear-gradient(135deg, #073c25 0%, #0d6b3f 50%, #128252 100%); }
.hero__slide--2 { background: linear-gradient(135deg, #0a4f2e 0%, #1a6b4a 50%, #0d6b3f 100%); }
.hero__slide--3 { background: linear-gradient(135deg, #073c25 0%, #0d5e3a 40%, #1a7a52 100%); }
.hero__content { position: relative; z-index: 2; max-width: 680px; padding: 40px 0; }
.hero__eyebrow { display: inline-block; padding: 6px 16px; background: rgba(212,160,23,.2); color: var(--gold-400); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 30px; margin-bottom: 20px; border: 1px solid rgba(212,160,23,.25); }
.hero__title { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; color: #fff; line-height: 1.15; letter-spacing: -.025em; margin-bottom: 18px; }
.hero__sub { font-size: 1.1rem; color: rgba(255,255,255,.85); line-height: 1.7; margin-bottom: 32px; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__dots { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.hero__dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.35); border: none; padding: 0; transition: all var(--transition); }
.hero__dot.is-active { background: var(--gold-400); width: 32px; border-radius: 6px; }

/* Stats */
.stats { background: #fff; padding: 0; margin-top: -48px; position: relative; z-index: 10; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line-light); }
.stat { display: flex; flex-direction: column; align-items: center; padding: 36px 24px; text-align: center; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 20%; height: 60%; width: 1px; background: var(--line); }
.stat__icon { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; background: var(--green-100); color: var(--green-700); border-radius: 16px; margin-bottom: 14px; }
.stat__num { font-size: 2rem; font-weight: 800; color: var(--green-800); line-height: 1; letter-spacing: -.02em; }
.stat__plus { color: var(--gold-500); }
.stat__label { margin-top: 6px; font-size: .85rem; font-weight: 600; color: var(--text-500); }

/* Split / Sambutan */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.sambutan__frame { position: relative; background: linear-gradient(135deg, var(--green-100), #d4ebe0); border-radius: var(--radius-lg); padding: 40px; display: flex; align-items: center; justify-content: center; min-height: 360px; }
.sambutan__frame::before { content: ''; position: absolute; top: -12px; left: -12px; width: 120px; height: 120px; border-top: 4px solid var(--gold-500); border-left: 4px solid var(--gold-500); border-radius: 20px 0 0 0; }
.sambutan__frame::after { content: ''; position: absolute; bottom: -12px; right: -12px; width: 120px; height: 120px; border-bottom: 4px solid var(--green-600); border-right: 4px solid var(--green-600); border-radius: 0 0 20px 0; }
.sambutan__photo { width: 220px; height: 220px; object-fit: contain; filter: drop-shadow(0 8px 24px rgba(0,0,0,.1)); }
.sambutan__badge { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background: #fff; padding: 8px 20px; border-radius: 30px; font-size: .78rem; font-weight: 700; color: var(--green-800); box-shadow: var(--shadow); white-space: nowrap; }
.prose p { margin-bottom: 16px; color: var(--text-700); }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { font-size: 1.2rem; margin: 24px 0 12px; color: var(--text-900); }
.prose ul, .prose ol { margin: 0 0 16px 20px; color: var(--text-700); }
.prose li { margin-bottom: 6px; list-style: disc; }
.prose ol li { list-style: decimal; }
/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: #fff; border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--line-light); transition: all var(--transition); position: relative; overflow: hidden; }
.feature::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--green-600), var(--gold-400)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }
.feature__icon { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; margin-bottom: 20px; }
.feature__icon--green { background: var(--green-100); color: var(--green-700); }
.feature__icon--gold { background: var(--gold-100); color: #a16207; }
.feature__icon--blue { background: #dbeafe; color: #1d4ed8; }
.feature__icon--purple { background: #ede9fe; color: #6d28d9; }
.feature__icon--red { background: #fee2e2; color: #dc2626; }
.feature__icon--teal { background: #ccfbf1; color: #0f766e; }
.feature__title { font-size: 1.1rem; font-weight: 700; color: var(--text-900); margin-bottom: 8px; }
.feature__text { font-size: .93rem; color: var(--text-500); line-height: 1.65; }
.feature__meta { display: inline-block; margin-top: 12px; font-size: .8rem; color: var(--green-600); font-weight: 600; }

/* News Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-light); transition: all var(--transition); display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.news-card__cover { display: flex; align-items: center; justify-content: center; height: 200px; background: linear-gradient(135deg, var(--green-700), var(--green-600)); color: rgba(255,255,255,.5); position: relative; }
.news-card__cover--prestasi { background: linear-gradient(135deg, #a16207, #d4a017); }
.news-card__cover--pengumuman { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.news-card__cover--kegiatan-pesantren { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
.news-card__tag { position: absolute; top: 14px; left: 14px; padding: 5px 12px; background: rgba(255,255,255,.95); color: var(--green-800); font-size: .72rem; font-weight: 700; border-radius: 20px; letter-spacing: .02em; }
.news-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.news-card__date { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--text-500); margin-bottom: 10px; }
.news-card__title { font-size: 1.05rem; font-weight: 700; line-height: 1.45; margin-bottom: 10px; }
.news-card__title a { color: var(--text-900); }
.news-card__title a:hover { color: var(--green-700); }
.news-card__text { font-size: .9rem; color: var(--text-500); line-height: 1.65; margin-bottom: 16px; flex: 1; }
.news-card__more { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 700; color: var(--green-700); margin-top: auto; }
.news-card__more:hover { gap: 10px; }

/* Agenda */
.agenda-list { display: flex; flex-direction: column; gap: 16px; }
.agenda-item { display: flex; gap: 20px; background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line-light); transition: all var(--transition); align-items: flex-start; }
.agenda-item:hover { box-shadow: var(--shadow); border-color: var(--green-100); }
.agenda-item__date { flex-shrink: 0; width: 64px; text-align: center; background: var(--green-100); border-radius: 12px; padding: 12px 8px; }
.agenda-item__day { display: block; font-size: 1.6rem; font-weight: 800; color: var(--green-800); line-height: 1; }
.agenda-item__month { display: block; font-size: .72rem; font-weight: 700; color: var(--green-600); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.agenda-item__title { font-size: 1.05rem; font-weight: 700; color: var(--text-900); margin-bottom: 6px; }
.agenda-item__meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: .82rem; color: var(--text-500); }
.agenda-item__meta span { display: inline-flex; align-items: center; gap: 5px; }
.agenda-item__desc { margin-top: 8px; font-size: .88rem; color: var(--text-500); }

.agenda-next { display: flex; gap: 32px; background: linear-gradient(135deg, var(--green-800), var(--green-700)); color: #fff; border-radius: var(--radius-lg); padding: 36px; margin-bottom: 40px; align-items: center; }
.agenda-next__date { flex-shrink: 0; width: 90px; height: 90px; background: rgba(255,255,255,.15); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px solid rgba(255,255,255,.2); }
.agenda-next__date span { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.agenda-next__date small { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.agenda-next__title { font-size: 1.5rem; font-weight: 800; margin: 10px 0 8px; }
.agenda-next__meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: .88rem; opacity: .9; }
.agenda-next__meta span { display: inline-flex; align-items: center; gap: 6px; }
.agenda-next p { margin-top: 10px; opacity: .85; font-size: .92rem; }
.chip { display: inline-flex; padding: 4px 12px; border-radius: 20px; font-size: .72rem; font-weight: 700; background: var(--green-100); color: var(--green-800); }
.chip--gold { background: rgba(212,160,23,.25); color: var(--gold-400); }
/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; display: block; background: var(--green-100); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item__overlay { position: absolute; inset: 0; background: rgba(7,60,37,.45); display: flex; align-items: center; justify-content: center; color: #fff; opacity: 0; transition: opacity var(--transition); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

/* Ekskul */
.ekskul-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ekskul { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 28px; transition: all var(--transition); }
.ekskul:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.ekskul__icon { width: 50px; height: 50px; display: inline-flex; align-items: center; justify-content: center; background: rgba(212,160,23,.2); color: var(--gold-400); border-radius: 12px; margin-bottom: 16px; }
.ekskul__name { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.ekskul__desc { font-size: .88rem; color: rgba(255,255,255,.7); line-height: 1.6; }

/* CTA */
.cta { background: linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 60%, #15915a 100%); color: #fff; padding: 72px 0; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; top: -100px; right: -100px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.04); }
.cta::after { content: ''; position: absolute; bottom: -60px; left: 10%; width: 200px; height: 200px; border-radius: 50%; background: rgba(212,160,23,.08); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; position: relative; }
.cta__title { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 12px; letter-spacing: -.02em; }
.cta__text { font-size: 1.02rem; opacity: .9; max-width: 580px; line-height: 1.7; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; flex-shrink: 0; }

/* Footer */
.footer { background: #0b1f15; color: rgba(255,255,255,.8); padding: 72px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__desc { margin-top: 18px; font-size: .9rem; line-height: 1.75; color: rgba(255,255,255,.65); }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); border-radius: 10px; transition: all var(--transition); }
.footer__social a:hover { background: var(--green-600); color: #fff; transform: translateY(-2px); }
.footer__title { display: flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 20px; }
.footer__title .icon { color: var(--gold-400); }
.footer__links li { margin-bottom: 10px; }
.footer__links a { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; color: rgba(255,255,255,.68); transition: all .2s; }
.footer__links a:hover { color: #fff; }
.footer__link-icon { width: 30px; height: 30px; flex: 0 0 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--gold-400); transition: all .2s; }
.footer__links a:hover .footer__link-icon { background: rgba(212,160,23,.18); color: var(--gold-400); }
.footer__contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: .88rem; color: rgba(255,255,255,.65); line-height: 1.6; }
.footer__contact .icon { color: var(--gold-400); flex-shrink: 0; margin-top: 2px; }
.footer__contact a { color: rgba(255,255,255,.65); }
.footer__contact a:hover { color: #fff; }
.footer__bottom { padding: 24px 0; }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .82rem; color: rgba(255,255,255,.45); }
.footer__credit .icon { color: var(--gold-400); vertical-align: middle; }
/* Page Banner */
.page-banner { background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%); color: #fff; padding: 56px 0 48px; position: relative; overflow: hidden; }
.page-banner::before { content: ''; position: absolute; top: -60%; right: -10%; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,.03); }
.page-banner__title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; margin-top: 12px; }
.page-banner__sub { margin-top: 10px; font-size: 1rem; opacity: .85; max-width: 640px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .82rem; opacity: .8; }
.breadcrumb a { color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 4px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb__sep { opacity: .5; }

/* Page Layout */
.page-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.page-sidebar { position: sticky; top: 100px; }
.page-sidebar__title { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 700; color: var(--text-900); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--green-100); }
.page-sidebar__title .icon { color: var(--green-600); }
.page-sidebar__list li { margin-bottom: 2px; }
.page-sidebar__list a { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: .88rem; font-weight: 500; color: var(--text-700); border-radius: 8px; transition: all .15s; }
.page-sidebar__list a:hover, .page-sidebar__list a.is-active { background: var(--green-50); color: var(--green-700); }
.page-sidebar__list a.is-active { font-weight: 700; background: var(--green-100); }
.page-sidebar__list a .icon { color: var(--green-600); opacity: .6; flex-shrink: 0; }
.page-sidebar__cta { margin-top: 28px; background: linear-gradient(135deg, var(--green-800), var(--green-700)); color: #fff; padding: 24px; border-radius: var(--radius); }
.page-sidebar__cta h4 { font-size: 1rem; margin-bottom: 6px; }
.page-sidebar__cta p { font-size: .84rem; opacity: .85; margin-bottom: 14px; line-height: 1.5; }
.page-content { min-width: 0; }
.page-content > .prose { font-size: .98rem; }
.page-content > .prose p { line-height: 1.8; }

/* Filter / chips */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.search-form { display: flex; gap: 8px; }
.search-form input { padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; width: 280px; font-size: .9rem; outline: none; transition: border-color var(--transition); }
.search-form input:focus { border-color: var(--green-600); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip:not(.chip--gold) { cursor: pointer; transition: all .15s; text-decoration: none; }
.chip.is-active, a.chip:hover { background: var(--green-700); color: #fff; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-link { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-weight: 600; font-size: .88rem; color: var(--text-700); background: #fff; border: 1px solid var(--line); transition: all .15s; }
.page-link:hover, .page-link.is-active { background: var(--green-700); color: #fff; border-color: var(--green-700); }

/* Article */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: .84rem; color: var(--text-500); margin-bottom: 24px; }
.article__meta span { display: inline-flex; align-items: center; gap: 5px; }
.article__cover { height: 320px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.45); margin-bottom: 32px; background: linear-gradient(135deg, var(--green-700), var(--green-600)); }
.article__cover--prestasi { background: linear-gradient(135deg, #a16207, #d4a017); }
.article__cover--pengumuman { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.article__share { display: flex; align-items: center; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--text-700); }
.share-btn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--green-50); color: var(--green-700); transition: all .15s; }
.share-btn:hover { background: var(--green-700); color: #fff; }
.side-list li { border-bottom: 1px solid var(--line-light); }
.side-list a { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; font-size: .9rem; font-weight: 600; color: var(--text-800, var(--text-900)); line-height: 1.45; }
.side-list a:hover { color: var(--green-700); }
.side-list__date { font-size: .75rem; font-weight: 600; color: var(--green-600); }
/* Forms */
.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field label { font-size: .86rem; font-weight: 600; color: var(--text-700); }
.form__field label span { color: var(--red); }
.form__field input, .form__field textarea, .form__field select { padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: .92rem; color: var(--text-900); background: #fff; transition: border-color var(--transition), box-shadow var(--transition); outline: none; width: 100%; }
.form__field input:focus, .form__field textarea:focus, .form__field select:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(13,107,63,.1); }
.form__field textarea { resize: vertical; min-height: 100px; }
.form__field .hint { font-size: .78rem; color: var(--text-500); margin-top: 2px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-card { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-light); }
.contact-card:last-child { border-bottom: none; }
.contact-card__icon { width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--green-100); color: var(--green-700); border-radius: 12px; }
.contact-card h4 { font-size: .9rem; font-weight: 700; color: var(--text-900); margin-bottom: 2px; }
.contact-card p { font-size: .88rem; color: var(--text-500); line-height: 1.6; margin: 0; }
.contact-card a { color: var(--text-500); }
.contact-card a:hover { color: var(--green-700); }
.contact-form-wrap { background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); border: 1px solid var(--line-light); }

/* Guru Grid */
.guru-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.guru-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-light); transition: all var(--transition); text-align: center; }
.guru-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.guru-card__photo { width: 100%; height: 220px; object-fit: cover; background: var(--green-50); }
.guru-card__body { padding: 20px; }
.guru-card__name { font-size: 1rem; font-weight: 700; color: var(--text-900); margin-bottom: 4px; }
.guru-card__role { font-size: .84rem; color: var(--green-600); font-weight: 600; }
.guru-card__mapel { font-size: .82rem; color: var(--text-500); margin-top: 2px; }

/* Video grid */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.video-item video { width: 100%; border-radius: var(--radius-sm); background: #000; }
.video-item__title { margin-top: 10px; font-size: .9rem; font-weight: 600; color: var(--text-700); }

/* Prestasi */
.prestasi-list { display: flex; flex-direction: column; gap: 16px; }
.prestasi-item { display: flex; gap: 16px; padding: 20px; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line-light); }
.prestasi-item__icon { width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--gold-100); color: #a16207; border-radius: 12px; }
.prestasi-item__title { font-size: 1rem; font-weight: 700; color: var(--text-900); margin-bottom: 4px; }
.prestasi-item__meta { display: flex; gap: 12px; font-size: .8rem; color: var(--text-500); margin-bottom: 4px; }
.prestasi-item p { font-size: .88rem; color: var(--text-500); margin: 0; }

/* Org structure */
.org-strip { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.org-strip__row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; align-items: stretch; width: 100%; }
.org-strip__cell { background: var(--green-50); border: 1px solid var(--green-100); padding: 16px 24px; border-radius: 10px; font-weight: 600; font-size: .9rem; color: var(--green-800); text-align: center; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.org-strip__cell--head { background: var(--green-700); color: #fff; border-color: var(--green-700); min-width: 220px; }
.org-strip__cell--main { flex-direction: row; flex-wrap: wrap; gap: 12px; background: #fff; }
.org-strip__cell--main span { background: var(--green-50); padding: 8px 14px; border-radius: 8px; font-size: .84rem; }

/* Doc list */
.doc-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.doc-item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius-sm); transition: all .15s; color: var(--text-900); text-decoration: none; }
.doc-item:hover { border-color: var(--green-200, #bfe3d0); background: var(--green-50); }
.doc-item__icon { width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--green-100); color: var(--green-700); border-radius: 10px; }
.doc-item h3 { font-size: .94rem; font-weight: 600; margin-bottom: 2px; }
.doc-item span { font-size: .78rem; color: var(--text-500); }
.doc-item > .icon:last-child { margin-left: auto; color: var(--text-300); }

/* Empty state */
.empty-state { text-align: center; padding: 64px 24px; }
.empty-state__icon { width: 80px; height: 80px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; background: var(--green-50); color: var(--green-600); border-radius: 50%; }
.empty-state h3, .empty-state h1 { font-size: 1.4rem; font-weight: 700; color: var(--text-900); margin-bottom: 8px; }
.empty-state p { color: var(--text-500); margin-bottom: 20px; }
.empty-state--success .empty-state__icon { background: #dcfce7; color: #16a34a; }
/* Floating buttons */
.wa-float { position: fixed; right: 20px; bottom: 24px; z-index: 90; width: 58px; height: 58px; display: inline-flex; align-items: center; justify-content: center; background: #25d366; color: #fff; border-radius: 50%; box-shadow: 0 6px 24px rgba(37,211,102,.4); transition: all var(--transition); }
.wa-float:hover { transform: scale(1.08); color: #fff; box-shadow: 0 8px 28px rgba(37,211,102,.5); }
.beasiswa-float { position: fixed; right: 90px; bottom: 24px; z-index: 90; text-decoration: none; }
.beasiswa-float__bubble { display: inline-flex; align-items: center; gap: 8px; height: 58px; padding: 0 22px 0 16px; background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: #3a2800; font-weight: 800; font-size: .88rem; border-radius: 30px; box-shadow: 0 6px 24px rgba(212,160,23,.4); transition: all var(--transition); border: 2px solid rgba(255,255,255,.3); }
.beasiswa-float:hover .beasiswa-float__bubble { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212,160,23,.5); }
.beasiswa-float .icon { color: #3a2800; }

/* Mobile CTA */
.mobile-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 95; background: #fff; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgba(0,0,0,.08); gap: 10px; border-top: 1px solid var(--line-light); }
.mobile-cta__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 8px; border-radius: 12px; font-size: .82rem; font-weight: 700; text-decoration: none; transition: all .15s; }
.mobile-cta__btn--brand { background: var(--green-700); color: #fff; }
.mobile-cta__btn--outline { background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-100); }
.mobile-cta__btn--beasiswa { background: var(--gold-100); color: #7a5200; border: 1px solid #f0dfa0; }
.mobile-cta__btn:active { transform: scale(.97); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.lightbox__close { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; font-size: 2rem; color: #fff; background: rgba(255,255,255,.1); border-radius: 50%; line-height: 1; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .feature-grid, .card-grid, .ekskul-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-side { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .page-layout { grid-template-columns: 1fr; }
  .page-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .page-sidebar__cta { margin-top: 0; }
}
@media (max-width: 900px) {
  .topbar__addr { display: none; }
  .nav-toggle { display: inline-flex; }
  .navbar__cta { display: none; }
  .navbar__inner { height: 70px; gap: 12px; }
  .brand__logo { width: 42px; height: 42px; }
  .brand__name { font-size: 1.02rem; }
  .brand__tagline { font-size: .68rem; }
  .nav { position: fixed; top: 70px; left: 0; right: 0; bottom: 0; background: #fff; padding: 16px 16px 120px; overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease); margin: 0; border-top: 1px solid var(--line-light); z-index: 99; }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__item { width: 100%; }
  .nav__link { width: 100%; padding: 13px 14px; font-size: .93rem; justify-content: space-between; border-radius: 12px; background: #fff; }
  .nav__link:hover, .nav__item.is-active > .nav__link { background: var(--green-50); }
  .nav__label { gap: 10px; }
  .nav__icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--green-50); color: var(--green-700); opacity: 1; }
  .nav__item.is-active > .nav__link .nav__icon, .nav__link:hover .nav__icon { background: var(--green-100); }
  .nav__caret { width: 28px; height: 28px; padding: 4px; border-radius: 8px; background: #f3f7f5; color: var(--text-500); opacity: 1; }
  .nav__item--drop.is-open > .nav__link .nav__caret { transform: rotate(180deg); background: var(--green-100); color: var(--green-700); }
  .nav__drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 4px 0 8px 12px; min-width: 0; display: none; background: transparent; }
  .nav__item--drop:hover > .nav__drop { display: none; opacity: 1; visibility: visible; transform: none; }
  .nav__item--drop.is-open > .nav__drop { display: block !important; }
  .nav__drop-link { padding: 11px 12px; font-size: .88rem; border-radius: 10px; gap: 10px; }
  .nav__drop-link .icon { width: 30px; height: 30px; padding: 6px; border-radius: 8px; background: #f3f7f5; color: var(--green-700); opacity: 1; flex: 0 0 30px; }
  .nav__drop-link:hover .icon { background: var(--green-100); }
  body.nav-open { overflow: hidden; }
  .hero { height: 520px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .sambutan__frame { max-width: 400px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-wrap { padding: 28px; }
  .cta__inner { flex-direction: column; text-align: center; }
  .cta__text { margin-left: auto; margin-right: auto; }
  .cta__actions { justify-content: center; }
  .beasiswa-float { display: none !important; }
  .mobile-cta { display: flex; }
  .wa-float { bottom: calc(88px + env(safe-area-inset-bottom)); width: 52px; height: 52px; right: 14px; }
  .footer { padding-bottom: 88px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__col--about { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .container { width: min(1200px, calc(100% - 32px)); }
  .section { padding: 64px 0; }
  .topbar { display: none; }
  .navbar__inner { height: 64px; }
  .nav { top: 64px; }
  .brand__logo { width: 38px; height: 38px; }
  .brand__name { font-size: .96rem; }
  .brand__tagline { font-size: .65rem; max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero { height: 460px; }
  .hero__title { font-size: 1.9rem; }
  .hero__sub { font-size: .96rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .stats { margin-top: -28px; }
  .stat { padding: 22px 12px; }
  .stat__num { font-size: 1.55rem; }
  .stat__label { font-size: .78rem; }
  .feature-grid, .card-grid, .guru-grid, .ekskul-grid, .gallery-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .footer { padding-top: 56px; overflow:hidden; }
  .footer .container { width:min(1200px, calc(100% - 28px)); }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; padding-bottom: 34px; }
  .footer__col, .footer__col--about { grid-column: auto; min-width:0; max-width:100%; }
  .footer__desc, .footer__contact li, .footer__links a span:last-child { overflow-wrap:anywhere; word-break:break-word; }
  .footer__title { font-size: .92rem; margin-bottom: 14px; }
  .footer__links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .footer__links li { margin-bottom: 0; min-width:0; }
  .footer__links a { display:flex; width:100%; padding: 11px 10px; border-radius: 12px; background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.04); font-size: .8rem; gap: 8px; align-items: flex-start; min-width:0; }
  .footer__links a:hover { padding-left: 10px; background: rgba(255,255,255,.09); }
  .footer__link-icon { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; margin-top: 0; }
  .footer__link-icon .icon { width: 15px; height: 15px; }
  .footer__links a span:last-child { line-height: 1.35; flex:1; min-width:0; }
  .footer__contact li { font-size: .84rem; align-items:flex-start; }
  .footer__contact li span, .footer__contact a { overflow-wrap:anywhere; word-break:break-word; }
  .footer__social { flex-wrap:wrap; }
  .footer__bottom-inner { flex-direction: column; text-align: center; gap: 8px; }
  .form__row { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-form { width: 100%; }
  .search-form input { width: 100%; flex: 1; }
  .article-side { grid-template-columns: 1fr; }
  .page-sidebar { grid-template-columns: 1fr; }
  .agenda-next { flex-direction: column; text-align: center; padding: 28px; }
  .agenda-next__meta { justify-content: center; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .mobile-cta__btn { font-size: .76rem; gap: 5px; padding: 11px 6px; }
  .mobile-cta__btn .icon { width: 15px; height: 15px; }
}
@media print {
  .topbar, .navbar, .mobile-cta, .wa-float, .beasiswa-float, .hero__dots, .cta .btn { display: none !important; }
  .hero { height: auto; padding: 40px 0; }
  .hero__slide { position: relative; opacity: 1; }
  .section { padding: 40px 0; }
  a { color: #000; }
}
