
/* ============================================================
   SDN 4 SROBYONG - Main CSS (public/css/app.css)
   ============================================================ */

/* ─── CSS Variables ──────────────────────────────────────── */
:root {
  --primary:        #0B1F3B;
  --primary-light:  #153D73;
  --primary-xlight: #DBEAFE;
  --accent:         #F9D98B;
  --accent-dark:    #DFA24A;
  --bs-warning:     #F9D98B;
  --bs-warning-rgb: 249,217,139;
  --bs-primary:     #0B1F3B;
  --bs-primary-rgb: 11,31,59;
  --white:          #FFFFFF;
  --gray-50:        #F9FAFB;
  --gray-100:       #F3F4F6;
  --gray-200:       #E5E7EB;
  --gray-600:       #4B5563;
  --gray-700:       #374151;
  --text:           #1F2937;
  --radius:         12px;
  --radius-lg:      20px;
  --shadow:         0 4px 24px rgba(0,0,0,.08);
  --shadow-hover:   0 8px 32px rgba(0,0,0,.14);
  --transition:     all .3s ease;
  --icon-color:     #2B63B8;
  --brand-youtube:  #dc2626;
  --brand-whatsapp: #16a34a;
  --brand-tiktok:   #0b0b0b;
  --brand-email:    #2563eb;
}

/* ─── Base ───────────────────────────────────────────────── */
* { box-sizing: border-box; }
body {
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; }
h1 { color: #1e3a8a; }
h2 { color: #1e3a8a; }
p.subtitle { color: #334155; }
.hero-section .hero-title { color: #ffffff; }
.hero-title--single { white-space: nowrap; }
@media (max-width: 575.98px) {
  .hero-title--single { white-space: normal; }
}

.hero-section .hero-title .text-warning { color: #FFD84D; }
.hero-section .hero-subtitle {
  margin-bottom: 20px; color: rgba(255,255,255,0.85); }

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
body:not(.admin-body) .bi { color: var(--icon-color); }

/* ─── Navbar ─────────────────────────────────────────────── */
.topbar-info {
  background: #ffffff;
  color: var(--gray-700);
  font-size: 12px;
  padding: 8px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1001;
  box-shadow: 0 2px 10px rgba(26,58,107,.06);
}
.topbar-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  width: max-content;
  animation: topbarMarquee 18s linear infinite;
  will-change: transform;
}
.topbar-content {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 48px;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-700);
}
.topbar-item .bi {
  color: #2B63B8 !important;
  font-size: 13px;
}
@keyframes topbarMarquee {
  0% { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-50%,0,0); }
}
@media (max-width: 768px) {
  .topbar-info { font-size: 11px; }
  .topbar-content { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .topbar-track { animation: none; }
}

#mainNavbar {
  box-shadow: 0 2px 16px rgba(26,58,107,.08);
  transition: var(--transition);
  padding: 10px 0;
  z-index: 999;
  top: 36px;
}
#mainNavbar.scrolled {
  box-shadow: 0 4px 24px rgba(26,58,107,.16);
  padding: 6px 0;
}
.navbar-brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  line-height: 1.2;
}
.navbar-brand-tagline {
  font-size: 11px;
  color: var(--gray-600);
  font-weight: 400;
}
.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 14px;
  color: var(--gray-700);
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-light);
  background: var(--primary-xlight);
}
.dropdown-menu-custom {
  border: none;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
}
.dropdown-menu-custom .dropdown-item {
  border-radius: 8px;
  font-size: 14px;
  padding: 8px 14px;
  transition: var(--transition);
}
.dropdown-menu-custom .dropdown-item .bi {
  color: var(--primary-light) !important;
}
.dropdown-menu-custom .dropdown-item:hover {
  background: var(--primary-xlight);
  color: var(--primary-light);
}
.btn-cta {
  background: var(--accent);
  color: var(--primary);
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}
.btn-cta:hover {
  background: var(--accent-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217,119,6,.4);
}
.btn-outline-primary {
  color: #0B1F3B;
  border-color: #0B1F3B;
}
.btn-outline-primary:hover {
  background: #0B1F3B;
  border-color: #0B1F3B;
  color: #fff;
}
.btn-navy {
  background: #0B1F3B;
  color: #fff;
  border: none;
}
.btn-navy:hover {
  background: #153D73;
  color: #fff;
}
.btn-navy .bi { color: #fff !important; }

/* ─── Section Labels & Titles ────────────────────────────── */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 10px;
}
.section-label-light {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 8px;
}
.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.2;
}
.section-desc {
  color: var(--gray-600);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Hero Section ───────────────────────────────────────── */
.hero-section {
  background: #ffffff;
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-section::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 0;
  background: transparent;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-layer {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  background-color: #0b1320;
  filter: brightness(0.75) saturate(0.95);
  transform: scale(1.04);
  animation: heroBgFade 18s infinite;
  animation-timing-function: ease-in-out;
  will-change: opacity, transform;
  z-index: 0;
}
.hero-bg-1 { background-image: url("/img/gedung_hero.jpeg"); animation-delay: 0s; }
.hero-bg-2 { background-image: url("/img/lapangan.jpeg"); animation-delay: 6s; }
.hero-bg-3 { background-image: url("/img/gedung_profil.jpeg"); animation-delay: 12s; }
@keyframes heroBgFade {
  0% { opacity: 0; transform: scale(1.04); }
  8% { opacity: 1; transform: scale(1.01); }
  33% { opacity: 1; transform: scale(1.01); }
  41% { opacity: 0; transform: scale(1.04); }
  100% { opacity: 0; transform: scale(1.04); }
}


.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.75) 55%, rgba(0,0,0,.8) 100%);
  z-index: 1;
}
.hero-content {
  min-height: calc(90vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 64px 0 56px;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: -24px;
}

.hero-title-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  text-align: center;
}


