/* ==========================================================================
   SMA NEGERI 1 NUSANTARA - MODERN DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Color Palette */
  --color-primary: #0f172a;
  --color-primary-light: #1e293b;
  --color-brand: #1d4ed8;
  --color-brand-light: #3b82f6;
  --color-brand-dark: #1e40af;
  --color-brand-gradient: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  --color-accent: #f59e0b;
  --color-accent-light: #fef3c7;
  --color-accent-dark: #d97706;
  --color-success: #10b981;
  --color-success-light: #d1fae5;
  --color-danger: #ef4444;
  --color-danger-light: #fee2e2;
  
  /* Neutrals */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;
  --border-light: #e2e8f0;
  --border-focus: #3b82f6;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.25);
  --shadow-wa: 0 8px 24px rgba(16, 185, 129, 0.4);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Container */
  --max-width: 1240px;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-normal);
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top-bar {
  background: var(--color-primary);
  color: #94a3b8;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.top-bar-item:hover {
  color: #ffffff;
}

.top-bar-item svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.badge-akreditasi {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  height: auto;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
  z-index: 10;
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
  background: #ffffff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  line-height: 1.2;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: block;
  margin: 0;
  padding: 0;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  display: block;
  margin: 0;
  padding: 0;
  letter-spacing: 0.01em;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.65rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-main);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-brand);
  background: rgba(37, 99, 235, 0.08);
}

.nav-link svg.arrow {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.nav-item:hover svg.arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition-normal);
  z-index: 1010;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--bg-surface);
  color: var(--color-brand);
  padding-left: 1rem;
}

.dropdown-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-brand);
  flex-shrink: 0;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: var(--transition-normal);
}

.btn-primary {
  background: var(--color-brand-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--color-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1ebc57;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-primary);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* ==========================================================================
   RUNNING TICKER / ANNOUNCEMENT BANNER
   ========================================================================== */
.announcement-ticker {
  background: #eff6ff;
  border-bottom: 1px solid #dbeafe;
  padding: 0.6rem 0;
  overflow: hidden;
}

.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ticker-badge {
  background: var(--color-brand);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ticker-content {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  font-size: 0.875rem;
  color: #1e3a8a;
  font-weight: 500;
}

.ticker-text {
  display: inline-block;
  animation: marquee 25s linear infinite;
}

.ticker-text:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ==========================================================================
   HERO SECTION & BACKGROUND SLIDESHOW
   ========================================================================== */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
  background: #0f172a;
}

/* Top Animated Progress Track (Indikator Otomatis Jalan Sendiri) */
.hero-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 20;
  overflow: hidden;
}

.hero-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #2563eb, #fbbf24);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.9);
  transition: width 0.05s linear;
}

/* Background Slideshow Layer */
.hero-slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s ease-in-out;
  pointer-events: none;
  z-index: 1;
}

