/* =========================================
   CSS VARIABLES
   ========================================= */
:root {
  --color-primary: #1a7abf;
  --color-secondary: #2196f3;
  --color-accent: #ff7043;
  --color-bg: #ffffff;
  --color-surface: #e8f4fd;
  --color-text: #0d2137;
  --color-text-muted: #4a7a9b;
  --font-heading: "Nunito", sans-serif;
  --font-body: "Nunito Sans", sans-serif;
  --radius-card: 24px;
  --radius-pill: 999px;
  --radius-icon: 20px;
}

/* =========================================
   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;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* =========================================
   UTILITY
   ========================================= */
.section {
  padding: 80px 0;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-emoji {
  display: block;
  font-size: 2.2rem;
  margin-bottom: 8px;
  line-height: 1;
}
.section-label {
  display: inline-block;
  background: rgba(26, 122, 191, 0.1);
  color: var(--color-primary);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-heading);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--color-text);
}
.bg-surface {
  background: var(--color-surface);
}
.bg-bg {
  background: var(--color-bg);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: #e8601c;
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(255, 112, 67, 0.4);
}
.btn-primary:active {
  transform: scale(0.97);
}
.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.03);
  box-shadow: 0 8px 24px rgba(26, 122, 191, 0.3);
}

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.animate {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.animate.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-scale {
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.animate-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* =========================================
   NAVBAR
   ========================================= */
nav#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  padding: 12px 0;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  /* needed so the mobile dropdown positions relative to navbar */
  overflow: visible;
}
nav#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(26, 122, 191, 0.12);
  border-bottom-color: rgba(26, 122, 191, 0.08);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-circle {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  color: #fff;
  font-size: 0.88rem;
  flex-shrink: 0;
}
.nav-school-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-primary);
  line-height: 1.2;
}
.nav-school-name span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.nav-menu {
  display: flex;
  gap: 2px;
  align-items: center;
}
.nav-menu a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  padding: 7px 10px;
  border-radius: 999px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-menu a:hover {
  background: rgba(255, 112, 67, 0.08);
  color: var(--color-accent);
}
.nav-menu a.active {
  background: rgba(255, 112, 67, 0.12);
  color: var(--color-accent);
  font-weight: 700;
}
.nav-cta {
  background: var(--color-accent);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover {
  background: #e8601c;
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(255, 112, 67, 0.35);
}
.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: 2.5px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* =========================================
   FUN BAR
   ========================================= */
#fun-bar {
  background: var(--color-surface);
  height: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 999;
  margin-top: 64px;
}
.fun-ticker-wrapper {
  width: 100%;
  overflow: hidden;
}
.fun-ticker-inner {
  display: inline-flex;
  white-space: nowrap;
  animation: tickerRTL 22s linear infinite;
}
.fun-ticker-inner:hover {
  animation-play-state: paused;
}
.fun-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 28px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.fun-item i {
  font-size: 0.85rem;
}
.fun-item i.blue {
  color: #1a7abf;
}
.fun-item i.orange {
  color: #ff7043;
}
.fun-item i.green {
  color: #2e7d32;
}
.fun-item i.gold {
  color: #f57f17;
}
.fun-item i.red {
  color: #e53935;
}
.fun-separator {
  color: #ccc;
  padding: 0 6px;
}
@keyframes tickerRTL {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* =========================================
   HERO
   ========================================= */
#hero {
  position: relative;
  min-height: calc(100vh - 104px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, #e8f4fd 0%, #f0f8ff 50%, #ffffff 100%);
}
.hero-clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.cloud {
  position: absolute;
  background: #fff;
  border-radius: 50px;
  opacity: 0.85;
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 50%;
}
.cloud-1 {
  width: 200px;
  height: 60px;
  top: 10%;
  left: 4%;
  animation: floatCloud 10s ease-in-out infinite alternate;
}
.cloud-1::before {
  width: 80px;
  height: 80px;
  top: -40px;
  left: 28px;
}
.cloud-1::after {
  width: 60px;
  height: 60px;
  top: -25px;
  left: 88px;
}
.cloud-2 {
  width: 150px;
  height: 46px;
  top: 20%;
  right: 7%;
  animation: floatCloud 8s ease-in-out infinite alternate 2s;
}
.cloud-2::before {
  width: 62px;
  height: 62px;
  top: -30px;
  left: 22px;
}
.cloud-2::after {
  width: 48px;
  height: 48px;
  top: -22px;
  left: 72px;
}
.cloud-3 {
  width: 175px;
  height: 52px;
  bottom: 22%;
  left: 3%;
  animation: floatCloud 12s ease-in-out infinite alternate 1s;
}
.cloud-3::before {
  width: 70px;
  height: 70px;
  top: -34px;
  left: 26px;
}
.cloud-3::after {
  width: 54px;
  height: 54px;
  top: -22px;
  left: 84px;
}
.cloud-4 {
  width: 120px;
  height: 38px;
  bottom: 16%;
  right: 4%;
  animation: floatCloud 9s ease-in-out infinite alternate 3s;
}
.cloud-4::before {
  width: 50px;
  height: 50px;
  top: -25px;
  left: 18px;
}
.cloud-4::after {
  width: 38px;
  height: 38px;
  top: -16px;
  left: 54px;
}
.cloud-5 {
  width: 155px;
  height: 48px;
  top: 48%;
  right: 24%;
  animation: floatCloud 11s ease-in-out infinite alternate 1.5s;
  opacity: 0.45;
}
.cloud-5::before {
  width: 62px;
  height: 62px;
  top: -30px;
  left: 22px;
}
.cloud-5::after {
  width: 50px;
  height: 50px;
  top: -20px;
  left: 73px;
}
@keyframes floatCloud {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(20px) translateY(-10px);
  }
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 10;
  width: 100%;
}
.hero-emoji {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 12px;
  animation: bounceIn 0.6s ease forwards;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.15;
  margin-bottom: 14px;
  animation: fadeInUp 0.7s ease forwards;
  opacity: 0;
  animation-delay: 0.2s;
}
.hero-tagline {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 28px;
  animation: fadeInUp 0.7s ease forwards;
  opacity: 0;
  animation-delay: 0.4s;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  animation: fadeInUp 0.7s ease forwards;
  opacity: 0;
  animation-delay: 0.6s;
}
.hero-mini-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease forwards;
  opacity: 0;
  animation-delay: 0.8s;
}
.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(26, 122, 191, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(26, 122, 191, 0.2);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-family: var(--font-heading);
  font-weight: 600;
}
.hero-slider-wrap {
  position: relative;
}
.hero-slider-frame {
  border: 8px solid var(--color-primary);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 56px rgba(26, 122, 191, 0.25);
  aspect-ratio: 4/3;
  position: relative;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.hero-slide.active {
  opacity: 1;
}
.hero-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(26, 122, 191, 0.3);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
.hero-dot.active {
  background: var(--color-accent);
  width: 28px;
  border-radius: 5px;
}
.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.2s;
  font-size: 0.8rem;
}
.hero-prev {
  left: 10px;
}
.hero-next {
  right: 10px;
}
.hero-prev:hover,
.hero-next:hover {
  background: var(--color-accent);
  color: #fff;
}
.hero-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.deco-float {
  position: absolute;
  font-size: 1.6rem;
  opacity: 0.65;
  animation: floatY 3s ease-in-out infinite;
}
.deco-1 {
  top: 18%;
  right: 47%;
  animation-delay: 0s;
}
.deco-2 {
  bottom: 28%;
  left: 13%;
  animation-delay: 1s;
  font-size: 1.3rem;
}
.deco-3 {
  top: 55%;
  right: 11%;
  animation-delay: 2s;
  font-size: 1.4rem;
}
.deco-4 {
  top: 30%;
  left: 10%;
  animation-delay: 0.5s;
  font-size: 1.2rem;
}
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
  z-index: 5;
}
.hero-wave svg {
  display: block;
  width: 100%;
}
@keyframes bounceIn {
  0% {
    transform: scale(0.5) translateY(-20px);
    opacity: 0;
  }
  60% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* =========================================
   TENTANG
   ========================================= */
.tentang-row-1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 0;
}
.tentang-img {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(26, 122, 191, 0.18);
}
.tentang-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tentang-text h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 14px;
}
.tentang-text p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
  line-height: 1.8;
}
.tentang-quote {
  border-left: 4px solid var(--color-accent);
  padding-left: 16px;
  margin: 18px 0;
  font-style: italic;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-text-muted);
}
.stats-bubbles {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 48px 0;
}
.stat-bubble {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s;
}
.stat-bubble:hover {
  transform: scale(1.06) translateY(-4px);
}
.stat-bubble:nth-child(1) {
  background: #1a7abf;
}
.stat-bubble:nth-child(2) {
  background: #ff7043;
}
.stat-bubble:nth-child(3) {
  background: #2e7d32;
}
.stat-bubble:nth-child(4) {
  background: #7b1fa2;
}
.bubble-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.bubble-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
  text-align: center;
  padding: 0 8px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-heading);
}
.tentang-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.visi-misi-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vm-card {
  background: var(--color-surface);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.vm-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.vm-icon.visi {
  background: rgba(26, 122, 191, 0.15);
  color: var(--color-primary);
}
.vm-icon.misi {
  background: rgba(255, 112, 67, 0.15);
  color: var(--color-accent);
}
.vm-content h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 6px;
}
.vm-content p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.principal-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(26, 122, 191, 0.1);
  text-align: center;
}
.principal-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 4px solid var(--color-surface);
  box-shadow: 0 4px 16px rgba(26, 122, 191, 0.2);
  overflow: hidden;
}
.principal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.principal-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 4px;
}
.principal-title {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  background: rgba(26, 122, 191, 0.08);
  padding: 3px 12px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 16px;
}
.principal-quote {
  font-style: italic;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  position: relative;
}
.principal-quote::before {
  content: "\201C";
  font-size: 3rem;
  color: var(--color-accent);
  line-height: 0;
  position: relative;
  top: 12px;
  font-family: Georgia, serif;
  font-style: normal;
}

