@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

:root {
  color-scheme: light only;
  --primary: #166534;
  --primary-strong: #14532d;
  --secondary: #15803d;
  --accent: #f59e0b;
  --background: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f0f7f2;
  --text-dark: #1a202c;
  --text-muted: #4a5568;
  --text-accent: #22c55e;
  --border: #e2e8f0;
  --danger: #b91c1c;
  --success: #166534;
  --shadow: 0 24px 70px rgba(22, 101, 52, 0.1);
  --shadow-small: 0 12px 32px rgba(22, 101, 52, 0.08);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text-dark); font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.6rem, 5vw, 4.7rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: 1.1rem; }
p { color: var(--text-muted); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-140%); border-radius: var(--radius-sm); background: var(--primary); color: #f8fafc; padding: 10px 14px; }
.skip-link:focus { transform: translateY(0); }
.muted { color: var(--text-muted); }
.eyebrow { margin-bottom: 18px; color: var(--secondary); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 11px 20px; font-weight: 700; line-height: 1; white-space: nowrap; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, border-color 0.2s ease; }
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--primary); color: #f8fafc; }
.btn-primary:hover { background: var(--primary-strong); }
.btn-secondary { border-color: var(--border); background: var(--surface); color: var(--text-dark); }
.btn-secondary:hover, .btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline { border-color: var(--border); background: transparent; color: var(--text-dark); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-small { min-height: 40px; padding: 9px 15px; font-size: .88rem; }
.btn-block { width: 100%; }
.button-group { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 800; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid transparent; background: color-mix(in srgb, var(--background) 88%, transparent); backdrop-filter: blur(18px); }
.site-header.is-scrolled { border-color: var(--border); box-shadow: 0 8px 30px rgba(22, 101, 52, .05); }
.navbar { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; line-height: 1.1; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .91rem; letter-spacing: -.02em; }
.brand small { margin-top: 4px; color: var(--text-muted); font-size: .73rem; font-weight: 600; }
.brand-logo, .brand-mark { width: 42px; height: 42px; border-radius: 12px; }
.brand-logo { object-fit: contain; }
.brand-mark { display: grid; place-items: center; background: var(--primary); color: #f8fafc; font-size: .84rem; font-weight: 800; letter-spacing: -.04em; }
.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links > a:not(.btn) { position: relative; color: var(--text-muted); font-size: .87rem; font-weight: 700; }
.nav-links > a:not(.btn)::after { position: absolute; right: 0; bottom: -9px; left: 0; height: 2px; border-radius: 2px; background: var(--primary); content: ""; transform: scaleX(0); transition: transform .2s ease; }
.nav-links > a.active, .nav-links > a:not(.btn):hover { color: var(--text-dark); }
.nav-links > a.active::after { transform: scaleX(1); }
.nav-dropdown { position: relative; }
.nav-dropdown summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; color: var(--text-muted); font-size: .87rem; font-weight: 700; cursor: pointer; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after { content: "⌄"; color: var(--primary); font-size: .78rem; transition: transform .2s ease; }
.nav-dropdown[open] summary { color: var(--text-dark); }
.nav-dropdown[open] summary::after { transform: rotate(180deg); }
.nav-dropdown > div { position: absolute; top: calc(100% + 18px); right: 0; z-index: 40; min-width: 240px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-small); padding: 10px; }
.nav-dropdown > div a { display: block; border-radius: var(--radius-sm); padding: 10px 12px; color: var(--text-muted); font-size: .82rem; font-weight: 700; }
.nav-dropdown > div a:hover { background: var(--surface-soft); color: var(--primary); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 11px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: var(--text-dark); }

.messages { padding-top: 14px; }
.alert { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 13px 16px; color: var(--text-dark); font-weight: 600; }
.alert-success { border-color: color-mix(in srgb, var(--success) 35%, var(--border)); background: color-mix(in srgb, var(--success) 8%, var(--surface)); color: var(--success); }
.alert-error { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); color: var(--danger); }
.alert-warning { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }

.hero { min-height: min(760px, calc(100dvh - 72px)); display: flex; align-items: center; overflow: hidden; padding: 60px 0 70px; }
.hero-grid { display: grid; align-items: center; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); gap: clamp(40px, 5vw, 64px); }
.hero-copy h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(2.35rem, 3.3vw, 2.6rem); }
.hero-lead { max-width: 610px; margin-bottom: 32px; font-size: 1.12rem; }
.hero-visual { position: relative; }
.hero-visual::before { position: absolute; inset: -20px 34px 40px -24px; z-index: -1; border-radius: var(--radius-lg); background: var(--surface-soft); content: ""; }
.hero-visual img { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero-note { position: absolute; right: -22px; bottom: 26px; display: flex; min-width: 190px; align-items: center; gap: 12px; border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 93%, transparent); box-shadow: var(--shadow-small); padding: 15px 18px; backdrop-filter: blur(12px); }
.hero-note strong { color: var(--primary); font-size: 1.65rem; }
.hero-note span { max-width: 92px; color: var(--text-muted); font-size: .74rem; font-weight: 700; line-height: 1.35; }