/* Slide aktif dan tampil di latar */
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Foto Latar Bergerak Terus-Menerus (Continuous Live Camera Pan Effect) */
.hero-slide-bg {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  background-size: cover;
  background-position: center;
  animation: heroPanMotion 14s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroPanMotion {
  0% {
    transform: scale(1.02) translate(0, 0);
  }
  50% {
    transform: scale(1.08) translate(-1.5%, -1%);
  }
  100% {
    transform: scale(1.04) translate(1.2%, 1%);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.45) 55%, rgba(15, 23, 42, 0.18) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Hero Navigation Arrows */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  opacity: 0.75;
}

.hero-nav-btn:hover {
  opacity: 1;
  background: rgba(37, 99, 235, 0.85);
  border-color: #38bdf8;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.hero-nav-btn svg {
  width: 20px;
  height: 20px;
}

.hero-nav-prev {
  left: 1.5rem;
}

.hero-nav-next {
  right: 1.5rem;
}

/* Indicators & Slide Caption Bar */
.hero-indicators-wrapper {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero-slide-caption {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.02em;
}

.hero-slide-caption .caption-icon {
  font-size: 0.9rem;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: scale(1.15);
}

.hero-dot.active {
  width: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

@media (max-width: 850px) {
  .hero-nav-btn {
    display: none;
  }
  .hero-indicators-wrapper {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
    justify-content: space-between;
  }
  .hero-slide-caption {
    font-size: 0.75rem;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  z-index: 3;
}

/* Hero Showcase Card (Menampilkan Foto Fasilitas Terang & Jelas) */
.hero-visual-card {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-visual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55);
}

.hero-card-img-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #0f172a;
}

.hero-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.6s ease;
}

.hero-visual-card:hover .hero-card-img {
  transform: scale(1.04);
}

.hero-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.hero-card-info {
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.96) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.hero-card-sub {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.4;
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .hero-visual-card {
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .hero-card-img-wrap {
    height: 190px;
  }
}

.hero-content {
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 1rem;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.45rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-title span {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.125rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   QUICK ACTION CARDS (4 PILAR UTAMA)
   ========================================================================== */
.quick-access-section {
  position: relative;
  z-index: 10;
  margin-top: -3.5rem;
  margin-bottom: 4rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.quick-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.quick-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.quick-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px rgba(15, 23, 42, 0.12);
  border-color: #cbd5e1;
}

.quick-card:hover::after {
  transform: scaleX(1);
}

.quick-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform var(--transition-fast);
}

.quick-card:hover .quick-icon {
  transform: scale(1.1);
}

.quick-icon.blue { background: #dbeafe; color: #1d4ed8; }
.quick-icon.amber { background: #fef3c7; color: #d97706; }
.quick-icon.emerald { background: #d1fae5; color: #059669; }
.quick-icon.purple { background: #ede9fe; color: #7c3aed; }

.quick-icon svg {
  width: 26px;
  height: 26px;
}

.quick-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.quick-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.quick-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-brand);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.quick-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.quick-card:hover .quick-link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   STATISTICS SECTION
   ========================================================================== */
.stats-section {
  padding: 3.5rem 0;
  background: var(--color-primary);
  color: #ffffff;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: #60a5fa;
  margin-bottom: 0.3rem;
}

.stat-number span {
  color: var(--color-accent);
}

.stat-label {
  font-size: 0.95rem;
  color: #cbd5e1;
  font-weight: 500;
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-brand);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(37, 99, 235, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SAMBUTAN KEPALA SEKOLAH (HOMEPAGE HIGHLIGHT)
   ========================================================================== */
.sambutan-preview {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: grid;
  grid-template-columns: 40% 60%;
}

.sambutan-img-wrap {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.sambutan-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.sambutan-preview:hover .sambutan-img-wrap img {
  transform: scale(1.03);
}

.sambutan-body {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-icon {
  width: 40px;
  height: 40px;
  color: #93c5fd;
  margin-bottom: 1.25rem;
  opacity: 0.6;
}

.sambutan-text {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 1.75rem;
  font-style: italic;
}

.sambutan-author-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
}

.sambutan-author-role {
  font-size: 0.875rem;
  color: var(--color-brand);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   BERITA & PENGUMUMAN GRID
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.news-thumb {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #0f172a;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.news-card:hover .news-thumb img {
  transform: scale(1.06);
}

.news-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.news-badge.pengumuman {
  background: rgba(220, 38, 38, 0.9);
}

.news-badge.prestasi {
  background: rgba(217, 119, 6, 0.95);
}

.news-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.news-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.news-meta-item svg {
  width: 14px;
  height: 14px;
}

.news-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.35;
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
}

.news-card:hover .news-title {
  color: var(--color-brand);
}

.news-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.news-read-more {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-brand);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  cursor: pointer;
}

.news-read-more svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.news-read-more:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   PRESTASI CARD (HOMEPAGE & ARCHIVE)
   ========================================================================== */
.prestasi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.prestasi-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.prestasi-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: #f59e0b;
}

.prestasi-media {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.prestasi-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.prestasi-card:hover .prestasi-media img {
  transform: scale(1.05);
}

.prestasi-tier {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.prestasi-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.prestasi-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 0.4rem;
}

.prestasi-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.prestasi-winner {
  font-size: 0.9rem;
  color: #334155;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.prestasi-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* ==========================================================================
   PAGE HERO (SUBPAGES)
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 58, 138, 0.86) 100%), url('../assets/images/hero-school.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.35) 0%, transparent 60%);
}

/* Subpage Dynamic Hero Slideshow */
.hero.hero-subpage {
  min-height: 460px;
  padding: 5rem 0 4rem;
}

.hero.hero-subpage .hero-title {
  font-size: 2.65rem;
  line-height: 1.2;
}

.hero.hero-subpage .hero-description {
  font-size: 1.05rem;
  max-width: 680px;
}

@media (max-width: 768px) {
  .hero.hero-subpage {
    min-height: 390px;
    padding: 3.5rem 0 3rem;
  }
  .hero.hero-subpage .hero-title {
    font-size: 1.95rem;
  }
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: #cbd5e1;
}

.breadcrumbs a:hover {
  color: #ffffff;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.page-hero-subtitle {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 600px;
}

/* ==========================================================================
   TABS & FILTERS
   ========================================================================== */
.filter-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  color: var(--color-brand);
  border-color: var(--color-brand);
}

.filter-btn.active {
  background: var(--color-brand);
  color: #ffffff;
  border-color: var(--color-brand);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* Sub-page Tab System */
.subpage-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-light);
  gap: 2rem;
  margin-bottom: 2.5rem;
  overflow-x: auto;
}

.subpage-tab-item {
  padding: 0.85rem 0.25rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.subpage-tab-item:hover {
  color: var(--color-brand);
}

.subpage-tab-item.active {
  color: var(--color-brand);
}

.subpage-tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-brand);
  border-radius: 3px 3px 0 0;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   TIMELINE (SEJARAH)
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #cbd5e1;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  width: 50%;
  padding: 0 2rem;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 15px;
  width: 18px;
  height: 18px;
  background: var(--color-brand);
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
  z-index: 2;
}

.timeline-item.left .timeline-dot {
  right: -9px;
}

.timeline-item.right .timeline-dot {
  left: -9px;
}

.timeline-box {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-brand);
  background: rgba(37, 99, 235, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   VISI & MISI CARDS
   ========================================================================== */
.visi-misi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.visi-card, .misi-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.card-badge-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.visi-card .card-badge-icon {
  background: #dbeafe;
  color: #1d4ed8;
}

.misi-card .card-badge-icon {
  background: #fef3c7;
  color: #d97706;
}

.card-badge-icon svg {
  width: 28px;
  height: 28px;
}

.misi-list {
  margin-top: 1rem;
}

.misi-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #334155;
}

.misi-item svg {
  width: 20px;
  height: 20px;
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   ORGANOGRAM / STRUKTUR ORGANISASI
   ========================================================================== */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}

.org-node {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-light);
  text-align: center;
  min-width: 260px;
  position: relative;
  transition: var(--transition-fast);
}

.org-node:hover {
  transform: translateY(-3px);
  border-color: var(--color-brand);
  box-shadow: var(--shadow-lg);
}

.org-node.principal {
  border-color: var(--color-brand);
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.org-node-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-brand);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.org-node-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
}

.org-level {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   AKADEMIK: JURUSAN, KURIKULUM, JADWAL
   ========================================================================== */
.jurusan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.jurusan-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.jurusan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: #3b82f6;
}

.jurusan-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: #dbeafe;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.jurusan-icon svg {
  width: 28px;
  height: 28px;
}

