/* ==========================================================================
   UPT SPF SD NEGERI 104192 - MODERN ACADEMIC EDITORIAL DESIGN SYSTEM
   Konsep: Modern Academic Editorial & Children's Digital Learning Library
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Identitas Palet Warna Resmi */
  --color-forest: #174B3A;        /* Deep Forest Green */
  --color-primary-green: #286B50; /* Primary Green */
  --color-warm-ivory: #FAF8F1;    /* Warm Ivory */
  --color-soft-cream: #F2EFE4;    /* Soft Cream */
  --color-muted-gold: #D5AD52;    /* Muted Gold */
  --color-charcoal: #252C29;      /* Charcoal */
  --color-soft-white: #FFFFFF;    /* Soft White */
  --color-muted-text: #747C76;    /* Muted Text */

  /* Semantic Color Mapping */
  --color-primary: var(--color-forest);
  --color-primary-light: #205E49;
  --color-brand: var(--color-primary-green);
  --color-brand-light: #3D8B6E;
  --color-brand-dark: #123B2D;
  --color-brand-gradient: linear-gradient(135deg, #174B3A 0%, #286B50 100%);
  --color-accent: var(--color-muted-gold);
  --color-accent-light: #F7E7C4;
  --color-accent-dark: #B88E33;
  --color-success: #1F7A56;
  --color-success-light: #E0F2EB;
  --color-danger: #C53B3B;
  --color-danger-light: #FCE8E8;
  
  /* Background & Surface */
  --bg-main: var(--color-warm-ivory);
  --bg-card: var(--color-soft-white);
  --bg-surface: var(--color-soft-cream);
  --text-main: var(--color-charcoal);
  --text-muted: var(--color-muted-text);
  --text-light: #9DA6A0;
  --text-inverse: #FFFFFF;
  --border-light: #E5DFC9;
  --border-focus: var(--color-primary-green);

  /* Tipografi Berkelas */
  --font-heading: 'Lora', 'DM Serif Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows (Alami, Lembut & Tidak Berat) */
  --shadow-sm: 0 1px 3px rgba(23, 75, 58, 0.05);
  --shadow-md: 0 4px 12px rgba(23, 75, 58, 0.06);
  --shadow-lg: 0 8px 24px rgba(23, 75, 58, 0.08);
  --shadow-xl: 0 16px 36px rgba(23, 75, 58, 0.1);
  --shadow-glow: none;
  --shadow-wa: 0 8px 20px rgba(40, 107, 80, 0.28);

  /* Variasi Border Radius Terukur */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --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, #d97706, #b45309);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full, 50px);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.badge-npsn {
  background: rgba(213, 173, 82, 0.22);
  border: 1px solid var(--color-muted-gold, #d5ad52);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full, 50px);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   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: #E5DFC9;
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #174B3A;
  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: #FAF8F1;
  border-bottom: 1px solid #F2EFE4;
  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: var(--color-forest);
  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: 600px;
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
}

/* 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, #D5AD52, #286B50, #D5AD52);
  box-shadow: 0 0 12px rgba(213, 173, 82, 0.4);
  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;
  transform: translateX(100%);
  transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.85s ease, visibility 0.85s;
  pointer-events: none;
  z-index: 1;
}

/* Slide yang sedang aktif dan tampil di tengah */
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 2;
}

/* Animasi Slide Bergeser ke Kiri (Saat Berganti Otomatis) */
.hero-slide.slide-out-left {
  opacity: 0.2;
  visibility: visible;
  transform: translateX(-100%);
  z-index: 1;
}

.hero-slide.slide-in-right {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 2;
}

/* Animasi Slide Bergeser ke Kanan (Saat Klik Tombol Prev) */
.hero-slide.slide-out-right {
  opacity: 0.2;
  visibility: visible;
  transform: translateX(100%);
  z-index: 1;
}

.hero-slide.slide-in-left {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 2;
}

