/* ============================================================
   YAYASAN PENDIDIKAN BAHRUL ULUM - MAIN STYLESHEET
   Design: Islamic Educational Institution - Elegant & Professional
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Noto+Sans+Arabic:wght@400;600;700&display=swap');

/* ========================
   CSS VARIABLES
   ======================== */
:root {
  /* Brand Colors */
  --primary: #1a5c2a;
  --primary-light: #2d8a3e;
  --primary-dark: #0f3a19;
  --secondary: #c9a227;
  --secondary-light: #e8c04d;
  --accent: #e8f5e9;
  
  /* Unit Colors */
  --paud-color: #E65100;
  --ra-color: #1565C0;
  --mi-color: #1a5c2a;
  
  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Typography */
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-arabic: 'Amiri', 'Noto Sans Arabic', serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 40px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.07);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout */
  --nav-height: 70px;
  --bottom-nav-height: 65px;
  --container-max: 1200px;
}

/* ========================
   RESET & BASE
   ======================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.7;
  min-height: 100vh;
  padding-bottom: var(--bottom-nav-height);
  overflow-x: hidden;
}

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

/* ========================
   SCROLLBAR
   ======================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }

/* ========================
   TOP HEADER
   ======================== */
.top-header {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  padding: 6px 0;
  display: none;
}

@media (min-width: 768px) { .top-header { display: block; } }

.top-header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-header a:hover { color: var(--secondary-light); }

.top-header-links { display: flex; gap: 20px; align-items: center; }
.top-header-links span { display: flex; align-items: center; gap: 6px; }
.top-header-social { display: flex; gap: 12px; }
.top-header-social a {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  font-size: 0.72rem;
}
.top-header-social a:hover { background: var(--secondary); color: var(--white); }

/* ========================
   MAIN NAVBAR
   ======================== */
.navbar {
  background: var(--white);
  height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(26,92,42,0.08);
  border-bottom: 3px solid var(--primary);
}

.navbar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(26,92,42,0.3);
  flex-shrink: 0;
}

.logo-text { line-height: 1.2; }
.logo-text .name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
}
.logo-text .tagline {
  font-size: 0.68rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* Desktop Nav Links */
.navbar-menu {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 1024px) { .navbar-menu { display: flex; } }

.navbar-menu a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: var(--transition);
  position: relative;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--primary);
  background: var(--accent);
}

.navbar-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; }
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.dropdown-menu a i { width: 18px; color: var(--primary); }

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

.btn-ppdb {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: var(--primary-dark);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(201,162,39,0.4);
}
.btn-ppdb:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,162,39,0.5);
}

/* Mobile menu button */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}
@media (min-width: 1024px) { .hamburger { display: none; } }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  box-shadow: var(--shadow-xl);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open { right: 0; }

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.drawer-overlay.show { opacity: 1; visibility: visible; }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--gray-200);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
}
.drawer-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; color: var(--white);
  font-size: 1.1rem;
  transition: var(--transition);
}
.drawer-close:hover { background: rgba(255,255,255,0.3); }

.drawer-nav { padding: 16px; flex: 1; }
.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: var(--transition);
  margin-bottom: 4px;
}
.drawer-nav a i { width: 20px; color: var(--primary); }
.drawer-nav a:hover, .drawer-nav a.active {
  background: var(--accent);
  color: var(--primary);
}

.drawer-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 12px 0;
}

.drawer-footer {
  padding: 16px;
  border-top: 1px solid var(--gray-200);
}