.jurusan-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.jurusan-features {
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.jurusan-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #475569;
  margin-bottom: 0.5rem;
}

.jurusan-features li svg {
  width: 16px;
  height: 16px;
  color: #10b981;
}

/* Schedule Table */
.schedule-table-wrap {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.schedule-table th, .schedule-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.schedule-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--color-primary);
}

.schedule-table tr:hover {
  background: #f1f5f9;
}

/* ==========================================================================
   GALERI & LIGHTBOX
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 260px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #ffffff;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}

.gallery-tag {
  font-size: 0.75rem;
  color: #38bdf8;
  font-weight: 600;
  margin-top: 0.2rem;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.lightbox-content img {
  max-height: 80vh;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-caption {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-top: 1rem;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   KONTAK SECTION & FORM
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 3rem;
}

.contact-info-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: #eff6ff;
  color: var(--color-brand);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.contact-value a:hover {
  color: var(--color-brand);
}

/* Map Embed */
.map-wrap {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 220px;
  border: 1px solid var(--border-light);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact Form */
.contact-form-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #f8fafc;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON & CHAT POPUP
   ========================================================================== */
.wa-floating-wrapper {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1500;
}

.wa-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-wa);
  cursor: pointer;
  border: none;
  transition: transform var(--transition-normal);
  position: relative;
}