/* =========================================
   PROGRAM CARDS
   ========================================= */
.programs-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.program-card-colored {
  background: #fff;
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(26, 122, 191, 0.08);
  transition: all 0.3s ease;
  cursor: default;
}
.program-card-colored:hover {
  transform: translateY(-8px);
}
.prog-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.3s;
}
.program-card-colored:hover .prog-icon-circle {
  transform: scale(1.1) rotate(-5deg);
}
.prog-icon-circle i {
  font-size: 1.8rem;
}
.prog-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}
.prog-card-desc {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* =========================================
   FASILITAS
   ========================================= */
.facilities-subtitle {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-text);
  margin-bottom: 20px;
  text-align: center;
}
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.facility-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(26, 122, 191, 0.1);
  position: relative;
}
.facility-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.facility-card:hover img {
  transform: scale(1.06);
}
.facility-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(26, 122, 191, 0.85));
}

/* =========================================
   STRUKTUR ORG
   ========================================= */
.org-chart {
  font-family: var(--font-heading);
  overflow-x: auto;
  padding: 10px 0;
}
.org-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.org-root-wrap {
  display: flex;
  justify-content: center;
}
.org-node-root {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--color-primary);
  color: #fff;
  padding: 16px 32px;
  border-radius: 18px;
  text-align: center;
  min-width: 220px;
}
.org-node-root i {
  font-size: 1.3rem;
  color: #f9a825;
}
.org-node-root .nd-name {
  font-weight: 700;
  font-size: 0.92rem;
}
.org-node-root .nd-role {
  font-size: 0.72rem;
  opacity: 0.85;
  font-weight: 600;
}
.org-stem {
  width: 2px;
  height: 28px;
  background: rgba(26, 122, 191, 0.25);
  margin: 0 auto;
}
.org-branches {
  display: flex;
  justify-content: center;
  gap: 48px;
  position: relative;
}
.org-branches::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(25% + 20px);
  right: calc(25% + 20px);
  height: 2px;
  background: rgba(26, 122, 191, 0.2);
}
.org-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0;
}
.org-branch-stem {
  width: 2px;
  height: 28px;
  background: rgba(26, 122, 191, 0.25);
  margin: 0 auto;
}
.org-node-branch {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: var(--color-surface);
  border: 2px solid rgba(26, 122, 191, 0.2);
  padding: 12px 20px;
  border-radius: 14px;
  text-align: center;
  min-width: 180px;
}
.org-node-branch .nd-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-text);
}
.org-node-branch .nd-role {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 600;
}
.org-leaves {
  display: flex;
  gap: 16px;
  position: relative;
}
.org-leaves::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(25% + 8px);
  right: calc(25% + 8px);
  height: 2px;
  background: rgba(26, 122, 191, 0.2);
}
.org-leaf-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.org-leaf-stem {
  width: 2px;
  height: 22px;
  background: rgba(26, 122, 191, 0.25);
  margin: 0 auto;
}
.org-node-leaf {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: #fff;
  border: 2px solid rgba(26, 122, 191, 0.12);
  padding: 10px 14px;
  border-radius: 12px;
  text-align: center;
  min-width: 148px;
}
.org-node-leaf .nd-name {
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--color-text);
}
.org-node-leaf .nd-role {
  font-size: 0.68rem;
  color: var(--color-text-muted);
}

