/* ==========================================================================
   Sekolah Islam Terpadu Qudwah — Sungai Rengit
   Design system: warna diambil dari lambang sekolah (hijau zamrud + oranye)
   ========================================================================== */

:root {
  --green-950: #04291a;
  --green-900: #063a24;
  --green-800: #075232;
  --green-700: #08703f;
  --green-600: #00994d;
  --green-500: #12ac5e;
  --green-400: #3fc47c;
  --green-200: #bfe9d2;
  --green-100: #dff4e8;
  --green-50: #f0faf4;

  --orange-700: #c85c08;
  --orange-600: #e06f0b;
  --orange-500: #f2801c;
  --orange-400: #f79a45;
  --orange-200: #fbd7b4;
  --orange-100: #fdefe1;

  --ink: #102e25;
  --body: #4b6058;
  --muted: #7b8f87;
  --line: #e6e3d8;
  --cream: #fbfaf5;
  --white: #ffffff;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-sm: 0 2px 8px rgba(6, 58, 36, 0.05);
  --shadow: 0 12px 30px -16px rgba(6, 58, 36, 0.28), 0 2px 6px rgba(6, 58, 36, 0.05);
  --shadow-lg: 0 30px 60px -30px rgba(6, 58, 36, 0.4), 0 6px 18px -10px rgba(6, 58, 36, 0.15);

  --container: 1180px;
  --header-h: 84px;

  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-arabic: "Reem Kufi", "Amiri", "Traditional Arabic", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 800;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: 0.45em; }

::selection { background: var(--green-200); color: var(--green-950); }

:focus-visible {
  outline: 3px solid var(--orange-400);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 88px 0; position: relative; }