.wa-btn:hover {
  transform: scale(1.08);
}

.wa-btn svg {
  width: 32px;
  height: 32px;
}

.wa-btn-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: waPulse 1.8s infinite;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.wa-popup {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 330px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.95);
  transition: var(--transition-normal);
}

.wa-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.wa-popup-header {
  background: #075e54;
  color: #ffffff;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wa-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #128c7e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-avatar svg {
  width: 24px;
  height: 24px;
}

.wa-header-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.wa-header-info p {
  font-size: 0.75rem;
  color: #dcf8c6;
}

.wa-popup-body {
  padding: 1.25rem;
  background: #efeae2;
  min-height: 120px;
}

.wa-bubble {
  background: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 0 12px 12px 12px;
  font-size: 0.85rem;
  color: #111b21;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  line-height: 1.5;
}

.wa-popup-footer {
  padding: 1rem;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--color-primary);
  color: #94a3b8;
  padding-top: 5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-brand-logo {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-title,
.footer-brand .brand-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.footer-subtitle,
.footer-brand .brand-subtitle {
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1.3;
}

.footer-desc {
  margin-top: 0.85rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 340px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-brand);
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #60a5fa;
  padding-left: 4px;
}

.footer-social,
.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-icon,
.social-btn {
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition-fast);
  flex-shrink: 0;
  text-decoration: none;
}

.social-icon:hover,
.social-btn:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  transform: translateY(-2px);
  color: #ffffff;
}

.social-icon svg,
.social-btn svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  fill: currentColor;
  flex-shrink: 0;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.footer-contact-item svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  margin-top: 3px;
  fill: #38bdf8;
  flex-shrink: 0;
}

/* Floating WA Button */
.wa-floating-btn {
  position: fixed;
  bottom: 75px;
  right: 1.25rem;
  width: 50px !important;
  height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  background: #25d366;
  border-radius: 50%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  z-index: 99997;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.wa-floating-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.6);
}

.wa-floating-btn svg {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  fill: #ffffff;
  flex-shrink: 0;
}

/* Mobile Bottom Navigation Bar (Hidden by default on Desktop & Tablet) */
.mobile-bottom-nav {
  display: none !important;
}

.bottom-nav-item svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-notice {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: #10b981;
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3000;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 600;
}

.toast-notice.show {
  transform: translateX(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid, .prestasi-grid, .jurusan-grid, .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .sambutan-preview {
    grid-template-columns: 1fr;
  }
  .sambutan-img-wrap {
    height: 320px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .navbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #ffffff !important;
  }
  .mobile-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.45rem 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-primary);
  }
  .mobile-toggle.active {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
  }
  /* Navigasi Desktop disembunyikan total di HP agar tidak pernah bocor atau menumpuk */
  .nav-menu {
    display: none !important;
  }
}

/* ==========================================================================
   MOBILE SIDEBAR DRAWER (OFF-CANVAS SLIDE NAVIGATION)
   ========================================================================== */
.mobile-drawer-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 99998 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

.mobile-drawer-backdrop.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.mobile-sidebar-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 330px !important;
  max-width: 88vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: #ffffff !important;
  box-shadow: -8px 0 35px rgba(15, 23, 42, 0.3) !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column !important;
  transform: translateX(105%) !important;
  transition: transform 0.32s cubic-bezier(0.25, 1, 0.5, 1) !important;
  overflow: hidden !important;
}

.mobile-sidebar-drawer.active {
  transform: translateX(0) !important;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.mobile-drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-drawer-logo {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.mobile-drawer-brand-text {
  display: flex;
  flex-direction: column;
}

.mobile-drawer-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffffff;
  line-height: 1.2;
}

.mobile-drawer-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.3;
}

.mobile-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-drawer-close:hover,
.mobile-drawer-close:active {
  background: #ef4444;
  border-color: #ef4444;
  transform: scale(1.05);
}

.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  background: #eff6ff;
  color: var(--color-brand);
  border-color: #bfdbfe;
}

.mobile-nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #64748b;
  fill: currentColor;
}

.mobile-nav-item.active svg {
  color: var(--color-brand);
}

