:root {
  --ink: #15233d;
  --muted: #627086;
  --line: #dbe3ef;
  --soft: #f5f8fc;
  --paper: #ffffff;
  --brand: #0a3f7a;
  --brand-2: #082f5f;
  --accent: #f5c400;
  --accent-2: #ffd84d;
  --blue: #1067b1;
  --danger: #dc2626;
  --success: #16a34a;
  --shadow: 0 16px 38px rgba(21, 35, 61, .10);
}

.dark {
  --ink: #eef5ff;
  --muted: #a8b6c9;
  --line: #263f63;
  --soft: #071b35;
  --paper: #08162a;
  --brand: #2d8fe3;
  --brand-2: #071f3d;
  --accent: #f5c400;
}
.principal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: 0 0 56px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.wrap { width: min(1160px, calc(100% - 32px)); margin: auto; }

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #2446a5;
  color: #fff;
  box-shadow: 0 18px 40px rgba(7, 22, 72, .22);
}

.dark .top { background: #142f75; }

.topbar {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  font-size: 14px;
  color: #dbe8ff;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 750;
}
.topbar-item svg,
.top-search button svg,
.menu svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.topbar-item svg {
  color: var(--accent);
}
.top-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  width: min(260px, 32vw);
  border: 1px solid rgba(110, 151, 255, .58);
  border-radius: 999px;
  background: rgba(26, 72, 176, .55);
  overflow: hidden;
}
.top-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  padding: 8px 12px 8px 18px;
  background: transparent;
  color: #fff;
}
.top-search input::placeholder { color: #bdd0ff; }
.top-search button {
  width: 44px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.top-search button:hover {
  background: rgba(255,255,255,.12);
}

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
  min-width: 270px;
  color: #fff;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  box-shadow: inset 0 0 0 3px rgba(245,196,0,.42);
}

.links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-weight: 750;
  font-size: 14px;
  flex-wrap: wrap;
}

.links a {
  padding: 11px 7px;
  border-radius: 8px;
  color: #eef5ff;
}

.nav-item {
  position: relative;
}