.section--tight { padding: 62px 0; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--soft { background: linear-gradient(180deg, var(--green-50), #ffffff 70%); }
.section--dark {
  background:
    radial-gradient(900px 400px at 12% -10%, rgba(242, 128, 28, 0.22), transparent 60%),
    radial-gradient(700px 380px at 88% 110%, rgba(63, 196, 124, 0.28), transparent 62%),
    linear-gradient(150deg, var(--green-900), var(--green-950));
  color: #cfe6da;
}
.section--dark h2, .section--dark h3, .section--dark h1 { color: #fff; }
.section--dark p { color: #b9d5c7; }

.grid { display: grid; gap: 24px; }
.grid > *, .split > *, .article-layout > *, .contact-grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--gap-lg { gap: 30px; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.center { text-align: center; }
.stack-sm > * + * { margin-top: 12px; }

/* ---------- Eyebrow / section head ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  border: 1px solid var(--green-200);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--orange-500);
  transform: rotate(45deg);
  border-radius: 1px;
}
.section--dark .eyebrow {
  color: #d7f3e4;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}
.eyebrow--orange { color: var(--orange-700); background: var(--orange-100); border-color: var(--orange-200); }

.section-head { max-width: 660px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; }
.section-head p { font-size: 1.03rem; color: var(--body); }
.section--dark .section-head p { color: #b9d5c7; }
.section-head h2 { margin-bottom: 14px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green-700);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
  box-shadow: 0 10px 22px -14px rgba(6, 58, 36, 0.7);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -16px rgba(6, 58, 36, 0.65); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; }

.btn--primary { background: linear-gradient(135deg, var(--green-600), var(--green-800)); }
.btn--accent { background: linear-gradient(135deg, var(--orange-400), var(--orange-600)); box-shadow: 0 12px 24px -14px rgba(200, 92, 8, 0.8); }
.btn--outline {
  background: transparent;
  color: var(--green-800);
  border-color: rgba(7, 82, 50, 0.22);
  box-shadow: none;
}
.btn--outline:hover { background: var(--green-50); border-color: var(--green-600); }
.btn--light { background: #fff; color: var(--green-800); }
.btn--ghost-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.16); }
.btn--sm { padding: 10px 20px; font-size: 0.86rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green-700);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--orange-400); }

/* ---------- Profil sekolah: paragraf pembuka ---------- */
.profil-intro { max-width: 820px; }
.profil-intro p { font-size: 1.02rem; }
.profil-intro .check-list { margin-top: 18px; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green-200);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.96rem; }

.icon-chip {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green-100), #fff);
  border: 1px solid var(--green-200);
  color: var(--green-700);
  margin-bottom: 18px;
}
.icon-chip svg { width: 26px; height: 26px; }
.icon-chip--orange { background: linear-gradient(135deg, var(--orange-100), #fff); border-color: var(--orange-200); color: var(--orange-600); }

.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
}
.badge--orange { background: var(--orange-100); color: var(--orange-700); }
.badge--outline { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(230, 227, 216, 0.9);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand__mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(6, 58, 36, 0.1);
}
.brand__mark--chip { box-shadow: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--green-900);
  letter-spacing: -0.01em;
}
.brand__sub {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: #3b5249;
  padding: 9px 9px;
  border-radius: 9px;
  transition: color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.nav-link--cta {
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  color: #fff !important;
  font-weight: 700;
  padding: 9px 16px !important;
  margin-left: 4px;
  box-shadow: 0 8px 18px -12px rgba(200, 92, 8, 0.9);
}
.nav-link--cta:hover { filter: brightness(1.05); }
.nav-link--cta::after { display: none !important; }
.nav a::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px; bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green-600), var(--orange-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav a:hover { color: var(--green-800); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--green-800); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
  color: var(--green-800);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Nav dropdown (submenu Tentang Kami) ---------- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item__link { display: inline-flex; align-items: center; gap: 6px; }
.nav-item__link svg { width: 13px; height: 13px; opacity: 0.65; transition: transform 0.2s ease; }
.nav-item:hover .nav-item__link svg,
.nav-item:focus-within .nav-item__link svg { transform: rotate(180deg); }
.nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  display: none;
  z-index: 70;
}
.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub { display: block; }
.nav-sub__panel {
  min-width: 268px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
}
.nav-sub__panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: #3b5249;
  white-space: nowrap;
}
.nav-sub__panel a::after { display: none; }
.nav-sub__panel a:hover { background: var(--green-50); color: var(--green-800); }
.nav-sub__hub {
  border-bottom: 1px solid #f0eee6;
  border-radius: 9px 9px 0 0 !important;
  margin-bottom: 4px;
  color: var(--green-800) !important;
  font-weight: 700;
}
.nav-sub__panel a.is-active { background: var(--green-100); color: var(--green-800); }

/* ---------- Sub navigasi halaman (tab) ---------- */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.subnav__inner {
  display: flex;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-block: 12px;
}
.subnav__inner::-webkit-scrollbar { height: 4px; }
.subnav__inner::-webkit-scrollbar-thumb { background: var(--green-200); border-radius: 4px; }
.subnav a {
  flex: 0 0 auto;
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 700;
  color: #3f574d;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.subnav a:hover { background: var(--green-50); color: var(--green-800); }
.subnav a.is-active {
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: #fff;
  box-shadow: 0 8px 18px -12px rgba(6, 58, 36, 0.8);
}

/* nomor misi */
.misi-num {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--green-950);
  background: var(--orange-400);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 76px 0 84px;
  overflow: hidden;
  background:
    radial-gradient(760px 420px at 88% 6%, rgba(242, 128, 28, 0.14), transparent 65%),
    radial-gradient(820px 460px at 4% 0%, rgba(0, 153, 77, 0.14), transparent 62%),
    linear-gradient(180deg, #fdfcf7, var(--cream));
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(7, 82, 50, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 82, 50, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 80%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 12px; font-size: clamp(2rem, 3.5vw, 2.85rem); }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--green-700), var(--green-500) 45%, var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead { font-size: 1.08rem; max-width: 540px; margin-bottom: 28px; }
.hero__motto {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: 14px;
}
.hero__arabic {
  font-family: var(--font-arabic);
  color: var(--green-700);
  font-size: 1.55rem;
  margin-bottom: 10px;
  direction: rtl;
  letter-spacing: 0;
}
.hero__note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  font-size: 0.86rem;
  color: #3f574d;
  font-weight: 600;
}
.hero__note span { display: inline-flex; align-items: center; gap: 8px; }
.hero__note svg { width: 17px; height: 17px; color: var(--green-600); }

/* Emblem showcase */
.emblem-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(240, 250, 244, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  padding: 34px 28px 28px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  overflow: hidden;
}
.emblem-card::before {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  top: -160px; right: -130px;
  background: radial-gradient(circle, rgba(242, 128, 28, 0.16), transparent 70%);
  border-radius: 50%;
}
.emblem-card::after {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  bottom: -170px; left: -120px;
  background: radial-gradient(circle, rgba(0, 153, 77, 0.18), transparent 70%);
  border-radius: 50%;
}
.emblem-card > * { position: relative; }
.emblem-card__mark {
  width: min(300px, 82%);
  height: auto;
  margin: 0 auto 20px;
  border-radius: 18px;
  border: 1px solid rgba(6, 58, 36, 0.07);
  filter: drop-shadow(0 18px 26px rgba(6, 58, 36, 0.12));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.emblem-card__name {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--green-900);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}
.emblem-card__line {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 6px;
}
.emblem-mini {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
  flex-wrap: wrap;
}
.emblem-mini span {
  font-size: 0.74rem;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--green-800);
  background: #fff;
  border: 1px solid var(--green-200);
  border-radius: 999px;
  padding: 6px 12px;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 54px;
}
.stat {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: 20px 22px;
  backdrop-filter: blur(10px);
}
.stat__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--green-800);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.stat__num span { color: var(--orange-500); }
.stat__label { font-size: 0.83rem; color: var(--body); font-weight: 500; margin-top: 4px; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  background:
    radial-gradient(600px 240px at 90% 0%, rgba(242, 128, 28, 0.24), transparent 60%),
    linear-gradient(135deg, var(--green-800), var(--green-950));
  box-shadow: var(--shadow);
}
.stat-strip .stat__num { color: #fff; }
.stat-strip .stat__num span { color: var(--orange-400); }
.stat-strip .stat__label { color: #b7d6c7; }

/* ---------- Profil / quote ---------- */
.quote-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
}
.quote-card::before {
  content: "\201C";
  position: absolute;
  top: 6px; left: 22px;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--green-100);
}
.quote-card p {
  position: relative;
  font-size: 1.02rem;
  color: #2f463d;
  font-style: italic;
}
.quote-author { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  flex: 0 0 52px;
  font-size: 1.05rem;
}
.avatar--orange { background: linear-gradient(135deg, var(--orange-400), var(--orange-600)); }
.quote-author__name { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.quote-author__role { font-size: 0.82rem; color: var(--muted); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: 0.97rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--green-100);
  border: 1px solid var(--green-200);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px; top: 10px;
  width: 7px; height: 4px;
  border-left: 2px solid var(--green-700);
  border-bottom: 2px solid var(--green-700);
  transform: rotate(-45deg);
}
.section--dark .check-list li { color: #c6dfd3; }

/* ---------- Jenjang cards ---------- */
.jenjang-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.jenjang-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.jenjang-card__art { position: relative; padding: 24px 24px 0; }
.jenjang-card__body { padding: 20px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.jenjang-card__body h3 { margin-bottom: 6px; }
.jenjang-card__level {
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: 6px;
}
.jenjang-card p { font-size: 0.94rem; }
.jenjang-card .link-arrow { margin-top: auto; padding-top: 16px; }

/* ---------- News cards ---------- */
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  height: 100%;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card__media { position: relative; }
.news-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.news-card__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--green-400); }
/* ikon di dalam meta wajib diberi ukuran: tanpa ini SVG melebar mengikuti viewBox
   (pernah membuat kartu prestasi setinggi 839px karena ikon kalender jadi 311px) */
.news-card__meta svg { width: 14px; height: 14px; flex: 0 0 14px; color: var(--green-600); }
.news-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.news-card h3 a:hover { color: var(--green-700); }
.news-card p { font-size: 0.92rem; color: var(--body); }
.news-card .link-arrow { margin-top: auto; padding-top: 16px; }

.art-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-50);
}
.art-frame svg, .art-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }
.art-frame--flat { border-radius: 0; }
.art-frame--wide { aspect-ratio: 21 / 9; }

