/* ================================================================
   SMP Darul Falah – Main Stylesheet
   Modern, Clean, Glassmorphism, Responsive
   ================================================================ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --primary:      #1e40af;
  --primary-dark: #1e3a8a;
  --primary-light:#3b82f6;
  --secondary:    #f59e0b;
  --secondary-dark:#d97706;
  --accent:       #10b981;
  --dark:         #0f172a;
  --dark-2:       #1e293b;
  --gray:         #64748b;
  --gray-light:   #e2e8f0;
  --white:        #ffffff;
  --bg:           #f8fafc;
  --text:         #1e293b;
  --text-muted:   #64748b;
  --border:       rgba(0,0,0,.08);
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.06);
  --shadow:       0 4px 6px rgba(0,0,0,.07),0 2px 4px rgba(0,0,0,.06);
  --shadow-md:    0 10px 25px rgba(0,0,0,.1),0 4px 10px rgba(0,0,0,.08);
  --shadow-lg:    0 20px 40px rgba(0,0,0,.12),0 8px 16px rgba(0,0,0,.08);
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --transition:   all .3s cubic-bezier(.4,0,.2,1);
  --font:         'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: var(--dark); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--text-muted); }

/* ── Utility Classes ────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.text-center { text-align: center; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-auto { margin-top: auto; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.w-100 { width: 100%; }
.img-cover { object-fit: cover; width: 100%; height: 100%; }

/* ── Section Header ─────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 50px; }
.section-label {
  display: inline-block;
  background: rgba(30,64,175,.1);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section-title { margin-bottom: .75rem; }
.section-desc { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(30,64,175,.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30,64,175,.45);
}
.btn-secondary {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(245,158,11,.35);
}
.btn-secondary:hover { background: var(--secondary-dark); color: #fff; transform: translateY(-2px); }
.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--gray-light); color: var(--primary-dark); }
.btn-sm { padding: .5rem 1.25rem; font-size: .875rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-img { overflow: hidden; position: relative; }
.card-img img { transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 1.5rem; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.card-title { font-size: 1.05rem; margin-bottom: .5rem; font-weight: 700; }
.card-title a { color: var(--dark); }
.card-title a:hover { color: var(--primary); }
.card-text { font-size: .9rem; color: var(--text-muted); margin-bottom: 1rem; }

/* Badge */
.badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-primary { background: rgba(30,64,175,.1); color: var(--primary); }
.badge-success { background: rgba(16,185,129,.1); color: #059669; }
.badge-warning { background: rgba(245,158,11,.1); color: #d97706; }
.badge-danger  { background: rgba(239,68,68,.1);  color: #dc2626; }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,.98);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.nav-logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.nav-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.nav-brand-text { line-height: 1.2; }
.nav-brand-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
  display: block;
}
.nav-brand-sub {
  font-size: .7rem;
  color: var(--text-muted);
  display: block;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem .9rem;
  color: var(--dark);
  font-weight: 600;
  font-size: .9rem;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(30,64,175,.06);
}
.nav-link.active { color: var(--primary); }
/* Submenu */
.nav-item:hover .dropdown-menu,
.nav-item.open .dropdown-menu { display: block; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: .5rem;
  animation: fadeDown .2s ease;
}
.dropdown-menu a {
  display: block;
  padding: .6rem 1rem;
  color: var(--text);
  font-size: .9rem;
  border-radius: 6px;
}
.dropdown-menu a:hover { background: var(--bg); color: var(--primary); }
@keyframes fadeDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

.nav-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Hero Slider ────────────────────────────────────────── */
.hero {
  position: relative;
  height: calc(100vh - 70px);
  min-height: 550px;
  max-height: 750px;
  overflow: hidden;
  background: var(--dark);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-bg {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.45);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,.8) 0%, rgba(30,64,175,.4) 100%);
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.hero-text {
  max-width: 680px;
  color: #fff;
  animation: slideUp .6s ease;
}
@keyframes slideUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(245,158,11,.2);
  border: 1px solid rgba(245,158,11,.4);
  color: #fbbf24;
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.hero-title {
  color: #fff;
  font-size: clamp(2rem,5vw,3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-title span { color: #fbbf24; }
.hero-desc {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .75rem;
  z-index: 10;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 100px;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.slider-dot.active {
  width: 28px;
  background: #fff;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.slider-arrow:hover { background: rgba(255,255,255,.3); }
.slider-arrow.prev { left: 1.5rem; }
.slider-arrow.next { right: 1.5rem; }

/* ── Quick Menu ─────────────────────────────────────────── */
.quick-menu {
  padding: 50px 0;
  background: var(--bg);
  position: relative;
  z-index: 5;
  margin-top: -1px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.25rem;
}
.quick-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}
.quick-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30,64,175,.2);
  color: var(--text);
}
.quick-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 1rem;
  transition: var(--transition);
}
.quick-card:hover .quick-icon { transform: scale(1.1) rotate(-5deg); }
.quick-label { font-size: .85rem; font-weight: 700; color: var(--dark); }

/* ── Stats ──────────────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #4f46e5 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  position: relative;
  text-align: center;
}
.stat-item { color: #fff; }
.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: .5rem;
  background: linear-gradient(135deg, #fff, #bfdbfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: .95rem; color: rgba(255,255,255,.8); font-weight: 500; }
.stat-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
  color: rgba(255,255,255,.6);
}

/* ── News Cards ─────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.news-card { display: flex; flex-direction: column; }
.news-card .card-img { height: 210px; }
.news-card .card-body { flex: 1; display: flex; flex-direction: column; }
.news-card .card-title a { 
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Announcement List ──────────────────────────────────── */
.ann-list { display: flex; flex-direction: column; gap: 1rem; }
.ann-item {
  display: flex;
  gap: 1rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.ann-item:hover { transform: translateX(4px); border-color: rgba(30,64,175,.2); }
.ann-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: rgba(30,64,175,.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.ann-icon.pinned { background: rgba(245,158,11,.1); color: var(--secondary); }
.ann-content { flex: 1; }
.ann-title { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: .25rem; }
.ann-date { font-size: .78rem; color: var(--text-muted); }

/* ── Events ─────────────────────────────────────────────── */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.25rem; }
.event-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  transition: var(--transition);
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.event-date-box {
  min-width: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .75rem .5rem;
  text-align: center;
}
.event-day { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.event-month { font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; opacity: .9; }
.event-info { flex: 1; }
.event-title { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: .4rem; }
.event-meta { font-size: .8rem; color: var(--text-muted); display: flex; align-items: center; gap: .3rem; }

/* ── Greeting ───────────────────────────────────────────── */
.greeting-section { background: linear-gradient(135deg, #f0f5ff 0%, #e8f4fd 100%); }
.greeting-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
}
.greeting-photo-wrap { position: relative; }
.greeting-photo {
  width: 260px; height: 340px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.greeting-photo-bg {
  position: absolute;
  inset: -12px -12px 12px 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-lg);
  z-index: 0;
  opacity: .25;
}
.greeting-label { margin-bottom: .5rem; }
.greeting-title { margin-bottom: .5rem; }
.greeting-name { color: var(--primary); font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; }
.greeting-text {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: .975rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--primary);
  font-style: italic;
}

/* ── Gallery ────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-icon { color: #fff; font-size: 2rem; }

/* ── Lightbox ───────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }
.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  color: #fff; font-size: 1.2rem;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.lightbox-nav:hover { background: rgba(255,255,255,.2); }
.lightbox-nav.prev { left: 1.5rem; }
.lightbox-nav.next { right: 1.5rem; }

/* ── Achievement ────────────────────────────────────────── */
.achievement-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 1.25rem; }
.achievement-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
}
.achievement-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.achievement-level {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: capitalize;
  margin-bottom: 1rem;
}
.level-nasional { background: rgba(245,158,11,.15); color: #d97706; }
.level-internasional { background: rgba(139,92,246,.15); color: #7c3aed; }
.level-provinsi { background: rgba(30,64,175,.1); color: var(--primary); }
.level-kabupaten { background: rgba(16,185,129,.1); color: #059669; }
.level-kecamatan { background: rgba(100,116,139,.1); color: var(--gray); }
.level-sekolah { background: rgba(100,116,139,.1); color: var(--gray); }
.achievement-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.achievement-title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.achievement-year { font-size: .8rem; color: var(--text-muted); }

/* ── CTA ────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), #4f46e5);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%;
  width: 400px; height: 400px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.cta-content { position: relative; z-index: 1; }
.cta-title { color: #fff; margin-bottom: 1rem; font-size: clamp(1.8rem,4vw,2.5rem); }
.cta-desc { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* ── Videos ─────────────────────────────────────────────── */
.videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; }
.video-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
}
.play-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.4rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.play-btn:hover { transform: scale(1.15); background: #fff; }
.video-body { padding: 1.25rem; }
.video-title { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: .5rem; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--dark-2);
  color: rgba(255,255,255,.75);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.footer-logo-img {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
}
.footer-name { color: #fff; font-weight: 800; font-size: 1rem; }
.footer-tagline { font-size: .8rem; color: rgba(255,255,255,.5); }
.footer-about { font-size: .875rem; line-height: 1.7; margin-bottom: 1.5rem; }
.social-links { display: flex; gap: .75rem; }
.social-link {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  transition: var(--transition);
}
.social-link:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-title { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; }
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  display: flex; align-items: center; gap: .4rem;
  transition: var(--transition);
}
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-contact { display: flex; flex-direction: column; gap: .75rem; }
.footer-contact-item {
  display: flex;
  gap: .75rem;
  font-size: .875rem;
  color: rgba(255,255,255,.65);
}
.footer-contact-item i { color: var(--primary-light); margin-top: 2px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,.5); }
.footer-bottom-links a:hover { color: #fff; }

/* ── Page Header ─────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #4f46e5 100%);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-header-title { color: #fff; margin-bottom: .5rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: rgba(255,255,255,.7);
  margin-top: .75rem;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { color: rgba(255,255,255,.4); }

/* ── Contact ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }
.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.contact-info-wrap { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: var(--transition);
}
.contact-info-card:hover { transform: translateX(4px); }
.contact-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 1.5rem;
}
.contact-map iframe { width: 100%; height: 300px; border: none; }

/* ── Form Styles ────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--dark); margin-bottom: .5rem; }
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,64,175,.1); }
.form-control::placeholder { color: #94a3b8; }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── News Detail ────────────────────────────────────────── */
.news-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.news-detail-img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}
.news-content { line-height: 1.85; }
.news-content p { color: var(--text); margin-bottom: 1.25rem; }
.news-content h2,h3 { margin: 2rem 0 1rem; }
.sidebar-widget {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.sidebar-title { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 2px solid var(--gray-light); }

/* ── Table ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th { background: var(--bg); color: var(--text-muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: .875rem 1rem; text-align: left; border-bottom: 2px solid var(--gray-light); }
td { padding: .875rem 1rem; border-bottom: 1px solid var(--gray-light); font-size: .9rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gray-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray); }

/* ── Back to Top ────────────────────────────────────────── */
#back-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 999;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
#back-top.show { opacity: 1; visibility: visible; }
#back-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ── Loading Spinner ────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Animations ─────────────────────────────────────────── */
.fade-in { animation: fadeIn .5s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
[data-aos] { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }

/* ── PPDB ───────────────────────────────────────────────── */
.ppdb-timeline { position: relative; padding-left: 2rem; }
.ppdb-timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}
.ppdb-step {
  position: relative;
  padding: 0 0 2rem 2rem;
}
.ppdb-step::before {
  content: '';
  position: absolute;
  left: -2rem; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(30,64,175,.2);
}
.ppdb-step-num {
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .25rem;
}
.ppdb-step-title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.ppdb-step-desc { font-size: .9rem; color: var(--text-muted); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .greeting-inner { grid-template-columns: 1fr; text-align: center; }
  .greeting-photo-wrap { display: flex; justify-content: center; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .nav-menu {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    gap: .25rem;
  }
  .nav-menu.open { max-height: 80vh; overflow-y: auto; }
  .nav-link { padding: .75rem 1rem; width: 100%; }
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }
  .hero { height: 85vh; max-height: none; }
  .hero-title { font-size: 1.8rem; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); gap: .75rem; }
  .quick-icon { width: 46px; height: 46px; font-size: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .75rem; text-align: center; }
  .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .dropdown-menu { position: static; box-shadow: none; border: none; background: var(--bg); animation: none; padding: .25rem .5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); gap: .5rem; }
  .quick-label { font-size: .72rem; }
  .btn-lg { padding: .85rem 1.75rem; font-size: 1rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { text-align: center; justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
