:root{
  --ink:#152621;
  --forest:#1e4b3c;
  --forest-deep:#123028;
  --forest-soft:#2f6d58;
  --gold:#bf9a44;
  --gold-soft:#e9d9a8;
  --cream:#faf6ec;
  --paper:#fffdf7;
  --line:rgba(21,38,33,0.14);
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0;background:var(--cream);color:var(--ink);font-family:'Inter',-apple-system,sans-serif;font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;}
h1,h2,h3,.serif{font-family:'Fraunces',Georgia,serif;}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
.wrap{max-width:1140px;margin:0 auto;padding:0 24px;}
ul{margin:0;padding:0;list-style:none;}

/* topbar */
.topbar{background:var(--forest-deep);color:#e9e3d2;font-size:13px;}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;padding:8px 24px;gap:16px;flex-wrap:wrap;}
.topbar .contact-list{display:flex;gap:22px;flex-wrap:wrap;}
.topbar .contact-list li{display:flex;align-items:center;gap:7px;opacity:.92;}
.topbar .contact-list svg{width:14px;height:14px;flex:none;opacity:.85;}
.topbar .socials{display:flex;gap:14px;}
.topbar .socials a{opacity:.85;}

/* header/nav */
header.site{background:var(--paper);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40;}
.header-row{display:flex;align-items:center;justify-content:space-between;padding:14px 0;gap:20px;}
.brand{display:flex;align-items:center;gap:14px;}
.brand-mark{width:52px;height:52px;flex:none;border-radius:50%;background:var(--paper);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;overflow:hidden;}
.brand-mark img{width:100%;height:100%;object-fit:contain;padding:4px;}
.brand-name{line-height:1.25;}
.brand-name .full{font-family:'Fraunces',serif;font-weight:600;font-size:17px;color:var(--forest-deep);display:block;}
.brand-name .tag{font-size:12px;color:var(--forest-soft);display:block;margin-top:2px;}
nav.primary > ul{display:flex;align-items:center;gap:2px;flex-wrap:wrap;}
nav.primary > ul > li > a{display:block;padding:10px 13px;font-size:14px;font-weight:500;color:var(--ink);border-radius:2px;}
nav.primary > ul > li > a:hover,nav.primary > ul > li > a.active{color:var(--forest);}
.cta-small{padding:10px 18px;background:var(--forest);color:#fff;font-size:13.5px;font-weight:600;border-radius:2px;white-space:nowrap;}
.cta-small:hover{background:var(--forest-deep);}
.nav-toggle{display:none;background:none;border:none;width:38px;height:38px;align-items:center;justify-content:center;cursor:pointer;}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{content:"";display:block;width:22px;height:2px;background:var(--ink);position:relative;}
.nav-toggle span::before{position:absolute;top:-7px;}
.nav-toggle span::after{position:absolute;top:7px;}

/* page banner (non-home pages) */
.page-banner{background:var(--forest-deep);color:#f3efe1;padding:52px 0;}
.page-banner .kicker{font-size:13px;color:var(--gold-soft);font-weight:600;}
.page-banner h1{font-size:clamp(26px,3.6vw,36px);margin:8px 0 0;}
.breadcrumb{font-size:13px;color:#cfc9b4;margin-top:10px;}
.breadcrumb a:hover{color:#fff;}

/* hero (home) */
.hero{position:relative;background:var(--forest-deep);color:#f3efe1;overflow:hidden;}
.hero-pattern{position:absolute;inset:0;opacity:.16;pointer-events:none;}
.hero .wrap{position:relative;display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center;padding-top:70px;padding-bottom:78px;}
.hero-eyebrow{font-size:13px;color:var(--gold-soft);margin-bottom:16px;display:flex;align-items:center;gap:9px;}
.hero-eyebrow .dot{width:6px;height:6px;border-radius:50%;background:var(--gold);}
.hero h1{font-size:clamp(30px,4.4vw,48px);font-weight:600;line-height:1.14;margin:0 0 20px;max-width:12ch;}
.hero p.lede{font-size:16.5px;color:#d8d2bf;max-width:46ch;margin:0 0 28px;}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;}
.btn{padding:12px 22px;font-size:14px;font-weight:600;border-radius:2px;display:inline-block;border:1px solid transparent;cursor:pointer;}
.btn-gold{background:var(--gold);color:#211a08;}
.btn-gold:hover{background:#d4ac53;}
.btn-outline{border-color:rgba(243,239,225,.4);color:#f3efe1;background:transparent;}
.btn-outline:hover{border-color:#f3efe1;}
.btn-forest{background:var(--forest);color:#fff;}
.btn-forest:hover{background:var(--forest-deep);}
.hero-art{position:relative;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;}
.hero-art svg{width:100%;height:100%;}

.stat-strip{background:var(--gold-soft);color:var(--forest-deep);}
.stat-strip .wrap{display:grid;grid-template-columns:repeat(4,1fr);gap:0;padding:0 24px;}
.stat-strip .stat{padding:20px 12px;text-align:center;border-left:1px solid rgba(21,38,33,.14);}
.stat-strip .stat:first-child{border-left:none;}
.stat-strip .num{font-family:'Fraunces',serif;font-size:28px;font-weight:600;display:block;}
.stat-strip .lbl{font-size:12px;margin-top:3px;opacity:.8;}

section{padding:64px 0;}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:36px;}
.section-head .kicker{font-size:13px;color:var(--forest-soft);font-weight:600;margin-bottom:9px;display:block;}
.section-head h2{font-size:clamp(22px,3vw,30px);font-weight:600;margin:0;color:var(--forest-deep);max-width:18ch;}
.section-head .see-all{font-size:13.5px;font-weight:600;color:var(--forest);border-bottom:1px solid var(--forest);padding-bottom:2px;white-space:nowrap;}

/* cards grid */
.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;}
.card{background:var(--paper);border:1px solid var(--line);}
.card-thumb{aspect-ratio:16/10;background:linear-gradient(135deg,var(--forest) 0%, var(--forest-soft) 100%);position:relative;overflow:hidden;}
.card-thumb img{width:100%;height:100%;object-fit:cover;}
.card-thumb svg{position:absolute;inset:0;width:100%;height:100%;opacity:.5;}
.card-body{padding:18px 20px 20px;}
.card-meta{font-size:11.5px;color:var(--forest-soft);font-weight:600;margin-bottom:9px;text-transform:uppercase;letter-spacing:.02em;}
.card-body h3{font-size:16.5px;font-weight:600;line-height:1.35;margin:0 0 9px;color:var(--ink);}
.card-body p{font-size:13.5px;color:#5b6a63;margin:0;}

/* prog / ekskul grid */
.prog-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);}
.prog-card{background:var(--paper);padding:28px 22px;}
.prog-icon{width:38px;height:38px;margin-bottom:16px;color:var(--forest);}
.prog-card h3{font-size:15px;font-weight:600;margin:0 0 8px;color:var(--forest-deep);}
.prog-card p{font-size:13px;color:#5b6a63;margin:0 0 6px;}
.prog-card .meta{font-size:12px;color:var(--forest-soft);}

/* prestasi list */
.prestasi-item{display:flex;gap:18px;padding:20px 0;border-bottom:1px solid var(--line);align-items:flex-start;}
.prestasi-badge{flex:none;width:52px;height:52px;border-radius:50%;background:var(--gold-soft);color:var(--forest-deep);display:flex;align-items:center;justify-content:center;font-family:'Fraunces',serif;font-weight:600;font-size:13px;text-align:center;}
.prestasi-item h3{font-size:16px;margin:0 0 6px;color:var(--forest-deep);}
.prestasi-item .meta{font-size:13px;color:#5b6a63;}
.tag{display:inline-block;padding:3px 10px;border-radius:20px;background:var(--forest);color:#fff;font-size:11px;font-weight:600;margin-right:6px;}

/* agenda list */
.agenda-item{display:flex;gap:18px;padding:18px 0;border-bottom:1px solid var(--line);}
.agenda-date{flex:none;width:64px;text-align:center;background:var(--forest);color:#fff;padding:10px 0;border-radius:2px;}
.agenda-date .d{font-family:'Fraunces',serif;font-size:22px;font-weight:600;display:block;line-height:1;}
.agenda-date .m{font-size:11px;text-transform:uppercase;letter-spacing:.03em;}
.agenda-item h3{font-size:16px;margin:0 0 6px;color:var(--forest-deep);}
.agenda-item .meta{font-size:13px;color:#5b6a63;}

/* headmaster */
.head-msg{background:var(--paper);}
.head-msg .wrap{display:grid;grid-template-columns:.5fr 1fr;gap:48px;align-items:center;}
.head-photo{aspect-ratio:4/5;background:var(--gold-soft);display:flex;align-items:center;justify-content:center;position:relative;border:1px solid var(--line);}
.head-photo svg{width:56%;color:var(--forest);}
.head-photo img{width:100%;height:100%;object-fit:cover;}
.head-photo figcaption{position:absolute;bottom:0;left:0;right:0;background:var(--forest-deep);color:#f3efe1;padding:12px 16px;font-size:13px;}
.head-photo figcaption b{display:block;font-family:'Fraunces',serif;font-size:15px;font-weight:600;}
.head-msg blockquote{margin:0 0 18px;font-family:'Fraunces',serif;font-size:19px;font-weight:500;line-height:1.5;color:var(--forest-deep);}
.head-msg p.body-text{font-size:15px;color:#4a584f;margin:0;max-width:60ch;white-space:pre-line;}

/* gallery */
.gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:150px;gap:6px;}
.gtile{position:relative;overflow:hidden;background:var(--forest-soft);}
.gtile img{width:100%;height:100%;object-fit:cover;}
.gtile svg{position:absolute;inset:0;width:100%;height:100%;opacity:.45;}
.gtile .cap{position:absolute;left:0;right:0;bottom:0;padding:10px 12px;font-size:12px;color:#fff;background:linear-gradient(to top, rgba(18,48,40,.85), transparent);}

/* ppdb cta */
.ppdb-cta{background:var(--forest-deep);color:#f3efe1;}
.ppdb-cta .wrap{display:flex;justify-content:space-between;align-items:center;gap:32px;flex-wrap:wrap;padding:50px 24px;}
.ppdb-cta h2{font-size:clamp(20px,3vw,26px);margin:0 0 8px;font-weight:600;}
.ppdb-cta p{margin:0;color:#cfc9b4;font-size:14px;max-width:48ch;}

/* generic content / form panel */
.panel{background:var(--paper);border:1px solid var(--line);padding:32px;}
.panel + .panel{margin-top:22px;}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.form-grid .full{grid-column:1/-1;}
.field label{display:block;font-size:13px;font-weight:600;color:var(--forest-deep);margin-bottom:7px;}
.field .hint{font-size:12px;color:#7a877f;margin-top:5px;}
input[type=text],input[type=email],input[type=tel],input[type=date],input[type=password],input[type=number],select,textarea{
  width:100%;padding:11px 13px;border:1px solid var(--line);border-radius:2px;font-family:inherit;font-size:14px;background:#fff;color:var(--ink);
}
input:focus,select:focus,textarea:focus{outline:2px solid var(--forest-soft);outline-offset:1px;}
textarea{resize:vertical;min-height:110px;}
input[type=file]{width:100%;padding:9px;border:1px dashed var(--line);border-radius:2px;background:#fff;font-size:13px;}
.alert{padding:14px 16px;border-radius:2px;font-size:14px;margin-bottom:20px;}
.alert-success{background:#dcf0e6;color:#1e4b3c;border:1px solid #b7dfc8;}
.alert-error{background:#f7d9d9;color:#8a1f1f;border:1px solid #eab6b6;}
.badge{display:inline-block;padding:4px 11px;border-radius:20px;font-size:11.5px;font-weight:600;}

table.data{width:100%;border-collapse:collapse;font-size:13.5px;}
table.data th,table.data td{padding:11px 12px;border-bottom:1px solid var(--line);text-align:left;}
table.data th{background:var(--cream);font-size:12px;text-transform:uppercase;letter-spacing:.02em;color:var(--forest-soft);}

.pagination{display:flex;gap:8px;margin-top:30px;flex-wrap:wrap;}
.pagination a,.pagination span{padding:8px 13px;border:1px solid var(--line);font-size:13px;border-radius:2px;}
.pagination a:hover{background:var(--forest);color:#fff;border-color:var(--forest);}
.pagination .current{background:var(--forest);color:#fff;border-color:var(--forest);}

/* footer */
footer{background:var(--forest-deep);color:#cfc9b4;font-size:13.5px;}
.foot-top .wrap{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:36px;padding:56px 24px 36px;border-bottom:1px solid rgba(243,239,225,.12);}
.foot-brand p{margin:16px 0 0;line-height:1.7;max-width:36ch;}
footer h4{color:#f3efe1;font-size:13px;font-weight:600;margin:0 0 16px;}
footer .fcol ul li{margin-bottom:10px;}
footer .fcol ul li a:hover{color:#f3efe1;}
footer .fcol .meta-line{display:flex;gap:10px;margin-bottom:14px;}
footer .fcol .meta-line svg{width:15px;height:15px;flex:none;margin-top:2px;opacity:.8;}
.foot-bottom .wrap{display:flex;justify-content:space-between;align-items:center;padding:18px 24px;flex-wrap:wrap;gap:10px;font-size:12px;}
.empty-note{padding:30px;text-align:center;color:#7a877f;font-size:14px;border:1px dashed var(--line);}

@media (max-width:920px){
  nav.primary{display:none;}
  .nav-toggle{display:flex;}
  .cta-small{display:none;}
  .hero .wrap{grid-template-columns:1fr;padding-top:40px;padding-bottom:48px;}
  .hero-art{max-width:260px;margin:0 auto;}
  .stat-strip .wrap{grid-template-columns:repeat(2,1fr);}
  .card-grid{grid-template-columns:1fr;}
  .prog-grid{grid-template-columns:repeat(2,1fr);}
  .head-msg .wrap{grid-template-columns:1fr;}
  .head-photo{max-width:250px;}
  .gallery-grid{grid-template-columns:repeat(2,1fr);grid-auto-rows:130px;}
  .foot-top .wrap{grid-template-columns:1fr 1fr;}
  .form-grid{grid-template-columns:1fr;}
  .section-head{flex-direction:column;align-items:flex-start;gap:10px;}
}
@media (max-width:560px){
  .prog-grid{grid-template-columns:1fr;}
  .foot-top .wrap{grid-template-columns:1fr;}
  section{padding:46px 0;}
}
