/* ============================================
   Website SMP Negeri 167 Jakarta
   Modern Minimalist Stylesheet
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
  --primary: #1a237e;
  --primary-dark: #0d1542;
  --primary-light: #3949ab;
  --accent: #00897b;
  --accent-light: #26a69a;
  --accent-soft: rgba(0, 137, 123, 0.1);

  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --white: #ffffff;
  --dark: #0f172a;
  --text: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1;
  white-space: nowrap;
}

.btn i { width: 16px; height: 16px; }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 137, 123, 0.35);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 137, 123, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-sm { padding: 8px 16px; font-size: 13px; }

.section .btn-outline {
  color: var(--primary);
  border-color: var(--border);
}
.section .btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ---- Topbar ---- */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar-left span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-left i { width: 13px; height: 13px; opacity: 0.7; }

.topbar-right {
  display: flex;
  gap: 12px;
}

.topbar-right a {
  color: rgba(255,255,255,0.7);
  display: inline-flex;
  padding: 4px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}
.topbar-right a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.topbar-right i { width: 14px; height: 14px; }

/* Topbar Date & Time */
.topbar-datetime {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar-date,
.topbar-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.topbar-datetime i {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

.topbar-divider {
  opacity: 0.25;
  font-size: 11px;
  user-select: none;
}

.topbar-divider-social {
  margin-left: 6px;
  margin-right: 2px;
}

/* ---- Navbar ---- */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

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

.navbar-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-name { font-weight: 700; font-size: 16px; color: var(--primary); white-space: nowrap; }

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link i:first-child { width: 16px; height: 16px; opacity: 0.5; }
.dropdown-arrow { width: 14px; height: 14px; opacity: 0.4; transition: transform var(--transition); }

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(26, 35, 126, 0.05);
}
.nav-link.active { font-weight: 600; }

/* Dropdown */
.nav-dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.nav-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.dropdown-menu a:hover {
  background: rgba(26, 35, 126, 0.05);
  color: var(--primary);
  padding-left: 18px;
}

/* Nav Search */
.nav-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  background: var(--bg-alt);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
  margin-left: 8px;
  color: var(--text-muted);
}
.nav-search-btn:hover { background: var(--primary); color: var(--white); }
.nav-search-btn i { width: 16px; height: 16px; }

/* Mobile Toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.navbar-toggle span {
  width: 22px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; }
.navbar-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Search Overlay ---- */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.search-overlay.active { opacity: 1; visibility: visible; }

.search-overlay-inner { width: 100%; max-width: 640px; padding: 0 20px; }

.search-form-overlay {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-xl);
}

.search-icon-overlay { width: 24px; height: 24px; color: var(--text-muted); flex-shrink: 0; }

.search-input-overlay {
  flex: 1;
  border: none;
  outline: none;
  font-size: 18px;
  font-family: var(--font);
  color: var(--dark);
  background: transparent;
}
.search-input-overlay::placeholder { color: var(--text-light); }

.search-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
}
.search-close i { width: 20px; height: 20px; }

.search-hint {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  margin-top: 16px;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.hero-slider { position: relative; height: 520px; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 21, 66, 0.88) 0%, rgba(0, 137, 123, 0.65) 100%);
}


.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 520px;
  max-width: 680px;
  padding: 0 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.hero-content.active {
  opacity: 1;
  visibility: visible;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 500;
  width: fit-content;
  margin-bottom: 20px;
}
.hero-badge i { width: 16px; height: 16px; }

.hero-title {
  font-size: 44px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition);
}
.slider-btn:hover { background: rgba(255,255,255,0.25); }
.slider-btn i { width: 20px; height: 20px; }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.slider-dot.active { background: var(--white); width: 28px; border-radius: 8px; }

/* ---- Stats Section ---- */
.section-stats {
  margin-top: -40px;
  position: relative;
  z-index: 10;
  padding-bottom: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  border: 1px solid var(--border-light);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon i { width: 24px; height: 24px; }

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* ---- Visi & Misi ---- */
.section-visimisi {
  background: var(--white);
  overflow: hidden;
}

.visimisi-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: start;
}

/* -- Visi Card -- */
.visi-card {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #00897b 100%);
  border-radius: 20px;
  padding: 40px 36px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.visi-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}
.visi-label i { width: 18px; height: 18px; }

.visi-quote {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  border: none;
  color: var(--white);
  position: relative;
  z-index: 1;
}

