/* ==========================================================================
   HSKI 2027 - PORTAL PUBLIK DESIGN SYSTEM & STYLESHEET
   Light & Bright Theme: Modern, Elegant, Crisp, and Ultra-Readable
   Mobile-First & 100% Fully Responsive Across All Devices
   ========================================================================== */

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

:root {
  /* Bright & Light Color Tokens */
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-subtle: #f1f5f9;

  /* Crisp Typography Colors for Maximum Readability */
  --text-primary: #0f172a;       /* Deep Slate/Navy - Best contrast */
  --text-secondary: #334155;     /* Medium Slate */
  --text-muted: #64748b;         /* Muted Slate */
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Brand Accents */
  --accent-blue: #1d4ed8;        /* High-contrast royal blue */
  --accent-blue-light: #3b82f6;
  --accent-blue-subtle: #eff6ff;
  --accent-blue-glow: rgba(37, 99, 235, 0.2);

  --accent-indigo: #4338ca;
  --accent-indigo-subtle: #eef2ff;

  --accent-amber: #b45309;       /* Deep warm gold for readability */
  --accent-amber-bright: #f59e0b;
  --accent-amber-subtle: #fffbeb;

  --accent-emerald: #047857;     /* Deep green for crispness */
  --accent-emerald-bright: #10b981;
  --accent-emerald-subtle: #ecfdf5;

  --accent-rose: #be123c;

  /* Borders & Dividers */
  --border-light: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-strong: #cbd5e1;
  --border-blue: #bfdbfe;
  --border-amber: #fde68a;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -8px rgba(15, 23, 42, 0.12), 0 6px 16px -4px rgba(15, 23, 42, 0.06);
  --shadow-float: 0 14px 30px rgba(37, 99, 235, 0.15);

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  /* Airy light ambient gradient */
  background-image: 
    radial-gradient(ellipse 70% 40% at 50% -10%, #dbeafe 0%, transparent 60%),
    radial-gradient(circle at 95% 30%, #ede9fe 0%, transparent 40%),
    radial-gradient(circle at 5% 70%, #fef3c7 0%, transparent 35%);
  background-attachment: fixed;
  padding-bottom: 75px; /* Space for mobile bottom bar */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* Container */
.container {
  width: 100%;
  padding-right: 1.25rem;
  padding-left: 1.25rem;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; padding-right: 2rem; padding-left: 2rem; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1200px; } }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: var(--transition-normal);
}

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

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-text span {
  font-size: 0.78rem;
  color: #0284c7;
  font-weight: 600;
  display: block;
}

.nav-links {
  display: none;
  gap: 1.75rem;
}

@media (min-width: 992px) {
  .nav-links {
    display: flex;
    align-items: center;
  }
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  padding: 0.4rem 0.2rem;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-indigo));
  border-radius: 2px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #047857;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #059669;
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.5);
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px rgba(5, 150, 105, 0.7); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* ==========================================================================
   Hero Section with Elegant Background Image & Ambient Lighting
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 3.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 4.5rem 0 4rem;
  }
}

/* Ambient Image Backdrop */
.hero-backdrop-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: saturate(1.12) brightness(0.98);
  transform: scale(1.02);
  animation: heroKenBurns 30s alternate infinite ease-in-out;
}

@keyframes heroKenBurns {
  0% { transform: scale(1.02) translateY(0); }
  100% { transform: scale(1.07) translateY(-12px); }
}

.hero-overlay-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.78) 0%, 
    rgba(248, 250, 252, 0.85) 30%, 
    rgba(248, 250, 252, 0.94) 75%, 
    #f8fafc 100%
  );
}

.hero-sunbeam-accent {
  position: absolute;
  top: -12%;
  right: 8%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.28) 0%, rgba(245, 158, 11, 0.08) 50%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Floating Glassmorphic Hero Card */
.hero-glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.98);
  border-radius: 26px;
  padding: 2.75rem 1.5rem 2.25rem;
  margin: 0 auto 3rem;
  max-width: 980px;
  box-shadow: 
    0 20px 45px -10px rgba(15, 23, 42, 0.09),
    0 0 0 1px rgba(226, 232, 240, 0.8),
    0 0 50px rgba(59, 130, 246, 0.06);
  text-align: center;
  position: relative;
  transition: var(--transition-normal);
}

@media (min-width: 768px) {
  .hero-glass-card {
    padding: 3.5rem 3rem 2.5rem;
    border-radius: 30px;
  }
}

.hero-glass-card:hover {
  box-shadow: 
    0 25px 55px -12px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(191, 219, 254, 0.9),
    0 0 60px rgba(59, 130, 246, 0.1);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 1.35rem;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.hero-pill svg {
  color: #d97706;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.6rem;
  }
}

.gradient-text {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 40%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 740px;
  margin: 0 auto 2.25rem;
  line-height: 1.75;
  font-weight: 450;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.22rem;
  }
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
  }
}

/* Footnote Context Badge */
.hero-footnote-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid #e2e8f0;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  margin-top: 2rem;
  box-shadow: var(--shadow-xs);
}

.footnote-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.65rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #4338ca 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.28);
}

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

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--accent-blue-light);
  color: var(--accent-blue);
  transform: translateY(-2px);
}

/* Three Pillars Values */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.value-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  text-align: left;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #1d4ed8, #d97706);
  opacity: 0;
  transition: var(--transition-fast);
}

