/* ==========================================================================
   SMA Muhammadiyah 2 Majalaya - Fresh Modern Design System & Scroll Animations
   ========================================================================== */

:root {
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --sky-50: #f0f9ff;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-700: #0369a1;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --grad-primary: linear-gradient(135deg, #059669 0%, #10b981 50%, #0ea5e9 100%);
  --grad-banner: linear-gradient(135deg, #064e3b 0%, #047857 52%, #0369a1 100%);
  --grad-fresh: linear-gradient(135deg, #10b981 0%, #38bdf8 100%);
  --grad-warm: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(5, 150, 105, 0.14);
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--slate-800);
  background-color: var(--slate-50);
  line-height: 1.65;
  overflow-x: hidden;
}

::selection {
  background: var(--emerald-100);
  color: var(--emerald-700);
}

:focus-visible {
  outline: 3px solid var(--emerald-500);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--slate-900);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  z-index: 10000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--slate-900);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  text-underline-offset: 3px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--slate-100);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
  border: 2px solid var(--slate-100);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--emerald-600);
}

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

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--grad-primary);
  z-index: 9999;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
  transition: width 0.08s linear;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1220px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 10px 20px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  top: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

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

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

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.3);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo.has-img {
  background: #fff;
  padding: 3px;
  border: 1px solid var(--slate-200);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.brand-text strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--slate-900);
}

.brand-text span {
  display: block;
  font-size: 0.72rem;
  color: var(--emerald-600);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-700);
  transition: all 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--emerald-700);
  background: var(--emerald-50);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.28);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 34px rgba(5, 150, 105, 0.38);
}

.btn-outline {
  background: #fff;
  color: var(--slate-800);
  border: 1.5px solid var(--slate-200);
}

.btn-outline:hover {
  border-color: var(--emerald-500);
  color: var(--emerald-700);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.84rem;
}

.menu-toggle {
  display: none;
  background: var(--slate-100);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--slate-800);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(90vh, 800px);
  display: flex;
  align-items: center;
  padding: 116px 0 72px;
  overflow: hidden;
  background: radial-gradient(circle at 12% 20%, rgba(16, 185, 129, 0.14), transparent 42%),
              radial-gradient(circle at 88% 15%, rgba(14, 165, 233, 0.16), transparent 42%),
              radial-gradient(circle at 60% 85%, rgba(245, 158, 11, 0.1), transparent 40%),
              #f8fafc;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  animation: floatOrb 10s ease-in-out infinite alternate;
}

.hero-orb.orb-1 {
  width: 420px;
  height: 420px;
  background: #a7f3d0;
  top: -80px;
  left: -100px;
}

.hero-orb.orb-2 {
  width: 360px;
  height: 360px;
  background: #bae6fd;
  bottom: -60px;
  right: -80px;
  animation-delay: -4s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(35px, -30px) scale(1.08); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--emerald-100);
  color: var(--emerald-700);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--slate-700);
  max-width: 580px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--slate-200);
}

.hero-meta-item strong {
  display: block;
  font-size: 1.05rem;
  color: var(--slate-900);
}

.hero-meta-item span {
  font-size: 0.82rem;
  color: var(--slate-500);
}

/* Hero Visual Card */
.hero-visual {
  perspective: 1200px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
  position: relative;
}

.hero-photo-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--slate-100);
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-banner {
  border-radius: 20px;
  background: var(--grad-banner);
  color: #fff;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.hero-card-banner::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  top: -50px;
  right: -40px;
}

.accreditation-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-card-banner h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.hero-card-banner p {
  font-size: 0.9rem;
  opacity: 0.92;
}

/* ==========================================================================
   Section Utilities & Scroll Reveal Animations
   ========================================================================== */
.section {
  padding: clamp(64px, 7.5vw, 96px) 0;
  position: relative;
}

.section-alt {
  background: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-header--split {
  text-align: left;
  max-width: none;
  margin: 0 0 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-header--split .section-header-copy {
  max-width: 560px;
}

.section-header--split .filter-tabs {
  margin-bottom: 0;
  justify-content: flex-end;
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--slate-500);
  font-size: 1.02rem;
}

/* Flashy Scroll Reveal States (hanya sembunyi jika JS aktif) */
html.js-ready [data-reveal] {
  opacity: 0;
  will-change: transform, opacity, filter;
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

html.js-ready [data-reveal="up"] { transform: translateY(48px); }
html.js-ready [data-reveal="left"] { transform: translateX(-52px); }
html.js-ready [data-reveal="right"] { transform: translateX(52px); }
html.js-ready [data-reveal="scale"] { transform: scale(0.88); }
html.js-ready [data-reveal="blur"] { transform: translateY(28px); filter: blur(10px); }

html.js-ready [data-reveal].revealed {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  filter: blur(0);
}

/* ==========================================================================
   Sambutan & Visi Misi
   ========================================================================== */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
}

.glass-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.principal-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.principal-avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--grad-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 800;
  flex-shrink: 0;
}

.quote-box {
  background: var(--emerald-50);
  border-left: 4px solid var(--emerald-500);
  padding: 18px 20px;
  border-radius: 0 14px 14px 0;
  color: var(--slate-700);
  font-size: 0.96rem;
}