/* =========================================
   GURU CIRCLE CARDS
   ========================================= */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.guru-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}
.guru-circle-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-surface);
  box-shadow: 0 6px 24px rgba(26, 122, 191, 0.18);
  margin: 0 auto 12px;
}
.guru-circle-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guru-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 10px;
  background: rgba(26, 122, 191, 0.92);
  backdrop-filter: blur(6px);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 0 80px 80px;
}
.guru-circle-wrap:hover .guru-panel {
  transform: translateY(0);
}
.guru-panel .g-name {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 3px;
}
.guru-panel .g-subject {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
}
.fun-fact-chip {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-heading);
}
.guru-name-below {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
}
.guru-subject-below {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* =========================================
   KESISWAAN / TAB
   ========================================= */
.tab-nav-icon {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.tab-btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  background: rgba(26, 122, 191, 0.08);
  color: var(--color-text-muted);
}
.tab-btn-icon i {
  font-size: 1rem;
}
.tab-btn-icon.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(26, 122, 191, 0.3);
}
.tab-btn-icon:hover:not(.active) {
  background: rgba(26, 122, 191, 0.15);
  color: var(--color-primary);
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.activity-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 20px;
  border: 2px solid rgba(26, 122, 191, 0.08);
  box-shadow: 0 4px 16px rgba(26, 122, 191, 0.06);
  transition: all 0.3s;
}
.activity-card:hover {
  transform: translateY(-6px);
  border-color: rgba(26, 122, 191, 0.2);
  box-shadow: 0 10px 28px rgba(26, 122, 191, 0.12);
}
.activity-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.activity-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 8px;
}
.activity-desc {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}
.medal-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 2px 10px;
  border-radius: 999px;
  margin-top: 8px;
}
.medal-badge.nasional {
  background: rgba(255, 215, 0, 0.2);
  color: #b8860b;
}
.medal-badge.provinsi {
  background: rgba(160, 160, 160, 0.2);
  color: #666;
}
.medal-badge.kota {
  background: rgba(205, 127, 50, 0.2);
  color: #a05e20;
}