/* Decorative circles */
.visi-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.visi-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
}
.visi-circle-1 {
  width: 200px;
  height: 200px;
  top: -60px;
  right: -40px;
  background: rgba(255,255,255,0.04);
}
.visi-circle-2 {
  width: 140px;
  height: 140px;
  bottom: -30px;
  left: -30px;
  background: rgba(255,255,255,0.03);
}
.visi-circle-3 {
  width: 80px;
  height: 80px;
  top: 40%;
  right: 20%;
  background: rgba(255,255,255,0.05);
  animation: float-gentle 6s ease-in-out infinite;
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* -- Misi Card -- */
.misi-card {
  background: var(--bg-alt);
  border-radius: 20px;
  padding: 36px;
}

.misi-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 24px;
}
.misi-label i { width: 18px; height: 18px; }

.misi-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.misi-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}
.misi-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.misi-number {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  margin-top: 2px;
}

.misi-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
}

.misi-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}
.misi-icon i { width: 18px; height: 18px; }

.misi-content p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
  font-weight: 500;
}

/* ---- Video Profil ---- */
.section-video {
  background: linear-gradient(135deg, #0a1128 0%, var(--primary-dark) 50%, #0d2137 100%);
  padding: 100px 0;
  overflow: hidden;
  position: relative;
}
.section-video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(0,137,123,0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(57,73,171,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* -- Text Side -- */
.video-text { color: var(--white); }

.section-badge-light {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
}
.section-badge-light i { color: #4dd0e1; }

.video-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  margin: 20px 0 16px;
  color: var(--white);
}

.video-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
}

.video-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.video-highlight-item i {
  width: 18px;
  height: 18px;
  color: #4dd0e1;
}

/* -- Video Player -- */
.video-player-wrap {
  position: relative;
}

.video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
  cursor: pointer;
  background: #000;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}
.video-player:hover .video-thumbnail {
  transform: scale(1.03);
  filter: brightness(0.7);
}

/* Play Button */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.video-play-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}
.video-play-icon svg { margin-left: 3px; }
.video-player:hover .video-play-icon {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.4);
  transform: scale(1.08);
}

.video-play-pulse {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  animation: video-pulse 2s ease-out infinite;
}
@keyframes video-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* YouTube badge */
.video-badge-yt {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  color: #ff0000;
  font-size: 12px;
  font-weight: 700;
  z-index: 3;
}

/* Iframe loaded state */
.video-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
}

/* YouTube fallback link */
.video-yt-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.video-yt-link:hover {
  background: rgba(255,0,0,0.15);
  border-color: rgba(255,0,0,0.3);
  color: #ff4444;
}
.video-yt-link svg { color: #ff0000; }

/* ---- Ekstrakurikuler ---- */
.section-ekskul {
  background: var(--bg-alt);
  padding: 80px 0;
}

.ekskul-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.ekskul-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: default;
}
.ekskul-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.ekskul-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: #f8f9fa;
  border: 3px solid #e8ecf1;
  transition: all 0.3s ease;
}
.ekskul-card:hover .ekskul-logo {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(26, 35, 126, 0.08);
}

.ekskul-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ekskul-logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.ekskul-logo-placeholder i { width: 36px; height: 36px; }

.ekskul-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  line-height: 1.3;
}

.ekskul-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

a.ekskul-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
}
a.ekskul-card:hover {
  border-color: var(--primary-light);
}

.ekskul-link-hint {
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: var(--primary);
}
.ekskul-link-hint i { width: 14px; height: 14px; }
a.ekskul-card:hover .ekskul-link-hint { opacity: 1; }

/* ---- Sections ---- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 20px;
}
.section-header.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-badge i { width: 14px; height: 14px; }

.section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.section-desc {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 15px;
}

/* ---- Featured Post ---- */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  margin-bottom: 40px;
  transition: all var(--transition);
}
.featured-post:hover { box-shadow: var(--shadow-lg); }

.featured-image {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.featured-post:hover .featured-image img { transform: scale(1.05); }

.featured-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
}
.featured-placeholder i { width: 48px; height: 48px; }

.featured-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 16px;
  width: fit-content;
}

.featured-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 12px;
}
.featured-content h3 a:hover { color: var(--primary); }

.featured-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-light);
}
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta i { width: 14px; height: 14px; }