/* Foto Latar Bergerak Terus-Menerus (Continuous Live Camera Pan Effect) */
.hero-slide-bg {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  background-size: cover;
  background-position: center;
  animation: heroPanMotion 14s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroPanMotion {
  0% {
    transform: scale(1.04) translate(0, 0);
  }
  50% {
    transform: scale(1.12) translate(-2%, -1.2%);
  }
  100% {
    transform: scale(1.07) translate(1.5%, 1.2%);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.82) 55%, rgba(15, 23, 42, 0.45) 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: #D5AD52;
  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: #E5DFC9;
  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, #D5AD52, #286B50);
  box-shadow: 0 0 12px rgba(213, 173, 82, 0.4);
}

@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: 3.5rem;
  padding-bottom: 3.5rem;
}

.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.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #FAF8F1;
  margin-bottom: 1.25rem;
}

.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: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-title span {
  background: linear-gradient(135deg, #D5AD52 0%, #D5AD52 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: #F2EFE4; color: #286B50; }
.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: #D5AD52;
  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: #174B3A;
}

.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: #F7E7C4;
  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: #174B3A;
}

.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 {
  display: inline-block;
  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-thumb .news-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.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(14, 46, 36, 0.96) 0%, rgba(18, 60, 48, 0.92) 100%), url('../assets/images/hero-school.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 4rem 0 3.25rem;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--color-muted-gold, #d5ad52);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(213, 173, 82, 0.25) 0%, transparent 65%);
  pointer-events: none;
}

/* 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-title,
  .page-hero h1,
  h1.page-hero-title {
    font-size: 2rem !important;
  }
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.breadcrumbs,
.page-hero .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #e2e8f0 !important;
  margin-bottom: 1rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.breadcrumbs a,
.page-hero .breadcrumbs a {
  color: #fde047 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover,
.page-hero .breadcrumbs a:hover {
  color: #ffffff !important;
}

.page-hero-title,
.page-hero h1,
h1.page-hero-title {
  font-family: var(--font-heading, Lora, Georgia, serif);
  font-size: 2.65rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.95);
}

.page-hero-subtitle,
.page-hero p,
p.page-hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #f8fafc !important;
  max-width: 820px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  margin-bottom: 1.25rem;
}

/* HERO STATUS PILLS (SUPER KONTRAS & TERBACA SEMPURNA) */
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.05rem;
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  transition: transform 0.2s ease;
}
.hero-status-pill:hover {
  transform: translateY(-2px);
}
.hero-status-pill.pill-green {
  background: rgba(6, 78, 59, 0.92);
  color: #a7f3d0;
  border: 1.5px solid #10b981;
}
.hero-status-pill.pill-blue {
  background: rgba(12, 74, 110, 0.92);
  color: #bae6fd;
  border: 1.5px solid #38bdf8;
}
.hero-status-pill.pill-amber {
  background: rgba(120, 53, 15, 0.92);
  color: #fef08a;
  border: 1.5px solid #f59e0b;
}
.hero-status-pill.pill-gold {
  background: rgba(30, 41, 59, 0.92);
  color: #fef08a;
  border: 1.5px solid #eab308;
}
.hero-status-pill.pill-purple {
  background: rgba(88, 28, 135, 0.92);
  color: #e9d5ff;
  border: 1.5px solid #a855f7;
}

/* ==========================================================================
   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: #F2EFE4;
  color: #286B50;
}

.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, #FAF8F1 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: #3D8B6E;
}

.jurusan-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: #F2EFE4;
  color: #286B50;
  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: #FAF8F1;
  font-weight: 700;
  color: var(--color-primary);
}

.schedule-table tr:hover {
  background: #F2EFE4;
}

/* ==========================================================================
   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: #D5AD52;
  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: #FAF8F1;
  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: #FAF8F1;
  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-brand .brand-title {
  color: #ffffff;
  font-size: 1.35rem;
}

.footer-brand .brand-subtitle {
  color: #94a3b8;
}

.footer-desc {
  margin-top: 1rem;
  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: #D5AD52;
  padding-left: 4px;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition-fast);
}

.social-btn:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  transform: translateY(-2px);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.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) {
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.5rem;
    display: none;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
  }
  .nav-menu.active {
    display: flex;
  }
  .dropdown-menu {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    border: none;
    background: #FAF8F1;
    margin-left: 1rem;
    padding: 0.25rem 0.5rem;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .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;
  }
}

/* ==========================================================================
   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: none !important;
}

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: #174B3A !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: #3D8B6E;
}

.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 #FAF8F1;
  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: #FAF8F1;
  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: #3D8B6E;
}

.ekskul-media {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 8px);
  margin-bottom: 1.25rem;
  background: #E5DFC9;
}

.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: #FAF8F1;
  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: #174B3A;
}

.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: #3D8B6E;
  color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   HARAPAN BANGSA STYLE HEADLINE & NEWS PORTAL
   ========================================================================== */