.has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.has-dropdown > a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  max-height: min(70vh, 440px);
  overflow-y: auto;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(219, 227, 239, .92);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(7, 22, 72, .22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.dropdown-menu a {
  display: block;
  padding: 9px 10px;
  color: var(--ink);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: #eef5ff;
  color: var(--brand);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.dropdown-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dark .links a { color: #eef5ff; }
.links a:hover { background: rgba(255,255,255,.12); color: var(--accent); }
.admin-link { color: var(--accent) !important; }

.menu {
  display: none;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--brand);
  font-weight: 650;
}

.hero-slider {
  position: relative;
  padding: 52px 0 96px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(66, 133, 255, .75) 0 2px, transparent 2px) 0 0 / 36px 36px,
    linear-gradient(135deg, #1e63ea 0%, #2442b6 48%, #1b3190 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: stretch;
}
.slider-panel {
  position: relative;
  min-height: 500px;
  border-radius: 28px;
}
.slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 64px 74px 120px;
  border-radius: 28px;
  overflow: hidden;
  opacity: 0;
  transform: scale(.99);
  transition: opacity .55s ease, transform .55s ease;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 19, 42, .76), rgba(9, 19, 42, .30)),
    var(--slide-image) center/cover;
  box-shadow: 0 30px 70px rgba(4, 14, 57, .30);
}
.slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.slide-content { max-width: 760px; position: relative; z-index: 1; }
.slide h1,
.slide h2 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.02;
}
.slide p { max-width: 780px; color: #edf5ff; font-size: clamp(18px, 2vw, 24px); font-weight: 700; }
.slider-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(10, 20, 38, .35);
  color: #fff;
  cursor: pointer;
  font-size: 46px;
  line-height: 1;
  transform: translateY(-50%);
}
.slider-btn:hover { background: rgba(10, 20, 38, .58); }
.slider-btn.prev { left: 24px; }
.slider-btn.next { right: 24px; }
.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 112px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  cursor: pointer;
}
.slider-dots button.active {
  width: 48px;
  background: #fff;
}
.hero-shortcuts {
  position: absolute;
  left: 70px;
  right: 70px;
  bottom: -58px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 22px 28px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(19, 34, 58, .55), rgba(44, 96, 214, .86));
  box-shadow: 0 22px 50px rgba(7, 22, 72, .28);
  backdrop-filter: blur(14px);
}
.hero-shortcuts a {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  min-height: 100px;
  color: #fff;
  text-align: center;
  font-weight: 900;
  line-height: 1.15;
}
.hero-shortcuts span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: 1px solid rgba(255,255,255,.5);
  font-size: 25px;
}
.hero-notice {
  display: flex;
  flex-direction: column;
  min-height: 500px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(101, 143, 239, .92), rgba(58, 85, 203, .92));
  box-shadow: 0 26px 62px rgba(4, 14, 57, .24);
}
.notice-media {
  min-height: 220px;
  padding: 22px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(22, 74, 182, .08), rgba(22, 74, 182, .58)),
    url('https://images.unsplash.com/photo-1588075592446-265fd1e6e76f?auto=format&fit=crop&w=900&q=80') center/cover;
  box-shadow: inset 0 0 42px rgba(255,255,255,.28);
}
.notice-media span {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  background: #3467dc;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.hero-notice h2 {
  margin: 24px 0 10px;
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.12;
}
.hero-notice p { color: #eef5ff; font-weight: 750; }
.hero-notice .btn { margin-top: auto; width: 100%; text-transform: uppercase; letter-spacing: 0; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 650;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(10, 63, 122, .18);
}

.btn:hover { background: var(--brand-2); }
.btn.light { background: var(--accent); color: #15233d; }
.btn.light:hover { background: var(--accent-2); }
.btn.ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: none;
}

section { padding: 72px 0; }
.soft { background: var(--soft); }
.compact { padding: 28px 0; }
.quick-section {
  padding: 0;
  background: var(--brand-2);
}
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.quick-link {
  min-height: 78px;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #0b477f;
  color: #fff;
  font-weight: 900;
  text-align: center;
}
.quick-link:hover { background: var(--accent); color: #15233d; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
.hero-slider .eyebrow,
.cta-band .eyebrow { color: var(--accent); }

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title h1,
.section-title h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  margin: 0;
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.greeting { display: grid; grid-template-columns: 280px 1fr 1fr; gap: 30px; align-items: stretch; }
.stats-section {
  padding: 58px 0;
}
.compact-title {
  margin-bottom: 34px;
}
.compact-title h2 {
  font-weight: 650;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card {
  min-height: 244px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding: 28px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(21, 35, 61, .09);
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 70, 162, .26);
  box-shadow: 0 22px 46px rgba(21, 35, 61, .13);
}
.stat-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #1746a2, #1d9a8a);
  color: #fff;
  box-shadow: 0 12px 26px rgba(23, 70, 162, .22);
}
.stat-icon svg,
.avatar-placeholder svg,
.reason-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stat-card strong {
  display: block;
  color: var(--brand-2);
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1;
}
.stat-card span { color: var(--brand); font-weight: 900; }
.stat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}
.principal-photo {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.photo-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(10, 63, 122, .92), rgba(8, 47, 95, .72)),
    repeating-linear-gradient(45deg, rgba(245, 196, 0, .16) 0 10px, transparent 10px 20px);
  color: #fff;
  border: 2px dashed rgba(245, 196, 0, .86);
  font-weight: 900;
}
.principal-photo .muted { margin: 12px 0 0; text-align: center; font-weight: 750; }
.list { display: grid; gap: 12px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card h3 { margin-top: 0; color: var(--brand-2); }
.dark .card h3 { color: var(--accent); }
.muted { color: var(--muted); }
.post-list {
  display: grid;
  gap: 18px;
}
.post-list-card {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.post-list-image {
  grid-column: 1;
  min-height: 178px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(10,63,122,.92), rgba(31,116,92,.76)),
    repeating-linear-gradient(45deg, rgba(245,196,0,.18) 0 10px, transparent 10px 20px);
  color: #fff;
  font-weight: 900;
  text-align: center;
}
.post-list-image img {
  width: 100%;
  height: 100%;
  min-height: 178px;
  object-fit: cover;
  border-radius: 0;
}
.post-list-body {
  grid-column: 2;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
}
.post-list-body h3 {
  margin: 0;
  color: var(--brand-2);
  font-size: 24px;
  line-height: 1.25;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}
.post-list-body .muted {
  margin: 0;
  line-height: 1.65;
}
.post-list-button {
  margin-top: 6px;
}
.article-meta {
  margin: -8px 0 18px;
}
.article-content {
  font-size: 17px;
  line-height: 1.75;
}
.article-featured-image {
  display: block;
  margin: 0 0 22px;
}
.article-featured-video,
.news-featured-video,
.post-list-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: #0f172a;
}
.article-featured-video {
  margin: 0 0 22px;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(21, 35, 61, .10);
}
.post-list-video {
  min-height: 178px;
}
.article-featured-video iframe,
.news-featured-video iframe,
.post-list-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.article-content figure {
  margin: 22px 0;
}
.article-content img {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(21, 35, 61, .10);
}
.article-content figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-align: center;
}
.article-content .video-embed,
.rich-list-content .video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 22px 0;
  overflow: hidden;
  border-radius: 8px;
  background: #0f172a;
  box-shadow: 0 12px 30px rgba(21, 35, 61, .10);
}
.article-content .video-embed iframe,
.rich-list-content .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.rich-list-content {
  line-height: 1.65;
}
.rich-list-content :first-child {
  margin-top: 0;
}
.rich-list-content :last-child {
  margin-bottom: 0;
}
.rich-list-content figure {
  margin: 14px 0;
}
.rich-list-content img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(21, 35, 61, .09);
}
.school-card p { margin: 0 0 10px; }
.feature-card span,
.schedule-card span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 8px;
  background: transparent;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}