/* Featured post */
.featured {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.featured__media { min-height: 100%; }
.featured__media svg { width: 100%; height: 100%; object-fit: cover; }
.featured__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured__body h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.featured__body p { font-size: 0.98rem; }

/* ---------- Berita unggulan di Home ---------- */
.news-feature {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--green-200);
  background:
    radial-gradient(520px 260px at 92% 6%, rgba(242, 128, 28, 0.14), transparent 62%),
    linear-gradient(150deg, #ffffff, var(--green-50));
  box-shadow: var(--shadow);
  padding: 38px;
}
.news-feature::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(0, 153, 77, 0.14);
  border-radius: 24px;
  transform: rotate(45deg);
  pointer-events: none;
}
.news-feature__body { position: relative; max-width: 760px; }
.news-feature h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  margin-bottom: 12px;
}
.news-feature h3 a:hover { color: var(--green-700); }
.news-feature p { font-size: 1rem; margin-bottom: 22px; }
.news-feature__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.news-feature__author {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 620px) {
  .news-feature { padding: 24px; border-radius: var(--radius-lg); }
}

/* ---------- Agenda ---------- */
.agenda-list { display: grid; gap: 16px; }
.agenda-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 22px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.agenda-item:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: var(--green-200); }
.agenda-date {
  text-align: center;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--green-50), #fff);
  border: 1px solid var(--green-200);
  padding: 10px 6px;
}
.agenda-date__day {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-800);
  line-height: 1;
}
.agenda-date__month {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange-600);
  margin-top: 4px;
}
/* ---------------- Foto tambahan (dikelola dari panel) ---------------- */
.card--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card__media {
  overflow: hidden;
  background: var(--green-50);
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.card__media img { width: 100%; height: auto; object-fit: cover; display: block; }
.card__media-body { padding: 20px 22px 22px; display: flex; flex-direction: column; }
.card__media-body h3 { margin-bottom: 6px; }
.card__media-body p { margin: 0; font-size: 0.92rem; }

/* caption foto (diisi dari panel) */
.photo-caption {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  font-style: italic;
  padding: 10px 14px 12px;
  background: #fdfcf8;
  border-top: 1px solid var(--line);
  margin: 0;
}
.photo-caption--inset { padding: 10px 26px 0; border-top: 0; background: none; }

/* card__media memuat gambar + caption: rasio hanya untuk bingkai gambarnya */
.card__media { display: block; }
.card__media > img { aspect-ratio: 16 / 10; }

.agenda-item__photo {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--green-50);
  margin-bottom: 12px;
  max-width: 420px;
}
.agenda-item__photo img { width: 100%; max-height: 200px; object-fit: cover; display: block; }