.live-datetime-item {
  font-weight: 600;
  color: #FAF8F1;
  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: #174B3A;
}

.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: #174B3A;
}

.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);
  position: relative;
}

.headline-side-meta .news-badge {
  position: static !important;
  top: auto !important;
  left: auto !important;
  display: inline-block !important;
}

.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) {
  .brand {
    gap: 0.5rem;
  }
  .brand-logo {
    width: 38px;
    height: 38px;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-subtitle {
    font-size: 0.65rem;
  }
}



/* ==========================================================================
   UPT SPF SD NEGERI 104192 - COMPONENT STYLES & INTERACTIVE UI ENHANCEMENTS
   ========================================================================== */

/* 1. Direktori Rombongan Belajar (Rombel) */
.rombel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.rombel-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.rombel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-brand-gradient);
}

.rombel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #F7E7C4;
}

.rombel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.rombel-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
}

.rombel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-fase-a {
  background: #FAF8F1;
  color: #286B50;
  border: 1px solid rgba(40, 107, 80, 0.25);
}

.badge-fase-b {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-fase-c {
  background: #fefce8;
  color: #a16207;
  border: 1px solid #fef08a;
}

.rombel-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 1rem;
  text-align: center;
}

.rombel-stat-item .val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.rombel-stat-item .lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.rombel-homeroom {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-light);
  font-size: 0.875rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rombel-homeroom svg {
  color: var(--color-brand);
  flex-shrink: 0;
}

.rombel-room-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* 2. Kalkulator Usia Masuk PPDB SD (Permendikbud) */
.age-calc-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 2px solid #bbf7d0;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

.age-calc-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.age-calc-icon {
  width: 48px;
  height: 48px;
  background: #10b981;
  color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.age-calc-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .age-calc-form {
    grid-template-columns: 1fr;
  }
}

.calc-result-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-light);
  display: none;
  animation: fadeIn 0.3s ease;
}

.calc-result-box.show {
  display: block;
}

.calc-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.badge-prioritas {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.badge-memenuhi {
  background: #F2EFE4;
  color: #123B2D;
  border: 1px solid #F7E7C4;
}

.badge-kurang {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* 3. Sanitasi SDG & Sekolah Sehat */
.sanitation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.sanitation-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.sanitation-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: #86efac;
}

.sanitation-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sanitation-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.sanitation-info p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* 4. Transparansi Dapodik Table */
.dapodik-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  margin: 1.5rem 0;
}

.dapodik-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

.dapodik-table th {
  background: var(--bg-surface);
  color: var(--color-primary);
  padding: 0.85rem 1rem;
  font-weight: 700;
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
}

.dapodik-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
  vertical-align: middle;
}

.dapodik-table tr:hover td {
  background: #FAF8F1;
}

/* 5. PTK Status Badges */
.ptk-status-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 600;
}

.status-pns {
  background: #FAF8F1;
  color: #123B2D;
  border: 1px solid rgba(23, 75, 58, 0.2);
}