.feature-card h3 { margin-bottom: 8px; }
.schedule-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.schedule-card {
  min-height: 178px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.schedule-card h3 { margin: 0 0 8px; color: var(--brand-2); }
.schedule-card p { margin: 0 0 8px; font-weight: 900; }
.schedule-card small { color: var(--muted); font-weight: 750; }
.full { grid-column: 1 / -1; }
.news-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 18px;
}
.featured-news {
  grid-row: span 2;
  min-height: 100%;
}
.featured-news h3 { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }
.timeline-item {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border-left: 5px solid var(--brand);
  background: var(--soft);
  border-radius: 8px;
}
.timeline-item strong { color: var(--brand-2); }
.timeline-item span { color: var(--muted); }
.accent-item { border-left-color: var(--accent); }
.gallery-card img,
.gallery-fallback {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  margin: -22px -22px 18px;
  max-width: calc(100% + 44px);
  border-radius: 8px 8px 0 0;
}
.gallery-fallback {
  background:
    linear-gradient(135deg, rgba(10, 63, 122, .90), rgba(31, 116, 92, .80)),
    repeating-linear-gradient(45deg, rgba(245,196,0,.18) 0 9px, transparent 9px 18px);
}
.cta-band {
  background: #06315f;
  color: #fff;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-inner h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; }
.cta-inner p { max-width: 680px; color: #eaf3ff; }
.page-hero {
  padding: 58px 0;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
}
.teachers-hero {
  background:
    linear-gradient(135deg, rgba(10, 63, 122, .08), rgba(245, 196, 0, .16)),
    var(--soft);
}
.teachers-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: center;
}
.teachers-hero .muted {
  max-width: 760px;
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}
.teacher-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.teacher-summary div {
  min-height: 116px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(21, 35, 61, .08);
}
.teacher-summary strong {
  color: var(--brand);
  font-size: 36px;
  line-height: 1;
}
.teacher-summary span {
  color: var(--muted);
  font-weight: 850;
}
.teacher-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}
.teacher-toolbar .pill-label {
  margin-bottom: 10px;
}
.teacher-toolbar h2 {
  margin: 0;
  color: var(--brand-2);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}
.teacher-toolbar > p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}
.teacher-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.teacher-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(21, 35, 61, .07);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.teacher-card:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 70, 162, .28);
  box-shadow: 0 18px 34px rgba(21, 35, 61, .11);
}
.teacher-photo {
  display: grid;
  place-items: center;
  min-height: 148px;
  background:
    linear-gradient(135deg, rgba(10, 63, 122, .9), rgba(29, 154, 138, .82)),
    var(--brand);
  color: #fff;
}
.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.teacher-photo span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}
.teacher-info {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
}
.teacher-heading {
  display: grid;
  gap: 8px;
  align-items: start;
}
.teacher-role {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}
.teacher-info h3 {
  margin: 7px 0 0;
  color: var(--brand-2);
  font-size: 19px;
  line-height: 1.25;
}
.teacher-nip {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.teacher-nip b,
.teacher-nip span {
  display: inline;
}
.teacher-nip b {
  color: var(--brand);
}
.teacher-nip span {
  color: var(--ink);
}
.teacher-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  border-radius: 10px;
  background: #eef5ff;
}
.teacher-meta p,
.teacher-bio {
  margin: 0;
}
.teacher-meta p {
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--soft);
  color: #334155;
  font-size: 13px;
  font-weight: 750;
}
.teacher-meta b {
  color: var(--brand-2);
}
.teacher-bio {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 650;
}
.teacher-empty {
  text-align: center;
}
.org-page {
  padding-top: 68px;
  background: #f8fafc;
}

.org-page > section {
  padding-bottom: 86px;
}

.org-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 0 0 30px;
  border-bottom: 1px solid rgba(15, 23, 42, .10);
  background: transparent;
  box-shadow: none;
}

.org-hero h1 {
  margin: 0;
  color: var(--brand-2);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
}

.org-intro {
  max-width: 860px;
  margin-top: 14px;
  color: #475569;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.75;
}

.org-intro :first-child {
  margin-top: 0;
}

.org-intro :last-child {
  margin-bottom: 0;
}

.org-hero-badge {
  width: 92px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--brand-2);
  font-size: 28px;
  font-weight: 950;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.org-section {
  margin-top: 26px;
  padding: 0;
  border: 0;
  background: transparent;
}

.org-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.org-section-head h2 {
  margin: 0;
  color: var(--brand-2);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
}

.org-board {
  display: grid;
  gap: 36px;
  min-width: 0;
}

.org-root-row {
  position: relative;
  display: grid;
  justify-items: center;
}

.org-root-row::after {
  content: "";
  width: 3px;
  height: 36px;
  margin-top: 18px;
  background: #626f83;
}

.org-branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 30px;
  align-items: start;
}

.org-branches::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: #626f83;
}

.org-branch {
  position: relative;
  display: grid;
  gap: 18px;
  min-width: 0;
  padding-top: 24px;
}

.org-branch::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  width: 3px;
  height: 42px;
  background: #626f83;
  transform: translateX(-50%);
}

.org-branch-lead {
  display: grid;
  justify-items: center;
}

.org-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: start;
  min-width: 0;
  padding: 18px;
  border: 1px solid #d7dee9;
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
}

.org-team-item {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.org-subteam {
  position: relative;
  display: grid;
  gap: 14px;
  justify-items: center;
  padding-top: 22px;
}

.org-subteam::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 22px;
  background: #626f83;
  transform: translateX(-50%);
}