.mobile-nav-dropdown {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.mobile-nav-accordion-btn {
  border: none !important;
  background: transparent !important;
  justify-content: space-between;
  width: 100%;
}

.mobile-nav-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-chevron {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
  color: #94a3b8;
  fill: currentColor;
  flex-shrink: 0;
}

.mobile-nav-dropdown.open .mobile-chevron {
  transform: rotate(180deg);
}

.mobile-drawer-submenu {
  display: none;
  flex-direction: column;
  background: #ffffff;
  padding: 0.4rem 0.6rem 0.6rem 2.6rem;
  border-top: 1px solid #e2e8f0;
  gap: 0.25rem;
}

.mobile-nav-dropdown.open .mobile-drawer-submenu {
  display: flex;
}

.mobile-drawer-submenu a {
  display: block;
  padding: 0.55rem 0.65rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.mobile-drawer-submenu a:hover,
.mobile-drawer-submenu a:active {
  background: #f1f5f9;
  color: var(--color-brand);
  padding-left: 0.85rem;
}



.mobile-badge-ppdb {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  background: #ffedd5;
  color: #ea580c;
  padding: 2px 7px;
  border-radius: 4px;
}

.mobile-nav-ppdb {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%) !important;
  border-color: #fed7aa !important;
  color: #c2410c !important;
  font-weight: 700 !important;
}

.mobile-nav-ppdb svg {
  color: #ea580c !important;
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-wa-drawer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease;
}

.btn-wa-drawer:hover,
.btn-wa-drawer:active {
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-wa-drawer svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.drawer-info-text {
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .navbar .container {
    min-height: 68px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }
  .hero-title {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
  }
  .hero-desc {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.25rem !important;
  }
  .section-banner-title {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
  }
  .section-banner-sub {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.25rem !important;
  }
  .section-title {
    font-size: 1.45rem !important;
  }
  .section-subtitle {
    font-size: 0.88rem !important;
  }
  .hero-actions {
    flex-direction: column !important;
    gap: 0.65rem !important;
    width: 100% !important;
  }
  .hero-actions .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
  .hero-indicators-wrapper {
    display: none !important;
  }
  .ppdb-quota {
    font-size: 1.75rem !important;
  }
  .ppdb-track-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    margin-bottom: 1.75rem !important;
  }
  .ppdb-track-card {
    padding: 1rem 0.75rem !important;
  }
  .ppdb-subtabs {
    gap: 0.4rem !important;
    margin-bottom: 1.25rem !important;
  }
  .ppdb-subtabs button {
    font-size: 0.8rem !important;
    padding: 0.45rem 0.85rem !important;
  }
  .quick-grid {
    grid-template-columns: 1fr;
    margin-top: -2rem;
  }
  .news-grid, .prestasi-grid, .jurusan-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  .visi-misi-grid {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 45px;
    padding-right: 0;
    text-align: left !important;
  }
  .timeline-dot {
    left: 11px !important;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Padding at bottom of body so content is not obscured by the bottom bar */
  body {
    padding-bottom: 65px !important;
  }

  /* Mobile Bottom Navigation Bar */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08) !important;
    z-index: 99998 !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0 0.25rem !important;
  }
  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: none;
    gap: 3px;
    transition: all 0.15s ease;
  }
  .bottom-nav-item svg {
    width: 20px;
    height: 20px;
  }
  .bottom-nav-item.active {
    color: var(--color-brand) !important;
    font-weight: 700;
  }
  .bottom-nav-item.bottom-nav-ppdb {
    color: #ea580c;
  }
  .bottom-nav-item.bottom-nav-ppdb.active {
    color: #c2410c !important;
  }
  
}

/* ==========================================================================
   BACK TO TOP & ACCESSIBILITY WIDGET
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 6.5rem;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-normal);
  z-index: 1400;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-brand);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* Font Resizer */
.font-resizer {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.font-resizer button {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0 0.25rem;
  transition: color var(--transition-fast);
}

.font-resizer button:hover, .font-resizer button.active {
  color: #ffffff;
}

html.font-large {
  font-size: 18px;
}

html.font-xlarge {
  font-size: 20px;
}

/* PPDB Header Button Highlight */
.btn-ppdb {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a !important;
  font-weight: 800;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-ppdb:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   DIREKTORI GURU & GTK
   ========================================================================== */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.teacher-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  text-align: center;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: #3b82f6;
}

.teacher-avatar-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #e0e7ff;
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 4px solid #eff6ff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.teacher-avatar-wrap svg {
  width: 52px;
  height: 52px;
}