.stats-section { border-block: 1px solid var(--border); background: var(--surface); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stats-grid > div { padding: 28px 18px; text-align: center; }
.stats-grid > div + div { border-left: 1px solid var(--border); }
.stats-grid strong, .stats-grid span { display: block; }
.stats-grid strong { margin-bottom: 4px; color: var(--primary); font-size: 1.55rem; }
.stats-grid span { color: var(--text-muted); font-size: .78rem; font-weight: 700; }

.section { padding: 104px 0; }
.section-compact { padding-top: 64px; }
.section-tinted { background: var(--surface-soft); }
.section-heading { max-width: 680px; margin-bottom: 44px; }
.section-heading h2 { margin-bottom: 14px; }
.section-heading p { max-width: 600px; margin-bottom: 0; }
.section-action { margin-top: 38px; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-modules { grid-template-columns: repeat(12, 1fr); }
.feature-modules .module-card { grid-column: span 4; }
.feature-modules .module-card:first-child, .feature-modules .module-card:nth-child(2) { grid-column: span 6; }
/* Color variables mapping for module formats */
.module-card[data-format="pdf"] {
  --card-accent: #166534;
  --card-glow: rgba(22, 101, 52, 0.12);
}
.module-card[data-format="youtube"] {
  --card-accent: #ef4444;
  --card-glow: rgba(239, 68, 68, 0.12);
}
.module-card[data-format="drive"] {
  --card-accent: #0ea5e9;
  --card-glow: rgba(14, 165, 233, 0.12);
}
.module-card[data-format="audio"] {
  --card-accent: #a855f7;
  --card-glow: rgba(168, 85, 247, 0.12);
}
.module-card[data-format="document"] {
  --card-accent: #f59e0b;
  --card-glow: rgba(245, 158, 11, 0.12);
}
.module-card {
  --card-accent: var(--primary);
  --card-glow: rgba(22, 101, 52, 0.08);
  display: flex;
  min-height: 350px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s ease,
              box-shadow 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.015);
}

.module-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: var(--card-accent);
  box-shadow: 0 20px 45px var(--card-glow);
}

.module-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.module-card-top time {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 600;
}

.module-card h3 {
  margin: 10px 0 12px;
  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1.35;
}

.module-card h3 a {
  color: var(--text-dark);
  transition: color 0.25s ease;
}

.module-card h3 a:hover {
  color: var(--card-accent);
}

