/* ============================================================
       CSS VARIABLES
    ============================================================ */
:root {
  --color-primary: #2c2c2c;
  --color-secondary: #555555;
  --color-accent: #0066cc;
  --color-bg: #ffffff;
  --color-surface: #f9f9f9;
  --color-text: #333333;
  --color-text-muted: #888888;
  --font-heading: "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

/* ============================================================
       RESET & BASE
    ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* ============================================================
       UTILITY
    ============================================================ */
.section {
  padding: 96px 0;
}
.section.bg-surface {
  background: var(--color-surface);
}
.section.bg-bg {
  background: var(--color-bg);
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 0;
}

/* ============================================================
       BUTTONS
    ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: #111;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn-primary:active {
  transform: scale(0.98);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.02);
}

/* ============================================================
       SECTION HEADER MINIMAL (rule + label — dipakai semua section)
    ============================================================ */
.section-header-minimal {
  margin-bottom: 48px;
}
.section-rule {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  margin-bottom: 10px;
}
.section-label-text {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* ============================================================
       SCROLL ANIMATIONS — cubic-bezier sleek, dipicu saat section masuk viewport
    ============================================================ */
.animate {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.animate.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-up {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.animate-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
       HERO ENTRY — animasi stagger saat halaman pertama load
    ============================================================ */
@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes heroInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.hero-label {
  animation: heroIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.hero-title {
  animation: heroIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.hero-desc {
  animation: heroIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}
.hero-cta {
  animation: heroIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
}
.hero-stats-row {
  animation: heroIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.54s both;
}
.hero-right {
  animation: heroInRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

/* ============================================================
       BACK TO TOP
    ============================================================ */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 990;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s,
    color 0.2s;
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#back-to-top:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ============================================================
       NAVBAR — paling minimal: hanya teks, garis bawah tipis saat scroll
    ============================================================ */
nav#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.98);
  transition: all 0.3s ease;
}
nav#navbar.scrolled {
  border-bottom: 1px solid #e0e0e0;
  padding: 14px 0;
  background: rgba(255, 255, 255, 1);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}
.nav-menu {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-menu a {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-accent);
}
/* NO ::after underline animation — hanya perubahan warna */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-primary);
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================================
       HERO — editorial split 55/45, TIDAK ADA slider
    ============================================================ */
#hero {
  padding-top: 148px;
  padding-bottom: 88px;
  background: var(--color-bg);
}
.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 72px;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.hero-eyebrow-line {
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--color-accent);
  flex-shrink: 0;
}
.hero-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
}
.hero-title {
  font-size: clamp(2.8rem, 5.2vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--color-primary);
  margin-bottom: 22px;
}
.hero-title em {
  font-style: normal;
  color: var(--color-accent);
}
.hero-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 400px;
  line-height: 1.8;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.hero-stats-row {
  display: flex;
  gap: 0;
  border-top: 1px solid #e8e8e8;
  padding-top: 28px;
}
.hero-stat-item {
  flex: 1;
  padding: 0 20px;
  border-left: 1px solid #e8e8e8;
}
.hero-stat-item:first-child {
  padding-left: 0;
  border-left: none;
}
.hero-stat-val {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 5px;
  letter-spacing: -0.02em;
}
.hero-stat-lbl {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  font-weight: 500;
}
/* Kanan — foto */
.hero-photo-wrapper {
  position: relative;
}
.hero-photo-frame {
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  z-index: 0;
  pointer-events: none;
}
.hero-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 4px;
  position: relative;
  z-index: 1;
}
.hero-accred-badge {
  position: absolute;
  bottom: 20px;
  left: -16px;
  z-index: 2;
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 10px 16px;
  font-size: 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.4;
}
.hero-accred-badge small {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-bottom: 2px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero-year-tag {
  position: absolute;
  top: 20px;
  right: -16px;
  z-index: 2;
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 14px;
  font-size: 0.7rem;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ============================================================
       TENTANG — pull quote besar + layout asimetris
    ============================================================ */
#tentang {
  padding: 96px 0;
}
.pullquote {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-primary);
  max-width: 800px;
  margin: 0 auto 64px;
  line-height: 1.5;
  text-align: center;
}
.tentang-grid {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 64px;
  align-items: start;
}
.tentang-text h3 {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 28px;
}
.tentang-text h3:first-child {
  margin-top: 0;
}
.tentang-text p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}
.tentang-text .sejarah-p {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 24px;
}
.tentang-right {
  text-align: center;
}
.principal-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 16px;
}
.principal-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}
.principal-title-line {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--color-accent);
  margin: 8px auto 4px;
}
.principal-title {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.principal-quote {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.7;
  text-align: left;
  border-left: 2px solid #e0e0e0;
  padding-left: 16px;
}

/* ============================================================
       STATISTIK — angka raksasa TANPA card
    ============================================================ */
.stats-raw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.stats-raw-item {
  text-align: center;
}
.raw-number {
  display: block;
  font-size: 5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.04em;
}
.raw-number-underline {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--color-accent);
  margin: 12px auto;
}
.raw-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  font-weight: 600;
}
.accreditation-line {
  margin-top: 56px;
  text-align: center;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding: 16px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ============================================================
       PROGRAM — numbered list style, BUKAN card grid
    ============================================================ */
.programs-list {
  border-bottom: 1px solid #e0e0e0;
}
.program-row {
  display: grid;
  grid-template-columns: 80px 1fr 48px;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid #e0e0e0;
  transition: background 0.2s;
}
.program-row:hover {
  background: #fafafa;
}
.prog-number {
  font-size: 0.72rem;
  font-weight: 600;
  color: #ccc;
  letter-spacing: 1px;
}
.prog-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
  transition: color 0.2s;
}
.program-row:hover .prog-body h3 {
  color: var(--color-accent);
}
.prog-body p {
  font-size: 0.87rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.prog-icon-col {
  text-align: right;
  color: var(--color-accent);
  font-size: 1.3rem;
}
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.facility-item img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 4px;
}
.facility-caption {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* ============================================================
       STRUKTUR ORGANISASI — CSS tree, clean
    ============================================================ */
.org-chart {
  overflow-x: auto;
  padding-bottom: 16px;
}
.org-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.org-node {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 10px 16px;
  font-size: 0.82rem;
  text-align: center;
  min-width: 150px;
  max-width: 200px;
  position: relative;
}
.org-node.root {
  border-top: 2px solid var(--color-accent);
}
.org-node .node-name {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.82rem;
}
.org-node .node-role {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.org-children {
  display: flex;
  gap: 16px;
  margin-top: 0;
  position: relative;
}
.org-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* connector lines */
.org-connector-v {
  width: 1px;
  height: 32px;
  background: #e0e0e0;
}
.org-connector-h-wrap {
  display: flex;
  align-items: flex-start;
  position: relative;
}
.org-connector-h {
  position: absolute;
  top: 0;
  left: 50%;
  right: 50%;
  height: 1px;
  background: #e0e0e0;
}
/* Simpler approach — just use top border on children row */
.org-level {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: center;
}
.org-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.org-sub .org-node {
  min-width: 130px;
  font-size: 0.78rem;
}
.org-grandchildren {
  display: flex;
  gap: 12px;
  margin-top: 0;
}
.org-grandchild {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.org-grandchild .org-node {
  min-width: 120px;
  font-size: 0.75rem;
}

/* ============================================================
       GURU — grayscale foto, hover berwarna. BUKAN flip/tilt
    ============================================================ */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.teacher-card {
  cursor: default;
}
.teacher-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}
.teacher-card:hover img {
  filter: grayscale(0%);
}
.teacher-card .t-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 12px;
  margin-bottom: 2px;
  transition: color 0.2s;
}
.teacher-card:hover .t-name {
  color: var(--color-accent);
}
.teacher-card .t-subject {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 4px;
}
.teacher-card .t-since {
  font-size: 0.72rem;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ============================================================
       KESISWAAN — tabs minimal + 3×2 card grid
    ============================================================ */
.tab-nav {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 32px;
}
.tab-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-muted);
  padding: 0 0 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.tab-btn.active {
  font-weight: 600;
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}
.tab-panel {
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.tab-panel.active {
  display: block;
  opacity: 1;
}
.kesiswaan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.kes-card {
  border: 1px solid #e0e0e0;
  padding: 20px;
  transition: border-color 0.2s;
}
.kes-card:hover {
  border-color: var(--color-accent);
}
.kes-card .kes-icon {
  font-size: 1rem;
  color: var(--color-accent);
  margin-bottom: 10px;
}
.kes-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}
.kes-card p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================
       PRESTASI — numbered list / tabel sederhana, BUKAN card
    ============================================================ */
.achievements-table {
  width: 100%;
}
.ach-row {
  display: grid;
  grid-template-columns: 40px 16px 1fr auto 80px;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
}
.ach-index {
  font-size: 0.72rem;
  color: #ccc;
  font-weight: 600;
}
.ach-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ach-dot.nasional {
  background: #ffb800;
}
.ach-dot.provinsi {
  background: #aaaaaa;
}
.ach-dot.kota {
  background: #cd7f32;
}
.ach-body {
}
.ach-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}
.ach-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.ach-year {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: right;
  white-space: nowrap;
}
.ach-legend {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.ach-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ach-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ============================================================
       BERITA — editorial layout (1 featured + 2 small). BUKAN 3 card seragam
    ============================================================ */
.news-editorial {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 32px;
  align-items: start;
}
.news-featured {
  cursor: pointer;
}
.news-featured img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 4px;
  transition: opacity 0.3s;
}
.news-featured:hover img {
  opacity: 0.88;
}
.news-category-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 16px;
  margin-bottom: 8px;
}
.news-featured h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 8px;
}
.news-featured .news-excerpt {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.news-meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.news-small-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.news-small {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.news-small:first-child {
  border-top: 1px solid #f0f0f0;
}
.news-small img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.news-small h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 4px;
  transition: color 0.2s;
}
.news-small:hover h3 {
  color: var(--color-accent);
}
.news-small .ns-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
/* Announcements strip */
.announcements-strip {
  margin-top: 40px;
}
.ann-header {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.ann-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #f0f0f0;
  font-size: 0.88rem;
}
.ann-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: #cc2200;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.ann-title {
  flex: 1;
  color: var(--color-text);
}
.ann-date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}
/* Calendar */
.calendar-minimal {
  margin-top: 40px;
}
.cal-header {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.cal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.cal-table tr:nth-child(odd) {
  background: var(--color-surface);
}
.cal-table td {
  padding: 10px 12px;
  color: var(--color-text);
}
.cal-table td:last-child {
  color: var(--color-text-muted);
  text-align: right;
}

/* ============================================================
       GALERI — uniform 3×3 grid, BUKAN masonry
    ============================================================ */
.gallery-uniform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-overlay span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#lightbox.open {
  display: flex;
}
#lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}
#lightbox-caption {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-top: 12px;
  letter-spacing: 0.5px;
}
.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 8px;
}
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  color: #fff;
}
.lb-close {
  top: 20px;
  right: 24px;
}
.lb-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}
.lb-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