/* =========================================
   PRESTASI MEDAL GRID
   ========================================= */
.medals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.medal-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  border-top: 5px solid;
  transition: all 0.3s;
}
.medal-card.level-nasional {
  border-top-color: #ffd700;
}
.medal-card.level-provinsi {
  border-top-color: #c0c0c0;
}
.medal-card.level-kota {
  border-top-color: #cd7f32;
}
.medal-card:hover {
  transform: translateY(-6px);
}
.medal-card.level-nasional:hover {
  box-shadow: 0 12px 36px rgba(255, 215, 0, 0.25);
}
.medal-card.level-provinsi:hover {
  box-shadow: 0 12px 36px rgba(192, 192, 192, 0.25);
}
.medal-card.level-kota:hover {
  box-shadow: 0 12px 36px rgba(205, 127, 50, 0.25);
}
.medal-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
}
.medal-icon.nasional {
  color: #ffd700;
}
.medal-icon.provinsi {
  color: #aaaaaa;
}
.medal-icon.kota {
  color: #cd7f32;
}
.medal-year {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}
.medal-year.nasional {
  background: rgba(255, 215, 0, 0.15);
  color: #c49000;
}
.medal-year.provinsi {
  background: rgba(160, 160, 160, 0.15);
  color: #777;
}
.medal-year.kota {
  background: rgba(205, 127, 50, 0.15);
  color: #a05e20;
}
.medal-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}
.medal-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* =========================================
   BERITA
   ========================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.news-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(26, 122, 191, 0.1);
  background: #fff;
  transition: transform 0.3s;
}
.news-card:hover {
  transform: translateY(-6px);
}
.news-thumb {
  position: relative;
  overflow: hidden;
  height: 180px;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  display: block;
}
.news-card:hover .news-thumb img {
  transform: scale(1.06);
}
.news-emoji-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.92);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.news-body {
  padding: 18px 20px;
}
.news-date {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 8px;
}
.news-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.45;
}
.news-excerpt {
  font-size: 0.83rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}
