:root {
      --navy: #0B1F4A;
      --navy-2: #12305F;
      --ink: #1C2333;
      --muted: #5B6475;
      --line: #D9D3C4;
      --paper: #F7F3E8;
      --white: #FFFdf8;
      --gold: #C9A227;
      --gold-2: #E8C547;
      --crimson: #9B1B2E;
      --ok: #1F6B4A;
      --shadow: 0 18px 40px rgba(11, 31, 74, .12);
      --radius: 16px;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: "Source Sans 3", system-ui, sans-serif;
      color: var(--ink);
      background: var(--paper);
      line-height: 1.65;
    }
    img { max-width: 100%; display: block; }
    a { color: inherit; text-decoration: none; }
    .wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

    /* Topbar */
    .topbar {
      background: var(--navy);
      color: #e8e4d8;
      font-size: .82rem;
      padding: .45rem 0;
    }
    .topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
    .topbar span { opacity: .9; }

    /* Header */
    header.site {
      position: sticky; top: 0; z-index: 50;
      background: rgba(255,253,248,.92);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--line);
    }
    .nav {
      display: flex; align-items: center; justify-content: space-between;
      min-height: 76px; gap: 1rem;
    }
    .brand { display: flex; align-items: center; gap: .75rem; }
    .brand img {
      width: 52px; height: 52px; object-fit: cover; border-radius: 50%;
      border: 2px solid var(--gold);
      background: #fff;
    }
    .brand strong { display: block; font-family: "Source Serif 4", serif; font-size: 1.05rem; color: var(--navy); line-height: 1.2; }
    .brand small { color: var(--muted); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
    nav.menu { display: flex; gap: .1rem; flex-wrap: wrap; align-items: center; }
    nav.menu > a, .has-sub > span {
      padding: .45rem .65rem; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--navy-2);
      display: inline-flex; align-items: center; gap: .2rem; cursor: pointer;
    }
    nav.menu > a:hover, nav.menu > a.active, .has-sub:hover > span, .has-sub.open > span {
      background: #efe8d4; color: var(--navy);
    }
    .cta {
      background: var(--navy); color: #fff !important; padding: .5rem 1rem !important; border-radius: 999px;
    }
    .has-sub { position: relative; }
    .has-sub .sub {
      display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
      background: #fffdf8; border: 1px solid var(--line); border-radius: 12px;
      box-shadow: var(--shadow); padding: .4rem; z-index: 60;
    }
    .has-sub:hover .sub, .has-sub.open .sub { display: block; }
    .has-sub .sub a {
      display: block; padding: .5rem .7rem; border-radius: 8px; font-size: .86rem; font-weight: 600; color: var(--navy-2);
    }
    .has-sub .sub a:hover { background: #efe8d4; }
    .burger { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--navy); }

    /* Hero */
    .hero {
      position: relative; min-height: 78vh;
      display: grid; place-items: end start;
      color: #fff; overflow: hidden;
    }
    .hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .hero::after {
      content: ""; position: absolute; inset: 0;
      background: linear-gradient(180deg, rgba(11,31,74,.25) 0%, rgba(11,31,74,.82) 78%);
    }
    .hero-copy { position: relative; z-index: 1; padding: 4.5rem 0 3.2rem; max-width: 760px; }
    .kicker {
      display: inline-block; letter-spacing: .16em; text-transform: uppercase;
      font-size: .75rem; font-weight: 700; color: var(--gold-2); margin-bottom: .8rem;
    }
    .hero h1 {
      font-family: "Source Serif 4", serif; font-size: clamp(2.1rem, 4.6vw, 3.6rem);
      line-height: 1.12; font-weight: 700; margin-bottom: .8rem;
    }
    .hero p.lead { font-size: 1.08rem; max-width: 58ch; color: #f3eee2; margin-bottom: 1.4rem; }
    .hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
    .btn {
      display: inline-flex; align-items: center; gap: .4rem;
      padding: .75rem 1.15rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
      border: 1px solid transparent;
    }
    .btn-gold { background: var(--gold); color: var(--navy); }
    .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }

    /* Stats */
    .stats {
      background: var(--navy); color: #fff; padding: 1.4rem 0;
    }
    .stats-grid {
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
    }
    .stat { text-align: center; padding: .4rem; }
    .stat b { display: block; font-family: "Source Serif 4", serif; font-size: 1.55rem; color: var(--gold-2); }
    .stat span { font-size: .82rem; opacity: .85; }

    section { padding: 4.2rem 0; }
    .sec-head { margin-bottom: 1.8rem; }
    .sec-head h2 {
      font-family: "Source Serif 4", serif; font-size: clamp(1.6rem, 3vw, 2.15rem);
      color: var(--navy); line-height: 1.2;
    }
    .sec-head p { color: var(--muted); max-width: 62ch; margin-top: .4rem; }
    .gold-rule { width: 56px; height: 3px; background: var(--gold); margin: .7rem 0 0; border: 0; }

    /* Cards / grids */
    .two { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.2rem; align-items: start; }
    .card {
      background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
      box-shadow: var(--shadow);
    }
    .sambutan { padding: 1.6rem; }
    .sambutan img {
      width: 168px; height: 210px; object-fit: cover; border-radius: 12px;
      float: left; margin: 0 1.1rem 1rem 0; border: 3px solid #efe8d4;
    }
    .sambutan h3 { font-family: "Source Serif 4", serif; color: var(--navy); margin-bottom: .2rem; }
    .sambutan .role { color: var(--gold); font-weight: 700; font-size: .88rem; margin-bottom: .8rem; }
    blockquote.quote {
      font-family: "Source Serif 4", serif; font-style: italic; color: var(--navy-2);
      border-left: 3px solid var(--gold); padding-left: 1rem; margin: 1.2rem 0 0;
    }

    .identitas { padding: 0; overflow: hidden; }
    .identitas table { width: 100%; border-collapse: collapse; font-size: .93rem; }
    .identitas th, .identitas td { padding: .72rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
    .identitas th { width: 42%; color: var(--muted); font-weight: 600; background: #f3eee0; }
    .badge {
      display: inline-block; background: var(--ok); color: #fff; font-size: .75rem;
      padding: .15rem .5rem; border-radius: 999px; font-weight: 700;
    }

    /* Visi misi */
    .vm { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
    .vm article { padding: 1.5rem; }
    .vm h3 { font-family: "Source Serif 4", serif; color: var(--navy); margin-bottom: .6rem; }
    .vm ol { padding-left: 1.15rem; }
    .vm li { margin: .35rem 0; }

    /* News */
    .news-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.1rem; }
    .news { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
    .news img { width: 100%; height: 210px; object-fit: cover; }
    .news .body { padding: 1.1rem 1.15rem 1.25rem; }
    .meta { font-size: .78rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-bottom: .35rem; }
    .news h3 { font-family: "Source Serif 4", serif; font-size: 1.15rem; color: var(--navy); line-height: 1.3; }
    .news p { color: var(--muted); font-size: .92rem; margin-top: .4rem; }
    .news.feat img { height: 280px; }
    .news.feat h3 { font-size: 1.4rem; }

    /* Pengumuman */
    .announce { display: grid; gap: .7rem; }
    .announce a {
      display: grid; grid-template-columns: 92px 1fr auto; gap: 1rem; align-items: center;
      background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem;
    }
    .datebox {
      background: var(--navy); color: #fff; text-align: center; border-radius: 10px; padding: .45rem .2rem;
    }
    .datebox b { display: block; font-size: 1.2rem; line-height: 1; }
    .datebox span { font-size: .7rem; opacity: .8; }
    .announce h3 { font-size: 1rem; color: var(--navy); }
    .tag { font-size: .72rem; font-weight: 700; color: var(--crimson); text-transform: uppercase; }

    /* Prestasi + ekskul */
    .split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
    .list-card { padding: 1.4rem 1.5rem; }
    .list-card h3 { font-family: "Source Serif 4", serif; color: var(--navy); margin-bottom: .8rem; }
    .ach li, .eks li {
      list-style: none; padding: .65rem 0; border-bottom: 1px dashed var(--line);
      display: flex; gap: .7rem; align-items: flex-start;
    }
    .dot {
      flex: 0 0 10px; height: 10px; border-radius: 50%; background: var(--gold); margin-top: .45rem;
    }

    /* Gallery */
    .gallery {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem;
    }
    .gallery figure { position: relative; overflow: hidden; border-radius: 14px; min-height: 210px; }
    .gallery img { width: 100%; height: 230px; object-fit: cover; transition: transform .4s ease; }
    .gallery figure:hover img { transform: scale(1.06); }
    .gallery figcaption {
      position: absolute; left: 0; right: 0; bottom: 0; padding: .7rem .85rem;
      background: linear-gradient(transparent, rgba(11,31,74,.85)); color: #fff; font-size: .86rem; font-weight: 600;
    }
    .gallery figure:first-child { grid-column: span 2; }
    .gallery figure:first-child img { height: 320px; }

    /* PPDB */
    .ppdb {
      background: linear-gradient(135deg, var(--navy) 0%, #1a3f78 100%);
      color: #fff; border-radius: 20px; padding: 2.4rem; display: grid; grid-template-columns: 1.4fr .8fr; gap: 1.5rem; align-items: center;
    }
    .ppdb h2 { font-family: "Source Serif 4", serif; font-size: 2rem; margin: .3rem 0 .6rem; }
    .ppdb p { color: #e6e1d4; }
    .ppdb-box { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: 1.2rem; }
    .ppdb-box li { margin: .35rem 0 .35rem 1rem; }

    /* Contact */
    .contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.2rem; }
    .contact article { padding: 1.5rem; }
    .contact dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: .85rem; }
    .contact dd { font-weight: 600; color: var(--navy); }
    iframe.map { width: 100%; height: 100%; min-height: 340px; border: 0; border-radius: var(--radius); }

    footer {
      background: #08162F; color: #c9c3b4; padding: 2.4rem 0 1.2rem; margin-top: 1rem;
    }
    .foot { display: grid; grid-template-columns: 1.3fr .8fr .9fr; gap: 1.6rem; }
    footer h3 { color: #fff; font-family: "Source Serif 4", serif; margin-bottom: .6rem; }
    footer a { color: #e8e2d4; }
    footer a:hover { color: var(--gold-2); }
    .copy { border-top: 1px solid rgba(255,255,255,.08); margin-top: 1.6rem; padding-top: 1rem; font-size: .82rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

    @media (max-width: 900px) {
      .stats-grid, .two, .vm, .news-grid, .split, .contact, .foot, .ppdb { grid-template-columns: 1fr; }
      .gallery { grid-template-columns: 1fr 1fr; }
      .gallery figure:first-child { grid-column: span 2; }
      nav.menu { display: none; }
      nav.menu.open { display: flex; position: absolute; top: 76px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 1rem; border-bottom: 1px solid var(--line); align-items: stretch; }
      .has-sub .sub { position: static; box-shadow: none; border: 0; padding: .2rem 0 .2rem .8rem; }
      .has-sub .sub { display: block; }
      .burger { display: block; }
      .announce a { grid-template-columns: 72px 1fr; }
      .announce a .tag { display: none; }
      .sambutan img { float: none; width: 140px; margin-bottom: .8rem; }
    }
    @media (max-width: 560px) {
      .gallery { grid-template-columns: 1fr; }
      .gallery figure:first-child { grid-column: auto; }
      .hero { min-height: 68vh; }
    }

/* Page hero (blog index & inner pages) */
.page-hero {
  position: relative; color: #fff; min-height: 280px;
  display: grid; align-items: end; overflow: hidden;
}
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,31,74,.2), rgba(11,31,74,.82));
}
.page-hero .wrap { position: relative; z-index: 1; padding: 4rem 0 2.2rem; }
.page-hero h1 { font-family: "Source Serif 4", serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.15; }
.crumb { font-size: .88rem; color: #e8e2d4; margin-bottom: .6rem; }
.crumb a { color: var(--gold-2); }

.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.6rem; align-items: start; }
.blog-index { display: grid; gap: 1rem; }
.blog-item {
  display: grid; grid-template-columns: 240px 1fr; gap: 1.1rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.blog-item img { width: 100%; height: 170px; object-fit: cover; }
.blog-item .body { padding: 1rem 1.1rem 1.15rem 0; }
.blog-item h2 { font-family: "Source Serif 4", serif; font-size: 1.25rem; color: var(--navy); line-height: 1.3; }
.blog-item p { color: var(--muted); margin-top: .4rem; font-size: .94rem; }
.readmore { display: inline-block; margin-top: .55rem; font-weight: 700; color: var(--navy); font-size: .9rem; }

.article { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.article img.cover { width: 100%; height: 360px; object-fit: cover; }
.article-body { padding: 1.7rem 1.8rem 2rem; }
.article-body .crumb { color: var(--muted); }
.article-body .crumb a { color: var(--navy); }
.article-body h1 { font-family: "Source Serif 4", serif; font-size: clamp(1.6rem, 3vw, 2.15rem); color: var(--navy); line-height: 1.2; margin-bottom: .5rem; }
.article-body .lead { font-size: 1.08rem; color: var(--navy-2); margin: .8rem 0 1.1rem; }
.article-body h2 { font-family: "Source Serif 4", serif; color: var(--navy); font-size: 1.25rem; margin: 1.4rem 0 .5rem; }
.article-body p { margin: .7rem 0; }
.article-body ul, .article-body ol { margin: .4rem 0 1rem 1.2rem; }
.article-body li { margin: .28rem 0; }
.article-body a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
aside.side { display: grid; gap: 1rem; }
.side .card { padding: 1.1rem 1.15rem; }
.side h3 { font-family: "Source Serif 4", serif; color: var(--navy); font-size: 1.05rem; margin-bottom: .6rem; }
.side li { list-style: none; padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.side li a { color: var(--navy-2); font-weight: 600; }
.kicker.gold { color: var(--gold) !important; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; flex-wrap: wrap; }
.pager a { font-weight: 700; color: var(--navy); }

.prose { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.prose h2 { font-family: "Source Serif 4", serif; color: var(--navy); font-size: 1.3rem; margin: 1.3rem 0 .5rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { margin: .55rem 0; }
.prose ul, .prose ol { margin: .3rem 0 1rem 1.2rem; }
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.staff { padding: 1.1rem 1.15rem; text-align: center; }
.staff img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; margin: 0 auto .7rem; border: 3px solid #efe8d4; }
.staff h3 { font-family: "Source Serif 4", serif; color: var(--navy); font-size: 1.05rem; }
.staff p { color: var(--muted); font-size: .88rem; }
.org { display: grid; gap: .7rem; }
.org-row { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.org-card { min-width: 180px; text-align: center; padding: 1rem; }
.fac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.fac { overflow: hidden; }
.fac img { width: 100%; height: 170px; object-fit: cover; }
.fac .body { padding: 1rem 1.1rem 1.2rem; }
.fac h3 { font-family: "Source Serif 4", serif; color: var(--navy); }
.notice { display: grid; gap: .8rem; }
.notice a.card, .ach-item { display: block; padding: 1.1rem 1.2rem; }
.ach-item h3 { font-family: "Source Serif 4", serif; color: var(--navy); margin-bottom: .25rem; }
.gallery-page { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.gallery-page figure { margin: 0; border-radius: 14px; overflow: hidden; position: relative; }
.gallery-page img { width: 100%; height: 220px; object-fit: cover; }
.gallery-page figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .7rem; background: linear-gradient(transparent, rgba(11,31,74,.85)); color: #fff; font-size: .86rem; }
@media (max-width: 900px) {
  .staff-grid, .fac-grid, .gallery-page { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .staff-grid, .fac-grid, .gallery-page { grid-template-columns: 1fr; }
}

.err404 { text-align: center; padding: 1.2rem 0 2rem; }
.err404 .code {
  font-family: "Source Serif 4", serif; font-size: clamp(5rem, 14vw, 8rem);
  line-height: .9; color: var(--navy); letter-spacing: -.04em;
}
.err404 .code span { color: var(--gold); }
.err404 h1 { font-family: "Source Serif 4", serif; color: var(--navy); font-size: clamp(1.5rem, 3vw, 2rem); margin: .6rem 0 .5rem; }
.err404 p { color: var(--muted); max-width: 52ch; margin: 0 auto 1.3rem; }
.err-links { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.err-links a.card { padding: .85rem 1rem; min-width: 160px; font-weight: 700; color: var(--navy); }

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-item { grid-template-columns: 1fr; }
  .blog-item img { height: 200px; }
  .blog-item .body { padding: 1rem 1.1rem 1.2rem; }
  .article img.cover { height: 220px; }
  .article-body { padding: 1.2rem; }
}
