:root {
  --brand-primary: #0d47a1;
  --brand-secondary: #ffd54f;
}

body {
  font-family: 'Sarabun', 'Segoe UI', Tahoma, Arial, sans-serif;
  background-color: #f4f6f9;
  color: #212529;
}

.site-header .navbar {
  background: linear-gradient(90deg, var(--brand-primary), #1565c0);
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.site-header .brand-text {
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
  font-size: 1.05rem;
}
.site-header .brand-text small {
  font-weight: 400;
  font-size: .72rem;
  opacity: .9;
}

.site-main {
  min-height: 70vh;
  padding-bottom: 2rem;
}

.site-footer {
  background-color: #1a237e;
  color: #e8eaf6;
  margin-top: 2rem;
}

.hero-banner {
  background: linear-gradient(135deg, var(--brand-primary), #1976d2);
  color: #fff;
  padding: 2.5rem 0;
  margin-bottom: 2rem;
}

.hero-banner h1 {
  font-weight: 700;
  font-size: 1.75rem;
}

.school-card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
  height: 100%;
}
.school-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.school-card img.school-logo {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #e0e0e0;
}

.award-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  height: 100%;
}
.award-card .award-img {
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  background: #eceff1;
}

.login-card {
  max-width: 420px;
  margin: 3rem auto;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}

.admin-sidebar {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  padding: 1rem;
}
.admin-sidebar .nav-link {
  color: #37474f;
  border-radius: 8px;
  margin-bottom: 2px;
}
.admin-sidebar .nav-link.active,
.admin-sidebar .nav-link:hover {
  background-color: var(--brand-primary);
  color: #fff;
}

.stat-card {
  border-radius: 14px;
  border: none;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 700;
}
.bg-stat-1 { background: linear-gradient(135deg,#1565c0,#42a5f5); }
.bg-stat-2 { background: linear-gradient(135deg,#2e7d32,#66bb6a); }
.bg-stat-3 { background: linear-gradient(135deg,#ef6c00,#ffa726); }
.bg-stat-4 { background: linear-gradient(135deg,#6a1b9a,#ab47bc); }

.thumb-preview {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.badge-type { background-color: var(--brand-primary); }