.status-pppk {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.status-honor {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}


/* ==========================================================================
   MODERN ACADEMIC EDITORIAL & DIGITAL LEARNING LIBRARY COMPONENTS
   UPT SPF SD NEGERI 104192 (Hamparan Perak, Deli Serdang)
   ========================================================================== */

/* Typography Enhancements */
h1:not(.page-hero-title):not(.hero-title), 
h2:not(.page-hero-title), 
h3:not(.page-hero-title), 
.editorial-headline, 
.section-title {
  font-family: var(--font-heading);
  letter-spacing: -0.015em;
  color: var(--color-charcoal);
}

.section-tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-forest);
  background: var(--color-soft-cream);
  border: 1px solid var(--border-light);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

/* --------------------------------------------------------------------------
   EDITORIAL HERO SECTION (HOMEPAGE)
   -------------------------------------------------------------------------- */
.editorial-hero {
  background-color: var(--color-warm-ivory);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(40, 107, 80, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(213, 173, 82, 0.07) 0%, transparent 50%);
  border-bottom: 1px solid var(--border-light);
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.editorial-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.editorial-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-forest);
  background: var(--color-soft-cream);
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.editorial-kicker svg {
  width: 14px;
  height: 14px;
  color: var(--color-muted-gold);
}

.editorial-headline {
  font-size: 2.9rem;
  font-weight: 700;
  line-height: 1.18;
  color: var(--color-charcoal);
  margin-bottom: 1.25rem;
}

.editorial-headline em {
  font-style: italic;
  font-family: 'DM Serif Display', var(--font-heading);
  color: var(--color-forest);
  position: relative;
  white-space: nowrap;
}

.editorial-headline em::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 6px;
  background: rgba(213, 173, 82, 0.3);
  z-index: -1;
  border-radius: 2px;
}

.editorial-deck {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-muted-text);
  margin-bottom: 2rem;
  max-width: 580px;
}

.editorial-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-editorial-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--color-forest);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-forest);
  box-shadow: 0 4px 12px rgba(23, 75, 58, 0.15);
  transition: var(--transition-normal);
  text-decoration: none;
}

.btn-editorial-primary:hover {
  background: var(--color-primary-green);
  border-color: var(--color-primary-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(40, 107, 80, 0.22);
}

.btn-editorial-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--color-forest) !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-forest);
  transition: var(--transition-normal);
  text-decoration: none;
}

.btn-editorial-secondary:hover {
  background: var(--color-soft-cream);
  color: var(--color-forest) !important;
  transform: translateY(-2px);
}

/* Organic Editorial Metrics */
.editorial-metrics-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-light);
}

.metric-editorial-item {
  display: flex;
  flex-direction: column;
}

.metric-editorial-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-forest);
  line-height: 1.1;
}

.metric-editorial-label {
  font-size: 0.8rem;
  color: var(--color-muted-text);
  font-weight: 600;
  margin-top: 0.25rem;
  line-height: 1.35;
}

/* Editorial Visual Frame */
.editorial-visual-frame {
  position: relative;
}

.editorial-visual-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid var(--color-soft-white);
  box-shadow: var(--shadow-lg);
  background: var(--color-soft-cream);
  aspect-ratio: 4 / 3;
}

.editorial-visual-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.editorial-visual-frame:hover .editorial-visual-main img {
  transform: scale(1.03);
}

.editorial-floating-badge {
  position: absolute;
  bottom: -18px;
  left: 24px;
  right: 24px;
  background: var(--color-soft-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 3;
}

.floating-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-soft-cream);
  color: var(--color-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-badge-text h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-charcoal);
  margin: 0;
  line-height: 1.25;
}

.floating-badge-text p {
  font-size: 0.78rem;
  color: var(--color-muted-text);
  margin: 0;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   SECTION 2: JELAJAHI KOLEKSI PEMBELAJARAN
   -------------------------------------------------------------------------- */
.section-koleksi {
  background: var(--color-warm-ivory);
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.koleksi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.koleksi-card {
  background: var(--color-soft-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.koleksi-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary-green);
  box-shadow: var(--shadow-md);
}

.koleksi-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-soft-cream);
  color: var(--color-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.koleksi-card-icon svg {
  width: 24px;
  height: 24px;
}

.koleksi-card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-muted-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.koleksi-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-charcoal);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.koleksi-card p {
  font-size: 0.88rem;
  color: var(--color-muted-text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.koleksi-card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-forest);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
}

.koleksi-card-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.koleksi-card:hover .koleksi-card-link svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   SECTION 3: PEMBELAJARAN UNTUK SETIAP JENJANG
   -------------------------------------------------------------------------- */
.section-jenjang {
  background: var(--color-soft-white);
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.jenjang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.jenjang-card {
  background: var(--color-warm-ivory);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
}

.jenjang-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-forest);
  box-shadow: var(--shadow-sm);
}

