:root {
  --brand-primary: #0b3d91;
  --brand-primary-dark: #072a66;
  --brand-accent: #ffb400;
  --brand-bg: #f4f6fb;
  --text-muted: #6b7280;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--brand-bg);
  color: #1f2937;
}

a { text-decoration: none; }

/* Header */
.topbar {
  background: var(--brand-primary-dark);
  color: #fff;
  padding: 6px 0;
}
.site-header .navbar-brand {
  font-size: 1.5rem;
  color: var(--brand-primary);
}
.brand-mark { color: var(--brand-accent); }
.navbar-nav .nav-link {
  font-weight: 500;
  color: #374151;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--brand-primary);
}
.nav-search input { width: 200px; }
.mega-dropdown {
  min-width: 560px;
  padding: 1.25rem;
}
.mega-link {
  display: block;
  padding: 4px 0;
  color: #374151;
  font-size: .92rem;
}
.mega-link:hover { color: var(--brand-primary); }

/* Hero */
.hero {
  background: linear-gradient(120deg, var(--brand-primary) 0%, #1c5fc9 100%);
  color: #fff;
  padding: 60px 0 90px;
}
.hero h1 { font-weight: 700; font-size: 2.4rem; }
.hero .search-card {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}
.hero .search-card input,
.hero .search-card select { border: none; }
.hero-stats { margin-top: -55px; }
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(15,23,42,.08);
}
.stat-card .stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-primary);
}

/* Section headings */
.section-heading {
  font-weight: 700;
  margin-bottom: 4px;
}
.section-sub { color: var(--text-muted); margin-bottom: 1.75rem; }

/* Category chips */
.category-chip {
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 18px 10px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(15,23,42,.06);
  color: #1f2937;
  font-weight: 600;
  font-size: .9rem;
  height: 100%;
  transition: transform .15s ease, box-shadow .15s ease;
}
.category-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15,23,42,.12);
  color: var(--brand-primary);
}
.category-chip .cat-icon {
  font-size: 1.6rem;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

/* Cards */
.college-card, .course-card, .blog-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15,23,42,.07);
  height: 100%;
  transition: box-shadow .15s ease;
}
.college-card:hover, .course-card:hover, .blog-card:hover {
  box-shadow: 0 14px 30px rgba(15,23,42,.14);
}
.college-card .card-img-top, .blog-card .card-img-top {
  height: 170px;
  object-fit: cover;
}
.college-card .clg-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eef0f4;
  padding: 4px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}
.badge-feature {
  background: var(--brand-accent);
  color: #1f2937;
  font-weight: 600;
}
.badge-verified { background: #16a34a; }

.rating-stars i { color: var(--brand-accent); }

/* Filter sidebar */
.filter-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 16px rgba(15,23,42,.06);
}
.filter-card .form-check { margin-bottom: 6px; }

/* College detail */
.college-banner {
  height: 280px;
  object-fit: cover;
  border-radius: 0 0 18px 18px;
}
.college-header-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(15,23,42,.1);
  padding: 20px;
  margin-top: -70px;
  position: relative;
  z-index: 3;
}
.college-logo-lg {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #eef0f4;
  background: #fff;
  padding: 6px;
}
.stat-pill {
  background: var(--brand-bg);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.stat-pill .num { font-weight: 700; color: var(--brand-primary); }

.nav-tabs .nav-link { font-weight: 600; color: #374151; }
.nav-tabs .nav-link.active { color: var(--brand-primary); border-bottom: 2px solid var(--brand-primary); }

/* Footer */
.site-footer {
  background: #101828;
  color: #cbd5e1;
  margin-top: 60px;
}
.footer-heading { color: #fff; font-weight: 600; margin-bottom: 14px; }
.footer-links a { color: #9aa5b1; display: block; padding: 3px 0; font-size: .9rem; }
.footer-links a:hover { color: #fff; }

/* Micro-site (college subdomain) tweaks */
.microsite-hero {
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
}
.microsite-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(7,42,102,.72);
}
.microsite-hero .container { position: relative; z-index: 1; }

@media (max-width: 991px) {
  .mega-dropdown { min-width: 100%; }
  .nav-search { display: none; }
}