.module-card p {
  margin-bottom: 0;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.module-path {
  color: var(--secondary) !important;
  font-size: .72rem !important;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.module-meta {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  padding: 8px 0 0;
  font-size: .76rem;
}

.module-meta div:first-child {
  border-top: none;
  padding-top: 0;
}

.module-meta dt {
  color: var(--text-muted);
  font-weight: 600;
}

.module-meta dd {
  margin: 0;
  font-weight: 750;
  color: var(--text-dark);
  text-align: right;
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 99px;
  padding: 5px 12px;
  background: var(--surface-soft);
  color: var(--primary);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.badge-video { background: #e8f0fe; color: #1d4ed8; }
.badge-youtube { background: #fee2e2; color: #b91c1c; }
.badge-drive { background: #dcfce7; color: #166534; }
.badge-audio { background: #f3e8ff; color: #7e22ce; }
.badge-dokumen { background: #fff7ed; color: #c2410c; }
.badge-url { background: #e6fffb; color: #0f766e; }
.badge-status { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: #92400e; }
.badge-default { background: #f1f5f9; color: #475569; }

.module-card .text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 750;
  font-size: 0.86rem;
  margin-top: auto;
  transition: all 0.3s ease;
}

.module-card .text-link span {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.module-card:hover .text-link {
  color: var(--card-accent);
}

.module-card:hover .text-link span {
  transform: translateX(4px);
}

.learning-types { display: grid; grid-template-columns: .72fr 1.28fr; gap: 72px; }
.learning-types > div:first-child { align-self: center; }
.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.academic-timeline-wrap { position: relative; margin-block: 60px 72px; }
.academic-timeline-wrap::before { content: ""; position: absolute; top: 40px; left: 8%; right: 8%; height: 4px; background: linear-gradient(90deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 35%, var(--border)) 100%); z-index: 1; border-radius: 2px; }
.academic-timeline { display: flex; justify-content: space-between; align-items: stretch; gap: 24px; position: relative; z-index: 2; }
.timeline-step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.step-marker { position: relative; display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; border-radius: 50%; background: var(--surface); border: 4px solid var(--border); box-shadow: var(--shadow-small); margin-bottom: 24px; transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.step-number { position: absolute; top: -8px; left: -8px; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #f8fafc; font-size: 0.8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(22, 101, 52, 0.2); }
.step-icon-wrap { color: var(--text-muted); display: flex; align-items: center; justify-content: center; transition: color 0.3s ease, transform 0.3s ease; }
.step-icon-wrap svg { width: 30px; height: 30px; stroke-width: 2; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02); transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); width: 100%; }
.step-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--text-dark); font-weight: 700; letter-spacing: -0.02em; }
.step-card p { font-size: 0.82rem; line-height: 1.6; color: var(--text-muted); margin: 0; }
.timeline-step:hover .step-marker { border-color: var(--primary); transform: scale(1.08); box-shadow: 0 10px 25px rgba(22, 101, 52, 0.15); }
.timeline-step:hover .step-icon-wrap { color: var(--primary); transform: rotate(8deg); }
.timeline-step:hover .step-card { transform: translateY(-6px); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); box-shadow: 0 20px 40px rgba(22, 101, 52, 0.08); }
@media (max-width: 900px) {
  .academic-timeline-wrap::before { top: 40px; bottom: 40px; left: 40px; right: auto; width: 4px; height: auto; background: linear-gradient(180deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 35%, var(--border)) 100%); }
  .academic-timeline { flex-direction: column; align-items: stretch; gap: 32px; }
  .timeline-step { flex-direction: row; align-items: center; text-align: left; }
  .step-marker { margin-bottom: 0; margin-right: 28px; flex-shrink: 0; }
  .step-card { flex-grow: 1; }
}
.department-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; }
.department-grid article { border-radius: var(--radius); background: var(--primary); padding: 36px; }
.department-grid article:nth-child(even) { background: var(--surface-soft); }
.department-grid article:nth-child(odd) h3, .department-grid article:nth-child(odd) p, .department-grid article:nth-child(odd) span { color: #f8fafc; }
.department-grid h3 { font-size: 1.8rem; }
.department-grid span { font-size: .8rem; font-weight: 800; }
.department-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 12px; margin-bottom: 24px; background: rgba(255, 255, 255, 0.15); color: #f8fafc; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.department-grid article:nth-child(even) .department-icon { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.department-icon svg { width: 32px; height: 32px; }
.department-grid article { transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: pointer; }
.department-grid article:hover { transform: translateY(-4px); box-shadow: var(--shadow-small); }
.department-grid article:hover .department-icon { transform: scale(1.1) rotate(5deg); }

.teacher-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.teacher-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.01);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.teacher-card:hover {
  border-color: rgba(22, 101, 52, 0.25);
  box-shadow: 0 8px 24px rgba(22, 101, 52, 0.04);
}

.teacher-card-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 0.85;
  overflow: hidden;
  background: var(--surface-soft);
}

.teacher-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-soft);
  position: relative;
  aspect-ratio: 0.85;
}

.teacher-placeholder-monogram {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.teacher-card-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: var(--surface);
}

.teacher-card-info h3 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  font-weight: 750;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.teacher-role {
  margin: 0 0 10px 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.teacher-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.teacher-subject-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.home-updates { display: grid; grid-template-columns: 1.2fr .8fr; gap: 72px; }
.news-row { display: grid; grid-template-columns: 100px 1fr; gap: 24px; border-top: 1px solid var(--border); padding: 24px 0; }
.news-row time { color: var(--text-muted); font-size: .75rem; font-weight: 700; }
.news-row h3 { margin-bottom: 8px; font-size: 1.2rem; }
.news-row p { margin: 0; font-size: .88rem; }
.announcement-panel { border-radius: var(--radius-lg); background: var(--primary); padding: 32px; }
.announcement-panel h2 { color: #f8fafc; font-size: 1.55rem; }
.announcement-panel > a:not(.text-link) { display: block; border-top: 1px solid rgba(248, 250, 252, .18); padding: 18px 0; }
.announcement-panel span, .announcement-panel strong, .announcement-panel time { display: block; color: #f8fafc; }
.announcement-panel span, .announcement-panel time { color: rgba(248, 250, 252, .7); font-size: .68rem; }
.announcement-panel strong { margin: 5px 0; font-size: .94rem; }
.announcement-panel .text-link { color: #f8fafc; }

.gallery-strip { display: grid; grid-template-columns: 1.4fr .8fr .8fr; grid-template-rows: repeat(2, 210px); gap: 14px; }
.gallery-strip img { width: 100%; height: 100%; border-radius: var(--radius); }
.gallery-strip img:first-child { grid-row: 1 / 3; }
.gallery-strip img:nth-child(n+4) { display: none; }
.gallery-strip button { width: 100%; height: 100%; border: 0; padding: 0; background: transparent; border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .2s ease; }
.gallery-strip button:hover { transform: scale(1.02); }
.gallery-strip button:first-child { grid-row: 1 / 3; }
.gallery-strip button:nth-child(n+4) { display: none; }
.gallery-strip button img { width: 100%; height: 100%; border-radius: var(--radius); object-fit: cover; }

.page-hero { border-bottom: 1px solid var(--border); background: var(--surface-soft); padding: 78px 0 70px; }
.page-hero .container { max-width: 1200px; }
.page-hero h1 { max-width: 900px; margin-bottom: 20px; }
.page-hero p:not(.eyebrow) { max-width: 670px; margin-bottom: 0; font-size: 1.08rem; }
.public-access-note { display: inline-flex; margin-top: 24px; border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border)); border-radius: var(--radius-sm); background: var(--surface); padding: 10px 14px; color: var(--primary); font-size: .78rem; font-weight: 700; }

.module-filter { display: grid; align-items: end; grid-template-columns: 1.5fr repeat(4, 1fr) auto; gap: 12px; margin-bottom: 36px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 20px; }
.module-filter label, .form-group label, .dashboard-search label { display: block; margin-bottom: 7px; color: var(--text-dark); font-size: .75rem; font-weight: 800; }
.module-filter input, .module-filter select, .form-control, .dashboard-search input { width: 100%; min-height: 46px; border: 1px solid var(--border); border-radius: var(--radius-sm); outline: 0; background: var(--background); padding: 10px 12px; color: var(--text-dark); transition: border-color 0.2s ease, box-shadow 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease; }
.module-filter input:focus, .module-filter select:focus, .form-control:focus, .dashboard-search input:focus { border-color: var(--primary); background-color: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent); }
.filter-reset { align-self: center; color: var(--text-muted); font-size: .75rem; font-weight: 700; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 40px; }
.pagination a { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 9px 14px; font-weight: 700; }
.pagination span { color: var(--text-muted); font-size: .82rem; }
.empty-state { grid-column: 1 / -1; border: 1px dashed color-mix(in srgb, var(--text-muted) 40%, var(--border)); border-radius: var(--radius); padding: 54px 24px; text-align: center; }
.empty-state h2, .empty-state h3 { margin-bottom: 10px; }

.detail-header { border-bottom: 1px solid var(--border); background: var(--surface); padding: 38px 0 58px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 38px; color: var(--text-muted); font-size: .75rem; font-weight: 700; }
.breadcrumb a:hover { color: var(--primary); }
.detail-title { display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: end; }
.detail-title h1 { max-width: 850px; margin: 15px 0; font-size: clamp(2.25rem, 5vw, 4rem); }
.detail-title p { margin: 0; }
.detail-author { border-left: 2px solid var(--primary); padding-left: 18px; }
.detail-author span, .detail-author strong, .detail-author small { display: block; }
.detail-author span, .detail-author small { color: var(--text-muted); font-size: .7rem; }
.detail-author strong { margin: 6px 0; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 44px; }
.content-panel, .download-panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.content-panel { padding: clamp(24px, 4vw, 48px); }
.download-panel { position: sticky; top: 104px; height: fit-content; padding: 26px; }
.download-panel h2 { margin: 18px 0 12px; font-size: 1.55rem; }
.download-panel dl { margin: 24px 0 0; }
.download-panel dl div { border-top: 1px solid var(--border); padding: 13px 0; }
.download-panel dt { color: var(--text-muted); font-size: .7rem; }
.download-panel dd { margin: 3px 0 0; font-size: .82rem; font-weight: 700; }
.rich-content { color: var(--text-muted); }
.rich-content p, .rich-content li { max-width: 74ch; }
.media-preview { overflow: hidden; margin-top: 32px; border-radius: var(--radius); background: #0f172a; }
.media-preview iframe { width: 100%; height: 620px; border: 0; }
.media-preview.youtube-preview { aspect-ratio: 16 / 9; }
.media-preview.youtube-preview iframe { height: 100%; }
.media-preview video { display: block; width: 100%; max-height: 620px; }
.audio-card, .external-card { margin-top: 32px; border-radius: var(--radius); background: var(--surface-soft); padding: 28px; }
.audio-card audio { width: 100%; }
.related-grid { grid-template-columns: repeat(4, 1fr); }
.related-grid .module-card { min-height: 320px; }

.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
.prose-card { max-width: 760px; }
.article-image { width: 100%; margin-bottom: 34px; border-radius: var(--radius); }
.profile-facts { border-radius: var(--radius); background: var(--primary); padding: 30px; color: #f8fafc; }
.profile-facts h2 { margin-bottom: 8px; color: #f8fafc; font-size: 1.4rem; }
.profile-facts dl { margin: 0; }
.profile-facts dl > div { border-top: 1px solid rgba(248, 250, 252, .18); padding: 14px 0; }
.profile-facts dl > div:first-child { border-top: 0; padding-top: 8px; }
.profile-facts-item { display: flex; align-items: flex-start; gap: 14px; }
.profile-facts-icon { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(248, 250, 252, 0.12); color: #ecfdf5; }
.profile-facts-icon svg { width: 20px; height: 20px; }
.profile-facts-item > div { min-width: 0; }
.profile-facts dt { color: rgba(248, 250, 252, .67); font-size: .7rem; }
.profile-facts dd { margin: 3px 0 0; font-size: .88rem; font-weight: 700; line-height: 1.45; }
.facility-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.facility-grid article { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 25px; }
.facility-grid p { margin: 0; font-size: .85rem; }

.facility-section {
  padding-block: clamp(72px, 9vw, 104px);
}

.facility-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.facility-section-header p:last-child {
  max-width: 58ch;
  margin: 12px 0 0;
  font-size: 1rem;
  line-height: 1.75;
}

.facility-grid--profile {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 22px);
}

.facility-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: flex-start;
  grid-column: span 3;
  padding: clamp(22px, 3vw, 28px);
  border: 1px solid rgba(22, 101, 52, 0.1);
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(160deg, #ffffff 0%, #f7fbf8 100%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.facility-card:hover {
  border-color: rgba(22, 101, 52, 0.22);
  box-shadow: 0 22px 50px rgba(22, 101, 52, 0.08);
  transform: translateY(-3px);
}

.facility-card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(22, 101, 52, 0.08);
  color: var(--primary);
}

.facility-card-icon svg {
  width: 22px;
  height: 22px;
}

.facility-card h3 {
  margin-bottom: 10px;
  color: var(--text-dark);
  font-size: 1.05rem;
}

.facility-card p {
  font-size: 0.9rem;
  line-height: 1.65;
}

.values-layout { display: grid; grid-template-columns: .88fr 1.12fr; gap: 30px; }
.vision-card { min-height: 470px; display: flex; flex-direction: column; justify-content: space-between; border-radius: var(--radius-lg); background: var(--primary); padding: 45px; }
.vision-card span, .vision-card h2 { color: #f8fafc; }
.vision-card span { font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.vision-card h2 { max-width: 630px; margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); }
.mission-column { display: grid; gap: 20px; }
.mission-column article { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 34px; }

.flow-large { margin-bottom: 70px; }
.academic-group + .academic-group { margin-top: 90px; }
.academic-group-title { display: grid; align-items: end; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 30px; }
.academic-group-title span { color: var(--primary); font-size: .73rem; font-weight: 800; text-transform: uppercase; }
.academic-group-title h2 { margin: 7px 0 0; }
.academic-group-title p { margin: 0; }
.class-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.class-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 28px; }
.class-card h3 { font-size: 1.4rem; }
.subject-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 22px; }
.subject-list a { border-radius: var(--radius-sm); background: var(--surface-soft); padding: 12px; }
.subject-list span, .subject-list small { display: block; }
.subject-list span { font-size: .78rem; font-weight: 800; }
.subject-list small { margin-top: 3px; color: var(--text-muted); font-size: .65rem; }

.teacher-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.teacher-card-detailed { display: grid; grid-template-columns: 210px 1fr; align-items: stretch; }
.teacher-card-detailed .teacher-card-visual { height: 100%; aspect-ratio: auto; overflow: hidden; }
.teacher-card-detailed .teacher-card-visual img, 
.teacher-card-detailed .teacher-card-visual .teacher-placeholder { height: 100%; min-height: 290px; aspect-ratio: auto; }
.teacher-card-detailed > div:last-child { align-self: center; padding: 28px; }
.teacher-card-detailed > div > span { color: var(--primary); font-size: .72rem; font-weight: 800; }
.teacher-card-detailed h2 { margin: 8px 0; font-size: 1.45rem; }
.teacher-subjects { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.teacher-subjects span { border-radius: 8px; background: var(--surface-soft); padding: 6px 8px; color: var(--text-muted) !important; font-size: .66rem !important; }

.public-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.public-card { display: flex; min-height: 280px; flex-direction: column; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 26px; }
.public-card h2 { margin: 16px 0 10px; font-size: 1.35rem; }
.public-card .btn, .public-card .text-link { margin-top: auto; }
.public-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-small); }
.public-table { width: 100%; min-width: 850px; border-collapse: collapse; }
.public-table th, .public-table td { border-bottom: 1px solid var(--border); padding: 16px 18px; text-align: left; vertical-align: top; }
.public-table th { background: var(--primary); color: #f8fafc; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.public-table td { color: var(--text-muted); font-size: .9rem; }
.public-table tbody tr:last-child td { border-bottom: 0; }

.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.news-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.news-card img, .image-placeholder { width: 100%; aspect-ratio: 3 / 2; }
.image-placeholder { display: grid; place-items: center; background: var(--surface-soft); color: var(--primary); font-weight: 800; }
.news-card > div:last-child { padding: 25px; }
.news-card time, .article-header time { color: var(--text-muted); font-size: .7rem; font-weight: 700; }
.news-card h2 { margin: 10px 0; font-size: 1.35rem; }
.news-card p { font-size: .87rem; }

.article-page { padding: 54px 0 100px; }
.article-header { max-width: 850px; }
.article-header h1 { margin: 15px 0 22px; }
.article-header > p { max-width: 700px; font-size: 1.1rem; }
.article-cover { margin-top: 48px; max-width: 850px; }
.article-cover img { width: 100%; max-height: 450px; object-fit: cover; border-radius: var(--radius-lg); }
.article-body { max-width: 780px; padding-top: 56px; font-size: 1.03rem; }
.article-footer { max-width: 780px; padding-top: 36px; }

.announcement-list { max-width: 900px; }
.announcement-list > article { border-bottom: 1px solid var(--border); padding: 30px 0; }
.announcement-list > article:first-child { padding-top: 0; }
.announcement-list article > div { display: flex; align-items: center; gap: 12px; }
.announcement-list time { color: var(--text-muted); font-size: .72rem; }
.announcement-list h2 { margin: 15px 0 10px; font-size: 1.45rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.gallery-grid article { grid-column: span 4; }
.gallery-grid article:nth-child(5n+1), .gallery-grid article:nth-child(5n+2) { grid-column: span 6; }
.gallery-button { width: 100%; overflow: hidden; border: 0; border-radius: var(--radius); background: transparent; padding: 0; }
.gallery-button img { width: 100%; aspect-ratio: 4 / 3; transition: transform .3s ease; }
.gallery-button:hover img { transform: scale(1.025); }
.gallery-grid article > div:last-child { padding: 14px 2px 22px; }
.gallery-grid article > div:last-child span, .gallery-grid time { color: var(--text-muted); font-size: .68rem; }
.gallery-grid h2 { margin: 5px 0; font-size: 1.05rem; }
.video-link-card { min-height: 290px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; border-radius: var(--radius); background: var(--surface-soft); }
.gallery-modal { width: min(92vw, 1000px); border: 0; border-radius: var(--radius); background: var(--surface); padding: 14px; }
.gallery-modal::backdrop { background: rgba(15, 23, 42, .82); backdrop-filter: blur(4px); }
.gallery-modal button { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface-soft); color: var(--text-dark); font-size: 26px; line-height: 1; padding: 0 0 4px; cursor: pointer; margin: 0 0 12px auto; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.gallery-modal button:hover { background: var(--primary); color: #f8fafc; transform: rotate(90deg); }
.gallery-modal img { width: 100%; max-height: 78vh; border-radius: var(--radius-sm); object-fit: contain; }

.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.contact-info > div { border-top: 1px solid var(--border); padding: 19px 0; }
.contact-info span { color: var(--primary); font-size: .73rem; font-weight: 800; }
.contact-info p { margin: 5px 0 0; }
.map-frame { overflow: hidden; border-radius: var(--radius); }
.map-frame iframe { width: 100%; height: 280px; border: 0; }
.contact-form { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 34px; }
.form-group { margin-bottom: 20px; }
.form-control { display: block; }
textarea.form-control { min-height: 130px; resize: vertical; }
.form-group small { display: block; margin-top: 6px; color: var(--text-muted); font-size: .7rem; }
.field-error { margin: 6px 0 0; color: var(--danger); font-size: .73rem; font-weight: 700; }

.login-section { min-height: calc(100dvh - 72px); display: grid; place-items: center; padding: 70px 20px; background: var(--surface-soft); }
.login-card { width: min(100%, 480px); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); padding: clamp(28px, 6vw, 48px); }
.login-card h1 { margin-bottom: 14px; font-size: 2.2rem; }
.login-card form { margin: 30px 0 22px; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 54px; padding-bottom: 64px; }
.footer-grid h2 { margin-bottom: 18px; font-size: .88rem; }
.footer-grid > div:not(.footer-brand) > a { display: block; margin: 10px 0; color: var(--text-muted); font-size: .8rem; }
.footer-grid > div:not(.footer-brand) > a:hover { color: var(--primary); }
.footer-grid p { max-width: 320px; font-size: .78rem; }
.brand-footer { margin-bottom: 18px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; }
.footer-bottom p { margin: 0; font-size: .7rem; }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 20; width: 48px; height: 48px; border: 1px solid var(--border); border-radius: var(--radius-sm); opacity: 0; background: var(--surface); box-shadow: var(--shadow-small); pointer-events: none; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

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

/* Teacher Detail Modal styling */
.teacher-modal {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  max-width: min(660px, 90vw);
  width: 100%;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.teacher-modal::backdrop {
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(4px);
}

.teacher-modal-content {
  position: relative;
}

.teacher-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.6rem;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  z-index: 10;
}

.teacher-modal-close:hover {
  color: var(--primary);
}

.teacher-modal-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
}

@media (max-width: 640px) {
  .teacher-modal-grid {
    grid-template-columns: 1fr;
  }
}

.teacher-modal-visual {
  background: var(--background);
  position: relative;
  display: flex;
}

.teacher-modal-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 0.85;
}

.teacher-modal-visual .teacher-placeholder {
  aspect-ratio: 0.85;
  width: 100%;
  min-height: 280px;
}

.teacher-modal-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.teacher-modal-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.teacher-modal-name {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.teacher-modal-role {
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--primary);
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.teacher-modal-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.teacher-modal-bio {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 26px 0;
}

/* ═══════════════════════════════════════════════════════════════
   MADRASAH INTRO + SAMBUTAN KEPALA
   ═══════════════════════════════════════════════════════════════ */

.madrasah-sequence {
  padding-block: clamp(56px, 8vw, 88px);
}

.madrasah-sequence-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 64px);
}

.madrasah-sequence-intro {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 40px);
}

.madrasah-sequence-sambutan {
  padding-top: clamp(8px, 2vw, 16px);
  border-top: 1px solid rgba(22, 101, 52, 0.12);
}

.madrasah-intro {
  padding-block: clamp(56px, 8vw, 88px);
}

.madrasah-intro-grid {
  display: grid;
  grid-template-columns: minmax(88px, 120px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.madrasah-intro-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 10px;
}

.madrasah-intro-year {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  border: 1px solid rgba(22, 101, 52, 0.16);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.95), transparent 55%),
    linear-gradient(145deg, rgba(22, 101, 52, 0.08), rgba(22, 101, 52, 0.02));
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 18px 40px rgba(22, 101, 52, 0.08);
}