/* ---- Post Cards Grid ---- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.post-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card-image img { transform: scale(1.08); }

.post-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
}
.post-card-placeholder i { width: 36px; height: 36px; }

.post-card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  border-radius: 100px;
}

.post-card-body { padding: 20px; }

.post-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-title a:hover { color: var(--primary); }

.post-card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.post-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.post-card-meta i { width: 13px; height: 13px; }

/* ---- Events ---- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.event-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.event-day { font-size: 28px; font-weight: 800; line-height: 1; }
.event-month { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

.event-info h4 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.event-info p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; }

.event-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-light);
}
.event-meta span { display: inline-flex; align-items: center; gap: 4px; }
.event-meta i { width: 13px; height: 13px; }

/* ---- Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  display: block;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--white);
  opacity: 0;
  transition: all var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { width: 28px; height: 28px; }
.gallery-overlay span { font-size: 13px; font-weight: 500; }

/* ---- Apps Hub ---- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  text-decoration: none;
}
.app-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.app-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-icon i { width: 24px; height: 24px; }

.app-info h4 { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.app-info p { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

.app-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-light);
  margin-left: auto;
  flex-shrink: 0;
  transition: all var(--transition);
}
.app-card:hover .app-arrow { color: var(--primary); transform: translateX(4px); }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow); }

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon i { width: 20px; height: 20px; }

.contact-card h4 { font-size: 13px; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.contact-card p { font-size: 14px; color: var(--dark); font-weight: 500; }

.contact-socials {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.contact-socials a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.contact-socials a:hover { background: var(--primary); color: var(--white); }
.contact-socials i { width: 18px; height: 18px; }

/* ---- Footer ---- */
.footer {
  background: linear-gradient(135deg, #0d1542 0%, #1a237e 50%, #0d2137 100%);
  color: rgba(255,255,255,0.7);
  padding: 28px 0 0;
  position: relative;
}

.footer-simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
}

.footer-logo-center {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 4px;
}

.footer-school-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-address {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  max-width: 500px;
  line-height: 1.6;
}

.footer-contact-line {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}

.footer-social-icons {
  display: flex;
  gap: 12px;
  margin: 4px 0 0;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.25s ease;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
}
.social-icon:hover { transform: translateY(-3px); }
.social-ig:hover { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); border-color: transparent; }
.social-yt:hover { background: #ff0000; border-color: transparent; }
.social-fb:hover { background: #1877f2; border-color: transparent; }

.footer-divider {
  width: 80%;
  max-width: 500px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 12px 0;
}

.footer-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
}

.footer-nav-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s ease;
  padding: 2px 4px;
}
.footer-nav-links a:hover { color: #fff; }

.footer-sep {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  user-select: none;
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  padding: 10px 0 18px;
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-lg);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); transform: translateY(-2px); }
.back-to-top i { width: 20px; height: 20px; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.lightbox.active { opacity: 1; visibility: visible; }

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close i, .lightbox-prev i, .lightbox-next i { width: 24px; height: 24px; }

/* ---- Animations ---- */
.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Page Header (inner pages) ---- */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,137,123,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header-content { position: relative; z-index: 2; }

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb i { width: 14px; height: 14px; }

.page-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.3px;
}

.page-header p {
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  font-size: 15px;
}

/* ---- Content Pages ---- */
.page-content {
  padding: 60px 0;
}

.content-body {
  max-width: 800px;
  margin: 0 auto;
}

.content-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  margin-top: 32px;
}
.content-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 24px;
}

.content-body p { margin-bottom: 16px; line-height: 1.8; }
.content-body ul, .content-body ol { padding-left: 24px; margin-bottom: 16px; }
.content-body li { margin-bottom: 8px; line-height: 1.7; }
.content-body img { border-radius: var(--radius); margin: 20px 0; }

/* ---- Post Single ---- */
.post-single-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0 100px;
}