/* ============================================================
       TESTIMONI — satu quote fade in-place, BUKAN carousel
    ============================================================ */
.testimonial-wrapper {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.testi-quote {
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.65;
  margin-bottom: 32px;
  transition: opacity 0.4s ease;
}
.testi-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: opacity 0.4s ease;
}
.testi-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.testi-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}
.testi-relation {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.testi-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.t-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  padding: 0;
}
.t-dot.active {
  background: var(--color-accent);
  width: 8px;
  height: 8px;
}

/* ============================================================
       LOKASI
    ============================================================ */
.lokasi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.lokasi-map iframe {
  width: 100%;
  height: 360px;
  border: none;
  border-radius: 4px;
  display: block;
}
.lokasi-info-item {
  margin-bottom: 20px;
}
.lokasi-info-item .info-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.lokasi-info-item .info-val {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}
.hours-table {
  width: 100%;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  color: var(--color-text);
}
.hours-row:last-child {
  border-bottom: none;
}
.hours-day {
  color: var(--color-text-muted);
}

/* ============================================================
       KONTAK — flat inputs (underline only)
    ============================================================ */
.kontak-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.kontak-info-item {
  margin-bottom: 20px;
}
.kontak-info-item .ci-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.kontak-info-item .ci-val {
  font-size: 0.9rem;
  color: var(--color-text);
}
.kontak-info-item .ci-val a {
  color: var(--color-accent);
}
.social-row {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}
.social-row a {
  color: #888;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.social-row a:hover {
  color: var(--color-primary);
}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--color-accent);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #ccc;
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.btn-submit {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
}
.btn-submit:hover {
  background: #111;
  transform: scale(1.02);
}