.madrasah-intro-line {
  width: 2px;
  flex: 1;
  min-height: 72px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(22, 101, 52, 0.35), rgba(22, 101, 52, 0.04));
}

.madrasah-intro-copy h2 {
  max-width: 16ch;
  margin-bottom: 18px;
  color: var(--text-dark);
}

.madrasah-intro-lead {
  max-width: 62ch;
  margin-bottom: 14px;
  color: var(--text-dark);
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  font-weight: 600;
  line-height: 1.75;
}

.madrasah-intro-note {
  max-width: 58ch;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.8;
}

.madrasah-intro-link {
  margin-top: 22px;
}

.madrasah-intro-with-facts {
  align-items: start;
}

.madrasah-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

.madrasah-intro-layout .profile-facts {
  position: sticky;
  top: 96px;
}

.madrasah-intro-main {
  min-width: 0;
}

.madrasah-intro-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 40px);
}

.madrasah-intro-stack .profile-facts {
  max-width: none;
}

.madrasah-intro-grid--with-facts {
  min-width: 0;
}

.prose-card--narrow {
  max-width: 760px;
  margin-inline: auto;
}

.sambutan-panel-wrap {
  padding-block: clamp(48px, 7vw, 80px);
}

.sambutan-panel-wrap--profil {
  background:
    linear-gradient(180deg, rgba(240, 247, 242, 0.45) 0%, rgba(248, 250, 252, 0) 100%);
}