.news-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.news-link:hover {
  color: var(--color-accent);
}
.news-side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.announcements-card {
  background: var(--color-surface);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(26, 122, 191, 0.08);
}
.calendar-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(26, 122, 191, 0.08);
}
.card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 18px;
}
.card-heading i {
  color: var(--color-accent);
  font-size: 1.1rem;
}
.announcement-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(26, 122, 191, 0.1);
}
.announcement-item:last-child {
  border-bottom: none;
}
.ann-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  margin-top: 7px;
}
.ann-content {
  flex: 1;
}
.ann-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.4;
}
.ann-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.ann-date {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
}
.badge-new {
  background: var(--color-accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  font-family: var(--font-heading);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
.calendar-table {
  width: 100%;
  border-collapse: collapse;
}
.calendar-table tr:nth-child(even) td {
  background: var(--color-surface);
  border-radius: 6px;
}
.calendar-table td {
  padding: 8px 10px;
  font-size: 0.82rem;
  font-family: var(--font-heading);
}
.calendar-table td:first-child {
  font-weight: 600;
  color: var(--color-text);
}
.calendar-table td:last-child {
  color: var(--color-text-muted);
  font-weight: 600;
}

/* =========================================
   GALERI
   ========================================= */
.gallery-grid {
  columns: 3;
  column-gap: 16px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 122, 191, 0.72);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-caption {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13, 33, 55, 0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#lightbox.open {
  display: flex;
}
.lb-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  text-align: center;
}
#lb-img {
  border-radius: 20px;
  max-height: 75vh;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  max-width: 100%;
}
#lb-caption {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  margin-top: 12px;
  font-size: 0.95rem;
}
.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lb-btn:hover {
  background: var(--color-accent);
}
#lb-prev {
  left: -56px;
}
#lb-next {
  right: -56px;
}
#lb-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#lb-close:hover {
  background: var(--color-accent);
}

/* =========================================
   TESTIMONI SPEECH BUBBLE
   ========================================= */
.testimonial-carousel {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.testimonial-slide {
  display: none;
}
.testimonial-slide.active {
  display: block;
}
.testimonial-bubble {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 8px 0;
}
.testi-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary);
  flex-shrink: 0;
  margin-top: 8px;
}
.speech-bubble {
  flex: 1;
  background: var(--color-surface);
  border-radius: 20px;
  border-top-left-radius: 4px;
  padding: 20px 24px;
  position: relative;
  box-shadow: 0 4px 16px rgba(26, 122, 191, 0.1);
}
.speech-bubble::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 14px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 10px solid var(--color-surface);
}
.testi-stars {
  color: #f9a825;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.testi-text {
  font-style: italic;
  font-size: 0.97rem;
  color: var(--color-text);
  margin-bottom: 14px;
  line-height: 1.7;
  font-family: var(--font-heading);
}
.testi-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary);
}
.testi-relation {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.testi-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
.t-dot.active {
  width: 12px;
  height: 12px;
}

/* =========================================
   LOKASI
   ========================================= */
.lokasi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.lokasi-map iframe {
  width: 100%;
  height: 380px;
  border: none;
  border-radius: 24px;
  display: block;
}
.lokasi-info {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(26, 122, 191, 0.1);
  border-top: 4px solid var(--color-accent);
}
.lokasi-info h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: 20px;
}
.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.info-icon.map {
  background: rgba(26, 122, 191, 0.1);
  color: var(--color-primary);
}
.info-icon.phone {
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
}
.info-icon.email {
  background: rgba(255, 112, 67, 0.1);
  color: var(--color-accent);
}
.info-icon.time {
  background: rgba(123, 31, 162, 0.1);
  color: #7b1fa2;
}
.info-text {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  line-height: 1.6;
}
.info-text strong {
  color: var(--color-text);
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}
.hours-table {
  width: 100%;
  margin-top: 8px;
}
.hours-table tr td {
  font-size: 0.82rem;
  padding: 4px 0;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
}
.hours-table tr td:first-child {
  font-weight: 600;
  color: var(--color-text);
  padding-right: 16px;
  white-space: nowrap;
}