/* ============================================================
       FOOTER — super compact strip, satu-satunya section gelap
    ============================================================ */
footer#footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.6);
}
.footer-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand-text {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}
.footer-links-row {
  display: flex;
  gap: 24px;
}
.footer-links-row a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}
.footer-links-row a:hover {
  color: #fff;
}
.footer-social-row {
  display: flex;
  gap: 16px;
}
.footer-social-row a {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
  font-size: 1rem;
}
.footer-social-row a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}

/* ============================================================
       RESPONSIVE
    ============================================================ */
@media (max-width: 767px) {
  /* Navbar */
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 12px;
    display: none;
  }
  .nav-menu.open {
    display: flex;
  }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-right {
    order: -1;
  }
  .hero-photo {
    aspect-ratio: 16/9;
  }
  .hero-photo-frame {
    display: none;
  }
  .hero-accred-badge {
    left: 12px;
    bottom: 12px;
  }
  .hero-year-tag {
    top: 12px;
    right: 12px;
  }
  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }
  .hero-desc {
    max-width: 100%;
  }

  /* Tentang */
  .tentang-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Stats */
  .stats-raw-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .raw-number {
    font-size: 3.5rem;
  }

  /* Program */
  .program-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .prog-number,
  .prog-icon-col {
    display: none;
  }
  .facilities-grid {
    grid-template-columns: 1fr;
  }

  /* Guru */
  .teachers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Kesiswaan */
  .kesiswaan-grid {
    grid-template-columns: 1fr;
  }
  .tab-nav {
    gap: 16px;
    overflow-x: auto;
  }

  /* Prestasi */
  .ach-row {
    grid-template-columns: 16px 1fr auto;
    gap: 10px;
  }
  .ach-index {
    display: none;
  }
  .ach-year {
    display: none;
  }

  /* Berita */
  .news-editorial {
    grid-template-columns: 1fr;
  }
  .news-small img {
    width: 72px;
    height: 72px;
  }

  /* Galeri */
  .gallery-uniform-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Lokasi */
  .lokasi-grid {
    grid-template-columns: 1fr;
  }

  /* Kontak */
  .kontak-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Footer */
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 4px;
  }

  /* Section */
  .section {
    padding: 64px 0;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .teachers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .kesiswaan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-uniform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