.sambutan-panel {
  position: relative;
  overflow: hidden;
}

.sambutan-panel::before {
  content: "";
  position: absolute;
  inset: auto -120px -160px auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 101, 52, 0.06) 0%, transparent 72%);
  pointer-events: none;
}

.sambutan-panel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.sambutan-panel-header-copy {
  max-width: 720px;
}

.sambutan-panel-intro {
  max-width: 52ch;
  margin: 10px 0 0;
  font-size: 0.98rem;
  line-height: 1.7;
}

.sambutan-scroll-hint {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(22, 101, 52, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sambutan-scroll-hint svg {
  width: 16px;
  height: 16px;
}

.sambutan-panel-header h2 {
  margin-bottom: 0;
}

.sambutan-panel-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(22, 101, 52, 0.12);
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 242, 0.92));
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.sambutan-panel--profil .sambutan-panel-card {
  align-items: stretch;
  min-height: min(480px, 72vh);
}

.sambutan-panel--profil .sambutan-panel-body {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.sambutan-panel-quote-scroll {
  max-height: min(420px, 58vh);
  flex: 1;
  overflow-y: auto;
  padding: 4px 12px 8px 0;
  margin-right: -4px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 101, 52, 0.45) rgba(22, 101, 52, 0.08);
}

.sambutan-panel-quote-scroll:focus {
  outline: 2px solid rgba(22, 101, 52, 0.28);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.sambutan-panel-quote-scroll::-webkit-scrollbar {
  width: 7px;
}

.sambutan-panel-quote-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(22, 101, 52, 0.08);
}