/* =========================================
   KONTAK
   ========================================= */
.kontak-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.kontak-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wa-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #25d366;
  color: #fff;
  padding: 20px 24px;
  border-radius: 20px;
  transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}
.wa-btn:hover {
  background: #1da851;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
}
.wa-btn i {
  font-size: 2rem;
  flex-shrink: 0;
}
.wa-btn-text strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
}
.wa-btn-text span {
  font-size: 0.82rem;
  opacity: 0.9;
  font-family: var(--font-heading);
}
.contact-info-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 4px 16px rgba(26, 122, 191, 0.08);
}
.contact-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.contact-info-row:not(:last-child) {
  border-bottom: 1px solid rgba(26, 122, 191, 0.08);
}
.contact-info-row i {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}
.contact-info-row span {
  font-size: 0.88rem;
  font-family: var(--font-heading);
  color: var(--color-text-muted);
}
.social-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}
.social-btn:hover {
  background: var(--color-primary);
  color: #fff;
  transform: rotate(10deg);
}
.kontak-form-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(26, 122, 191, 0.1);
}
.kontak-form-card h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  background: #fff;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 122, 191, 0.12);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-submit {
  width: 100%;
  padding: 13px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}
.form-submit:hover {
  background: #e8601c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 112, 67, 0.35);
}

/* =========================================
   FOOTER
   ========================================= */