.article-lead {
  margin: 0 0 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--green-50);
  box-shadow: var(--shadow-sm);
}
.article-lead img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }

.section-photo {
  margin: 0 0 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--green-50);
  box-shadow: var(--shadow-sm);
}
.section-photo img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }

.agenda-item__body h3 { font-size: 1.02rem; margin-bottom: 6px; }
.agenda-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.83rem;
  color: var(--muted);
}
.agenda-item__meta span { display: inline-flex; align-items: center; gap: 6px; }
.agenda-item__meta svg { width: 14px; height: 14px; color: var(--green-600); }
.agenda-item__tag { justify-self: end; }

/* ---------- Gallery ---------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.filter-tab {
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 700;
  color: #3f574d;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.filter-tab:hover { border-color: var(--green-400); color: var(--green-800); }
.filter-tab.is-active {
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 20px -14px rgba(6, 58, 36, 0.8);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.gallery-item {
  position: relative;
  border: 0;
  padding: 0;
  background: var(--green-50);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-item.is-wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s ease; display: block; }
.gallery-item.is-wide img { aspect-ratio: 2 / 1; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 20px 16px;
  background: linear-gradient(transparent, rgba(4, 41, 26, 0.82));
  color: #fff;
}
.gallery-item__cap strong { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.gallery-item__cap span { font-size: 0.76rem; color: #bfe9d2; }
.gallery-item[hidden] { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(4, 25, 16, 0.86);
  backdrop-filter: blur(6px);
}
.lightbox.is-open { display: grid; }
.lightbox__inner {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 860px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.lightbox__inner img { width: 100%; height: auto; max-height: 76vh; object-fit: contain; background: #0d2a1d; }
.lightbox__cap { padding: 20px 26px 24px; }
.lightbox__cap strong { display: block; font-family: var(--font-head); font-size: 1.1rem; color: var(--ink); }
.lightbox__cap span { font-size: 0.86rem; color: var(--muted); }
.lightbox__close {
  position: absolute;
  top: 20px; right: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 68px 0 62px;
  overflow: hidden;
  background:
    radial-gradient(640px 320px at 85% 0%, rgba(242, 128, 28, 0.16), transparent 65%),
    linear-gradient(160deg, #f3faf6, var(--cream));
  border-bottom: 1px solid var(--line);
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -110px;
  top: -80px;
  width: 380px; height: 380px;
  border: 1px solid rgba(0, 153, 77, 0.16);
  border-radius: 30px;
  transform: rotate(45deg);
  pointer-events: none;
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { max-width: 620px; font-size: 1.04rem; }
.page-hero__inner { position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 500;
}
.breadcrumb a:hover { color: var(--green-700); }
.breadcrumb svg { width: 13px; height: 13px; opacity: 0.6; }
.breadcrumb span[aria-current] { color: var(--green-800); font-weight: 700; }

/* ---------- Values / time line ---------- */
.value-card { position: relative; padding-top: 26px; }
.value-card__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--green-100);
  line-height: 1;
  position: absolute;
  top: 8px; right: 4px;
  letter-spacing: -0.04em;
}