.org-profile {
  width: min(100%, 320px);
  overflow: hidden;
  border: 2px solid #aeb7c4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}

.org-profile-root {
  width: min(100%, 360px);
}

.org-profile-lead {
  width: min(100%, 330px);
}

.org-profile-compact {
  width: 100%;
  max-width: 290px;
  margin-inline: auto;
}

.org-profile-head {
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 8px 12px;
  background: #63646e;
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.org-profile-body {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.org-profile-photo {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid #d1d5db;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--brand-2);
  font-size: 22px;
  font-weight: 950;
}

.org-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.org-profile-photo span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.org-profile-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.org-profile-copy strong {
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.org-profile-copy p {
  margin: 0;
  color: #374151;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.org-profile-copy small {
  color: #475569;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.org-empty {
  padding: 28px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  text-align: center;
}

.org-empty strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-2);
  font-size: 20px;
}

.org-empty p {
  margin: 0;
}

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

  .org-branches::before,
  .org-branch::before {
    display: none;
  }
}

@media (max-width: 760px) {
  .org-hero {
    grid-template-columns: 1fr;
  }

  .org-hero-badge,
  .org-root-row::after,
  .org-subteam::before {
    display: none;
  }

  .org-section-head {
    display: grid;
    align-items: start;
  }

  .org-team-grid {
    grid-template-columns: 1fr;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .org-profile {
    max-width: 100%;
  }
}
.filter-bar {
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 16px;
  margin-bottom: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.filter-bar label {
  display: grid;
  gap: 6px;
  font-weight: 650;
  min-width: 240px;
}
.filter-bar select {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
.day-heading {
  margin: 30px 0 12px;
  color: var(--brand-2);
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.schedule-table { min-width: 760px; }

.public-services {
  background: #f4f7fb;
  padding: 86px 0;
}
.center-title {
  max-width: 820px;
  margin: 0 auto 54px;
  text-align: center;
}
.pill-label {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 22px;
  border-radius: 999px;
  background: #e9f1ff;
  color: #245fe7;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}
.center-title h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.08;
}
.center-title p {
  margin: 0;
  color: #66758d;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 760;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card {
  min-height: 316px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 34px;
  padding: 40px 34px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 28px rgba(15, 30, 58, .12);
}
.service-logo {
  min-height: 74px;
  display: grid;
  place-items: center;
  font-weight: 950;
  line-height: 1;
}
.cariyanlik-logo {
  color: #e11d63;
  font-size: clamp(34px, 4vw, 46px);
}
.cariyanlik-logo::first-letter { color: #f472b6; }
.lapor-logo {
  color: #ef2929;
  font-size: clamp(36px, 4vw, 48px);
}
.halo-logo {
  width: 82px;
  height: 82px;
  border-radius: 8px 8px 18px 18px;
  background: linear-gradient(180deg, #ffe45c, #f59e0b);
  border: 3px solid #d6a300;
  color: #0f766e;
  font-size: 14px;
  text-transform: uppercase;
}
.service-card p {
  margin: 0;
  color: #65748d;
  font-weight: 800;
}
.service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}
.service-btn.pink { background: #fff0f6; color: #be185d; }
.service-btn.red { background: #fff0f0; color: #dc2626; }
.service-btn.blue { background: #eef3ff; color: #3342c6; }

.form { display: grid; gap: 14px; }
.form label {
  display: grid;
  gap: 7px;
  color: var(--brand-2);
  font-weight: 850;
}
.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.form textarea { min-height: 140px; }
.form-help {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.table th {
  background: var(--brand-2);
  color: #fff;
}

.footer {
  background: #061f40;
  color: #eaf3ff;
  padding: 44px 0 20px;
  border-top: 6px solid var(--accent);
}

.footer a { color: #eaf3ff; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.visitor-panel {
  margin-top: 30px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  text-align: center;
}
.visitor-heading {
  margin-bottom: 18px;
}
.visitor-heading span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
.visitor-heading h3 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 22px;
}
.visitor-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  justify-content: center;
}
.visitor-stat {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 142px;
  padding: 16px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
}
.visitor-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(245,196,0,.16);
  color: var(--accent);
}
.visitor-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.visitor-stat strong {
  display: block;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}
.visitor-stat small {
  color: #c7d8ed;
  font-weight: 850;
  font-size: 13px;
}
.visitor-chart {
  height: 138px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  margin-top: 18px;
  padding: 16px 14px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(3, 18, 38, .28);
}
.visitor-bar {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}
.visitor-bar span {
  width: 100%;
  min-height: 10px;
  display: block;
  align-self: end;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--accent), #2d8fe3);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.visitor-bar small {
  color: #c7d8ed;
  font-size: 10.5px;
  font-weight: 800;
}
.copyright {
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 18px;
  color: #b8c8dc;
  text-align: center;
}

.floating-social {
  position: fixed;
  left: 16px;
  top: 50%;
  z-index: 25;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
}

.floating-social a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(10, 31, 68, .22);
  transition: transform .18s ease, box-shadow .18s ease;
}

.floating-social a:hover {
  transform: translateX(4px);
  box-shadow: 0 16px 36px rgba(10, 31, 68, .30);
}

.floating-social img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 0;
}

.wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  background: var(--success);
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}

.wa img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 0;
}

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff8d9;
  color: #574505;
  border: 1px solid #f6df77;
  margin-bottom: 14px;
}

.admin-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: #061f40; color: #fff; padding: 22px; border-right: 5px solid var(--accent); }
.sidebar a { display: block; padding: 10px 0; color: #eaf3ff; }
.sidebar a:hover { color: var(--accent); }
.content { padding: 28px; min-width: 0; overflow-x: auto; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.danger { background: var(--danger); }
.danger:hover { background: #991b1b; }

@media (max-width: 980px) {
  .nav { flex-wrap: wrap; padding: 12px 0; }
  .brand { min-width: 0; }
  .topbar {
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .top-search {
    width: 100%;
    margin-left: 0;
  }
  .menu { display: inline-flex; align-items: center; justify-content: center; }
  .links {
    display: none;
    width: 100%;
    padding: 10px 0 4px;
    border-top: 1px solid var(--line);
    justify-content: stretch;
  }
  .links.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .links a {
    display: block;
    padding: 12px;
    background: var(--soft);
    color: var(--ink);
  }
  .nav-item {
    display: grid;
    gap: 6px;
  }
  .nav-item > a {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: var(--soft);
    color: var(--ink);
    border-radius: 8px;
  }
  .dropdown-menu {
    position: static;
    min-width: 0;
    display: none;
    gap: 6px;
    padding: 0 0 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: none;
  }
  .has-dropdown:hover .dropdown-menu,
  .has-dropdown:focus-within .dropdown-menu {
    display: none;
  }
  .has-dropdown.dropdown-open .dropdown-menu {
    display: grid;
    opacity: 1;
    visibility: visible;
  }
  .dropdown-menu a {
    white-space: normal;
    background: #fff;
    border: 1px solid var(--line);
  }
  .hero-slider { padding: 30px 0 64px; }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .slider-panel { min-height: 520px; }
  .slide { padding: 56px 56px 138px; }
  .hero-shortcuts {
    left: 28px;
    right: 28px;
    grid-template-columns: repeat(3, 1fr);
    bottom: -92px;
  }
  .hero-notice { min-height: auto; }
  .notice-media { min-height: 190px; }
  .quick-links,
  .stats-grid,
  .schedule-strip,
  .news-layout,
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .greeting,
  .two,
  .footer-grid,
  .admin-shell { grid-template-columns: 1fr; }
  .visitor-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sidebar { border-right: 0; border-bottom: 5px solid var(--accent); }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 22px, 1160px); }
  .topbar { display: none; }
  .nav { min-height: auto; }
  .brand strong { font-size: 15px; line-height: 1.2; }
  .brand span { width: 40px; height: 40px; flex: 0 0 40px; }
  .links.open { grid-template-columns: 1fr; }
  .hero-slider { padding: 22px 0 42px; }
  .slider-panel { min-height: 560px; }
  .slide {
    padding: 46px 24px 250px;
    border-radius: 18px;
  }
  .slide h1,
  .slide h2 { font-size: clamp(34px, 12vw, 48px); }
  .slide p { font-size: 17px; }
  .slider-btn {
    width: 48px;
    height: 48px;
    font-size: 36px;
  }
  .slider-btn.prev { left: 12px; }
  .slider-btn.next { right: 12px; }
  .slider-dots { bottom: 220px; }
  .hero-shortcuts {
    left: 16px;
    right: 16px;
    bottom: 18px;
    grid-template-columns: repeat(2, 1fr);
    padding: 16px;
  }
  .hero-shortcuts a {
    min-height: 72px;
    font-size: 13px;
  }
  .hero-shortcuts span {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
  .hero-notice {
    padding: 20px;
    border-radius: 18px;
  }
  .hero-actions,
  .cta-inner { display: grid; }
  .hero p .btn,
  .hero .btn,
  .cta-inner .btn,
  .filter-bar .btn { width: 100%; margin: 4px 0; }
  .visitor-panel {
    padding: 16px;
  }
  .visitor-strip {
    grid-template-columns: 1fr;
  }
  .visitor-stat {
    min-height: 118px;
  }
  .visitor-chart {
    height: 124px;
    gap: 6px;
    padding: 14px 10px 8px;
  }
  .post-list-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .post-list-image,
  .post-list-image img {
    min-height: 118px;
  }
  .post-list-body {
    align-content: start;
    gap: 8px;
  }
  .post-list-body h3 {
    font-size: 16px;
  }
  .post-list-body .muted {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
    line-height: 1.5;
  }
  .post-list-button {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 13px;
  }
  .agenda-item.has-image {
    grid-template-columns: 74px minmax(0, 1fr);
  }
  .agenda-item.has-image .date-box {
    grid-column: 1;
  }
  .agenda-item.has-image > div:last-child {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .agenda-thumb {
    width: 74px;
    height: 56px;
  }
  section { padding: 54px 0; }
  .section-title { display: block; }
  .org-page {
    padding-top: 42px;
  }
  .org-hero {
    grid-template-columns: 1fr;
  }
  .org-hero-badge {
    display: none;
  }
  .org-section-head {
    align-items: flex-start;
    display: grid;
  }
}

/* Beranda visual terbaru */
.front-hero {
  padding: 46px 0 72px;
  background:
    radial-gradient(circle at 12% 20%, rgba(245,196,0,.22) 0 2px, transparent 3px) 0 0 / 34px 34px,
    linear-gradient(135deg, #1746a2 0%, #2361d8 48%, #102f7a 100%);
  color: #fff;
}
.front-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
}
.front-slider {
  position: relative;
  min-height: 520px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 26px 72px rgba(6, 25, 72, .32);
}
.front-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: center;
  padding: 58px 74px;
  opacity: 0;
  transform: scale(.985);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}
.front-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.theme-school { background: linear-gradient(135deg, #0b2d68, #1f6fd8); }
.theme-learning { background: linear-gradient(135deg, #083f54, #1d9a8a); }
.theme-achievement { background: linear-gradient(135deg, #3f2868, #d6406a); }
.front-slide-copy { position: relative; z-index: 2; }
.front-slide h1,
.front-slide h2 {
  margin: 0 0 16px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
}
.front-slide p {
  max-width: 700px;
  color: #edf5ff;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 750;
}
.slide-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}

.slide-visual,
.spmb-big-visual,
.principal-image,
.image-placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  font-weight: 950;
  border: 1px solid rgba(255,255,255,.42);
  background:
    linear-gradient(135deg, rgba(255,255,255,.20), rgba(255,255,255,.06)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.14) 0 12px, transparent 12px 24px);
}
.slide-visual {
  min-height: 330px;
  border-radius: 22px;
  box-shadow: inset 0 0 70px rgba(255,255,255,.18);
}
.slider-dots { bottom: 26px; }
.hero-shortcut-panel {
  position: relative;
  z-index: 3;
  margin-top: -38px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 50px rgba(11, 38, 93, .18);
}
.hero-shortcut-panel a {
  display: grid;
  gap: 8px;
  justify-items: center;
  align-content: center;
  min-height: 96px;
  padding: 12px;
  border-radius: 14px;
  color: #12305f;
  background: #f4f7fc;
  text-align: center;
  font-weight: 900;
}
.hero-shortcut-panel span,
.reason-icon,
.achievement-icon,
.avatar-placeholder {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 950;
}
.hero-shortcut-panel span svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-shortcut-panel span svg,
.hero-shortcut-panel span svg * {
  color: #fff;
  fill: none;
  stroke: #fff;
}
.front-spmb-card {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, #5a82ee, #3150bf);
  box-shadow: 0 26px 72px rgba(6, 25, 72, .26);
}
.spmb-visual {
  min-height: 150px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin: 8px 0 28px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.spmb-icon {
  position: relative;
  width: 108px;
  height: 126px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(5, 18, 61, .24);
}
.spmb-icon::before {
  content: "";
  position: absolute;
  inset: 18px 18px auto;
  height: 10px;
  border-radius: 999px;
  background: #1746a2;
  box-shadow: 0 24px 0 #dce8ff, 0 48px 0 #dce8ff, 0 72px 0 #dce8ff;
}
.spmb-icon-top {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 52px;
  height: 29px;
  border-radius: 16px 16px 8px 8px;
  background: var(--accent);
  transform: translateX(-50%);
  box-shadow: inset 0 -8px 0 rgba(8,47,95,.16);
}
.spmb-icon-lines {
  position: absolute;
  left: -14px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #1746a2;
  box-shadow: 0 12px 24px rgba(5, 18, 61, .22);
}
.spmb-icon-check {
  position: absolute;
  right: -12px;
  bottom: -10px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 12px 24px rgba(5, 18, 61, .22);
}
.spmb-icon-check::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 13px;
  width: 16px;
  height: 9px;
  border-left: 4px solid #082f5f;
  border-bottom: 4px solid #082f5f;
  transform: rotate(-45deg);
}
.front-spmb-card h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.12;
}
.front-spmb-card p { color: #eef5ff; font-weight: 760; }
.front-spmb-card .btn { margin-top: auto; width: 100%; }
.principal-section { background: #fff; }
.principal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: stretch;
}
.principal-photo-card,
.status-card,
.news-card,
.agenda-item,
.achievement-item,
.testimonial-card,
.reason-card,
.gallery-tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.principal-photo-card {
  padding: 16px;
  text-align: center;
}
.principal-image {
  aspect-ratio: 4 / 5;
  margin-bottom: 14px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(10,63,122,.94), rgba(16,103,177,.75)),
    repeating-linear-gradient(45deg, rgba(245,196,0,.18) 0 12px, transparent 12px 24px);
}
.principal-copy {
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.principal-copy h2,
.spmb-layout h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
}
.principal-message {
  position: relative;
  margin: 8px 0 18px;
  padding: 20px 22px 20px 26px;
  border-left: 5px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: #f7faff;
  color: #334155;
}
.principal-message::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 22px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px #fff;
}
.principal-message p {
  margin: 0;
  font-size: 17px;
  line-height: 1.78;
  font-weight: 650;
}
.principal-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.principal-actions span {
  max-width: 420px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}
.status-card {
  padding: 24px;
  border-top: 5px solid var(--accent);
}
.status-card h3 { margin: 0 0 14px; color: var(--brand-2); }
.status-list p { margin: 0 0 10px; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.news-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.news-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}
.news-card h3 {
  margin: 0;
  color: var(--brand-2);
  font-size: 20px;
  line-height: 1.35;
}
.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}
.news-card img,
.news-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
}
.news-placeholder,
.gallery-photo {
  background:
    linear-gradient(135deg, rgba(10,63,122,.92), rgba(31,116,92,.76)),
    repeating-linear-gradient(45deg, rgba(245,196,0,.18) 0 10px, transparent 10px 20px);
}
.agenda-list,
.achievement-list { display: grid; gap: 14px; }
.agenda-item,
.achievement-item {
  display: grid;
  gap: 14px;
  padding: 16px;
  align-items: center;
}
.agenda-item { grid-template-columns: auto 1fr; }
.agenda-item.has-image { grid-template-columns: 92px auto 1fr; }
.achievement-item { grid-template-columns: auto 1fr; }
.agenda-item,
.achievement-item {
  color: var(--ink);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.agenda-item:hover,
.achievement-item:hover {
  transform: translateY(-2px);
  border-color: rgba(23,70,162,.36);
  box-shadow: 0 18px 36px rgba(21,35,61,.12);
}
.agenda-item strong,
.achievement-item strong {
  color: var(--brand-2);
}
.date-box {
  width: 62px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
}
.date-box span { font-size: 24px; font-weight: 950; line-height: 1; }
.date-box small { margin-top: -10px; color: var(--accent); font-weight: 900; }
.agenda-thumb {
  width: 92px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(21, 35, 61, .12);
}
.agenda-item p,
.achievement-item p,
.reason-card p,
.gallery-tile p { margin: 4px 0 0; color: var(--muted); }
.event-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
  padding: 16px;
  border-radius: 8px;
  background: #f5f8fc;
}
.event-meta p { margin: 0; }
.achievement-icon { background: #16a34a; }
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-tile {
  overflow: hidden;
}
.gallery-tile a {
  display: grid;
  height: 100%;
  color: inherit;
}
.gallery-tile a:hover strong {
  color: var(--brand);
}
.gallery-tile.large {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-tile img,
.gallery-photo {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 0;
}
.gallery-tile.large img,
.gallery-tile.large .gallery-photo { aspect-ratio: 16 / 14; }
.gallery-tile div:last-child { padding: 16px; }
.testimonial-grid,
.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.testimonial-card,
.reason-card {
  min-height: 286px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 12px;
  padding: 30px 24px;
  text-align: center;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.testimonial-card:hover,
.reason-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23,70,162,.30);
  box-shadow: 0 22px 46px rgba(21,35,61,.13);
}
.testimonial-card p {
  max-width: 330px;
  margin: 0;
  color: #334155;
  font-weight: 700;
  line-height: 1.7;
}
.testimonial-card span,
.reason-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.testimonial-card strong,
.reason-card h3 {
  color: var(--brand-2);
}
.testimonial-card small {
  color: var(--muted);
  font-weight: 750;
}
.avatar-placeholder {
  width: 58px;
  height: 58px;
  margin-bottom: 2px;
  border-radius: 18px;
  background: linear-gradient(135deg, #3342c6, #1d9a8a);
  box-shadow: 0 14px 28px rgba(51,66,198,.20);
}
.reason-card {
  border-top: 5px solid var(--accent);
}
.reason-card h3 {
  margin: 2px 0 0;
  color: var(--brand-2);
}
.reason-card p {
  max-width: 330px;
  margin: 0;
  line-height: 1.65;
}
.reason-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 2px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-2), #1746a2);
  box-shadow: 0 14px 28px rgba(8,47,95,.20);
}
.spmb-section {
  background: linear-gradient(135deg, #082f5f, #1746a2);
  color: #fff;
}
.spmb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 36px;
  align-items: center;
}
.spmb-layout p { max-width: 720px; color: #eaf3ff; font-weight: 760; }
.spmb-big-visual {
  min-height: 300px;
  border-radius: 24px;
}

.spmb-big-visual {
  width: min(100%, 520px);
  aspect-ratio: 16 / 9;
  justify-self: end;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.06)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.13) 0 12px, transparent 12px 24px);
  box-shadow: 0 22px 54px rgba(4, 18, 55, .28);
  overflow: hidden;
}
.spmb-big-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 14px;
}