.sambutan-panel-quote-scroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(22, 101, 52, 0.42);
  background-clip: padding-box;
}

.sambutan-panel-quote--scroll {
  padding-bottom: 8px;
}

.sambutan-panel-quote--scroll::before {
  top: -4px;
  font-size: 4.5rem;
}

.sambutan-panel--home .sambutan-panel-card {
  max-width: 1040px;
}

.sambutan-panel-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sambutan-panel-frame {
  position: relative;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface-soft);
  box-shadow: 0 16px 40px rgba(22, 101, 52, 0.1);
}

.sambutan-panel-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: inherit;
  pointer-events: none;
}

.sambutan-panel-frame::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 42px;
  height: 42px;
  border-top: 3px solid rgba(22, 101, 52, 0.55);
  border-left: 3px solid rgba(22, 101, 52, 0.55);
  border-radius: 6px 0 0 0;
  pointer-events: none;
  z-index: 1;
}

.sambutan-panel-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.sambutan-panel-photo-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--primary);
  background: linear-gradient(160deg, rgba(22, 101, 52, 0.08), rgba(22, 101, 52, 0.02));
}

.sambutan-panel-identity {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.sambutan-panel-identity strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.sambutan-panel-identity span {
  display: block;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sambutan-panel-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}

.sambutan-panel-quote {
  position: relative;
  padding-left: clamp(18px, 2vw, 28px);
  border-left: 3px solid rgba(22, 101, 52, 0.22);
}

.sambutan-panel-quote::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 14px;
  color: rgba(22, 101, 52, 0.12);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.5rem;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.sambutan-panel-quote p {
  margin-bottom: 1rem;
  font-size: 1.02rem;
  line-height: 1.85;
  color: color-mix(in srgb, var(--text-muted) 55%, var(--text-dark));
}

.sambutan-panel-quote p:first-child {
  color: var(--text-dark);
  font-size: clamp(1.08rem, 1.8vw, 1.22rem);
  font-weight: 600;
  line-height: 1.72;
}

.sambutan-panel-quote--home {
  max-height: 22rem;
  overflow: hidden;
}

.sambutan-panel-quote--home::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5rem;
  background: linear-gradient(180deg, rgba(240, 247, 242, 0), rgba(240, 247, 242, 0.98));
  pointer-events: none;
}