.teacher-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.teacher-subject {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-brand);
  margin-bottom: 0.6rem;
}

.teacher-nip {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: #f8fafc;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.teacher-edu {
  font-size: 0.8rem;
  color: #475569;
  margin-top: auto;
}

/* ==========================================================================
   KESISWAAN & EKSTRAKURIKULER
   ========================================================================== */
.ekskul-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.ekskul-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.ekskul-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: #3b82f6;
}

.ekskul-media {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 8px);
  margin-bottom: 1.25rem;
  background: #e2e8f0;
}

.ekskul-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.ekskul-card:hover .ekskul-media img {
  transform: scale(1.06);
}

.ekskul-media .ekskul-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  margin-bottom: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  backdrop-filter: blur(4px);
}

.ekskul-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-brand);
  background: #eff6ff;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  align-self: flex-start;
}

.ekskul-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.ekskul-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.ekskul-info-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #334155;
  margin-bottom: 0.4rem;
}

.ekskul-info-row svg {
  width: 15px;
  height: 15px;
  color: var(--color-brand);
  flex-shrink: 0;
}

.ekskul-achieve {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: #92400e;
  font-weight: 600;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   SARANA & FASILITAS KAMPUS
   ========================================================================== */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.facility-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.facility-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.facility-media {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.facility-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.facility-card:hover .facility-media img {
  transform: scale(1.06);
}

.facility-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.facility-body {
  padding: 1.75rem;
}

.facility-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.facility-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   PORTAL PPDB ONLINE & FAQ ACCORDION
   ========================================================================== */
.ppdb-track-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.ppdb-track-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition-normal);
}

.ppdb-track-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-brand);
}

.ppdb-quota {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-brand);
  margin-bottom: 0.25rem;
}

.ppdb-track-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.ppdb-track-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.faq-item.active {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  cursor: pointer;
  background: #ffffff;
}

.faq-question svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.925rem;
  color: #475569;
  line-height: 1.7;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

@media (max-width: 1024px) {
  .teacher-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ekskul-grid, .facility-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ppdb-track-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .teacher-grid, .ekskul-grid, .facility-grid, .ppdb-track-grid {
    grid-template-columns: 1fr;
  }
  .back-to-top {
    right: 5.5rem;
  }
}

/* ==========================================================================
   ARTICLE MODAL HEADER (FOTO SEKOLAH HERO)
   ========================================================================== */
.article-modal-card {
  overflow: hidden;
}

.article-modal-header-media {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  background: #0f172a;
}

.article-modal-header-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.article-modal-card:hover .article-modal-header-media img {
  transform: scale(1.03);
}

@media (max-width: 640px) {
  .article-modal-header-media {
    height: 230px;
  }
}