.jenjang-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--color-soft-cream);
  color: var(--color-forest);
  border: 1px solid var(--border-light);
  margin-bottom: 1rem;
}

.jenjang-classes {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 0.4rem;
}

.jenjang-focus {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-forest);
  margin-bottom: 0.85rem;
}

.jenjang-card p {
  font-size: 0.875rem;
  color: var(--color-muted-text);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.jenjang-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.jenjang-features li {
  font-size: 0.84rem;
  color: var(--color-charcoal);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.45;
}

.jenjang-features li svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary-green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   SECTION 4: RUANG AKTIVITAS (KUIS & KALKULATOR)
   -------------------------------------------------------------------------- */
.section-aktivitas {
  background: var(--color-warm-ivory);
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.aktivitas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

/* Kuis Cilik Widget */
.quiz-widget-card {
  background: var(--color-soft-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.quiz-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-charcoal);
  margin: 0;
}

.quiz-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-forest);
  background: var(--color-soft-cream);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.quiz-question-box {
  background: var(--color-warm-ivory);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.quiz-question-text {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-charcoal);
  line-height: 1.55;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.quiz-option-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--color-soft-white);
  color: var(--color-charcoal);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-option-btn:hover {
  background: var(--color-soft-cream);
  border-color: var(--color-primary-green);
}

.quiz-option-btn.selected-correct {
  background: #E0F2EB;
  border-color: var(--color-success);
  color: #123B2D;
  font-weight: 700;
}

.quiz-option-btn.selected-wrong {
  background: #FCE8E8;
  border-color: var(--color-danger);
  color: #7A1D1D;
  font-weight: 700;
}

.quiz-option-letter {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-soft-cream);
  color: var(--color-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.quiz-feedback-box {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.45;
  margin-top: auto;
}

.quiz-feedback-box.show {
  display: block;
}

/* --------------------------------------------------------------------------
   RESPONSIVE OVERRIDES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .editorial-hero-grid,
  .aktivitas-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .editorial-headline {
    font-size: 2.35rem;
  }
  
  .jenjang-grid {
    grid-template-columns: 1fr;
  }
  
  .editorial-metrics-band {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .editorial-hero {
    padding: 3rem 0 2.5rem;
  }

  .editorial-headline {
    font-size: 1.95rem;
  }
  
  .editorial-metrics-band {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   GALERI KARYA GURU (karya-guru.html) & INTEGRASI DIREKTORI GURU
   ========================================================================== */

/* Navbar PPDB Standalone Button */
.nav-link-ppdb {
  color: var(--color-gold, #d5ad52) !important;
  font-weight: 800 !important;
  background: rgba(213, 173, 82, 0.15);
  padding: 0.45rem 0.85rem !important;
  border-radius: 6px;
  border: 1px solid rgba(213, 173, 82, 0.4);
  transition: all 0.25s ease;
}
.nav-link-ppdb:hover, .nav-link-ppdb.active {
  background: var(--color-gold, #d5ad52) !important;
  color: #123c30 !important;
  box-shadow: 0 4px 12px rgba(213, 173, 82, 0.35);
}

/* Karya Guru Hero & Layout */
.karya-hero {
  background: linear-gradient(135deg, #0b2820 0%, #123c30 50%, #1b4d3e 100%);
  color: #ffffff;
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.karya-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(213, 173, 82, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
  pointer-events: none;
}
.karya-hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
}
.karya-badge-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(213, 173, 82, 0.2);
  border: 1px solid rgba(213, 173, 82, 0.45);
  border-radius: 50px;
  color: #f7e7be;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.karya-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 1rem;
}
.karya-hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #d1e0d9;
  margin-bottom: 2rem;
}
.karya-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-karya-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #10b981;
  color: #ffffff;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
}
.btn-karya-primary:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.55);
}
.btn-karya-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
}
.btn-karya-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Search & Filter Toolbar */
.karya-toolbar-section {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light, #e2e8f0);
  padding: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.karya-search-box {
  position: relative;
  margin-bottom: 1.25rem;
}
.karya-search-input {
  width: 100%;
  padding: 0.9rem 1.2rem 0.9rem 2.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.98rem;
  transition: all 0.2s ease;
}
.karya-search-input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}
.karya-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.1rem;
}
.karya-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.karya-filter-btn {
  padding: 0.45rem 1rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.karya-filter-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.karya-filter-btn.active {
  background: #123c30;
  color: #ffffff;
  border-color: #123c30;
}

/* Karya Cards Grid */
.karya-grid-section {
  padding: 3.5rem 0 5rem;
  background: var(--color-warm-ivory, #fbfbf9);
}
.karya-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}
.karya-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  position: relative;
}
.karya-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
  border-color: #10b981;
}
.karya-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.karya-avatar-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}
.karya-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #10b981;
}
.karya-acc-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #10b981;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 50px;
  border: 2px solid #ffffff;
  letter-spacing: 0.02em;
}
.karya-meta-author h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #123c30;
  margin: 0 0 0.2rem;
}
.karya-meta-author p {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
}
.karya-tag-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.karya-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: #e6f4ea;
  color: #137333;
}
.karya-tag.grade {
  background: #fef3c7;
  color: #92400e;
}
.karya-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 0.75rem;
  flex-grow: 0;
}
.karya-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}
.karya-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}
.karya-date {
  font-size: 0.78rem;
  color: #94a3b8;
}
.btn-access-karya {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  background: #123c30;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-access-karya:hover {
  background: #10b981;
  color: #ffffff;
  transform: translateX(2px);
}