.sambutan-panel-footer {
  padding-top: 4px;
}

.profile-facts--solo {
  grid-column: 1 / -1;
  max-width: 420px;
}

@media (max-width: 900px) {
  .madrasah-intro-grid {
    grid-template-columns: 1fr;
  }

  .madrasah-intro-marker {
    flex-direction: row;
    align-items: center;
    padding-top: 0;
  }

  .madrasah-intro-line {
    width: auto;
    flex: 1;
    min-height: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(22, 101, 52, 0.35), rgba(22, 101, 52, 0.04));
  }

  .madrasah-intro-year {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    font-size: 1.1rem;
  }

  .sambutan-panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .sambutan-scroll-hint {
    display: none;
  }

  .sambutan-panel--profil .sambutan-panel-card {
    min-height: 0;
  }

  .sambutan-panel-quote-scroll {
    max-height: min(360px, 52vh);
  }

  .facility-grid--profile .facility-card {
    grid-column: span 6;
  }

  .sambutan-panel-card {
    grid-template-columns: 1fr;
  }

  .sambutan-panel-visual {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
  }

  .sambutan-panel-frame {
    aspect-ratio: 3 / 4;
  }

  .sambutan-panel-identity {
    align-self: center;
  }
}

@media (max-width: 560px) {
  .sambutan-panel-visual {
    grid-template-columns: 1fr;
  }

  .sambutan-panel-frame {
    max-width: 220px;
  }

  .sambutan-panel-quote::before {
    font-size: 4rem;
    top: -6px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sambutan-panel-card {
    animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Legacy aliases (kept for compatibility) */
.sambutan-section {
  position: relative;
  overflow: hidden;
}

.sambutan-in-profil {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(22, 101, 52, 0.12);
}

.profile-layout-after-sambutan {
  margin-top: 0;
}

.sambutan-section::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 101, 52, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.sambutan-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

/* ── Aside: foto + nama ──────────────────────── */
.sambutan-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: sticky;
  top: 100px;
}

.sambutan-photo-wrap {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 4px 16px rgba(22, 101, 52, 0.08),
    0 1px 3px rgba(15, 23, 42, 0.06);
  background: var(--surface-soft);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sambutan-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
}

.sambutan-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--surface-soft);
  color: var(--text-muted);
}