/* ========================
   BOTTOM NAVIGATION
   ======================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--white);
  z-index: 900;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  border-top: 1px solid var(--gray-200);
}

.bottom-nav-inner {
  display: flex;
  align-items: stretch;
  height: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--gray-400);
  position: relative;
  border: none;
  background: none;
  padding: 6px 4px;
}

.bottom-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 3px 3px;
  transition: var(--transition);
}

.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-item.active::before {
  width: 36px;
}

.bottom-nav-icon {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav-icon i { font-size: 1.1rem; }

.bottom-nav-item.active .bottom-nav-icon {
  background: var(--accent);
  border-radius: 10px;
}

.bottom-nav-label {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.bottom-nav-badge {
  position: absolute;
  top: -3px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 0.55rem;
  font-weight: 700;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================
   HERO SECTION
   ======================== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--white);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 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.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-pattern {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.hero-pattern-2 {
  position: absolute;
  left: -80px;
  bottom: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.hero-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--secondary-light);
  margin-bottom: 12px;
  text-align: center;
  direction: rtl;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-title span {
  color: var(--secondary-light);
  position: relative;
}

.hero-subtitle {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 580px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
}

.hero-stat-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.hero-stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.75rem;
  opacity: 0.8;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--primary);
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

/* ========================
   ANNOUNCEMENT TICKER
   ======================== */
.announcement-bar {
  background: var(--secondary);
  color: var(--primary-dark);
  padding: 10px 0;
  overflow: hidden;
}

.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ticker-label {
  background: var(--primary-dark);
  color: var(--white);
  padding: 3px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-content {
  overflow: hidden;
  flex: 1;
}

.ticker-items {
  display: flex;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
  gap: 60px;
}

.ticker-item {
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ========================
   SECTION COMMONS
   ======================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 60px 0; }
.section-light { background: var(--white); }
.section-alt { background: var(--gray-50); }

.section-header { margin-bottom: 40px; }
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.section-title span { color: var(--primary); }

.section-desc {
  font-size: 0.95rem;
  color: var(--gray-500);
  max-width: 550px;
  line-height: 1.7;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
}
.link-more:hover { gap: 10px; }

/* ========================
   SCHOOL CARDS
   ======================== */
.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.school-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.school-card-top {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.school-card-icon {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  z-index: 1;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
}

.school-card-pattern {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  right: -40px;
  bottom: -40px;
}

.school-card-body { padding: 24px; }

.school-level-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.school-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.3;
}

.school-card-desc {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.school-card-stats {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.school-card-stat {
  text-align: center;
}

.school-card-stat-value {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
}

.school-card-stat-label {
  font-size: 0.68rem;
  color: var(--gray-500);
  font-weight: 500;
}

.school-card-footer {
  padding: 12px 24px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* ========================
   NEWS CARDS
   ======================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.news-grid.featured-layout {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .news-grid.featured-layout {
    grid-template-columns: 1.6fr 1fr;
  }
  .news-grid.featured-layout .news-card:first-child {
    grid-row: span 2;
  }
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.news-card:first-child .news-card-image { height: 260px; }

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-image .placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.5);
}

.news-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--secondary);
  color: var(--primary-dark);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.news-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.news-school-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--primary);
}