.post-single-content {
  max-width: 800px;
  margin: -60px auto 0;
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.post-single-image {
  margin: -60px -40px 30px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  max-height: 400px;
}
.post-single-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Search Results ---- */
.search-results-list { display: flex; flex-direction: column; gap: 16px; }

.search-result-item {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.search-result-item:hover { box-shadow: var(--shadow); }
.search-result-item h3 { font-size: 18px; margin-bottom: 8px; }
.search-result-item h3 a:hover { color: var(--primary); }
.search-result-item p { color: var(--text-muted); font-size: 14px; }

/* ---- Agenda Page ---- */
.agenda-list { display: flex; flex-direction: column; gap: 16px; }

.agenda-card {
  display: flex;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.agenda-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }

/* ---- Apps Full Page ---- */
.apps-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.app-full-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}
.app-full-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.app-full-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-full-icon i { width: 28px; height: 28px; }
.app-full-card h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.app-full-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ---- Flash Messages ---- */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ---- Pagination ---- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.page-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.page-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ---- Gallery Page ---- */
.gallery-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ---- Responsive ---- */

/* Content body responsive defaults */
.content-body table {
  width: 100%;
  overflow-x: auto;
  display: block;
}

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }

  .apps-full-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-page-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  /* ---- Topbar & Navbar ---- */
  .topbar { display: none; }
  .navbar-toggle { display: flex; }
  .navbar-inner { height: 60px; }
  .navbar-logo { width: 36px; height: 36px; }
  .brand-name { font-size: 14px; }
  .brand-tagline { font-size: 10px; }

  .navbar-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    gap: 2px;
    border-top: 1px solid var(--border-light);
    max-height: 70vh;
    overflow-y: auto;
    z-index: 999;
  }
  .navbar-menu.active { display: flex; }

  .nav-link { padding: 12px 16px; width: 100%; justify-content: flex-start; font-size: 14px; }

  .nav-dropdown { width: 100%; }
  .nav-dropdown > .nav-link { width: 100%; justify-content: flex-start; }

  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown .dropdown-menu {
    position: relative;
    box-shadow: none;
    transform: none;
    border: none;
    background: var(--bg-alt);
    opacity: 1;
    visibility: visible;
    padding: 4px 0;
    margin: 0;
    min-width: unset;
    border-radius: var(--radius-sm);
    width: 100%;
  }
  .nav-dropdown .dropdown-menu a {
    padding: 10px 16px 10px 28px;
    font-size: 13.5px;
    text-align: left;
  }
  .nav-dropdown .dropdown-menu a:hover {
    padding-left: 28px;
  }

  .nav-search-btn {
    width: 100%;
    border-radius: var(--radius-sm);
    margin: 8px 0 0;
    justify-content: flex-start;
    padding: 12px 16px;
    gap: 8px;
  }
  .nav-search-btn::after { content: 'Cari...'; font-size: 14px; }

  /* ---- Hero ---- */
  .hero-slider, .hero-content { height: 420px; }
  .hero { min-height: 420px; }
  .hero-title { font-size: 24px; }
  .hero-subtitle { font-size: 14px; margin-bottom: 20px; }
  .hero-badge { font-size: 11px; padding: 6px 12px; }
  .slider-btn { width: 36px; height: 36px; }
  .slider-btn i { width: 16px; height: 16px; }
  .slider-prev { left: 8px; }
  .slider-next { right: 8px; }
  .slider-dots { bottom: 16px; }

  /* ---- Stats ---- */
  .section-stats { margin-top: 0; padding-top: 24px; padding-bottom: 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-card { padding: 14px 12px; gap: 10px; }
  .stat-icon { width: 42px; height: 42px; }
  .stat-icon i { width: 20px; height: 20px; }
  .stat-value { font-size: 20px; }
  .stat-label { font-size: 11px; }

  /* ---- Ekskul ---- */
  .ekskul-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .ekskul-logo { width: 72px; height: 72px; }
  .ekskul-card { padding: 20px 12px; }

  /* ---- Visi Misi ---- */
  .visimisi-grid { grid-template-columns: 1fr; gap: 24px; }
  .visi-card { min-height: auto; padding: 32px 28px; }
  .visi-quote { font-size: 19px; }
  .misi-card { padding: 28px 20px; }
  .misi-item { padding: 12px 14px; gap: 12px; }
  .misi-content p { font-size: 13px; }

  /* ---- Video ---- */
  .section-video { padding: 60px 0; }
  .video-grid { grid-template-columns: 1fr; gap: 32px; }
  .video-title { font-size: 26px; }
  .video-desc { font-size: 14px; }
  .video-text { text-align: center; }
  .video-highlights { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 16px; }

  /* ---- Sections ---- */
  .section { padding: 40px 0; }
  .section-title { font-size: 22px; }
  .section-desc { font-size: 14px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* ---- Featured & Posts ---- */
  .featured-post { grid-template-columns: 1fr; }
  .featured-image { min-height: 180px; }
  .featured-content { padding: 20px; }
  .featured-content h3 { font-size: 18px; }
  .posts-grid { grid-template-columns: 1fr; gap: 16px; }
  .post-card-image { height: 180px; }

  /* ---- Events ---- */
  .events-grid { grid-template-columns: 1fr; }
  .event-card { padding: 16px; gap: 14px; }
  .event-date { min-width: 54px; padding: 10px; }
  .event-day { font-size: 22px; }

  /* ---- Gallery ---- */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-page-grid { grid-template-columns: repeat(2, 1fr); }

  /* ---- Apps ---- */
  .apps-grid { grid-template-columns: 1fr; }
  .apps-full-grid { grid-template-columns: 1fr; }
  .app-full-card { padding: 24px 16px; }



  /* ---- Page Header ---- */
  .page-header { padding: 40px 0 36px; }
  .page-header h1 { font-size: 22px; }
  .page-header p { font-size: 14px; }

  /* ---- Breadcrumb ---- */
  .breadcrumb {
    flex-wrap: wrap;
    font-size: 12px;
    gap: 4px;
  }

  /* ---- Post Single ---- */
  .post-single-header { padding: 40px 0 80px; }
  .post-single-header h1 { font-size: 22px !important; }
  .post-single-content {
    padding: 20px 16px;
    margin: -50px 10px 0;
    border-radius: var(--radius);
  }
  .post-single-image {
    margin: -20px -16px 20px;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  /* ---- Content Body ---- */
  .content-body { padding: 0; }
  .content-body h2 { font-size: 20px; margin-top: 24px; }
  .content-body h3 { font-size: 17px; margin-top: 20px; }
  .content-body p { font-size: 14px; line-height: 1.75; }
  .content-body ul, .content-body ol { padding-left: 20px; }
  .content-body li { font-size: 14px; }
  .content-body table {
    font-size: 13px;
    min-width: 500px;
  }
  .content-body img { margin: 14px 0; }

  /* ---- Share Buttons ---- */
  .post-single-content [style*="display:flex"][style*="gap:8px"] {
    flex-wrap: wrap !important;
  }

  /* ---- Post Meta ---- */
  .post-meta {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
  }

  /* ---- Search ---- */
  .search-overlay { padding-top: 12vh; }
  .search-input-overlay { font-size: 16px; }
  .search-result-item { padding: 16px; }
  .search-result-item h3 { font-size: 16px; }

  /* ---- Agenda Page ---- */
  .agenda-card { flex-direction: row; gap: 14px; padding: 16px; }

  /* ---- Contact ---- */
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-card { padding: 16px; gap: 12px; }

  /* ---- Lightbox ---- */
  .lightbox-close { top: 10px; right: 10px; width: 40px; height: 40px; }
  .lightbox-prev, .lightbox-next { width: 36px; height: 36px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }

  /* ---- Pagination ---- */
  .pagination { gap: 4px; }
  .page-btn { min-width: 36px; height: 36px; font-size: 13px; }

  /* ---- Filter Buttons ---- */
  .gallery-filters { gap: 6px; }
  .filter-btn { padding: 6px 12px; font-size: 12px; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  
  .hero-slider, .hero-content { height: 380px; }
  .hero { min-height: 380px; }
  .hero-title { font-size: 21px; }
  .hero-subtitle { font-size: 13px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .section-stats { margin-top: 0; padding-top: 20px; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .stat-card { padding: 12px 10px; gap: 8px; }
  .stat-icon { width: 38px; height: 38px; }
  .stat-value { font-size: 18px; }
  .stat-label { font-size: 10px; }

  .ekskul-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ekskul-logo { width: 64px; height: 64px; }
  .ekskul-card { padding: 16px 10px; }
  .ekskul-name { font-size: 12px; }
  .ekskul-desc { font-size: 10px; }

  .video-title { font-size: 22px; }
  .video-play-icon { width: 56px; height: 56px; }
  .video-play-pulse { width: 56px; height: 56px; }
  .video-play-icon svg { width: 22px; height: 22px; }
  .video-highlight-item { font-size: 12px; }

  .section { padding: 32px 0; }
  .section-title { font-size: 20px; }

  .post-card-body { padding: 14px; }
  .post-card-title { font-size: 15px; }
  .post-card-excerpt { font-size: 12px; }

  .featured-content h3 { font-size: 16px; }
  .featured-content p { font-size: 13px; }
  .featured-content { padding: 16px; }

  .post-single-header h1 { font-size: 20px !important; }
  .post-single-content { padding: 16px 12px; margin: -50px 8px 0; }

  .content-body h2 { font-size: 18px; }
  .content-body h3 { font-size: 16px; }
  .content-body p { font-size: 13.5px; }

  .app-full-card { padding: 20px 14px; }
  .app-full-icon { width: 52px; height: 52px; }

  .page-header { padding: 32px 0 28px; }
  .page-header h1 { font-size: 20px; }
}

/* ============================================
   Tenaga Pendidik & Kependidikan Page
   ============================================ */

/* Page Header Desc */
.page-header-desc {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  margin-top: 8px;
  max-width: 560px;
}

/* Stats Summary */
.staff-stats {
  margin-top: -36px;
  position: relative;
  z-index: 10;
  padding-bottom: 12px;
}

.staff-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.staff-stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.staff-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.staff-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.staff-stat-icon i { width: 24px; height: 24px; }

.staff-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.staff-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* Search Box */
.staff-search-section {
  padding: 28px 0 8px;
}

.staff-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  transition: all var(--transition);
  max-width: 520px;
  margin: 0 auto;
}
.staff-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 35, 126, 0.08);
}
.staff-search-box i { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; }
.staff-search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: var(--font);
  color: var(--dark);
  background: transparent;
}
.staff-search-box input::placeholder { color: var(--text-light); }

.staff-search-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(26, 35, 126, 0.08);
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
  display: none;
}