.sambutan-identity {
  width: 100%;
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-align: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.sambutan-identity strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 4px;
}

.sambutan-identity span {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Body: teks sambutan ─────────────────────── */
.sambutan-body {
  padding-top: 8px;
}

.sambutan-kicker {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 12px;
  border: 1px solid rgba(22, 101, 52, 0.18);
  border-radius: 999px;
  background: rgba(22, 101, 52, 0.05);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sambutan-content {
  position: relative;
}

.sambutan-content::before {
  content: "\201C";
  position: absolute;
  top: -24px;
  left: -10px;
  font-size: 6rem;
  line-height: 1;
  color: rgba(22, 101, 52, 0.08);
  font-family: Georgia, serif;
  pointer-events: none;
  user-select: none;
}

.sambutan-content p {
  font-size: 1.02rem;
  line-height: 1.82;
  color: color-mix(in srgb, var(--text-muted) 60%, var(--text-dark));
}

.sambutan-content p:first-child {
  color: var(--text-dark);
  font-weight: 500;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 860px) {
  .sambutan-grid {
    grid-template-columns: 1fr;
  }

  .sambutan-aside {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    position: static;
  }

  .sambutan-photo-wrap {
    width: 120px;
    flex: 0 0 120px;
    aspect-ratio: 3 / 4;
  }

  .sambutan-identity {
    flex: 1;
    margin-top: 0;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .sambutan-aside {
    flex-direction: column;
    align-items: flex-start;
  }

  .sambutan-photo-wrap {
    width: 100%;
    max-width: 200px;
    flex: none;
  }

  .sambutan-content::before {
    font-size: 4rem;
    top: -16px;
    left: -6px;
  }
}

/* Article Layout Grid & Sidebar widgets */
.article-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px;
  max-width: 1200px !important;
  margin-top: 48px;
}

.article-main-col {
  max-width: 780px;
  width: 100%;
}

.article-main-col .article-body {
  padding-top: 0;
  max-width: 100%;
}

.article-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.sidebar-widget {
  background: transparent;
  padding: 0 0 28px;
  border: 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-widget:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.widget-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 6px;
  color: var(--text-dark);
  display: inline-block;
}

.widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.widget-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.widget-link:hover {
  color: var(--primary);
}

.count-badge {
  font-size: 0.75rem;
  background: var(--surface-hard);
  padding: 2px 8px;
  border-radius: 99px;
  color: var(--text-muted);
}

.popular-list {
  display: grid;
  gap: 18px;
}

.popular-item {
  display: flex;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

.popular-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1;
}

.popular-info h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-info h4:hover {
  color: var(--primary);
}

.popular-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.related-news-section {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.section-title-sm {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  gap: 12px;
}

.related-card img, .related-img-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

.related-img-placeholder {
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-weight: 750;
  font-size: 0.9rem;
}

.related-info time {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.related-info h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 4px 0 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card:hover h4 {
  color: var(--primary);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.category-tag {
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .article-layout-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  display: inline-block;
  padding: 8px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

