/* =====================================================================
   SMK TERPADU LAMPANG - Stylesheet Utama
   Warna utama & aksen diatur dari halaman admin (Pengaturan Website).
   ===================================================================== */

:root {
  --primary: #0f766e;
  --accent: #f59e0b;

  --ink: #0a2230;
  --ink-soft: #2f4453;
  --muted: #5c6f7f;
  --line: #e2ebe9;
  --bg: #f5f9f9;
  --white: #ffffff;
  --dark: #06262b;

  --radius-lg: 26px;
  --radius: 18px;
  --radius-sm: 12px;

  --shadow-sm: 0 2px 10px rgba(6, 38, 43, 0.05);
  --shadow: 0 28px 60px -38px rgba(6, 38, 43, 0.55);
  --shadow-lg: 0 40px 90px -50px rgba(6, 38, 43, 0.6);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1180px;

  --primary-tint: rgba(15, 118, 110, 0.09);
  --accent-tint: rgba(245, 158, 11, 0.14);
}

@supports (color: color-mix(in srgb, red 10%, white)) {
  :root {
    --primary-tint: color-mix(in srgb, var(--primary) 10%, white);
    --accent-tint: color-mix(in srgb, var(--accent) 16%, white);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.024em;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: #23180a;
}

.container {
  width: min(var(--container), calc(100% - 44px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 999;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
}

.skip-link:focus {
  left: 0;
}

/* ------------------------------------------------------------------
   TOMBOL & UTILITAS
------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn svg {
  flex: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 16px 28px -16px rgba(6, 38, 43, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px -18px rgba(6, 38, 43, 0.6);
}

.btn-accent {
  background: var(--accent);
  color: #26190a;
  box-shadow: 0 16px 30px -16px rgba(245, 158, 11, 0.8);
}

.btn-accent:hover {
  transform: translateY(-2px);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--primary);
  transition: gap 0.2s ease;
}

.link-arrow:hover {
  gap: 12px;
}

.btn-block {
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.78);
}

.eyebrow-light::before {
  background: var(--accent);
}

.section {
  padding: 88px 0;
  position: relative;
}

.section-tint {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(238, 246, 245, 0.9));
  border-block: 1px solid var(--line);
}

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

.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.section-title {
  font-size: clamp(1.6rem, 2.5vw, 2.35rem);
  max-width: 620px;
}

.section-lead {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 620px;
}

.empty-state {
  padding: 34px;
  background: #fff;
  border: 1px dashed #c9dad7;
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

/* ------------------------------------------------------------------
   TOP BAR & HEADER
------------------------------------------------------------------- */

.topbar {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  position: relative;
  z-index: 51;
}

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

.topbar-info {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.topbar-info a,
.topbar-hours {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.topbar-info svg {
  color: var(--accent);
  flex: none;
}

.topbar-info a:hover {
  color: #fff;
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-social a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.topbar-social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 18px 40px -34px rgba(6, 38, 43, 0.7);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  color: var(--primary);
  flex: none;
}

.brand-photo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  border: 1px solid var(--line);
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.brand-text strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text small {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-tint);
}

.nav-link.is-active {
  color: var(--primary);
  font-weight: 700;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-mobile-extra {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.header-cta {
  padding: 11px 18px;
  font-size: 13.5px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ------------------------------------------------------------------
   HERO
------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  min-height: clamp(520px, 76vh, 700px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 84px 0 132px;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition: opacity 0.9s ease, transform 1.2s ease, visibility 0.9s;
  background-image:
    linear-gradient(102deg, rgba(4, 30, 34, 0.94) 8%, rgba(4, 30, 34, 0.74) 48%, rgba(4, 30, 34, 0.42)),
    var(--img);
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  position: relative;
  z-index: 1;
}

.hero-inner {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(2rem, 4.5vw, 3.7rem);
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.hero p {
  max-width: 600px;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--container), calc(100% - 44px));
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(4, 30, 34, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-dot {
  width: 26px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}

.hero-dot.is-active {
  width: 44px;
  background: var(--accent);
}

.hero-arrows {
  display: flex;
  gap: 8px;
}

.hero-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(4, 30, 34, 0.46);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: var(--accent);
  color: #241809;
  border-color: transparent;
  transform: translateY(-2px);
}

/* ------------------------------------------------------------------
   STATISTIK
------------------------------------------------------------------- */

.stats-band {
  position: relative;
  z-index: 5;
  margin-top: -72px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 235, 233, 0.9);
}

.stat {
  padding: 18px 10px;
  text-align: center;
  border-radius: var(--radius);
  transition: background 0.25s ease, transform 0.25s ease;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat:hover {
  background: var(--primary-tint);
  transform: translateY(-2px);
}

.stat strong {
  display: block;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* ------------------------------------------------------------------
   LAYOUT SPLIT
------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 66px);
}

.split-reverse .split-media {
  order: 2;
}

.split-body p {
  color: var(--muted);
  font-size: 15.5px;
}

.split-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 26px;
}

.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: -18px -18px auto auto;
  width: 55%;
  height: 55%;
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent);
  opacity: 0.35;
  z-index: -1;
}

.media-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: #fff;
  border-radius: 16px;
  padding: 12px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  line-height: 1.15;
}

.media-badge strong {
  display: block;
  font-size: 24px;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.media-badge span {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.media-frame-portrait img {
  aspect-ratio: 4 / 5;
}

.portrait-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--primary), #0a4a4a 70%);
  color: #fff;
  text-align: center;
  padding: 30px;
}

.portrait-initials {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.35);
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 16px;
}

.portrait-fallback strong {
  font-size: 17px;
}

.portrait-fallback small {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 11px;
  margin-top: 22px;
}

.check-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 500;
}