.vision-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.vision-box h3 {
  color: #fff;
  margin-bottom: 12px;
}

.vision-box p {
  color: #cbd5e1;
  margin-bottom: 22px;
}

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

.mission-list li {
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  color: #e2e8f0;
}

/* ==========================================================================
   Program Unggulan & Statistik
   ========================================================================== */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.program-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.program-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--emerald-50);
  color: var(--emerald-600);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald-100);
}

.program-card:hover::before {
  transform: scaleX(1);
}

.badge-soft {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sky-50);
  color: var(--sky-700);
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.badge-soft--emerald {
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
}

.principal-meta-grid {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--slate-200);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-size: 0.88rem;
}

.principal-meta-card strong {
  display: block;
  color: var(--slate-900);
}

.principal-meta-card span {
  color: var(--slate-500);
}

.contact-link {
  color: var(--emerald-700);
  font-weight: 600;
}

.contact-link:hover {
  text-decoration: underline;
}

.program-card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.program-card p {
  font-size: 0.9rem;
  color: var(--slate-500);
}

/* Stats Banner */
.stats-banner {
  margin-top: 56px;
  background: var(--grad-banner);
  border-radius: var(--radius-xl);
  padding: 42px 36px;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.stat-item .counter {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 800;
  display: block;
  font-variant-numeric: tabular-nums;
}

.stat-item span {
  font-size: 0.9rem;
  opacity: 0.92;
  font-weight: 600;
}

/* ==========================================================================
   Filter Tabs, Ekstrakurikuler & Berita
   ========================================================================== */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 999px;
  border: 1.5px solid var(--slate-200);
  background: #fff;
  color: var(--slate-700);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--emerald-600);
  border-color: var(--emerald-600);
  color: #fff;
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.22);
}

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

.ekskul-card,
.news-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s ease;
}

.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--slate-100);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.ekskul-card:hover .card-thumb img,
.news-card:hover .card-thumb img {
  transform: scale(1.07);
}

.ekskul-card:hover,
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.ekskul-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--slate-100);
  font-size: 0.82rem;
  color: var(--slate-500);
  font-weight: 600;
}

img.img-broken {
  opacity: 0;
}

.card-thumb:has(img.img-broken),
.hero-photo-frame:has(img.img-broken),
.gallery-item:has(img.img-broken) {
  background: var(--grad-banner);
}

.news-date {
  font-size: 0.8rem;
  color: var(--slate-500);
  font-weight: 600;
}

.news-card h3 {
  font-size: 1.15rem;
  margin: 10px 0;
}

.news-card p {
  font-size: 0.92rem;
  color: var(--slate-500);
  margin-bottom: 18px;
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--emerald-600);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}

/* ==========================================================================
   Galeri
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 230px;
  gap: 20px;
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: none;
  padding: 0;
  background: var(--slate-100);
  text-align: left;
  width: 100%;
  height: 100%;
  font-family: inherit;
}

.empty-filter-state {
  display: none;
  text-align: center;
  padding: 40px 24px;
  background: var(--slate-50);
  border: 1px dashed var(--slate-200);
  border-radius: var(--radius-lg);
  color: var(--slate-500);
}

.empty-filter-state.visible {
  display: block;
}

.form-feedback {
  display: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-feedback.error {
  display: block;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.form-feedback.success {
  display: block;
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-100);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85), transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #fff;
  opacity: 0.92;
  transition: opacity 0.3s ease;
}

.gallery-overlay span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber-400);
  font-weight: 700;
}

.gallery-overlay h4 {
  color: #fff;
  font-size: 0.98rem;
}

/* ==========================================================================
   Kontak & Footer
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
}

.contact-info-list {
  display: grid;
  gap: 4px;
  margin-top: 18px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--slate-100);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--slate-700);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--slate-200);
  font-family: inherit;
  font-size: 1rem;
  background: var(--slate-50);
  transition: all 0.25s ease;
}

.glass-card,
.ekskul-card,
.news-card,
.program-card,
.modal-box {
  min-width: 0;
  overflow-wrap: break-word;
}

.form-control:focus {
  outline: none;
  border-color: var(--emerald-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.footer {
  background: var(--slate-900);
  color: #cbd5e1;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h4 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--emerald-500);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: #94a3b8;
}

/* ==========================================================================
   Modal & Toast
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  z-index: 2000;
  padding: 20px;
}

.modal-backdrop.open {
  display: grid;
}

.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--slate-100);
  cursor: pointer;
  font-weight: 800;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--slate-900);
  color: #fff;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s ease;
  z-index: 3000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .profile-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .section-header--split {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-header--split .filter-tabs {
    justify-content: flex-start;
  }
  .cards-4,
  .stats-banner {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
  .cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-orb, .pulse-dot, .marquee-track { animation: none !important; }
  html.js-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions .btn-outline {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 18px;
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
  }
  .cards-4,
  .cards-3,
  .gallery-grid,
  .stats-banner,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }
  .program-card {
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 8px 14px;
    width: calc(100% - 20px);
  }
  .brand-text span {
    display: none;
  }
  .nav-actions .btn-primary {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
  .principal-meta-grid {
    grid-template-columns: 1fr;
  }
}