/* Preset buttons in admin */
.btn-preset-photo {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.15));
  color: var(--admin-text-muted, #94a3b8);
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-preset-photo:hover {
  background: rgba(37, 99, 235, 0.25);
  border-color: #3b82f6;
  color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   HARAPAN BANGSA STYLE HEADLINE & NEWS PORTAL
   ========================================================================== */
.live-datetime-item {
  font-weight: 600;
  color: #f8fafc;
  background: rgba(37, 99, 235, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(147, 197, 253, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
}

.headline-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

/* Main Featured Article (Left) */
.headline-main-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.headline-main-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.headline-main-thumb {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  background: #0f172a;
}

.headline-main-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.headline-main-card:hover .headline-main-thumb img {
  transform: scale(1.05);
}

.headline-main-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  pointer-events: none;
}

.headline-main-badge-wrap {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}

.headline-main-body {
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.headline-main-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.35;
  margin-bottom: 0.85rem;
  transition: color var(--transition-fast);
}

.headline-main-title:hover {
  color: var(--color-brand);
}

.headline-main-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Side Headline List (Right - 4 items) */
.headline-side-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.headline-side-card {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  background: var(--bg-card);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.headline-side-card:hover {
  transform: translateX(4px);
  border-color: var(--color-brand);
  box-shadow: var(--shadow-md);
  background: #ffffff;
}

.headline-side-thumb {
  position: relative;
  width: 125px;
  height: 88px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: #0f172a;
}

.headline-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.headline-side-card:hover .headline-side-thumb img {
  transform: scale(1.08);
}

.headline-side-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-grow: 1;
  min-width: 0;
}

.headline-side-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.headline-side-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.headline-side-card:hover .headline-side-title {
  color: var(--color-brand);
}

@media (max-width: 992px) {
  .headline-grid {
    grid-template-columns: 1fr;
  }
  .headline-main-thumb {
    height: 280px;
  }
}

@media (max-width: 576px) {
  .headline-side-card {
    gap: 0.85rem;
    padding: 0.65rem 0.75rem;
  }
  .headline-side-thumb {
    width: 95px;
    height: 75px;
  }
  .headline-side-title {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }
  .navbar .container {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    min-height: 62px !important;
  }
  .brand {
    gap: 0.45rem;
    max-width: calc(100% - 50px);
  }
  .brand-logo {
    width: 36px;
    height: 36px;
  }
  .brand-title {
    font-size: 0.98rem;
  }
  .brand-subtitle {
    font-size: 0.62rem;
  }
  .hero-title {
    font-size: 1.45rem !important;
  }
  .section-banner-title {
    font-size: 1.32rem !important;
  }
  .ppdb-track-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }
  .ppdb-track-card {
    padding: 0.75rem 0.45rem !important;
  }
  .ppdb-quota {
    font-size: 1.45rem !important;
  }
  .ppdb-track-card h3 {
    font-size: 0.82rem !important;
    margin-bottom: 0.25rem !important;
  }
  .ppdb-track-card p {
    font-size: 0.68rem !important;
    line-height: 1.35 !important;
  }
  .gal-grid-spa, .book-grid-spa {
    grid-template-columns: 1fr !important;
  }
}



/* ==========================================================================
   MODAL DETAIL BERITA RESMI & DIALOG ENHANCEMENTS
   ========================================================================== */
.news-detail-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  z-index: 99999;
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.news-detail-modal.active {
  display: flex !important;
  opacity: 1 !important;
}

.news-detail-dialog {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .news-detail-dialog {
    max-height: 94vh;
    border-radius: var(--radius-lg);
  }
  .news-detail-modal {
    padding: 0.5rem;
  }
}

/* ==========================================================================
   E-PERPUSTAKAAN & REPOSITORI MODUL BELAJAR DIGITAL (SPA)
   ========================================================================== */
.lib-header-stats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.lib-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-full, 9999px);
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.lib-stat-chip:hover {
  border-color: var(--color-brand, #1d4ed8);
  color: var(--color-brand, #1d4ed8);
  background: #f8fafc;
}

.lib-filter-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-xl, 16px);
  border: 1px solid var(--border-light, #e2e8f0);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.lib-filter-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.lib-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.lib-filter-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

.lib-filter-btn.active {
  background: var(--color-brand, #1d4ed8);
  color: #ffffff;
  border-color: var(--color-brand, #1d4ed8);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.28);
}

.lib-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full, 9999px);
  padding: 0.45rem 1rem;
  min-width: 290px;
  flex: 1 1 290px;
  max-width: 380px;
  transition: all 0.2s ease;
}

.lib-search-box:focus-within {
  border-color: var(--color-brand, #1d4ed8);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.lib-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.88rem;
  color: #1e293b;
  width: 100%;
}

.lib-count-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.book-grid-spa {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.book-card {
  background: #ffffff;
  border-radius: var(--radius-xl, 16px);
  border: 1px solid var(--border-light, #e2e8f0);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px -8px rgba(15, 23, 42, 0.14);
  border-color: #cbd5e1;
}

.book-cover-wrap {
  height: 200px;
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  image-rendering: -webkit-optimize-contrast;
}

.book-card:hover .book-cover-wrap img {
  transform: scale(1.05);
}

.book-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 11px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.badge-paket-a { background: #059669; }
.badge-paket-b { background: #0284c7; }
.badge-paket-c { background: #d97706; }
.badge-buku-teks { background: #7c3aed; }
.badge-buku-non-teks { background: #e11d48; }

.book-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.book-subject {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-brand, #1d4ed8);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.4rem;
}

.book-title {
  font-size: 1.05rem;
  font-weight: 750;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8rem;
}

.book-desc {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 1.15rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 1.1rem;
}

.book-actions {
  display: flex;
  gap: 0.5rem;
}

.book-actions .btn {
  flex: 1;
  padding: 0.55rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  cursor: pointer;
}

.lib-admin-callout {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-xl, 16px);
  padding: 1.75rem 2rem;
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.05);
}

.lib-admin-callout-text h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e3a8a;
  margin: 0 0 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lib-admin-callout-text p {
  font-size: 0.88rem;
  color: #475569;
  margin: 0;
  line-height: 1.6;
  max-width: 720px;
}

.lib-admin-callout-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Modal Reader E-Perpustakaan */
.reader-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  z-index: 99999;
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.reader-dialog {
  background: #ffffff;
  border-radius: var(--radius-xl, 16px);
  max-width: 820px;
  width: 100%;
  max-height: 92vh;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reader-header {
  padding: 1.25rem 1.75rem;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reader-header h3 {
  font-size: 1.1rem;
  font-weight: 750;
  margin: 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reader-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}

.reader-close-btn:hover {
  color: #ffffff;
}

.reader-content {
  padding: 1.75rem;
  overflow-y: auto;
  flex-grow: 1;
}

@media (max-width: 768px) {
  .lib-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .lib-search-box {
    max-width: 100%;
    min-width: 100%;
  }
  .book-grid-spa {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .lib-admin-callout {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   GALERI RESMI PKBM PELITA (SPA)
   ========================================================================== */
.gal-filter-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-xl, 16px);
  border: 1px solid var(--border-light, #e2e8f0);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.gal-filter-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.gal-grid-spa {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.gal-card-spa {
  background: #ffffff;
  border-radius: var(--radius-xl, 16px);
  border: 1px solid var(--border-light, #e2e8f0);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.gal-card-spa:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px -8px rgba(15, 23, 42, 0.14);
  border-color: #cbd5e1;
}

.gal-card-thumb-wrap {
  height: 210px;
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.gal-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
  opacity: 0.92;
}

.gal-card-spa:hover .gal-card-thumb-wrap img {
  transform: scale(1.08);
  opacity: 1;
}

.gal-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 11px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.badge-kegiatan { background: #0284c7; }
.badge-fasilitas { background: #059669; }
.badge-vokasi { background: #d97706; }
.badge-prestasi { background: #7c3aed; }
.badge-warga-belajar { background: #e11d48; }

.gal-card-zoom-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.95rem;
}

.gal-card-spa:hover .gal-card-zoom-btn {
  background: var(--color-brand, #1d4ed8);
  transform: scale(1.1);
}

.gal-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gal-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-brand, #1d4ed8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.gal-card-title {
  font-size: 1.02rem;
  font-weight: 750;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 0.45rem;
}

.gal-card-caption {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

.gal-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  margin-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.78rem;
  color: #94a3b8;
}

@media (max-width: 640px) {
  .gal-grid-spa {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ========================================================
   STRUKTUR ORGANISASI MODERN & INTERAKTIF
   ======================================================== */
.org-chart-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.org-leader-wrapper {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-card-leader {
  width: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 2px solid #38bdf8;
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.15);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.org-card-leader:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -5px rgba(14, 165, 233, 0.22);
}

.org-avatar-leader {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
  border: 3px solid #ffffff;
}

.org-badge-leader {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #0284c7;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.org-title-leader {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 0 0.35rem;
}

.org-role-leader {
  font-size: 0.88rem;
  color: #0369a1;
  font-weight: 600;
  margin: 0;
}

.org-connector-line {
  width: 2px;
  height: 24px;
  background: #cbd5e1;
  margin: 0 auto;
}

.org-grid-team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.org-card-member {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.org-card-member::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, #0284c7);
}

.org-card-member:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.org-member-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.org-member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card-accent-light, #eff6ff);
  color: var(--card-accent, #0284c7);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.org-member-info {
  flex-grow: 1;
}

.org-member-pos {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--card-accent, #0284c7);
  display: block;
  margin-bottom: 0.2rem;
}

.org-member-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.3;
}

.org-member-duty {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px dashed #f1f5f9;
}