.check {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  margin-top: 2px;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.mini-stats strong {
  display: block;
  font-size: 22px;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.mini-stats span {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

.signature {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.signature strong {
  display: block;
  font-size: 15px;
}

.signature small {
  color: var(--muted);
  font-size: 13px;
}

/* ------------------------------------------------------------------
   KARTU IKON / KEUNGGULAN
------------------------------------------------------------------- */

.icon-tile {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--primary-tint);
  color: var(--primary);
  flex: none;
}

.icon-tile-sm {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.icon-tile-xs {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.icon-tile-light {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--accent);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.feature-card h3 {
  font-size: 17px;
  margin: 18px 0 8px;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ------------------------------------------------------------------
   PROGRAM KEAHLIAN
------------------------------------------------------------------- */

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

.program-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.program-media {
  position: relative;
  overflow: hidden;
  flex: none;
}

.program-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.program-card:hover .program-media img {
  transform: scale(1.05);
}

.program-body {
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.program-media img,
.news-media img,
.article-cover {
  object-position: center 36%;
}

.program-body .icon-tile {
  margin-bottom: 16px;
}

.program-body h3 {
  font-size: 18.5px;
  margin-bottom: 9px;
}

.program-body h3 a:hover {
  color: var(--primary);
}

.program-body p {
  color: var(--muted);
  font-size: 14.5px;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  transition: gap 0.2s ease;
}

.card-link:hover {
  gap: 12px;
}

/* ------------------------------------------------------------------
   BERITA
------------------------------------------------------------------- */

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

.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.news-media {
  position: relative;
  display: block;
  overflow: hidden;
  flex: none;
}

.news-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card:hover .news-media img {
  transform: scale(1.05);
}

.chip {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  backdrop-filter: blur(6px);
}

.news-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-date {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}

.news-body h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.news-body h3 a:hover {
  color: var(--primary);
}

.news-body p {
  color: var(--muted);
  font-size: 14.5px;
  flex: 1;
}

/* ------------------------------------------------------------------
   GALERI
------------------------------------------------------------------- */

.gallery-grid,
.gallery-grid-large {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: #dbe7e5;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 20px;
  color: #fff;
  background: linear-gradient(180deg, rgba(4, 30, 34, 0) 35%, rgba(4, 30, 34, 0.88));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay {
  opacity: 1;
}

.gallery-cat {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.gallery-overlay strong {
  font-size: 15.5px;
  line-height: 1.35;
}

/* ------------------------------------------------------------------
   TESTIMONI
------------------------------------------------------------------- */

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

.testimonial-card {
  position: relative;
  margin: 0;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.quote-mark {
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 12px;
}

.testimonial-card blockquote {
  margin: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.testimonial-card figcaption strong {
  display: block;
  font-size: 14.5px;
}

.testimonial-card figcaption small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.avatar-initials {
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------------
   CTA BAND
------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 160% at 10% 10%, #12807a 0%, #0a4a4a 45%, #05282d 100%);
  color: #fff;
  padding: 62px 0;
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cta-band::before {
  width: 420px;
  height: 420px;
  right: -120px;
  top: -160px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.28), transparent 68%);
}

.cta-band::after {
  width: 320px;
  height: 320px;
  left: -140px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-inner h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  color: #fff;
  margin-bottom: 10px;
  max-width: 640px;
}

.cta-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  font-size: 15px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex: none;
}

.cta-note {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

.cta-note strong {
  color: #fff;
  font-size: 14px;
}

/* ------------------------------------------------------------------
   HEADER HALAMAN (PAGE HERO)
------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  color: #fff;
  background:
    radial-gradient(110% 150% at 100% 0%, rgba(245, 158, 11, 0.18), transparent 55%),
    linear-gradient(120deg, #0a3f45, #0a2b31 60%, #061f24);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.35;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  color: #fff;
  margin: 18px 0 12px;
  max-width: 820px;
}

.page-hero p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15.5px;
}

.page-hero-compact {
  padding: 56px 0 46px;
}

.page-hero-compact h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
}

.page-hero-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.page-hero-row h1 {
  margin-top: 0;
}

.page-hero-row p {
  margin-top: 6px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* ------------------------------------------------------------------
   TOOLBAR & FILTER
------------------------------------------------------------------- */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chips-center {
  justify-content: center;
  margin-bottom: 34px;
}

.chip-filter {
  display: inline-flex;
  align-items: center;
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip-filter:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.chip-filter.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  min-width: 280px;
}

.search-form input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  min-width: 0;
}

.search-form button {
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  cursor: pointer;
}

.result-note {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.result-note a {
  color: var(--primary);
  font-weight: 600;
}

/* ------------------------------------------------------------------
   GURU
------------------------------------------------------------------- */

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.teacher-grid-wide {
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.teacher-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.teacher-avatar {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--primary), #0a4a4a);
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.teacher-photo {
  width: 82px;
  height: 82px;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
}

.teacher-card h3 {
  font-size: 15.5px;
  line-height: 1.4;
}

.teacher-card p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

.teacher-card small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

/* ------------------------------------------------------------------
   VISI MISI
------------------------------------------------------------------- */

.vision-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
}

.vision-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.vision-card h3 {
  font-size: 19px;
  margin: 18px 0 10px;
}

.vision-card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.mission-list {
  list-style: none;
  display: grid;
  gap: 11px;
}

.mission-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.mission-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ------------------------------------------------------------------
   PROSE (ARTIKEL & HALAMAN)
------------------------------------------------------------------- */

.prose {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.prose h2,
.prose h3 {
  margin: 28px 0 12px;
  color: var(--ink);
}

.prose h2 {
  font-size: 1.4rem;
}

.prose h3 {
  font-size: 1.15rem;
}

.prose p {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.prose ul {
  list-style: none;
  padding-left: 0;
}

.prose ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

.prose ol {
  list-style: decimal;
}

.prose ol li {
  margin-bottom: 9px;
  padding-left: 4px;
}

.prose a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose img {
  border-radius: var(--radius);
  margin: 6px auto 22px;
}

.prose blockquote {
  margin: 0 0 20px;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  background: var(--accent-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--ink);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14.5px;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.prose th {
  background: var(--primary-tint);
}

/* ------------------------------------------------------------------
   HALAMAN DETAIL + SIDEBAR
------------------------------------------------------------------- */

.layout-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.article-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 42px);
  overflow: hidden;
}

.article-cover {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 26px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.article-meta span:first-child {
  color: var(--accent);
  font-weight: 700;
}

.article-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.article-share a {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 12.5px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.article-share a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.article-nav {
  margin-top: 24px;
}

.article-card .btn-outline {
  border-color: var(--line);
  color: var(--primary);
  background: #fff;
}

.article-card .btn-outline:hover {
  background: var(--primary-tint);
}

.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--primary-tint);
}

.article-cta strong {
  display: block;
  font-size: 16px;
}

.article-cta span {
  font-size: 13.5px;
  color: var(--muted);
}

.aside {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 96px;
}

.aside-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.aside-title {
  font-size: 16px;
  margin-bottom: 14px;
}

.aside-card p {
  font-size: 14px;
  color: var(--muted);
}

.aside-card-accent {
  background: linear-gradient(155deg, #0f6f68, #0a4045);
  border-color: transparent;
  color: #fff;
}

.aside-card-accent .aside-title,
.aside-card-accent p {
  color: #fff;
}

.aside-card-accent p {
  color: rgba(255, 255, 255, 0.78);
}

.aside-list {
  list-style: none;
  display: grid;
  gap: 4px;
}

.aside-list a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  margin: 0 -10px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}

.aside-list a:hover {
  background: var(--primary-tint);
  color: var(--primary);
}

.related-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.related-list a {
  display: flex;
  gap: 12px;
  align-items: center;
}

.related-list img {
  width: 68px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
}

.related-list small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 3px;
}

.related-list strong {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  display: block;
}

.related-list a:hover strong {
  color: var(--primary);
}

.info-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.info-list strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.info-list span {
  font-size: 14px;
  color: var(--ink-soft);
}

.steps-list {
  list-style: none;
  display: grid;
  gap: 18px;
}

.steps-list li {
  display: flex;
  gap: 13px;
}

.steps-list li > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.steps-list strong {
  display: block;
  font-size: 14px;
}

.steps-list p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ------------------------------------------------------------------
   FORMULIR
------------------------------------------------------------------- */

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 38px);
}

.form-title {
  font-size: 21px;
  margin-bottom: 6px;
}

.form-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
}

.req {
  color: #dc2626;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: #fbfdfd;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #fff;
  box-shadow: 0 0 0 3px var(--primary-tint);
}

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: #ef4444;
  background-color: #fff8f8;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6f7f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

.form-note {
  margin: 20px 0;
  font-size: 12.5px;
  color: var(--muted);
}

.alert {
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
  border: 1px solid transparent;
}

.alert strong {
  display: block;
  margin-bottom: 4px;
}

.alert ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.alert-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.alert-success {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #065f46;
}

.success-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 44px);
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #bbf7d0;
}

.success-card h2 {
  font-size: 23px;
  margin-bottom: 10px;
}

.success-card > p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 20px;
}

.success-card .check-list {
  max-width: 560px;
  margin: 0 auto 24px;
  text-align: left;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.success-actions .btn-outline {
  border-color: var(--line);
  color: var(--primary);
  background: #fff;
}

/* ------------------------------------------------------------------
   KONTAK
------------------------------------------------------------------- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  font-size: 15.5px;
  margin: 16px 0 6px;
}

.contact-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.contact-card a:hover {
  color: var(--primary);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 26px;
  align-items: start;
}

.contact-aside {
  display: grid;
  gap: 18px;
}

.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}

/* ------------------------------------------------------------------
   PAGINASI
------------------------------------------------------------------- */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 42px;
}

.page-link {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.page-link.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.page-dots {
  color: var(--muted);
  padding: 0 4px;
}

/* ------------------------------------------------------------------
   FOOTER
------------------------------------------------------------------- */

.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 0;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-brand p {
  margin: 16px 0 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13.5px;
  line-height: 1.7;
}

.brand-light .brand-text strong {
  color: #fff;
}

.brand-light .brand-text small {
  color: rgba(255, 255, 255, 0.55);
}

.brand-light .brand-mark {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 9px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-links,
.footer-contact {
  list-style: none;
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13.5px;
  line-height: 1.6;
}

.footer-contact svg {
  color: var(--accent);
  flex: none;
  margin-top: 3px;
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  font-size: 12.5px;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ------------------------------------------------------------------
   TOMBOL MENGAMBANG
------------------------------------------------------------------- */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 18px 30px -14px rgba(37, 211, 102, 0.75);
  transition: transform 0.2s ease;
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.04);
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ------------------------------------------------------------------
   LIGHTBOX
------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(3, 18, 22, 0.92);
  backdrop-filter: blur(6px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox figure {
  margin: 0;
  max-width: min(1080px, 100%);
  text-align: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 14px;
  margin: 0 auto;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}

.lightbox figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-nav:hover {
  background: var(--primary);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

/* ------------------------------------------------------------------
   ANIMASI MUNCUL
------------------------------------------------------------------- */

/* Animasi hanya aktif ketika JavaScript tersedia (html.js) agar
   seluruh konten tetap terlihat jika JavaScript diblokir. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-slide,
  .hero-card,
  .program-media img,
  .news-media img,
  .gallery-item img {
    transition: none;
  }
}

/* ------------------------------------------------------------------
   RESPONSIF
------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 47;
    width: min(340px, 86vw);
    height: 100%;
    height: 100dvh;
    margin: 0;
    padding: 92px 24px 30px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    box-shadow: -20px 0 60px -30px rgba(6, 38, 43, 0.6);
    transform: translateX(105%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
  }

  .nav-open .main-nav {
    transform: none;
  }

  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 46;
    background: rgba(4, 24, 27, 0.5);
    backdrop-filter: blur(2px);
  }

  .nav-link {
    padding: 14px 16px;
    font-size: 15.5px;
    border-radius: 12px;
  }

  .nav-link.is-active::after {
    display: none;
  }

  .nav-mobile-extra {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .nav-mobile-admin {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    padding: 8px;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 48;
  }

  .nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header-cta {
    display: none;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .program-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .teacher-grid-wide {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .layout-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  .topbar-hours {
    display: none;
  }

  .hero-slider {
    min-height: 560px;
  }

  .hero-slide {
    padding: 64px 0 128px;
  }

  .hero-controls {
    bottom: 84px;
  }

  .stats-band {
    margin-top: -58px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 14px;
    gap: 8px;
  }

  .stat + .stat {
    border-left: 0;
  }

  .stat:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .split,
  .vision-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-reverse .split-media {
    order: 0;
  }

  .media-frame-portrait img,
  .portrait-fallback {
    aspect-ratio: 16 / 10;
  }

  .section {
    padding: 64px 0;
  }

  .gallery-grid,
  .gallery-grid-large {
    grid-template-columns: repeat(2, 1fr);
  }

  .teacher-grid,
  .teacher-grid-wide {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-form {
    min-width: 0;
    width: 100%;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 620px) {
  .container {
    width: calc(100% - 32px);
  }

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 15.5px;
  }

  .topbar-info {
    gap: 14px;
    font-size: 12px;
  }

  .topbar-social {
    display: none;
  }

  .hero-slider {
    min-height: 540px;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-controls {
    bottom: 76px;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
  }

  .stats-band {
    margin-top: -44px;
  }

  .stat strong {
    font-size: 1.45rem;
  }

  .stat span {
    font-size: 11.5px;
  }

  .section {
    padding: 54px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
  }

  .feature-grid,
  .program-grid,
  .news-grid,
  .gallery-grid,
  .gallery-grid-large,
  .teacher-grid,
  .teacher-grid-wide,
  .contact-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-overlay {
    opacity: 1;
    background: linear-gradient(180deg, rgba(4, 30, 34, 0) 40%, rgba(4, 30, 34, 0.86));
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .media-frame::before {
    display: none;
  }

  .article-card {
    padding: 20px;
  }

  .wa-float {
    width: 52px;
    height: 52px;
    right: 14px;
    bottom: 14px;
  }

  .to-top {
    right: 14px;
    bottom: 76px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}