.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.2);
  color: #E5E7EB;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.hero-badge .bi { color: var(--accent) !important; }
.hero-title {
  font-size: clamp(56px, 6vw, 70px);
  font-weight: 700;
  color: #F8FAFC;
  line-height: 1.2;
  letter-spacing: 0.5px;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  text-align: center;
  text-shadow: 0 8px 30px rgba(0,0,0,.45);
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.hero-title .hero-title-main {
  -webkit-text-stroke: 1px rgba(255,255,255,.9);
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.hero-title-accent { margin-left: 12px; }
.hero-title .text-warning { color: #FCD34D; opacity: .9; }
.hero-subtitle {
  font-size: 22px;
  color: rgba(255,255,255,.95);
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin: 0;
  max-width: 720px;
  line-height: 1.6;
  text-shadow: 0 6px 20px rgba(0,0,0,.7);
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
}
.hero-actions .btn {
  border-radius: 12px;
  padding: 11px 26px;
  font-weight: 600;
  box-shadow: none;
  min-width: 170px;
  justify-content: center;
  display: inline-flex;
  align-items: center;
}
.hero-actions .btn-warning {
  background: var(--accent);
  color: var(--primary);
  border: none;
}
.hero-actions .btn-warning:hover {
  background: var(--accent-dark);
  color: white;
  box-shadow: 0 4px 12px rgba(217,119,6,.4);
}
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  padding: 16px 32px;
}
.hero-stat-item { text-align: center; padding: 0 20px; }
.hero-stat-number { font-size: 1.8rem; font-weight: 800; color: var(--accent); line-height: 1; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 4px; }
.hero-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,.2); }
.hero-scroll {
  position: absolute; bottom: 80px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}
.hero-scroll-icon { color: rgba(255,255,255,.6); font-size: 1.4rem; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; line-height: 0; z-index: 1; pointer-events: none; }
.hero-wave svg { display: block; width: 100%; height: 72px; }
.hero-wave path { fill: #ffffff; }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ─── Sambutan ───────────────────────────────────────────── */
.section-sambutan { background: var(--gray-50); padding: 72px 0; }
.sambutan-img-wrapper { position: relative; display: inline-block; }
.sambutan-img {
  width: 100%;
  max-width: 300px;
  height: 340px;
  object-fit: cover;
  border-radius: 20px;
  border: 6px solid white;
  box-shadow: 0 16px 48px rgba(26,58,107,.2);
}
.sambutan-badge {
  position: absolute;
  bottom: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(26,58,107,.3);
}
.sambutan-quote {
  position: relative;
  padding: 28px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15,23,42,.08);
}
.sambutan-quote-icon {
  font-size: 3.5rem;
  color: var(--accent);
  opacity: .15;
  position: absolute;
  top: 0; left: 0;
  line-height: 1;
}
.sambutan-text { font-size: 15px; color: var(--gray-600); line-height: 1.8; font-style: normal; }
.sambutan-nama strong { display: block; color: var(--primary); font-size: 16px; }
.sambutan-nama span { font-size: 13px; color: var(--gray-600); }