.value-card:hover {
  border-color: var(--border-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-card:hover::before {
  opacity: 1;
}

.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
  margin-bottom: 1.15rem;
}

.value-card:nth-child(2) .value-icon {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.value-card:nth-child(3) .value-icon {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

.value-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Live National Stats Banner (Light & Crisp)
   ========================================================================== */
.stats-banner {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 22px;
  padding: 2rem 1.5rem;
  margin: 2rem 0 4rem;
  box-shadow: var(--shadow-md), 0 0 25px rgba(59, 130, 246, 0.08);
  position: relative;
  overflow: hidden;
}

.stats-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1d4ed8 0%, #6366f1 50%, #f59e0b 100%);
}

.stats-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.15rem;
}

@media (min-width: 640px) {
  .stats-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.stats-header h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.stats-sync-badge {
  font-size: 0.8rem;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  font-weight: 700;
  width: fit-content;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

.stat-item {
  text-align: center;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1.25rem 0.75rem;
  transition: var(--transition-fast);
}

.stat-item:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  transform: translateY(-2px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1.15;
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 2.35rem;
  }
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 0.35rem;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section {
  padding: 4rem 0;
  position: relative;
}

#offline-kit {
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 45%, #f8fafc 100%);
}

#5-pilar {
  background: #f8fafc;
}

#profil-siswa {
  background: linear-gradient(180deg, #f8fafc 0%, #fefce8 50%, #f8fafc 100%);
}

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

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.35rem 0.95rem;
  border-radius: 8px;
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin-bottom: 0.85rem;
  line-height: 1.28;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   Offline Event Kit Section
   ========================================================================== */
.kit-highlight-box {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .kit-highlight-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 2rem;
  }
}

.kit-highlight-info h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kit-highlight-info p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

.cdn-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  font-weight: 700;
  width: fit-content;
}

.kit-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

@media (min-width: 768px) {
  .kit-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .kit-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.kit-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.kit-card:hover {
  border-color: var(--border-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.kit-card-top {
  margin-bottom: 1.35rem;
}

.kit-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.kit-badge {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.kit-filesize {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.kit-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.kit-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.kit-cdn-origin {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.85rem;
}

.kit-card-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.kit-card-btn:hover {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3);
}

/* ==========================================================================
   5 Pillars of Care Section
   ========================================================================== */
.pillars-filter-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 1.15rem;
  margin-bottom: 2rem;
  scrollbar-width: none;
}

.pillars-filter-wrap::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .pillars-filter-wrap {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

.pillar-filter-btn {
  white-space: nowrap;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px solid var(--border-strong);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-xs);
}

.pillar-filter-btn:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue-light);
  background: #f8fafc;
}

.pillar-filter-btn.active {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.28);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.65rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  border-color: var(--border-blue);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.project-thumb-box {
  position: relative;
  height: 210px;
  width: 100%;
  overflow: hidden;
  background: #e2e8f0;
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-thumb {
  transform: scale(1.05);
}

.project-pillar-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
}

.project-content {
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #b45309;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.project-school {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.project-need-box {
  background: #f0f9ff;
  border-left: 3.5px solid #0284c7;
  padding: 0.85rem 1rem;
  border-radius: 0 10px 10px 0;
  margin-bottom: 1.35rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.project-need-box strong {
  color: #0369a1;
}

.project-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 1.15rem;
}

.project-impact {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.project-impact strong {
  color: var(--text-primary);
  font-weight: 800;
}

.btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1d4ed8;
  transition: var(--transition-fast);
}

.btn-detail:hover {
  color: #2563eb;
  transform: translateX(4px);
}

/* ==========================================================================
   Student Profile Section
   ========================================================================== */
.students-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

@media (min-width: 768px) {
  .students-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.student-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.student-card:hover {
  border-color: var(--border-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.student-avatar-row {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin-bottom: 1.15rem;
}

.student-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid #bfdbfe;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.student-meta h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}

.student-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.student-activity-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.85rem;
  width: fit-content;
}

.student-quote {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
  margin-top: auto;
  position: relative;
  padding-left: 0.95rem;
  border-left: 3px solid #bfdbfe;
}

/* ==========================================================================
   Modals (Bright, Elegant & High Contrast)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(15, 23, 42, 0.15);
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-backdrop.open .modal-box {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

/* Download Simulation Modal */
.cdn-progress-wrap {
  text-align: center;
  padding: 1.25rem 0 0.5rem;
}

.cdn-progress-bar-bg {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin: 1.5rem 0 0.85rem;
}

.cdn-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1d4ed8 0%, #10b981 100%);
  border-radius: 9999px;
  transition: width 0.15s ease;
}

.cdn-speed-stat {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Video Player Modal Box */
.video-player-mock {
  position: relative;
  background: #0f172a;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  box-shadow: var(--shadow-md);
}

.video-play-indicator {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 25px rgba(29, 78, 216, 0.6);
  cursor: pointer;
  transition: var(--transition-bounce);
}

.video-play-indicator:hover {
  transform: scale(1.1);
  background: #2563eb;
}

/* ==========================================================================
   Footer (Crisp & Clean Light Slate)
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2.5rem;
  margin-top: 4.5rem;
  box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.02);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  margin-bottom: 3rem;
}

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

.footer-brand h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 440px;
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.15rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-blue);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Mobile Bottom Navigation Bar (Light Glassmorphic)
   ========================================================================== */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 66px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 90;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

@media (min-width: 992px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition-fast);
  padding: 0.35rem 0.5rem;
}

.mobile-nav-item.active, .mobile-nav-item:hover {
  color: var(--accent-blue);
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
}