footer#footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  position: relative;
}
.footer-wave-top {
  line-height: 0;
  background: var(--color-surface);
}
.footer-wave-top svg {
  display: block;
  width: 100%;
}
.footer-cloud-sm {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50px;
}
.footer-cloud-sm::before,
.footer-cloud-sm::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}
.fc-sm-1 {
  width: 90px;
  height: 28px;
  top: 12px;
  left: 8%;
}
.fc-sm-1::before {
  width: 36px;
  height: 36px;
  top: -18px;
  left: 12px;
}
.fc-sm-1::after {
  width: 28px;
  height: 28px;
  top: -12px;
  left: 40px;
}
.fc-sm-2 {
  width: 60px;
  height: 20px;
  top: 18px;
  left: 48%;
}
.fc-sm-2::before {
  width: 24px;
  height: 24px;
  top: -12px;
  left: 8px;
}
.fc-sm-2::after {
  width: 20px;
  height: 20px;
  top: -9px;
  left: 26px;
}
.fc-sm-3 {
  width: 80px;
  height: 24px;
  top: 10px;
  right: 10%;
}
.fc-sm-3::before {
  width: 32px;
  height: 32px;
  top: -16px;
  left: 10px;
}
.fc-sm-3::after {
  width: 26px;
  height: 26px;
  top: -11px;
  left: 34px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 10px;
}
.footer-logo-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 10px;
  font-family: var(--font-heading);
}
.footer-address {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  font-family: var(--font-heading);
}
.footer-col-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  margin-bottom: 14px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 0.84rem;
  font-family: var(--font-heading);
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #fff;
}
.footer-links a::before {
  content: "›";
  font-size: 1rem;
  opacity: 0.5;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.65);
}
.footer-contact-item i {
  flex-shrink: 0;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.8);
}
.footer-social-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s;
}
.footer-social-icon:hover {
  background: var(--color-accent);
  color: #fff;
  transform: rotate(10deg);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  padding: 20px 24px;
  font-size: 0.82rem;
  font-family: var(--font-heading);
  color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* --- Tablet (768px–1023px) --- */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav-inner {
    gap: 10px;
  }
  .nav-menu a {
    font-size: 0.72rem;
    padding: 6px 7px;
  }
  .programs-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .teachers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .medals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid {
    columns: 2;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tentang-row-1,
  .tentang-row-2 {
    gap: 28px;
  }
}

/* --- Mobile (≤767px) --- */
@media (max-width: 767px) {
  /* Navbar mobile */
  .nav-toggle {
    display: flex;
  }
  .nav-cta {
    display: none;
  }
  .nav-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0 16px;
    box-shadow: 0 8px 24px rgba(26, 122, 191, 0.14);
    border-top: 1px solid rgba(26, 122, 191, 0.08);
    z-index: 998;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu a {
    font-size: 0.92rem;
    padding: 11px 24px;
    border-radius: 0;
    white-space: normal;
  }
  .nav-menu a:hover,
  .nav-menu a.active {
    background: rgba(255, 112, 67, 0.08);
    padding-left: 28px;
  }

  /* General */
  .section {
    padding: 56px 0;
  }
  .container {
    padding: 0 16px;
  }
  #fun-bar {
    margin-top: 64px;
  }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 56px 16px 56px;
    gap: 24px;
  }
  .hero-slider-wrap {
    order: -1;
  }
  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  .deco-3,
  .deco-4 {
    display: none;
  }
  .cloud-3,
  .cloud-5 {
    display: none;
  }

  /* Tentang */
  .tentang-row-1,
  .tentang-row-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Stat Bubbles */
  .stats-bubbles {
    gap: 16px;
    padding: 36px 0;
  }
  .stat-bubble {
    width: 100px;
    height: 100px;
  }
  .bubble-number {
    font-size: 1.5rem;
  }
  .bubble-label {
    font-size: 0.6rem;
  }

  /* Program & Fasilitas */
  .programs-grid-6 {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .facilities-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Org Chart */
  .org-branches {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .org-branches::before {
    display: none;
  }

  /* Guru */
  .teachers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .guru-circle-wrap {
    width: 120px;
    height: 120px;
  }

  /* Kesiswaan */
  .activity-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Prestasi */
  .medals-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Berita */
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-side-grid {
    grid-template-columns: 1fr;
  }

  /* Galeri */
  .gallery-grid {
    columns: 2;
    column-gap: 10px;
  }

  /* Testimonial */
  .testimonial-bubble {
    flex-direction: column;
    align-items: center;
  }
  .speech-bubble::before {
    display: none;
  }
  .speech-bubble {
    border-radius: 20px;
  }

  /* Kontak */
  .lokasi-grid {
    grid-template-columns: 1fr;
  }
  .kontak-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Lightbox */
  #lb-prev {
    left: 4px;
  }
  #lb-next {
    right: 4px;
  }
}

/* --- Layar sangat kecil (≤480px) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }
  .section {
    padding: 48px 0;
  }

  /* Navbar brand – potong subtitle di layar kecil */
  .nav-school-name span {
    display: none;
  }

  /* Hero */
  .hero-inner {
    padding: 48px 14px 48px;
  }
  .hero-title {
    font-size: clamp(1.4rem, 8vw, 2rem);
  }
  .hero-tagline {
    font-size: 0.9rem;
  }
  .mini-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  /* Stat bubbles – 2 kolom */
  .stats-bubbles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 28px 0;
  }
  .stat-bubble {
    width: 100%;
    height: 110px;
    border-radius: 20px;
  }

  /* Programs & Fasilitas – 1 kolom */
  .programs-grid-6 {
    grid-template-columns: 1fr;
  }
  .facilities-grid {
    grid-template-columns: 1fr;
  }

  /* Guru – 1 kolom */
  .teachers-grid {
    grid-template-columns: 1fr;
  }

  /* Kesiswaan & Prestasi – 1 kolom */
  .activity-grid {
    grid-template-columns: 1fr;
  }
  .medals-grid {
    grid-template-columns: 1fr;
  }

  /* Galeri – 1 kolom */
  .gallery-grid {
    columns: 1;
  }

  /* Section header */
  .section-header h2 {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  /* Buttons */
  .btn {
    font-size: 0.88rem;
    padding: 11px 22px;
  }
}