/* Staff Section */
.staff-section { padding-top: 48px; padding-bottom: 56px; }

/* Leadership Cards */
.staff-leadership {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.staff-leader-card {
  background: var(--white);
  border-radius: 20px;
  padding: 36px 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  max-width: 320px;
  flex: 1;
  min-width: 260px;
}
.staff-leader-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.staff-leader-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  border: 3px solid var(--border-light);
}
.staff-leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.staff-leader-card:hover .staff-leader-photo img {
  transform: scale(1.08);
}

.staff-leader-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 32px;
  height: 32px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  color: var(--primary);
}
.staff-leader-badge i { width: 16px; height: 16px; }

.staff-leader-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.staff-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
}
.staff-role-badge i { width: 14px; height: 14px; }

/* Staff Grid */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.staff-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  cursor: default;
}
.staff-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

/* Photo-based staff card */
.staff-card-photo {
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  padding: 0;
  overflow: hidden;
}
.staff-card-photo .staff-card-body {
  padding: 16px 16px 18px;
}
.staff-card-photo .staff-card-role {
  justify-content: center;
}

.staff-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-alt);
}
.staff-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}
.staff-card-photo:hover .staff-card-img img {
  transform: scale(1.06);
}

.staff-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.staff-card-avatar {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-initials {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.staff-card-body { flex: 1; min-width: 0; }

.staff-card-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.staff-card-role {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
}
.staff-card-role i { width: 13px; height: 13px; flex-shrink: 0; }

.staff-card-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 100px;
  margin-top: 8px;
}

/* Kependidikan grid */
.staff-grid-kependidikan {
  grid-template-columns: repeat(3, 1fr);
}

/* ---- Responsive: Staff Page ---- */
@media (max-width: 1024px) {
  .staff-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .staff-grid,
  .staff-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .staff-grid-kependidikan {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .staff-stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .staff-stat-card { padding: 18px; }
  .staff-stat-value { font-size: 22px; }

  .staff-leadership {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .staff-leader-card {
    max-width: 100%;
    padding: 28px 24px;
  }
  .staff-leader-photo { width: 96px; height: 96px; }
  .staff-leader-name { font-size: 16px; }

  .staff-grid,
  .staff-grid-3,
  .staff-grid-kependidikan {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .staff-card-img { height: 150px; }
  .staff-card-photo .staff-card-body { padding: 12px 10px 14px; }
  .staff-card-name { font-size: 12.5px; }
  .staff-card-role { font-size: 11px; }
  .staff-card-category { font-size: 10px; padding: 2px 8px; }

  .staff-search-box { padding: 12px 16px; }

  .page-header-desc { font-size: 13px; }
}

@media (max-width: 420px) {
  .staff-grid,
  .staff-grid-3,
  .staff-grid-kependidikan {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .staff-card-img { height: 120px; }
  .staff-card-name { font-size: 11.5px; }
}