.news-date {
  font-size: 0.75rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-excerpt {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
  flex: 1;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
}
.news-read-more:hover { gap: 10px; }

.news-views {
  font-size: 0.75rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ========================
   EVENTS SECTION
   ======================== */
.events-list { display: flex; flex-direction: column; gap: 12px; }

.event-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.event-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.event-date-box {
  width: 56px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

.event-date-day { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.event-date-month { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; opacity: 0.85; }

.event-info { flex: 1; min-width: 0; }
.event-title { font-size: 0.9rem; font-weight: 700; color: var(--gray-800); margin-bottom: 4px; }
.event-detail { font-size: 0.75rem; color: var(--gray-500); display: flex; align-items: center; gap: 4px; }

.event-type {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--accent);
  color: var(--primary);
  white-space: nowrap;
}

/* ========================
   VISION MISSION
   ======================== */
.visi-misi {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.visi-misi::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .vm-grid { grid-template-columns: 1fr 1.5fr; }
}

.vm-card {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
}

.vm-icon {
  width: 52px;
  height: 52px;
  background: var(--secondary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.vm-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--secondary-light);
  margin-bottom: 8px;
}

.vm-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

.vm-text {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.7;
}

.mission-list { list-style: none; }
.mission-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.88rem;
  opacity: 0.9;
}
.mission-item:last-child { border-bottom: none; }
.mission-num {
  width: 24px;
  height: 24px;
  background: var(--secondary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary-dark);
  flex-shrink: 0;
}

/* ========================
   STATS SECTION
   ======================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  margin: 0 auto 12px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ========================
   CONTACT FORM
   ======================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1.3fr; }
}

.contact-info-list { display: flex; flex-direction: column; gap: 16px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.contact-info-label { font-size: 0.75rem; color: var(--gray-400); font-weight: 600; text-transform: uppercase; }
.contact-info-value { font-size: 0.9rem; color: var(--gray-700); font-weight: 500; }

.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.form-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 24px; color: var(--gray-900); }

.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-label span { color: #ef4444; }

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-family: var(--font-main);
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,92,42,0.12);
}

.form-control::placeholder { color: var(--gray-400); }

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.btn-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(26,92,42,0.35);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,92,42,0.45);
}

/* ========================
   FOOTER
   ======================== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
}

.footer-brand .logo-text .name { color: var(--white); }
.footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 16px 0 20px;
  opacity: 0.75;
}

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
  font-size: 0.9rem;
}
.footer-social a:hover {
  background: var(--secondary);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.15);
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 0.84rem;
  opacity: 0.75;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { opacity: 1; color: var(--secondary-light); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  opacity: 0.65;
}

/* ========================
   ALERT / TOAST
   ======================== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warning { background: #fef9c3; color: #854d0e; border: 1px solid #fef08a; }

/* ========================
   PAGE BANNER
   ======================== */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.page-banner-inner {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  opacity: 0.8;
  flex-wrap: wrap;
}
.breadcrumb a { opacity: 0.75; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb i { font-size: 0.65rem; }

/* ========================
   WHATSAPP FLOAT
   ======================== */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: calc(var(--bottom-nav-height) + 16px);
  z-index: 800;
}

.wa-btn {
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: var(--transition);
  text-decoration: none;
}

.wa-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}

/* ========================
   PAGE: UNIT DETAIL
   ======================== */
.unit-hero {
  padding: 48px 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.unit-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .unit-detail-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.unit-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 14px;
}

.unit-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
}

/* ========================
   PAGE: GALERI
   ======================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-200);
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay p { color: var(--white); font-size: 0.82rem; font-weight: 600; }

/* ========================
   FILTER TABS
   ======================== */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-tab {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

/* ========================
   LOADING SKELETON
   ======================== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ========================
   RESPONSIVE TWEAKS
   ======================== */
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .hero { padding: 48px 0 64px; }
  .hero-stats { gap: 12px; }
  .hero-stat { padding: 10px 14px; }
  .schools-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .vm-card { padding: 24px; }
  .form-card { padding: 22px; }
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .wa-float { bottom: 24px; }
}

/* ========================
   ANIMATIONS
   ======================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  animation: fadeInUp 0.5s ease both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ========================
   PPDB REGISTRATION FORM
   ======================== */
.ppdb-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
}

.ppdb-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 28px 32px;
}

.ppdb-body { padding: 32px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-select {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-family: var(--font-main);
  color: var(--gray-800);
  background: var(--white) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") no-repeat right 12px center / 14px;
  -webkit-appearance: none;
  transition: var(--transition);
  outline: none;
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,92,42,0.12);
}

/* ========================
   ADMIN STYLES (minimal)
   ======================== */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 24px;
}

.admin-login-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
}

/* ========================
   UTILITY CLASSES
   ======================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.fw-bold { font-weight: 700; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--gray-500); }
.text-white { color: var(--white); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.hidden { display: none; }

/* Footer 5 columns */
@media (min-width: 992px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr !important; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr !important; }
}