/* Modal Form Unggah Karya */
.karya-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.karya-modal-backdrop.show {
  display: flex;
}
.karya-modal-dialog {
  background: #ffffff;
  border-radius: 20px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.karya-modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
.karya-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #123c30;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.karya-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.karya-modal-body {
  padding: 1.75rem;
}
.karya-form-group {
  margin-bottom: 1.2rem;
}
.karya-form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.35rem;
}
.karya-form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  transition: all 0.2s ease;
}
.karya-form-control:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.karya-modal-footer {
  padding: 1.25rem 1.75rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* ==========================================================================
   INTEGRASI KARYA GURU PADA DIREKTORI GURU (guru.html)
   ========================================================================== */
.teacher-works-container {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed #e2e8f0;
  text-align: left;
  width: 100%;
}
.teacher-works-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.works-count-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: #e6f4ea;
  color: #137333;
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.teacher-works-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.65rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.teacher-work-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  text-decoration: none;
  color: #1e293b;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}
.teacher-work-chip:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0369a1;
}
.teacher-work-chip .chip-type {
  font-size: 0.68rem;
  font-weight: 700;
  color: #123c30;
  background: rgba(18, 60, 48, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  flex-shrink: 0;
}
.teacher-work-chip .chip-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-grow: 1;
}
.teacher-work-chip .chip-icon {
  font-size: 0.8rem;
  color: #10b981;
  flex-shrink: 0;
}
.btn-view-works {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #123c30;
  padding: 0.35rem 0.6rem;
  background: rgba(18, 60, 48, 0.06);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-view-works:hover {
  background: #123c30;
  color: #ffffff;
}
.btn-teacher-works-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  padding: 0.55rem 0.85rem;
  background: linear-gradient(135deg, #123c30 0%, #1e5a48 100%);
  border: 1px solid rgba(213, 173, 82, 0.3);
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(18, 60, 48, 0.15);
}
.btn-teacher-works-modal:hover {
  background: linear-gradient(135deg, #1e5a48 0%, #2b7760 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(18, 60, 48, 0.25);
  color: #fff;
}
.btn-teacher-works-modal .tw-icon { font-size: 1rem; }
.btn-teacher-works-modal .tw-text { flex-grow: 1; text-align: left; }
.btn-teacher-works-modal .tw-arrow { font-size: 0.9rem; }

/* IN-APP VIEWER & TEACHER WORKS MODALS */
.karya-viewer-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.karya-viewer-modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}
.karya-viewer-modal {
  background: #ffffff;
  border-radius: 18px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  animation: modalPopIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPopIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.karya-viewer-header {
  padding: 1.1rem 1.5rem;
  background: #123c30;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.karya-viewer-header-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.karya-viewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d5ad52;
}
.karya-viewer-header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #ffffff;
}
.karya-viewer-header p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: #cbd5e1;
}
.karya-viewer-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  line-height: 1;
  transition: all 0.2s ease;
}
.karya-viewer-close-btn:hover {
  background: #ef4444;
  transform: rotate(90deg);
}
.karya-viewer-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
}
.karya-player-frame-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  margin-bottom: 1.25rem;
}
.karya-player-frame-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.karya-viewer-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.karya-meta-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  background: #e2e8f0;
  color: #334155;
}
.karya-meta-pill.pill-cat {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.karya-meta-pill.pill-grade {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.karya-meta-pill.pill-subject {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.karya-viewer-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #475569;
  background: #f8fafc;
  padding: 1rem 1.15rem;
  border-radius: 10px;
  border-left: 4px solid #123c30;
  margin: 0;
}
.karya-viewer-footer {
  padding: 0.85rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.karya-viewer-footer a.external-link {
  font-size: 0.82rem;
  color: #64748b;
  text-decoration: underline;
}
.karya-viewer-footer a.external-link:hover {
  color: #123c30;
}

/* TEACHER WORKS COLLECTION MODAL */
.tw-collection-modal {
  max-width: 850px;
  width: 100%;
  background: #ffffff;
  border-radius: 18px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  animation: modalPopIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.tw-collection-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #123c30 0%, #1e5a48 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid #d5ad52;
}
.tw-collection-list {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  flex-grow: 1;
}
.tw-work-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s ease;
}
.tw-work-item-card:hover {
  background: #ffffff;
  border-color: #10b981;
  box-shadow: 0 4px 14px rgba(18, 60, 48, 0.08);
}
.tw-work-info h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #123c30;
}
.tw-work-info p {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.45;
}
.btn-play-work {
  background: #123c30;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.btn-play-work:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* ==========================================================================
   PERFECT READABILITY & HIGH CONTRAST OVERRIDE
   ========================================================================== */
.page-hero,
.hero {
  color: #ffffff !important;
}

.page-hero h1,
.page-hero .page-hero-title,
.hero .hero-title {
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.95) !important;
}

.page-hero p,
.page-hero .page-hero-subtitle,
.hero .hero-description {
  color: #f8fafc !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75) !important;
}

.page-hero .breadcrumbs {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7) !important;
}

.page-hero .breadcrumbs a {
  color: #fef08a !important; /* Vivid light gold */
  font-weight: 700 !important;
}

.hero-status-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.45rem 1.05rem !important;
  border-radius: 50px !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(8px) !important;
  white-space: nowrap !important;
  line-height: 1.4 !important;
}

.hero-status-pill.pill-green {
  background: rgba(4, 47, 36, 0.92) !important;
  color: #a7f3d0 !important;
  border: 1.5px solid #10b981 !important;
}

.hero-status-pill.pill-blue {
  background: rgba(8, 47, 73, 0.92) !important;
  color: #bae6fd !important;
  border: 1.5px solid #38bdf8 !important;
}

.hero-status-pill.pill-amber {
  background: rgba(69, 26, 3, 0.92) !important;
  color: #fef08a !important;
  border: 1.5px solid #f59e0b !important;
}

.hero-status-pill.pill-gold {
  background: rgba(30, 41, 59, 0.92) !important;
  color: #fef08a !important;
  border: 1.5px solid #eab308 !important;
}