.map-section {
  background: #fff;
}
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr);
  gap: 32px;
  align-items: center;
}
.map-layout h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 650;
}
.map-layout p {
  color: var(--muted);
  font-weight: 700;
}
.map-embed {
  width: 100%;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f7fc;
  box-shadow: var(--shadow);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.calendar-hero-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.calendar-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.calendar-summary {
  position: sticky;
  top: 130px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.calendar-summary h2 {
  margin: 0;
  color: var(--brand-2);
  font-size: 52px;
  line-height: 1;
}
.calendar-summary p {
  margin: 6px 0 18px;
  color: var(--muted);
  font-weight: 750;
}
.calendar-legend {
  display: grid;
  gap: 9px;
  color: #334155;
  font-size: 14px;
  font-weight: 750;
}
.calendar-dot {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 999px;
  margin-right: 8px;
}
.calendar-timeline {
  display: grid;
  gap: 28px;
}
.calendar-month h2 {
  margin: 0 0 14px;
  color: var(--brand-2);
  font-size: 26px;
}
.calendar-list {
  display: grid;
  gap: 14px;
}
.calendar-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--brand);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(21,35,61,.08);
}
.calendar-date {
  width: 68px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eef5ff;
  color: var(--brand);
}
.calendar-date strong {
  font-size: 28px;
  line-height: 1;
}
.calendar-date span {
  margin-top: -14px;
  font-weight: 900;
}
.calendar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.calendar-meta span {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.calendar-meta small {
  color: var(--muted);
  font-weight: 750;
}
.calendar-item h3 {
  margin: 0 0 6px;
  color: var(--brand-2);
}
.calendar-item p {
  margin: 0;
  color: var(--muted);
}
.calendar-item.green { border-left-color: #16a34a; }
.calendar-item.yellow { border-left-color: #f5c400; }
.calendar-item.red { border-left-color: #dc2626; }
.calendar-item.purple { border-left-color: #7c3aed; }
.calendar-dot.blue { background: var(--brand); }
.calendar-dot.green { background: #16a34a; }
.calendar-dot.yellow { background: #f5c400; }
.calendar-dot.red { background: #dc2626; }
.calendar-dot.purple { background: #7c3aed; }

@media (max-width: 980px) {
  .front-hero-grid,
  .principal-layout,
  .map-layout,
  .calendar-layout,
  .teachers-hero-grid,
  .spmb-layout { grid-template-columns: 1fr; }
  .calendar-summary { position: static; }
  .front-slide { grid-template-columns: 1fr; padding: 44px; }
  .front-slider,
  .front-spmb-card { min-height: 620px; }
  .hero-shortcut-panel,
  .news-grid,
  .testimonial-grid,
  .teacher-list,
  .reason-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-mosaic { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .front-hero { padding-top: 24px; }
  .front-slider,
  .front-spmb-card { min-height: auto; }
  .front-slide {
    position: relative;
    display: none;
    padding: 28px;
    min-height: 680px;
  }
  .front-slide.active { display: grid; }
  .slide-visual { min-height: 220px; }
  .hero-shortcut-panel,
  .news-grid,
  .testimonial-grid,
  .reason-grid,
  .teacher-list,
  .gallery-mosaic { grid-template-columns: 1fr; }
  .teacher-summary { grid-template-columns: 1fr; }
  .teacher-toolbar { display: grid; align-items: start; }
  .teacher-card { grid-template-columns: 92px minmax(0, 1fr); }
  .teacher-photo { min-height: 132px; }
  .news-card-body { padding: 14px; }
  .achievement-item { grid-template-columns: auto 1fr; }
  .gallery-tile.large { grid-column: auto; grid-row: auto; }
  .spmb-big-visual { min-height: 220px; }
}

/* Perapian tipografi beranda */
body {
  font-weight: 500;
  letter-spacing: 0;
}
.topbar {
  min-height: 38px;
  font-size: 13px;
  gap: 18px;
}
.top-search {
  width: min(300px, 28vw);
  min-width: 210px;
}
.top-search input {
  padding: 7px 10px 7px 16px;
  font-size: 14px;
}
.top-search button {
  width: 44px;
  padding: 0;
  color: #fff;
}
.nav {
  min-height: 76px;
}
.brand {
  min-width: 310px;
  gap: 12px;
}
.brand strong {
  font-size: 19px;
  line-height: 1.18;
  letter-spacing: 0;
}
.brand span {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  font-size: 18px;
}
.links {
  gap: 6px;
  font-size: 14px;
  font-weight: 750;
}
.links a {
  padding: 9px 8px;
}
.front-hero {
  padding: 42px 0 58px;
}
.front-hero-grid {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
}
.front-slider,
.front-spmb-card {
  min-height: 440px;
}
.front-slide {
  grid-template-columns: minmax(0, .96fr) minmax(300px, .84fr);
  gap: 32px;
  padding: 46px 64px 76px;
}
.front-slide h1,
.front-slide h2 {
  max-width: 460px;
  margin-bottom: 14px;
  font-size: clamp(26px, 3vw, 54px);
  line-height: 1.08;
  font-weight: 650;
}
.front-slide p {
  max-width: 470px;
  font-size: clamp(16px, 1.45vw, 18px);
  line-height: 1.75;
  font-weight: 700;
}
.eyebrow {
  font-size: 12px;
  font-weight: 650;
}
.slide-visual {
  min-height: 270px;
  font-size: 17px;
  line-height: 1.35;
}
.slider-btn {
  width: 50px;
  height: 50px;
  font-size: 34px;
}
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }
.slider-dots {
  bottom: 22px;
}
.hero-shortcut-panel {
  margin-top: 12px;
  padding: 14px;
  gap: 10px;
}
.hero-shortcut-panel a {
  min-height: 82px;
  gap: 7px;
  padding: 10px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
}
.hero-shortcut-panel span {
  width: 40px;
  height: 40px;
}
.hero-shortcut-panel span svg {
  width: 23px;
  height: 23px;
}
.front-spmb-card {
  padding: 22px;
}
.spmb-visual {
  min-height: 140px;
  font-size: 16px;
}
.front-spmb-card h2 {
  font-size: 28px;
  line-height: 1.15;
}
.front-spmb-card p {
  font-size: 16px;
  line-height: 1.65;
  font-weight: 650;
}
.btn {
  min-height: 42px;
  padding: 10px 16px;
  font-weight: 800;
  line-height: 1.2;
}
.front-slide .btn,
.front-spmb-card .btn {
  font-size: 15px;
}
.section-title h1,
.section-title h2,
.principal-copy h2,
.spmb-layout h2,
.center-title h2 {
  font-weight: 650;
  letter-spacing: 0;
}
.news-card h3,
.reason-card h3,
.status-card h3 {
  line-height: 1.25;
}

@media (max-width: 1180px) {
  .front-hero-grid {
    grid-template-columns: 1fr;
  }
  .front-slider,
  .front-spmb-card {
    min-height: 430px;
  }
  .front-spmb-card {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
  }
  .front-spmb-card .eyebrow,
  .front-spmb-card h2,
  .front-spmb-card p,
  .front-spmb-card .btn {
    grid-column: 2;
  }
  .spmb-visual {
    grid-row: 1 / span 4;
    margin-bottom: 0;
    min-height: 130px;
  }
}

@media (max-width: 980px) {
  .front-slide {
    grid-template-columns: 1fr;
    padding: 40px 48px 78px;
  }
  .front-slide h1,
  .front-slide h2,
  .front-slide p {
    max-width: 100%;
  }
  .front-slider {
    min-height: 660px;
  }
  .front-spmb-card {
    display: flex;
    min-height: auto;
  }
  .top-search {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .front-slide {
    min-height: 610px;
    padding: 28px 22px 78px;
  }
  .front-slide h1,
  .front-slide h2 {
    font-size: clamp(32px, 10vw, 42px);
  }
  .front-slide p {
    font-size: 15px;
    line-height: 1.6;
  }
  .slider-dots {
    bottom: 20px;
  }
  .slider-btn {
    top: auto;
    bottom: 14px;
    transform: none;
  }
  .slider-btn.prev { left: 18px; }
  .slider-btn.next { right: 18px; }
  .hero-shortcut-panel a {
    min-height: 76px;
    font-size: 13px;
  }
}