.timeline { position: relative; padding-left: 34px; margin-top: 10px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--green-400), var(--orange-400));
  border-radius: 2px;
}
.timeline__item { position: relative; padding-bottom: 28px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -33px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--green-600);
  box-shadow: 0 0 0 4px rgba(0, 153, 77, 0.08);
}
.timeline__year {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--orange-600);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.timeline h4 { margin-bottom: 4px; }
.timeline p { font-size: 0.93rem; }

/* ---------- Tables ---------- */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 560px;
}
table.data th {
  text-align: left;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-800);
  background: var(--green-50);
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td {
  padding: 14px 20px;
  border-bottom: 1px solid #f0eee6;
  color: var(--body);
  vertical-align: top;
}
table.data tr:last-child td { border-bottom: 0; }
table.data strong { color: var(--ink); }

/* ---------- Prose (article) ---------- */
.prose { max-width: 760px; }
/* Isi tulisan dari editor: jarak antar blok harus lega seperti dokumen Word */
.prose p { margin: 0 0 1.05em; line-height: 1.8; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.45em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.5em; line-height: 1.7; }
.prose li > ul, .prose li > ol { margin: 0.45em 0 0.2em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose > * + h2, .prose > * + h3 { margin-top: 1.6em; }
.prose a { color: var(--green-800); text-decoration: underline; }
.prose h2 { font-size: 1.5rem; margin-top: 40px; margin-bottom: 0.55em; }
.prose h3 { font-size: 1.18rem; margin-top: 30px; margin-bottom: 0.5em; }
.prose h4 { font-size: 1.02rem; margin-top: 24px; margin-bottom: 0.4em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.prose p, .prose li { font-size: 1.01rem; color: #3b5049; }
.prose ul { padding-left: 22px; }
.prose blockquote {
  margin: 26px 0;
  padding: 20px 26px;
  border-left: 4px solid var(--orange-400);
  background: var(--orange-100);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: #6b3d10;
}
.prose blockquote p { color: inherit; margin: 0; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.aside-card h4 { margin-bottom: 14px; font-size: 0.95rem; }
.aside-list { list-style: none; padding: 0; margin: 0; }
.aside-list li { margin: 0; border-bottom: 1px solid #f1efe8; }
.aside-list li:last-child { border-bottom: 0; }
.aside-list a { display: block; padding: 10px 0; font-size: 0.9rem; }
.aside-list a:hover { color: var(--green-700); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.info-list { display: grid; gap: 14px; }
.info-item {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.info-item .icon-chip { margin: 0; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; }
.info-item .icon-chip svg { width: 21px; height: 21px; }
.info-item h4 { margin-bottom: 3px; font-size: 0.95rem; }
.info-item p, .info-item a { font-size: 0.92rem; color: var(--body); margin: 0; }
.info-item a:hover { color: var(--green-700); }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--ink);
  background: #fcfcf8;
  border: 1px solid #e3e0d4;
  border-radius: 11px;
  padding: 12px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(0, 153, 77, 0.1);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 12px; }
.form-status { font-size: 0.86rem; margin-top: 12px; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-ok { color: var(--green-700); font-weight: 600; }

.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.map-card iframe { display: block; width: 100%; height: 380px; border: 0; }
.map-card__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 52px 48px;
  background:
    radial-gradient(500px 260px at 88% 10%, rgba(242, 128, 28, 0.4), transparent 62%),
    linear-gradient(135deg, var(--green-800), var(--green-950));
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #fff; margin-bottom: 10px; }
.cta-banner p { color: #bfdccd; margin: 0; max-width: 560px; }
.cta-banner::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -80px;
  width: 260px; height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transform: rotate(45deg);
  border-radius: 26px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--green-950), #032015);
  color: #a9c8b9;
  padding: 68px 0 0;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 46px;
}
.footer-brand .brand__title { color: #fff; }
.footer-brand .brand__sub { color: #7f9f90; }
.site-footer p { color: #9dbdae; font-size: 0.9rem; }
.footer-title {
  font-family: var(--font-head);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 2px; }
.footer-links a {
  font-size: 0.9rem;
  color: #a9c8b9;
  display: inline-block;
  padding: 5px 0;
  transition: color 0.18s ease, transform 0.18s ease;
}
.footer-links a:hover { color: var(--orange-400); transform: translateX(3px); }
.footer-contact { list-style: none; padding: 0; margin: 0; font-size: 0.88rem; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; color: #a9c8b9; }
.footer-contact svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 4px; color: var(--orange-400); }
.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 22px 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #7f9f90;
}
.footer-bottom a:hover { color: var(--orange-400); }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #d5e9de;
  transition: all 0.2s ease;
}
.social-row a:hover { background: var(--orange-500); border-color: var(--orange-500); color: #fff; transform: translateY(-2px); }
.social-row svg { width: 17px; height: 17px; }

/* ---------- Empty state ---------- */
.empty-state {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
  background: linear-gradient(160deg, #ffffff, var(--green-50));
  border: 1px solid var(--green-200);
  border-radius: var(--radius-xl);
  padding: 44px 32px;
  box-shadow: var(--shadow);
}
.empty-state__icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--green-200);
  color: var(--green-700);
}
.empty-state__icon svg { width: 30px; height: 30px; }
.empty-state h2 { font-size: 1.35rem; margin-bottom: 10px; }
.empty-state p { font-size: 0.96rem; }
.empty-state .btn-row { margin-top: 22px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .nav a { padding: 9px 7px; font-size: 0.79rem; }
  .nav-link--cta { padding: 8px 12px !important; }
  .brand__title { font-size: 0.96rem; }
  .brand__sub { font-size: 0.66rem; letter-spacing: 0.1em; }
}

@media (max-width: 1180px) {
  .nav a { padding: 9px 6px; font-size: 0.74rem; }
  .nav-item__link svg { width: 11px; height: 11px; }
  .brand__title { font-size: 0.9rem; }
  .brand__sub { font-size: 0.62rem; letter-spacing: 0.08em; }
  .split { gap: 40px; }
  .article-layout { grid-template-columns: 1fr; gap: 36px; }
  .article-aside { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  :root { --header-h: 74px; }
  .nav-toggle { display: grid; }
  .nav a { padding: 12px 14px; font-size: 0.95rem; }
  .nav-link--cta { margin-left: 0; padding: 12px 14px !important; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 14px 20px 20px;
    display: none;
  }
  .site-header.is-open .nav { display: flex; }
  .nav { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav a { padding: 12px 14px; font-size: 0.95rem; border-radius: 10px; }
  .nav a:hover { background: var(--green-50); }
  .nav a::after { display: none; }
  .nav a.is-active { background: var(--green-50); }
  .nav-item { display: block; }
  .nav-item__link svg { display: none; }
  .nav-sub {
    position: static;
    display: block;
    padding-top: 0;
  }
  .nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { display: block; }
  .nav-sub__panel {
    min-width: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 4px 14px;
    display: grid;
    gap: 2px;
  }
  .nav-sub__panel a { font-size: 0.88rem; padding: 9px 12px; color: #4b6058; }
  .nav-sub__panel a.is-active { background: var(--green-50); }
  .subnav { top: var(--header-h); }
  .subnav a { font-size: 0.82rem; padding: 8px 13px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .emblem-card { max-width: 440px; width: 100%; margin-inline: auto; }
  .split { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured { grid-template-columns: 1fr; }
  .featured__body { padding: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: 1fr; padding: 40px 32px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agenda-item { grid-template-columns: 70px 1fr; }
  .agenda-item__tag { grid-column: 2; justify-self: start; }
  .section { padding: 64px 0; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.is-wide { grid-column: span 1; }
  .gallery-item.is-wide img { aspect-ratio: 4 / 3; }
  .form-row { grid-template-columns: 1fr; }
  .article-aside { grid-template-columns: 1fr; }
  .stats, .stat-strip { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 16px; }
  .agenda-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }
  .agenda-date { justify-self: start; padding: 8px 16px; text-align: left; }
  .agenda-item__tag { grid-column: 1; }
  .cta-banner { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .quote-card, .form-card { padding: 24px; }
  .section { padding: 54px 0; }
  .page-hero { padding: 46px 0 40px; }
}

/* ---------- Foto, poster, dan kartu staf (konten resmi) ---------- */
.photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--green-50);
  box-shadow: var(--shadow);
}
.photo-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }
.photo-frame__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 20px 16px;
  background: linear-gradient(transparent, rgba(4, 41, 26, 0.86));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-head);
}
.photo-frame--sm { box-shadow: var(--shadow-sm); }
.photo-frame--sm img { aspect-ratio: 16 / 10; }

.quote-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--green-50);
}
.quote-photo img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; }

.sambutan-text p { font-size: 1rem; color: #3b5049; }

.poster-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.poster-card__zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
}
.poster-card__zoom img { width: 100%; height: auto; display: block; transition: transform 0.4s ease; }
.poster-card__zoom:hover img { transform: scale(1.015); }
.poster-card figcaption {
  margin-top: 14px;
  font-size: 0.84rem;
  color: var(--body);
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.poster-card figcaption a { color: var(--green-700); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.poster-card figcaption svg { width: 13px; height: 13px; }

.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.staff-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.staff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-200); }
.staff-card__photo {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--green-50);
}
.staff-card__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; display: block; }
.staff-card__avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
}
.staff-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.staff-card__role {
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--orange-600);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.staff-card p { font-size: 0.9rem; margin: 0; color: var(--body); }

@media (max-width: 960px) {
  .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .staff-grid { grid-template-columns: 1fr; }
  .hero__motto { font-size: 0.9rem; }
}