/* ─── Stats ──────────────────────────────────────────────── */
.section-stats { padding: 0; }
.stats-wrapper {
  background: linear-gradient(135deg, #0B1F3B 0%, #153D73 55%, #0A1A33 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: -24px 0 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 28px rgba(30,58,138,.28);
}
.stat-item {
  text-align: center;
  padding: 32px 16px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-item:last-child { border-right: none; }
.stat-icon { font-size: 2rem; color: rgba(255,255,255,.75); margin-bottom: 8px; }
.stat-number { font-size: 2.4rem; font-weight: 800; color: #E0F2FE; line-height: 1; }
.stat-label { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 4px; }

/* ─── Prestasi Unggulan (Beranda) ───────────────────────── */
.section-prestasi {
  background: linear-gradient(135deg, #0B1F3B 0%, #153D73 55%, #0A1A33 100%);
  padding: 72px 0;
}
.section-prestasi .prestasi-medali {
  color: var(--accent) !important;
}
.section-prestasi .prestasi-medali i {
  color: var(--accent) !important;
}
.section-prestasi .btn-warning {
  background: var(--accent);
  color: var(--primary);
  border: none;
}
.section-prestasi .btn-warning:hover {
  background: var(--accent-dark);
  color: white;
  box-shadow: 0 4px 12px rgba(217,119,6,.4);
}

.section-program,
.section-berita,
.section-galeri,
.section-kontak {
  padding: 72px 0;
}
.section-berita { background: #F8FAFC; }

/* ─── Program Cards ──────────────────────────────────────── */
.program-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  height: 100%;
}
.program-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--primary-xlight);
}
.program-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.program-icon--blue   { background: #DBEAFE; color: #2563EB; }
.program-icon--red    { background: #FEE2E2; color: #DC2626; }
.program-icon--green  { background: #DCFCE7; color: #16A34A; }
.program-icon--purple { background: #F3E8FF; color: #9333EA; }
.program-icon--orange { background: #FEF3C7; color: #D97706; }
.program-icon--teal   { background: #CCFBF1; color: #0D9488; }
.program-title { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.program-desc  { font-size: 14px; color: var(--gray-600); line-height: 1.6; margin: 0; }

/* ─── Cards Berita ───────────────────────────────────────── */
.card-berita {
  border: none;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.card-berita:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.card-berita-img { position: relative; height: 180px; overflow: hidden; border-radius: 14px 14px 0 0; }
.card-berita-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .4s ease; }
.card-berita:hover .card-berita-img img { transform: scale(1.06); }
.card-berita-kategori {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary-light); color: white;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 50px;
}
.card-berita-meta { font-size: 12px; color: var(--gray-600); margin-bottom: 8px; }
.card-berita-title { font-size: 15px; font-weight: 700; color: #0B1F3B; line-height: 1.4; margin-bottom: 8px; }
.card-berita-excerpt { font-size: 13px; color: var(--gray-600); line-height: 1.6; }
.berita-toolbar { display: flex; justify-content: center; }
.berita-search {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 10px;
  display: flex; gap: 10px; align-items: center;
  box-shadow: var(--shadow);
  max-width: 720px; width: 100%;
}
.berita-search .bi { color: var(--gray-600); }
.berita-search .form-control {
  border: none;
  box-shadow: none;
}
.berita-search .form-control:focus { box-shadow: none; }

/* ─── Galeri ─────────────────────────────────────────────── */
.galeri-item {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--gray-100);
}
.galeri-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.galeri-item:hover img { transform: scale(1.08); }
.galeri-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,58,107,.85) 0%, transparent 60%);
  opacity: 0;
  background-color: #0b1320;
  transition: var(--transition);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px;
}
.galeri-overlay--always {
  opacity: 1;
  background: linear-gradient(to top, rgba(26,58,107,.6) 0%, rgba(26,58,107,.12) 60%);
}
.galeri-item:hover .galeri-overlay { opacity: 1; }
.galeri-overlay-content { text-align: center; color: white; }
.galeri-overlay-title {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.galeri-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 3rem;
  background: rgba(0,0,0,.3);
}
.galeri-play-btn .bi { color: #fff !important; }

/* ─── Prestasi ───────────────────────────────────────────── */
.prestasi-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; gap: 16px; align-items: flex-start;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.prestasi-card:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.prestasi-medali { font-size: 2rem; }
.prestasi-medali--emas    { color: #FCD34D; }
.prestasi-medali--perak   { color: #E5E7EB; }
.prestasi-medali--perunggu{ color: #D97706; }
.prestasi-kegiatan { font-size: 14px; font-weight: 700; color: white; margin-bottom: 4px; }
.prestasi-siswa { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 8px; }

/* ─── Card Prestasi (halaman prestasi) ───────────────────── */
.card-prestasi {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.card-prestasi:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.card-prestasi-top {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.prestasi-medali-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: white;
}
.prestasi-medali-badge--emas   i { color: #FCD34D; }
.prestasi-medali-badge--perak  i { color: #E5E7EB; }
.prestasi-medali-badge--perunggu i { color: #D97706; }
.prestasi-tahun { font-size: 13px; color: rgba(255,255,255,.7); }
.card-prestasi-body {
  overflow-x: hidden; padding: 20px; }
.prestasi-nama-kegiatan { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.prestasi-nama-siswa { font-size: 13px; color: var(--gray-600); margin-bottom: 12px; }
.badge-peringkat { background: #FEF3C7; color: #D97706; }
.badge-tingkat   { background: var(--primary-xlight); color: var(--primary-light); }
.badge-bidang    { background: #DCFCE7; color: #16A34A; }

/* ─── Guru Cards ─────────────────────────────────────────── */
.headmaster-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
}
.card-guru {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  position: relative;
}
.card-guru:hover {
  box-shadow: 0 20px 50px rgba(11,31,59,.28);
  transform: translateY(-4px);
}
.card-guru:active,
.card-guru:focus-within {
  box-shadow: 0 24px 60px rgba(11,31,59,.32);
  transform: translateY(-2px);
}
.guru-card-top {
  height: 72px;
  background: linear-gradient(180deg, #EAF3FF 0%, #DBEAFE 100%);
  position: relative;
}
.guru-status-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: #22C55E;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.guru-status-badge--off {
  background: #DC2626;
}
.guru-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  position: relative;
  margin: -42px auto 6px;
}
.guru-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.guru-info { padding: 10px 16px 6px; }
.guru-nama  { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.guru-jabatan {
  display: inline-block;
  background: var(--primary-xlight);
  color: var(--primary-light);
  font-size: 11px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
}
.guru-mapel, .guru-pendidikan {
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.guru-mapel + .guru-pendidikan { margin-left: 14px; }
.guru-actions { padding: 12px 16px 18px; }
.guru-actions .btn { width: 120px; }

.guru-toolbar {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow);
}
.guru-search { position: relative; flex: 1; }
.guru-search .bi {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--gray-600);
}
.guru-search .form-control {
  padding-left: 36px;
  border-radius: 12px;
  border-color: var(--gray-200);
}
.guru-status {
  width: 180px;
  border-radius: 12px;
  border-color: var(--gray-200);
}

/* ─── Guru Modal ────────────────────────────────────────── */
.guru-modal {
  position: fixed; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  z-index: 9999;
}
.guru-modal.is-open { display: flex; }
.guru-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
}
.guru-modal-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  max-width: 840px;
  width: calc(100% - 32px);
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  z-index: 1;
}
.guru-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #334155;
  font-size: 20px;
  display: grid; place-items: center;
  cursor: pointer;
}
.guru-modal-content {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: center;
}
.guru-modal-left { padding: 8px; }
.guru-modal-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  padding: 4px;
  background: #e2e8f0;
  margin-bottom: 10px;
}
.guru-modal-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.guru-modal-name { font-size: 22px; font-weight: 800; color: #0B1F3B; margin-bottom: 4px; }
.guru-modal-meta { color: #2563EB; font-weight: 600; margin-bottom: 8px; }
.guru-modal-status {
  display: inline-block;
  background: #DCFCE7;
  color: #15803D;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
.guru-modal-section { margin-top: 10px; }
.guru-modal-title { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #64748b; margin-bottom: 8px; text-transform: uppercase; }
.guru-modal-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; color: #334155; }
.guru-modal-row strong { color: #0B1F3B; }
.guru-modal-right {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  display: flex; align-items: center; justify-content: center;
}
.guru-modal-right img {
  width: 100%;
  max-width: 260px;
  border-radius: 12px;
  object-fit: cover;
}
@media (max-width: 768px) {
  .guru-modal-content { grid-template-columns: 1fr; }
  .guru-modal-right { order: -1; }
}

/* ─── Filter Buttons ─────────────────────────────────────── */
.btn-filter {
  background: white;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  margin: 4px;
  transition: var(--transition);
  cursor: pointer;
}
.btn-filter:hover, .btn-filter.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ─── Page Header ────────────────────────────────────────── */
.page-header {
  background: transparent;
  padding: 60px 0 50px;
  text-align: center;
}
.page-header--hero {
  background-color: #0B1F3B;
  background-image: url("/img/gedung_hero.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: none;
  min-height: 340px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 92px 0 80px;
  overflow: hidden;
}
.page-header--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.75) 55%, rgba(0,0,0,.8) 100%);
  z-index: 0;
  pointer-events: none;
}
.page-header--hero .container { position: relative; z-index: 1; }
.page-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #F8FAFC;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.25);
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
}
.page-header-subtitle {
  color: rgba(255,255,255,.86);
  font-size: 1.05rem;
  margin: 6px 0 14px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.page-header--simple {
  background: #F8FAFC;
  border-bottom: 1px solid rgba(15,23,42,.08);
  padding: 48px 0 40px;
}
.page-header--simple .page-header-title { color: #0B1F3B; }
.page-header--simple .breadcrumb-item a { color: #475569; }
.page-header--simple .breadcrumb-item a:hover { color: #0B1F3B; }
.page-header--simple .breadcrumb-item.active { color: var(--primary); }
.page-header--simple .breadcrumb-item + .breadcrumb-item::before { color: #94A3B8; }
.page-header-title {
  font-size: clamp(2.2rem, 4.5vw, 3.1rem);
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
  text-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.page-header .breadcrumb-item a { color: rgba(255,255,255,.7); }
.page-header .breadcrumb-item a:hover { color: white; }
.page-header .breadcrumb-item.active { color: var(--accent); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ─── Berita Detail ─────────────────────────────────────── */
.berita-detail-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
}
.berita-detail-section { background: #f8fafc; }
.berita-article {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  padding: 28px;
}
.berita-cover {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}
.berita-cover img { width: 100%; height: auto; display: block; }
.berita-content { color: #334155; line-height: 1.9; }
.berita-content p {
  margin: 0 0 1rem;
}
.berita-content p:last-child {
  margin-bottom: -2px;
}
.berita-sidebar {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  padding: 20px;
}

/* ─── Kontak ─────────────────────────────────────────────── */
.kontak-info-box {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  height: 100%;
}
.kontak-item, .kontak-info-item {
  display: flex; gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.kontak-icon, .kontak-info-icon {
  width: 40px; height: 40px;
  background: var(--primary-xlight);
  color: var(--primary-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.map-wrapper { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.map-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: auto;
}
.map-wrapper--fill {
  height: 320px;
  min-height: 320px;
  max-height: 320px;
  background: #fff;
}
.map-wrapper--fill iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 992px) {
  .map-wrapper--fill {
    height: 360px;
    min-height: 360px;
    max-height: 360px;
  }
}
.map-wrapper--tall { height: 100%; min-height: 320px; }
.map-wrapper--tall iframe { height: 100%; }
.map-link {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  background: #fff;
  color: #0B1F3B;
  border: 1px solid rgba(11,31,59,.2);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
}
.map-link:hover { background: #0B1F3B; color: #fff; }
.map-link .bi { color: inherit !important; }

.kontak-sosmed {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.kontak-sosmed-link {
  width: 44px; height: 44px;
  background: #F1F5F9;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #0B1F3B;
  font-size: 1.1rem;
  transition: var(--transition);
}
.kontak-sosmed-link .bi { color: inherit !important; }
.kontak-sosmed-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(21,61,115,.25);
}

.kontak-social-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 0;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.kontak-social-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #1F2937;
  color: #fff;
  font-weight: 600;
}
.kontak-social-head .bi { color: #fff !important; }
.kontak-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}
.kontak-social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid currentColor;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  background: #fff;
}
.kontak-social-pill .bi { color: inherit !important; }
.kontak-social-pill:hover { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(15,23,42,.08); }
.kontak-social-pill.is-blue { background: #2563eb; border-color: #2563eb; color: #fff; }
.kontak-social-pill.is-red { background: var(--brand-youtube); border-color: var(--brand-youtube); color: #fff; }
.kontak-social-pill.is-green { background: var(--brand-whatsapp); border-color: var(--brand-whatsapp); color: #fff; }
.kontak-social-pill.is-dark { background: var(--brand-tiktok); border-color: var(--brand-tiktok); color: #fff; }

.contact-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f7f9ff 100%);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 16px 36px rgba(11,31,59,.10);
  position: relative;
  overflow: hidden;
}
.contact-hero--emphasis {
  border: 2px solid rgba(37,211,102,.35);
  box-shadow: 0 20px 44px rgba(11,31,59,.14);
  background: linear-gradient(135deg, #ffffff 0%, #f0fff7 100%);
  padding: 32px;
  border-radius: 20px;
}
.contact-hero--emphasis .contact-badge {
  background: #E9FFF3;
  border-color: rgba(37,211,102,.35);
  color: #0f5132;
}
.contact-hero--emphasis .wa-panel-btn {
  box-shadow: 0 12px 24px rgba(37,211,102,.25);
}
.contact-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 200px;
  height: 72px;
  background: radial-gradient(closest-side, rgba(21,61,115,.12), transparent 70%);
}
.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #0B1F3B;
  background: #EAF2FF;
  border: 1px solid rgba(21,61,115,.12);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.contact-title {
  font-weight: 800;
  margin-bottom: 8px;
  color: #0B1F3B;
}
.contact-desc {
  color: #475569;
  margin-bottom: 14px;
}
.contact-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.contact-mini-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
}
.contact-mini-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #EEF6FF;
  color: #153D73;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.wa-panel {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 18px 40px rgba(11,31,59,.12);
}
.wa-panel-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}
.wa-panel-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1FA86C 0%, #25D366 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 10px 24px rgba(37,211,102,.32);
}
.wa-panel-icon .bi { color: #fff !important; }
.wa-panel-btn {
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: .2px;
}
.wa-panel-btn .bi { color: #fff !important; }
.wa-panel-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.wa-meta-box {
  background: #F8FAFC;
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 8px;
  padding: 12px 14px;
}
.contact-hero--single .wa-panel-head {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(15,23,42,.12);
}
.contact-hero--single .wa-panel-meta {
  margin-top: 12px;
}

@media (max-width: 575px) {
  .contact-mini,
  .wa-panel-meta {
    grid-template-columns: 1fr;
  }
  .map-wrapper--tall { min-height: 240px; }
  .kontak-social-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .map-wrapper--tall { min-height: 260px; }
  .kontak-social-card { margin-bottom: 8px; }
}

.wa-cta {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(11,31,59,.12);
  border: 1px solid rgba(21,61,115,.08);
}
.wa-cta-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}
.wa-cta-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1FA86C 0%, #25D366 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 10px 24px rgba(37,211,102,.35);
}
.wa-cta-icon .bi { color: #fff !important; }
.wa-cta-sub { color: #64748B; font-size: 14px; }
.wa-cta-body {
  overflow-x: hidden;
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.wa-cta-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: #F8FAFC;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.06);
}
.wa-cta-item .bi {
  color: #0F172A;
  font-size: 18px;
  margin-top: 2px;
}
.wa-cta-btn {
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: .2px;
}
.wa-cta-btn .bi { color: #fff !important; }

/* Floating WhatsApp */
.float-wa {
  position: fixed;
  right: 24px;
  bottom: calc(24px + 44px + 16px);
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1FA86C 0%, #25D366 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 12px 24px rgba(37,211,102,.35);
  z-index: 999;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.float-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(37,211,102,.4);
}
.float-wa .bi { color: #fff !important; }

/* ─── Profil ─────────────────────────────────────────────── */
.table-identitas th {
  width: 40%; font-weight: 600; color: var(--gray-600);
  font-size: 14px; background: var(--gray-50);
}
.table-identitas td { font-size: 14px; }
.fasilitas-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 22px 16px;
  transition: var(--transition);
}
.fasilitas-card:hover { box-shadow: var(--shadow); border-color: var(--primary-xlight); }
.fasilitas-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #EEF5FF;
  color: #1E5BB8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 12px;
  box-shadow: inset 0 0 0 1px rgba(30,91,184,.08);
}
.fasilitas-card .fw-semibold { font-size: 15px; }

.fasilitas-icon--blue { background: #EEF5FF; color: #1E5BB8; box-shadow: inset 0 0 0 1px rgba(30,91,184,.08); }
.fasilitas-icon--yellow { background: #FFF7D6; color: #B45309; box-shadow: inset 0 0 0 1px rgba(180,83,9,.12); }
.fasilitas-icon--green { background: #E8F7EE; color: #15803D; box-shadow: inset 0 0 0 1px rgba(21,128,61,.12); }
.fasilitas-icon--red { background: #FDECEC; color: #B91C1C; box-shadow: inset 0 0 0 1px rgba(185,28,28,.12); }
.fasilitas-icon--indigo { background: #EEF1FF; color: #3730A3; box-shadow: inset 0 0 0 1px rgba(55,48,163,.12); }
.fasilitas-icon--purple { background: #F3E8FF; color: #7E22CE; box-shadow: inset 0 0 0 1px rgba(126,34,206,.12); }
.fasilitas-icon--emerald { background: #E7F8F1; color: #0F766E; box-shadow: inset 0 0 0 1px rgba(15,118,110,.12); }
.fasilitas-icon--amber { background: #FFF4D6; color: #B45309; box-shadow: inset 0 0 0 1px rgba(180,83,9,.12); }

.sejarah-card {
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,.18) !important;
  box-shadow:
    0 24px 54px rgba(15,23,42,.18),
    0 6px 14px rgba(15,23,42,.12),
    0 0 0 1px rgba(15,23,42,.08);
}

/* ─── Visi Misi ──────────────────────────────────────────── */
.visi-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex; gap: 24px; align-items: flex-start;
}
.visi-misi-page .bi { color: #fff !important; }
.visi-misi-page h4 .bi { color: #153D73 !important; }
.visi-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.2);
  color: #fff;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; flex-shrink: 0;
}
.visi-icon .bi { color: #fff !important; }
.visi-text { font-size: 16px; color: rgba(255,255,255,.9); font-style: italic; line-height: 1.8; }
.visi-box h4 { color: #fff !important; }
.misi-box {
  background: #ffffff;
  border: 2px solid #D1D5DB;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex; gap: 20px; align-items: flex-start;
  box-shadow: 0 8px 20px rgba(15,23,42,.06);
}
.misi-icon {
  width: 44px; height: 44px;
  background: #F3F4F6;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.misi-box h4 { color: #111827; }
.misi-subtitle { font-size: 13px; color: #6B7280; }
.misi-box .bi { color: #6B7280 !important; }
.misi-body {
  overflow-x: hidden; flex: 1; }
.misi-box .misi-item {
  background: #fff;
  border: 2px solid #D1D5DB;
  box-shadow: none;
}
.misi-box .misi-text { color: #374151; }
.misi-box .misi-number {
  background: #F3F4F6;
  color: #111827;
  border: 1px solid #E5E7EB;
}
.misi-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: white; border: 1px solid var(--gray-200);
  border-radius: 10px; padding: 16px 20px;
  transition: var(--transition);
}
.misi-item:hover { border-color: var(--primary-xlight); box-shadow: var(--shadow); }
.misi-number {
  width: 32px; height: 32px;
  background: var(--primary); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
  animation: misiNumberReveal .5s ease both;
  animation-delay: calc(var(--i, 1) * 80ms);
}
.misi-text {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
}

/* --- Visi & Misi Modern --- */
.visi-hero {
  margin-top: 6px;
}

.visi-hero-bg {
  position: relative;
  border-radius: 24px;
  padding: 28px;
  background: linear-gradient(135deg, #F8FAFF 0%, #F2F6FF 100%);
  background-image:
    linear-gradient(rgba(21,61,115,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,61,115,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  border: 1px solid rgba(15,23,42,.08);
}

.visi-glass-card {
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 26px 24px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.visi-glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.visi-hero-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.visi-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: #EAF2FF;
  color: var(--primary-light);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.visi-title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--primary);
}

.visi-text {
  font-size: 17px;
  line-height: 1.8;
  color: #475569;
  font-weight: 500;
  margin: 0;
}

.visi-highlight {
  font-weight: 800;
  color: var(--primary-light);
}
/* --- Misi Modern --- */
.misi-section {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
}

.misi-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
  justify-items: center;
}

.misi-hero-text {
  text-align: center;
  max-width: 720px;
}

.misi-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-xlight);
  color: var(--primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.misi-hero-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin: 12px 0 10px;
  line-height: 1.2;
}

.misi-hero-subtitle {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 0;
}

.misi-hero-illustration {
  background: white;
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.misi-hero-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

.misi-grid { margin-top: 12px; }

.misi-card {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: 22px;
  height: 100%;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: misiSlideUp .5s ease both;
  animation-delay: var(--delay, 0ms);
  text-align: left;
}

.misi-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.misi-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.misi-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary-light);
  background: var(--primary-xlight);
  border: 2px solid var(--primary-xlight);
}

.misi-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: inherit;
}

.misi-icon-circle--blue {
  background: var(--primary-xlight);
  box-shadow: inset 0 0 0 1px rgba(21, 61, 115, .12);
}
.misi-icon-circle--green {
  background: var(--primary-xlight);
  box-shadow: inset 0 0 0 1px rgba(21, 61, 115, .12);
}

.misi-icon-circle--blue i,
.misi-icon-circle--blue .bi { color: var(--primary); }
.misi-icon-circle--green i,
.misi-icon-circle--green .bi { color: var(--primary-light); }

.misi-card-text {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.7;
}

@keyframes misiSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
  .visi-hero-bg { padding: 22px; }
  .visi-glass-card { padding: 24px; }
  .visi-text { font-size: 17px; }
  .misi-section { padding: 36px 24px; }
  .misi-hero { grid-template-columns: 1fr; }
  .misi-hero-title { font-size: 28px; }
}

@media (max-width: 575px) {
  .visi-hero-bg { padding: 18px; }
  .visi-glass-card { padding: 20px; }
  .visi-title { font-size: 24px; }
  .misi-section { padding: 28px 18px; }
  .misi-hero-title { font-size: 24px; }
  .misi-card { padding: 18px; }
}
/* Judul & subtitle tetap statis */
@keyframes misiNumberReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.tujuan-list { padding-left: 20px; }
.tujuan-list li { font-size: 14px; color: var(--gray-600); margin-bottom: 8px; line-height: 1.6; }
.tujuan-card {
  background: #ffffff;
  border: 10px solid #0f172a;
  outline: 2px solid #D1D5DB;
  outline-offset: 0;
  border-radius: var(--radius);
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.18),
    0 6px 14px rgba(15, 23, 42, 0.12);
  padding: 24px;
  transition: var(--transition);
}

.tujuan-card:hover {
  box-shadow:
    0 30px 60px rgba(15, 23, 42, 0.24),
    0 12px 24px rgba(15, 23, 42, 0.18);
  transform: translateY(-6px);
}

.tujuan-card:active {
  box-shadow:
    0 85px 130px rgba(0, 0, 0, 0.6),
    0 36px 54px rgba(0, 0, 0, 0.45);
  transform: translateY(-14px);
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer { background: var(--primary); }
.footer-main { padding: 60px 0 40px; }
.footer-title {
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent); margin-bottom: 16px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 14px; color: rgba(255,255,255,.65);
  transition: var(--transition); display: flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: white; transform: translateX(4px); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 12px; font-size: 14px; color: rgba(255,255,255,.65); }
.footer-sosmed { display: flex; gap: 10px; }
.footer-sosmed-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff;
  transition: var(--transition);
}
.footer-sosmed-link .bi { color: #fff !important; }
.footer-sosmed-link.is-tiktok { background: var(--brand-tiktok); }
.footer-sosmed-link.is-email { background: var(--brand-email); }
.footer-sosmed-link.is-youtube { background: var(--brand-youtube); }
.footer-sosmed-link.is-whatsapp { background: var(--brand-whatsapp); }
.footer-sosmed-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.footer-map {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.footer-map iframe {
  display: block;
  width: 100%;
  height: 200px;
  border: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0;
}

/* ─── Back to Top ────────────────────────────────────────── */
.btn-back-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--primary); color: white;
  border: none; border-radius: 10px;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(26,58,107,.3);
  transition: var(--transition);
  opacity: 0;
  background-color: #0b1320; pointer-events: none; z-index: 999;
  display: flex; align-items: center; justify-content: center;
}
.btn-back-top.visible { opacity: 1; pointer-events: all; }
.btn-back-top:hover { background: var(--primary-light); transform: translateY(-2px); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 767px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 0;
    padding: 12px;
  }
  .hero-stat-item { padding: 12px; flex: 1; min-width: 80px; }
  .hero-stat-divider { display: none; }
  .sambutan-img { width: 200px; height: 240px; }
  .stats-wrapper { margin: 0; border-radius: 0; }
  .visi-box { flex-direction: column; }
}

@media (max-width: 767px) {
  .hero-content { padding: 64px 0 48px; }
  .hero-stack { gap: 14px; margin-top: 0; }
  .hero-badge { padding: 3px 10px; font-size: 10px; }
  .hero-title { letter-spacing: -0.2px; }
  .hero-title--single {
    white-space: normal;
    font-size: clamp(30px, 9vw, 40px);
  }
  .hero-title-accent { margin-left: 6px; }
  .hero-subtitle {
    font-size: 16px;
    line-height: 1.5;
    max-width: 90%;
  }
  .hero-actions {
    width: 100%;
    max-width: 320px;
    gap: 8px;
    flex-direction: row;
  }
  .hero-actions .btn { width: auto; min-width: 0; padding: 8px 10px; flex: 1 1 0; }
  .hero-actions .btn { font-size: 13px; }
  .hero-actions .btn .bi { font-size: 14px; }
  .hero-scroll { bottom: 36px; }
}

@media (max-width: 480px) {
  .hero-title--single { font-size: clamp(28px, 10vw, 36px); }
  .hero-subtitle { font-size: 14px; }
  .hero-actions { max-width: 280px; }
}

@media (max-width: 991px) {
  #mainNavbar { top: 0; }
  .navbar-brand img { height: 34px; }
  .navbar-brand-name { font-size: 14px; }
  .navbar-brand-tagline { font-size: 10px; }
  .navbar-collapse {
    background: #ffffff;
    padding: 12px 14px;
    margin-top: 10px;
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
  .navbar-nav { align-items: stretch !important; }
  .navbar-nav .nav-link { padding: 10px 12px !important; }
  .navbar-nav .dropdown-menu {
    position: static;
    float: none;
    box-shadow: none;
    padding: 6px 8px;
  }
  .navbar-nav .dropdown-item { font-size: 14px; }
  .navbar-nav .nav-item.ms-lg-2 { margin-top: 6px; }
  .btn-cta { width: 100%; justify-content: center; }
}

@media (max-width: 767px) {
  .section-sambutan,
  .section-program,
  .section-berita,
  .section-galeri,
  .section-kontak,
  .section-prestasi { padding: 56px 0; }

  .section-title { font-size: 24px; }
  .section-desc { font-size: 14px; }

  .page-header { padding: 56px 0 40px; }
  .page-header-title { font-size: 28px; line-height: 1.25; }
  .page-header-subtitle { font-size: 14px; max-width: 90%; }

  .card-berita-img { height: 160px; }
  .card-berita-title { font-size: 14px; }
  .card-berita-excerpt { font-size: 12px; }

  .kontak-social-grid { grid-template-columns: 1fr; }
  .kontak-social-pill { width: 100%; justify-content: center; }

  .section-galeri .btn-outline-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    border-radius: 10px;
  }

  .section-berita .btn-outline-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    border-radius: 10px;
  }

  .card-berita .btn-navy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
  }

  .footer-main { padding: 40px 0 24px; }
  .footer-sosmed { flex-wrap: wrap; }

  .card-guru { border-radius: 0; }
  .card-guru {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .guru-card-top { height: 60px; }
  .guru-avatar { width: 72px; height: 72px; margin: -36px auto 6px; }
  .guru-info { padding: 8px 12px 4px; min-height: 118px; }
  .guru-nama { font-size: 13px; margin-bottom: 8px; }
  .guru-jabatan { font-size: 10px; padding: 3px 10px; }
  .guru-mapel, .guru-pendidikan { font-size: 11px; line-height: 1.4; }
  .guru-mapel + .guru-pendidikan { margin-left: 8px; }
  .guru-actions { padding: 10px 12px 14px; margin-top: auto; }
  .guru-actions .btn { width: 100%; font-size: 12px; }

  .guru-item--headmaster .guru-card-top { height: 72px; }
  .guru-item--headmaster .guru-avatar { width: 84px; height: 84px; margin: -42px auto 6px; }
  .guru-item--headmaster .guru-info { padding: 10px 16px 6px; min-height: auto; }
  .guru-item--headmaster .guru-nama { font-size: 14px; margin-bottom: 10px; }
  .guru-item--headmaster .guru-jabatan { font-size: 11px; padding: 4px 12px; }
  .guru-item--headmaster .guru-mapel,
  .guru-item--headmaster .guru-pendidikan { font-size: 12px; }
  .guru-item--headmaster .guru-actions { padding: 12px 16px 18px; margin-top: 0; }
  .guru-item--headmaster .guru-actions .btn { width: 120px; font-size: 12px; }
}

@media (max-width: 575px) {
  .topbar-info { display: none; }
  #mainNavbar { box-shadow: 0 2px 12px rgba(26,58,107,.08); }
  .float-wa { right: 16px; bottom: 16px; }
  .btn-back-top { right: 16px; bottom: 80px; }
}
