/*!
 * ============================================================================
 * Platform: Admission Dakhila
 * Core UI Design System & Component Architecture: NSVAIRX
 * Official Website: https://nsvairx.com
 * Technical Contact: dev@nsvairx.com
 * 
 * Engineered with precision by the NSVAIRX Engineering Team.
 * Copyright (c) 2026 NSVAIRX (https://nsvairx.com). All Rights Reserved.
 * ============================================================================
 */

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

/* ─── CSS Variables ───────────────────────────────────────────── */
:root {
  --brand-50:  #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --brand-900: #0f172a;

  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --radius: 0.75rem;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

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

html, body {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  background: #fff;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; transition: all .15s ease; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ─── Utility ─────────────────────────────────────────────────── */
.container    { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.sr-only      { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center  { text-align: center; }
.flex         { display: flex; }
.items-center { align-items: center; }
.gap-2        { gap: .5rem; }
.gap-3        { gap: .75rem; }
.gap-4        { gap: 1rem; }
.gap-6        { gap: 1.5rem; }
.mt-2         { margin-top: .5rem; }
.mt-4         { margin-top: 1rem; }
.mt-6         { margin-top: 1.5rem; }
.mt-8         { margin-top: 2rem; }
.mb-2         { margin-bottom: .5rem; }
.mb-4         { margin-bottom: 1rem; }
.mb-6         { margin-bottom: 1.5rem; }
.mb-8         { margin-bottom: 2rem; }
.py-4         { padding: 1rem 0; }
.py-8         { padding: 2rem 0; }
.py-12        { padding: 3rem 0; }
.py-16        { padding: 4rem 0; }
.hidden       { display: none !important; }
.grid         { display: grid; }
.w-full       { width: 100%; }

/* ─── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ─── Selection ───────────────────────────────────────────────── */
::selection { background: var(--brand-200); color: var(--brand-900); }

/* ─── Header / Nav ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow .3s;
}
.site-header.scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,.08);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gray-900);
  letter-spacing: -.5px;
}
.nav-logo .edu  { color: var(--brand-600); }
.nav-logo .brand-first { color: var(--gray-900); }
.nav-logo .brand-second { color: var(--brand-600); }
.nav-logo .icon {
  width: 32px; height: 32px;
  background: var(--brand-600);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}
.nav-links a {
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 8px;
  transition: all .15s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--brand-700);
  background: var(--brand-50);
}

.nav-cta {
  display: flex; align-items: center; gap: .75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.25rem;
  border-radius: 10px;
  font-size: .875rem;
  font-weight: 600;
  transition: all .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-600);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-700); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(5,150,105,.3); }
.btn-outline {
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
}
.btn-outline:hover { border-color: var(--brand-500); color: var(--brand-600); background: var(--brand-50); }
.btn-sm { padding: .375rem .875rem; font-size: .8125rem; }
.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; border-radius: 12px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  padding: .5rem; border-radius: 8px;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--gray-700);
  transition: all .3s;
  border-radius: 2px;
}

/* ─── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 50%, var(--brand-900) 100%);
  padding: 5rem 0 4rem;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, rgba(255,255,255,.15) 0%, transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(255,255,255,.1) 0%, transparent 60%);
}
.hero .container { position: relative; }
.hero-content { text-align: center; max-width: 720px; margin: 0 auto; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .375rem 1rem;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  color: rgba(255,255,255,.9);
  font-size: .8125rem; font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -.5px;
}
.hero h1 span { color: #6ee7b7; }

.hero-sub {
  color: rgba(255,255,255,.75);
  font-size: 1.0625rem;
  margin-bottom: 2.5rem;
  max-width: 540px;
  margin-left: auto; margin-right: auto;
}

/* Search bar */
.search-bar {
  position: relative;
  max-width: 680px;
  margin: 0 auto 1.5rem;
}
.search-inner {
  display: flex; align-items: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  overflow: visible;
  position: relative;
}
.search-icon {
  padding: 0 1rem;
  color: var(--gray-400);
  flex-shrink: 0;
}
.search-inner input {
  flex: 1; height: 58px;
  padding: 0 .5rem;
  font-size: 1rem;
  border: none; outline: none;
  background: transparent;
  color: var(--gray-900);
}
.search-inner .btn-primary {
  margin: .4rem; border-radius: 12px; height: 48px; padding: 0 1.5rem;
}
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px); left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  z-index: 200;
}
.search-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background .1s;
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--brand-50); }
.search-item-icon {
  width: 40px; height: 40px;
  background: var(--brand-50);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-600); flex-shrink: 0;
}
.search-item-name { font-size: .9rem; font-weight: 600; color: var(--gray-900); }
.search-item-meta { font-size: .75rem; color: var(--gray-500); }
.search-item-arrow { margin-left: auto; color: var(--brand-600); font-size: .875rem; font-weight: 600; }

/* Quick tags */
.hero-tags {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: .5rem;
  font-size: .8125rem;
}
.hero-tags span { color: rgba(255,255,255,.6); }
.hero-tags a {
  padding: .3rem .875rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  color: #fff;
  backdrop-filter: blur(6px);
}
.hero-tags a:hover { background: rgba(255,255,255,.22); }

/* ─── Stats Bar ───────────────────────────────────────────────── */
.stats-bar { border-bottom: 1px solid var(--gray-200); background: #fff; }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  divide-x: 1px solid var(--gray-200);
}
.stat-item {
  display: flex; align-items: center; gap: .875rem;
  padding: 1.25rem 1.5rem;
  border-right: 1px solid var(--gray-200);
}
.stat-item:last-child { border-right: none; }
.stat-icon {
  width: 44px; height: 44px;
  background: var(--brand-50);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-600);
  flex-shrink: 0; font-size: 1.25rem;
}
.stat-value { font-size: 1.25rem; font-weight: 800; color: var(--gray-900); }
.stat-label { font-size: .75rem; color: var(--gray-500); }

/* ─── Section Titles ──────────────────────────────────────────── */
.section { padding: 3.5rem 0; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: .5rem;
  letter-spacing: -.3px;
}
.section-sub { color: var(--gray-500); font-size: .9375rem; }
.section-header { margin-bottom: 2.5rem; }

/* ─── Stream Cards ────────────────────────────────────────────── */
.streams-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }

.stream-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 1.75rem;
  color: #fff;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  text-align: left;
  display: block;
}
.stream-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stream-card::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background .2s;
}
.stream-card:hover::after { background: rgba(0,0,0,.08); }
.stream-card .sc-icon { margin-bottom: .875rem; opacity: .9; display:flex; align-items:center; color:rgba(255,255,255,.95); }
.stream-card .sc-name { font-size: 1.125rem; font-weight: 700; margin-bottom: .25rem; }
.stream-card .sc-desc { font-size: .8125rem; opacity: .8; margin-bottom: 1rem; }
.stream-card .sc-count { font-size: 1.75rem; font-weight: 900; }
.stream-card .sc-unit  { font-size: .75rem; opacity: .7; }

.sc-engineering { background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-700) 100%); }
.sc-medical     { background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%); }
.sc-management  { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); }
.sc-law         { background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%); }
.sc-abroad      { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }

/* Sticky Sidebar for Blog Article Reading Mode (Respects Parent Container Bounds) */
.blog-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

.blog-sticky-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: var(--sidebar-sticky-top, 85px);
  align-self: flex-start;
  max-height: none !important;
  overflow: visible !important;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .blog-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .blog-sticky-sidebar {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Category & Stream Tab Switcher on Homepage */
.stream-tab-btn {
  padding: 0.55rem 1.25rem;
  border-radius: 30px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.stream-tab-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
  transform: translateY(-1px);
}
.stream-tab-btn.active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

/* ─── College Cards ───────────────────────────────────────────── */
.colleges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.colleges-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr) !important;
}
.colleges-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 1280px) {
  .colleges-grid:not(.cols-2):not(.cols-3) {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .colleges-grid,
  .colleges-grid.cols-2,
  .colleges-grid.cols-3,
  .colleges-grid.cols-4 {
    grid-template-columns: 1fr !important;
  }
}

.college-card {
  position: relative;
  border: 1.5px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: all .2s ease;
  cursor: pointer;
  display: flex; flex-direction: column;
  box-sizing: border-box;
}
.college-card:hover {
  border-color: var(--brand-300);
  box-shadow: 0 8px 24px rgba(5,150,105,.12);
  transform: translateY(-2px);
}

.card-header {
  padding: 1rem 1rem .75rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex; gap: .75rem; align-items: flex-start;
}
.card-logo {
  width: 48px; height: 48px;
  background: var(--brand-50);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-600);
  font-size: 1.25rem; font-weight: 900;
  flex-shrink: 0;
  overflow: hidden;
}
.card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
  padding: 3px;
  background: #ffffff;
  box-sizing: border-box;
}
.card-name { font-size: .9375rem; font-weight: 700; line-height: 1.3; margin-bottom: .25rem; }
.card-location { font-size: .75rem; color: var(--gray-500); }

.card-badges {
  display: flex; flex-wrap: wrap; gap: .35rem;
  margin-top: .4rem;
}
.badge {
  display: inline-flex; align-items: center;
  padding: .2rem .55rem;
  border-radius: 6px;
  font-size: .6875rem; font-weight: 600;
  letter-spacing: .2px;
  white-space: nowrap;
}
.badge-group-a-plus { background: var(--brand-50); color: var(--brand-800); border: 1px solid var(--brand-200); }
.badge-group-a      { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-group-b-plus { background: #fefce8; color: #92400e; border: 1px solid #fde68a; }
.badge-group-b      { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.badge-verified     { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-200); }
.badge-naac         { background: #fdf4ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.badge-ownership-govt { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-ownership-pvt  { background: #fdf4ff; color: #7e22ce; border: 1px solid #e9d5ff; }

.card-stats {
  padding: .75rem .875rem;
  display: grid; grid-template-columns: 1.1fr 1fr 1fr;
  gap: .25rem;
  align-items: center;
}
.cs-item { text-align: center; min-width: 0; overflow: hidden; }
.cs-value {
  font-size: .8125rem;
  font-weight: 800;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.cs-label {
  font-size: .65rem;
  color: var(--gray-500);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-courses {
  padding: .5rem 1rem;
  display: flex; flex-wrap: wrap; gap: .35rem;
  border-top: 1px solid var(--gray-100);
}
.course-tag {
  padding: .2rem .55rem;
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-200);
  border-radius: 6px;
  font-size: .6875rem; font-weight: 500;
  white-space: nowrap;
}

.card-footer-bar {
  padding: .75rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--gray-100);
  margin-top: auto;
  gap: 6px;
}
.card-rating {
  display: flex; align-items: center; gap: .25rem;
  font-size: .8125rem; font-weight: 700; color: var(--gray-900);
  white-space: nowrap;
}
.star-icon { color: #f59e0b; }
.card-rating-count { font-size: .75rem; color: var(--gray-500); font-weight: 400; }
.card-view-btn {
  font-size: .78rem; font-weight: 700;
  color: var(--brand-600);
  display: inline-flex; align-items: center; gap: .25rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.card-view-btn:hover { color: var(--brand-700); }

/* ─── View Toggle Buttons ─────────────────────────────────────── */
.view-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.18s ease;
  padding: 0;
}
.view-toggle-btn:hover {
  color: var(--gray-900);
}
.view-toggle-btn.active {
  background: #fff;
  color: #2563eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  font-weight: 700;
}

/* ─── List View Mode for College Cards ───────────────────────── */
.colleges-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.colleges-grid.list-view .college-card {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}

.colleges-grid.list-view .card-header {
  flex: 1 1 280px;
  border-bottom: none;
  padding: 1.25rem;
}

.colleges-grid.list-view .card-stats {
  flex: 0 1 240px;
  border-left: 1px solid var(--gray-100);
  border-right: 1px solid var(--gray-100);
  padding: 1rem 1.25rem;
}

.colleges-grid.list-view .card-courses {
  width: 100%;
  border-top: 1px solid var(--gray-100);
  padding: 0.625rem 1.25rem;
}

.colleges-grid.list-view .card-footer-bar {
  flex: 0 1 180px;
  border-top: none;
  margin-top: 0;
  padding: 1.25rem;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

@media (max-width: 900px) {
  .colleges-grid.list-view .college-card {
    flex-direction: column;
    align-items: stretch;
  }
  .colleges-grid.list-view .card-header,
  .colleges-grid.list-view .card-stats,
  .colleges-grid.list-view .card-courses,
  .colleges-grid.list-view .card-footer-bar {
    flex: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .colleges-grid.list-view .card-stats {
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    padding: 1rem 1.25rem;
  }
  .colleges-grid.list-view .card-footer-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--gray-100);
  }
}

/* ─── Ranking Group Header ────────────────────────────────────── */
.rank-group-header {
  display: flex; align-items: center; gap: .875rem;
  margin-bottom: 1.25rem;
}
.rank-badge {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .875rem; color: #fff;
}
.rb-a-plus { background: var(--brand-600); }
.rb-a      { background: #2563eb; }
.rb-b-plus { background: #d97706; }
.rb-b      { background: #7c3aed; }
.rank-group-name { font-size: 1.1rem; font-weight: 700; }
.rank-group-desc { font-size: .8125rem; color: var(--gray-500); }

/* ─── Trust Section ───────────────────────────────────────────── */
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.trust-card {
  padding: 1.75rem;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.trust-icon-wrap {
  width: 52px; height: 52px;
  background: var(--brand-50);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-600);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.trust-title { font-size: 1.0625rem; font-weight: 700; margin-bottom: .5rem; }
.trust-desc  { font-size: .875rem; color: var(--gray-500); line-height: 1.65; }

/* ─── Article / Blog Cards ────────────────────────────────────── */
.articles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }

.article-card {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  transition: all .25s ease;
  cursor: pointer;
  display: flex; flex-direction: column;
}
.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--brand-200);
}
.article-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #0f172a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-thumb-blur {
  position: absolute;
  inset: -15px;
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.55);
  opacity: 0.65;
  transform: scale(1.15);
  pointer-events: none;
  z-index: 1;
}
.article-thumb img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: auto;
  transition: transform .3s ease;
}
.article-card:hover .article-thumb img { transform: scale(1.04); }
.article-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--brand-100) 100%);
}
.article-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.article-meta {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: .75rem;
}
.cat-badge {
  padding: .25rem .75rem;
  background: var(--brand-100);
  color: var(--brand-700);
  border-radius: 100px;
  font-size: .6875rem; font-weight: 600;
}
.article-date { font-size: .75rem; color: var(--gray-500); }
.article-title {
  font-size: .9375rem; font-weight: 700;
  line-height: 1.4;
  margin-bottom: .625rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-desc {
  font-size: .8125rem; color: var(--gray-500);
  line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 1rem;
  flex: 1;
}
.article-read-more {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .8125rem; font-weight: 600;
  color: var(--brand-600);
  margin-top: auto;
  transition: gap .15s;
}
.article-card:hover .article-read-more { gap: .5rem; }

/* ─── Testimonials ────────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.testimonial-card {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-left: 4px solid var(--brand-500);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
}
.t-quote-icon {
  position: absolute; top: 1rem; right: 1rem;
  font-size: 4rem; color: var(--brand-100);
  line-height: 1;
  font-family: Georgia, serif;
}
.t-review {
  font-size: .875rem; color: var(--gray-600);
  line-height: 1.7; font-style: italic;
  margin-bottom: 1.25rem;
}
.t-footer { border-top: 1px solid var(--gray-100); padding-top: 1rem; }
.t-avatar-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.t-avatar {
  width: 48px; height: 48px; border-radius: 100%;
  overflow: hidden; border: 2px solid var(--brand-100);
  flex-shrink: 0;
}
.t-avatar img { width: 100%; height: 100%; object-fit: cover; }
.t-avatar-placeholder {
  width: 100%; height: 100%;
  background: var(--brand-600); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.125rem;
}
.t-name   { font-size: .9rem; font-weight: 700; }
.t-result { font-size: .75rem; color: var(--brand-600); font-weight: 600; }
.t-stars  { display: flex; gap: 2px; }
.star-filled { color: #f59e0b; fill: #f59e0b; }

/* ─── Filters & Listing ───────────────────────────────────────── */
.top-filter-bar {
  background: #ffffff;
  border: 1.5px solid var(--gray-200);
  border-radius: 16px;
  padding: 0.875rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.top-filter-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--gray-800);
  margin-right: 0.25rem;
}

.top-filter-item {
  flex: 1 1 160px;
  min-width: 140px;
}

.top-filter-select {
  width: 100%;
  padding: 0.55rem 0.875rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gray-700);
  background: #ffffff;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
}

.top-filter-select:hover,
.top-filter-select:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.top-filter-clear {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.55rem 0.875rem;
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.top-filter-clear:hover {
  background: #ffe4e6;
  color: #be123c;
}

/* ─── In-Feed Sponsored Full-Image Banner Strip (Every 6th Card) ─── */
.in-feed-ad-strip-card {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0.5rem 0 0.875rem 0 !important;
}

.in-feed-ad-strip-wrapper {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 0.5rem;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  box-sizing: border-box;
}

.in-feed-ad-slider {
  position: relative;
  width: 100%;
}

.in-feed-ad-slide {
  display: none;
}
.in-feed-ad-slide.active {
  display: block;
}

.in-feed-ad-banner-link {
  display: block;
  width: 100%;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
}

.in-feed-ad-full-img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  background-color: #f8fafc;
  object-position: center;
  border-radius: 12px;
  display: block;
  transition: transform 0.3s ease;
}

.in-feed-ad-banner-link:hover .in-feed-ad-full-img {
  transform: scale(1.008);
}

.in-feed-ad-fallback-banner {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.in-feed-ad-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.in-feed-ad-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.25s ease;
}

.in-feed-ad-dot.active {
  width: 24px;
  border-radius: 100px;
  background: #2563eb;
}

/* ─── Grid Columns Options (2x, 3x, 4x, list) ──────────────────── */
.colleges-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr) !important;
}
.colleges-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}
.colleges-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 1280px) {
  .colleges-grid.cols-4 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 900px) {
  .colleges-grid.cols-3,
  .colleges-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .colleges-grid.cols-2,
  .colleges-grid.cols-3,
  .colleges-grid.cols-4 {
    grid-template-columns: 1fr !important;
  }
}

.listing-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}

.listing-right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 80px;
}

.right-sidebar-widget {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: 16px;
  padding: 1.125rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  overflow: hidden;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.widget-header-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.625rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
}
.widget-header-badge span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  color: #2563eb;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #bfdbfe;
}

.widget-title {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.sidebar-articles-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.sidebar-article-item {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  padding: 6px;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.sidebar-article-item:hover {
  background: var(--gray-50);
}
.sidebar-article-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--gray-100);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
}
.sidebar-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-article-info {
  flex: 1;
  min-width: 0;
}
.sidebar-article-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 3px 0 2px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-article-date {
  font-size: 0.7rem;
  color: var(--gray-500);
}

.sidebar-tool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.625rem;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  text-decoration: none;
  transition: all 0.15s ease;
}
.sidebar-tool-link:hover {
  background: #fff;
  border-color: var(--brand-400);
  transform: translateX(2px);
}
.tool-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #bfdbfe;
}

@media (max-width: 1024px) {
  .listing-layout {
    grid-template-columns: 1fr 280px;
    gap: 1.25rem;
  }
}
@media (max-width: 850px) {
  .listing-layout {
    grid-template-columns: 1fr;
  }
  .listing-right-sidebar {
    position: static;
  }
}
.filter-sidebar {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: 16px;
  padding: 1.25rem;
  position: sticky; top: 80px;
}
.filter-group { margin-bottom: 1.5rem; }
.filter-group:last-child { margin-bottom: 0; }
.filter-title {
  font-size: .875rem; font-weight: 700;
  color: var(--gray-900); margin-bottom: .75rem;
}
.filter-options { display: flex; flex-direction: column; gap: .375rem; }
.filter-opt label {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8125rem; color: var(--gray-700);
  cursor: pointer; padding: .35rem .5rem;
  border-radius: 8px; transition: background .1s;
}
.filter-opt label:hover { background: var(--gray-50); }
.filter-opt input[type=radio],
.filter-opt input[type=checkbox] { accent-color: var(--brand-600); }

.listing-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; flex-wrap: wrap; gap: .75rem;
}
.listing-count { font-size: .9rem; color: var(--gray-500); }
.listing-sort select {
  padding: .5rem .875rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: .875rem;
  color: var(--gray-700);
  background: #fff;
  outline: none;
  cursor: pointer;
}
.listing-sort select:focus { border-color: var(--brand-400); }

/* ─── Pagination ──────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-200);
  background: #fff;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: all .15s ease-in-out;
  user-select: none;
}
.page-btn:hover {
  border-color: var(--brand-500);
  color: var(--brand-600);
  background: var(--brand-50);
}
.page-btn.active {
  background: var(--brand-600);
  color: #fff;
  border-color: var(--brand-600);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  cursor: default;
}
.page-btn-nav {
  padding: 0 14px;
  font-weight: 600;
  gap: 4px;
}
.page-btn.disabled,
.page-btn[aria-disabled="true"],
.page-btn:disabled {
  opacity: .45;
  pointer-events: none;
  cursor: not-allowed;
  background: var(--gray-50);
  border-color: var(--gray-200);
  color: var(--gray-400);
}
.page-ellipsis {
  min-width: 32px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gray-400);
  user-select: none;
}
@media (max-width: 480px) {
  .page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 0.8125rem;
    border-radius: 8px;
  }
  .page-btn-nav {
    padding: 0 10px;
  }
  .page-ellipsis {
    min-width: 24px;
    height: 36px;
  }
}

/* ─── Sidebar Cards & Rank Predictor Promo ─────────────────────── */
.sidebar-card {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  margin-bottom: 1.25rem;
}

.sidebar-card-title {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.sidebar-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--gray-50);
  font-size: 0.8125rem;
}
.sidebar-stat-row:last-child { border-bottom: none; }
.ss-label { color: var(--gray-500); }
.ss-value { font-weight: 600; color: var(--gray-900); text-align: right; }

.sidebar-promo-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%) !important;
  border: 1.5px solid #4338ca !important;
  border-radius: 16px !important;
  padding: 1.25rem !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(49, 46, 129, 0.25) !important;
  margin-bottom: 1.25rem;
}

.sidebar-promo-title {
  font-size: 0.9375rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 0.35rem !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-promo-desc {
  font-size: 0.8125rem !important;
  color: #e0e7ff !important;
  line-height: 1.55 !important;
  margin-bottom: 1rem !important;
  opacity: 1 !important;
}

.sidebar-promo-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 0.65rem 1rem !important;
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 0.85rem !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.sidebar-promo-btn:hover {
  background: #1d4ed8 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5) !important;
}

/* ─── College Detail ──────────────────────────────────────────── */
.detail-hero {
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-800) 100%);
  padding: 2.5rem 0;
  color: #fff;
}
.detail-hero-inner { display: flex; gap: 1.5rem; align-items: flex-start; }
.detail-logo {
  width: 80px; height: 80px;
  background: rgba(255,255,255,.15);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 900;
  flex-shrink: 0; overflow: hidden;
}
.detail-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
  padding: 4px;
  background: #ffffff;
  border-radius: 12px;
  box-sizing: border-box;
}
.detail-name { font-size: 1.75rem; font-weight: 800; margin-bottom: .375rem; }
.detail-meta { font-size: .875rem; opacity: .8; margin-bottom: .875rem; }
.detail-badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.detail-badge {
  padding: .3rem .875rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  font-size: .75rem; font-weight: 600;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-items: start;
}

.detail-main {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.detail-sidebar {
  width: 100%;
  max-width: 280px;
  box-sizing: border-box;
  position: sticky;
  top: 90px;
}

@media (max-width: 800px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-sidebar {
    max-width: 100%;
    position: static;
  }
}

/* ─── Sidebar Cards & Rank Predictor Promo ─────────────────────── */
.sidebar-card {
  background: #ffffff;
  border: 1.5px solid var(--gray-200);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.sidebar-card-title {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.625rem;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--gray-100);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sidebar-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--gray-50);
  font-size: 0.8rem;
}
.sidebar-stat-row:last-child { border-bottom: none; }
.ss-label { color: var(--gray-500); font-weight: 500; }
.ss-value { font-weight: 700; color: var(--gray-900); text-align: right; }

.sidebar-cta-card {
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  border: 1.5px solid #bfdbfe;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.08);
}

.sidebar-cta-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.875rem;
  line-height: 1.35;
  text-align: center;
}

.sidebar-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  margin-bottom: 0.5rem;
  border: none;
}
.sidebar-cta-btn:last-child {
  margin-bottom: 0;
}

.sidebar-cta-primary {
  background: #2563eb;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.sidebar-cta-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.sidebar-cta-secondary {
  background: #ffffff;
  color: #2563eb !important;
  border: 1.5px solid #2563eb !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.sidebar-cta-secondary:hover {
  background: #eff6ff;
  border-color: #1d4ed8 !important;
  color: #1d4ed8 !important;
  transform: translateY(-1px);
}

.sidebar-cta-phone {
  background: #f0fdf4;
  color: #16a34a !important;
  border: 1.5px solid #bbf7d0 !important;
}
.sidebar-cta-phone:hover {
  background: #dcfce7;
  transform: translateY(-1px);
}

.sidebar-promo-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%) !important;
  border: 1.5px solid #4338ca !important;
  border-radius: 14px !important;
  padding: 1rem !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(49, 46, 129, 0.2) !important;
  margin-bottom: 1rem;
}

.sidebar-promo-title {
  font-size: 0.875rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 0.3rem !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-promo-desc {
  font-size: 0.78rem !important;
  color: #e0e7ff !important;
  line-height: 1.45 !important;
  margin-bottom: 0.875rem !important;
  opacity: 1 !important;
}

.sidebar-promo-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 0.55rem 0.875rem !important;
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 0.8125rem !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.sidebar-promo-btn:hover {
  background: #1d4ed8 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45) !important;
}

.sidebar-ad-strip {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 0.875rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
  box-sizing: border-box;
}

.sidebar-ad-slide img {
  width: 300px !important;
  height: 300px !important;
  max-width: 100% !important;
  object-fit: contain !important;
  background-color: #f8fafc !important;
  object-position: center !important;
  border-radius: 12px !important;
  display: block !important;
  margin: 0 auto !important;
}

@media (max-width: 900px) {
  .detail-sidebar {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
  }
  .sidebar-card,
  .sidebar-promo-card,
  .sidebar-ad-strip {
    margin-bottom: 0 !important;
  }
}

/* ─── Tabs Scroll Wrapper ──────────────────────────────────────── */
.tabs-scroll-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.75rem;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 6px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  overflow: hidden;
}

/* Inner scrollable strip */
.detail-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex: 1;
  padding: 2px 0;
  /* hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.detail-tabs::-webkit-scrollbar { display: none; }

/* Individual tab pill */
.detail-tab {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 9999px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.4;
}
.detail-tab:hover {
  color: #2563eb;
  background: #eff6ff;
  border-color: #bfdbfe;
}
.detail-tab.active {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

/* Scroll arrow buttons */
.tabs-scroll-btn {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  line-height: 1;
  transition: opacity 0.2s ease, width 0.2s ease, margin 0.2s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}
.tabs-scroll-btn:hover {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37,99,235,.25);
}
.tabs-scroll-btn:disabled,
.tabs-scroll-btn[style*="display:none"],
.tabs-scroll-btn[style*="display: none"] {
  opacity: 0;
  pointer-events: none;
  width: 0;
  padding: 0;
  border: none;
  overflow: hidden;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .detail-layout {
    grid-template-columns: 1fr 260px;
  }
}
@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-sidebar {
    order: 2;
  }
  .tabs-scroll-wrapper {
    padding: 5px 6px;
  }
}
@media (max-width: 600px) {
  .detail-tab {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
  .tabs-scroll-btn {
    width: 26px;
    height: 26px;
  }
  .write-review-section {
    padding: 1rem !important;
  }
}


.detail-sidebar .sidebar-card {
  background: #fff; border: 1.5px solid var(--gray-200);
  border-radius: 16px; padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.sidebar-card-title {
  font-size: .9rem; font-weight: 700;
  margin-bottom: 1rem; padding-bottom: .75rem;
  border-bottom: 1px solid var(--gray-100);
}
.sidebar-stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .625rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: .8125rem;
}
.sidebar-stat-row:last-child { border-bottom: none; }
.ss-label { color: var(--gray-500); }
.ss-value { font-weight: 600; color: var(--gray-900); }

/* ─── CollegeDunia Style Sidebar ─────────────────────────────── */
.sidebar-cta-card {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.sidebar-cta-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1rem;
  line-height: 1.35;
  text-align: center;
}
.sidebar-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 0.75rem;
}
.sidebar-cta-btn:last-child {
  margin-bottom: 0;
}
.sidebar-cta-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.sidebar-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
  color: #fff;
}
.sidebar-cta-secondary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}
.sidebar-cta-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
  color: #fff;
}
.sidebar-cta-phone {
  background: var(--gray-50);
  color: var(--gray-800);
  border: 1.5px solid var(--gray-200);
}
.sidebar-cta-phone:hover {
  background: #fff;
  border-color: var(--brand-500);
  color: var(--brand-600);
}

.sidebar-promo-card {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 1.25rem;
}
.sidebar-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.sidebar-promo-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* Sidebar Ad Strip */
.sidebar-ad-strip {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: 16px;
  padding: 0.875rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sidebar-ad-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
}
.sidebar-ad-slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
}
.sidebar-ad-slider {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}
.sidebar-ad-slide {
  min-width: 100%;
  max-width: 100%;
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
  text-decoration: none;
  display: block;
  overflow: hidden;
}
.sidebar-ad-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-top: 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-ad-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.sidebar-ad-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: all 0.2s ease;
}
.sidebar-ad-dot.active {
  background: var(--brand-500);
  width: 18px;
  border-radius: 4px;
}


/* College Public Info Tables */
.college-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  color: var(--gray-700);
}
.college-info-table th {
  background: var(--gray-50);
  font-weight: 700;
  color: var(--gray-800);
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--gray-200);
}
.college-info-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
}
.college-info-table tr:last-child td {
  border-bottom: none;
}
.college-info-table tr:hover td {
  background: var(--gray-50);
}

/* ─── Admin Layout & Responsive System ────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #f8fafc;
}

.admin-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 999;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

.admin-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 990;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.admin-sidebar-backdrop.active {
  display: block;
  opacity: 1;
}

.admin-logo {
  padding: 1.15rem 1.15rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  flex-shrink: 0;
}
.admin-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: #2563eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.admin-logo .logo-text { font-size: 1.05rem; font-weight: 800; }
.admin-logo .logo-text span { color: #60a5fa; }

.admin-nav {
  flex: 1;
  padding: 0.75rem 0;
  overflow-y: auto;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.15s ease;
  margin: 0.125rem 0.6rem;
  border-radius: 8px;
  text-decoration: none;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-nav-item.active { background: #2563eb; color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.admin-nav-icon { width: 18px; display: flex; align-items: center; justify-content: center; }
.admin-nav-section {
  padding: 0.5rem 1rem 0.2rem;
  font-size: 0.65rem;
  font-weight: 800;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.admin-main {
  flex: 1;
  margin-left: 250px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  max-width: 100%;
}
.admin-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 40;
}
.admin-header h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.admin-content {
  padding: 1.25rem;
  flex: 1;
  background: #f8fafc;
  min-width: 0;
  max-width: 100%;
}

/* ─── Smart Compact Filter Bars ─────────────────────────────────── */
.admin-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  background: #ffffff;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  margin-bottom: 0.85rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.admin-filter-bar .filter-search {
  flex: 2;
  min-width: 170px;
}
.admin-filter-bar .filter-select {
  flex: 1;
  min-width: 110px;
}
.admin-filter-bar .form-input,
.admin-filter-bar .form-select {
  height: 34px;
  padding: 0.25rem 0.6rem;
  font-size: 0.8125rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}
.admin-filter-bar .btn {
  height: 34px;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ─── Tables & Data Cards ────────────────────────────────────────── */
.table-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  width: 100%;
  max-width: 100%;
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-card-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.table-card-title {
  font-size: 0.925rem;
  font-weight: 800;
  color: #0f172a;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  min-width: 650px;
}
.admin-table th {
  padding: 0.6rem 0.85rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1.5px solid #e2e8f0;
  background: #f8fafc;
  white-space: nowrap;
}
.admin-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafaf9; }

/* ─── Mobile / Tablet Responsive Overrides ───────────────────────── */
@media (max-width: 992px) {
  .admin-sidebar {
    transform: translateX(-100%);
    box-shadow: 10px 0 35px rgba(0,0,0,0.3);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .admin-header {
    padding: 0.65rem 0.85rem;
  }
  .admin-content {
    padding: 0.75rem 0.5rem;
  }
  .admin-filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    padding: 0.45rem;
  }
  .admin-filter-bar .filter-search {
    grid-column: 1 / -1;
    min-width: 100%;
  }
  .admin-filter-bar .filter-btns {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.35rem;
  }
  .admin-filter-bar .filter-btns .btn {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .admin-filter-bar {
    grid-template-columns: 1fr;
  }
  .admin-filter-bar .filter-select {
    min-width: 100%;
  }
}

/* Forms */
.form-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
}
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.35rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.45rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #0f172a;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.form-hint { font-size: 0.725rem; color: #64748b; margin-top: 0.25rem; }

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
}
.status-published  { background: #dcfce7; color: #15803d; }
.status-draft      { background: #f1f5f9; color: #64748b; }
.status-active     { background: #eff6ff; color: #1d4ed8; }

/* Action buttons */
.action-btns { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.action-btn {
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.725rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.action-edit   { border-color: #bfdbfe; color: #1d4ed8; background: #eff6ff; }
.action-delete { border-color: #fecaca; color: #b91c1c; background: #fef2f2; }
.action-edit:hover   { background: #dbeafe; }
.action-delete:hover { background: #fee2e2; }

/* Alert messages */
.alert {
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.alert-error, .alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ─── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand-name { font-size: 1.25rem; font-weight: 800; margin-bottom: .75rem; }
.footer-brand-name span { color: var(--brand-600); }
.footer-desc { font-size: .8125rem; color: var(--gray-500); line-height: 1.7; }
.footer-col-title { font-size: .875rem; font-weight: 700; margin-bottom: 1rem; color: var(--gray-900); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .625rem; }
.footer-col ul li a {
  font-size: .8125rem; color: var(--gray-500);
  transition: color .15s;
}
.footer-col ul li a:hover { color: var(--brand-600); }
.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: .8125rem; color: var(--gray-500); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .8125rem; color: var(--gray-500); }
.footer-links a:hover { color: var(--brand-600); }

/* ─── Rank Predictor ──────────────────────────────────────────── */
.predictor-card {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.predictor-results {
  margin-top: 2rem;
}
.predictor-result-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 14px;
  margin-bottom: .875rem;
  cursor: pointer;
  transition: all .15s;
}
.predictor-result-item:hover { border-color: var(--brand-400); background: var(--brand-50); }
.prc-rank { font-size: .75rem; color: var(--gray-500); font-weight: 700; min-width: 60px; }
.prc-name { flex: 1; font-weight: 600; }
.prc-chance { font-size: .8125rem; font-weight: 700; }
.chance-high   { color: var(--brand-600); }
.chance-medium { color: #d97706; }
.chance-low    { color: #dc2626; }

/* ─── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff;
  border-radius: 20px;
  width: 100%; max-width: 480px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform .2s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-title { font-size: 1.25rem; font-weight: 800; margin-bottom: .375rem; }
.modal-sub { font-size: .875rem; color: var(--gray-500); margin-bottom: 1.5rem; }

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .streams-grid  { grid-template-columns: repeat(2,1fr); }
  .colleges-grid { grid-template-columns: repeat(2,1fr); }
  .trust-grid    { grid-template-columns: repeat(2,1fr); }
  .articles-grid { grid-template-columns: repeat(2,1fr); }
  .testimonials-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid   { grid-template-columns: repeat(3,1fr); }
  .stats-grid    { grid-template-columns: repeat(2,1fr); }
  .stats-grid .stat-item:nth-child(2n) { border-right: none; }
  .stats-grid .stat-item { border-bottom: 1px solid var(--gray-200); }
  .stats-grid .stat-item:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 991px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .streams-grid { grid-template-columns: repeat(2,1fr); }
  .colleges-grid { grid-template-columns: 1fr; }
  .trust-grid    { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .admin-sidebar { display: none; }
  .admin-main    { margin-left: 0; }
  .form-row      { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }

  /* Admin content padding reduction on tablet/mobile */
  .admin-content { padding: 1.25rem; }
  .admin-header  { padding: 0.875rem 1rem; flex-wrap: wrap; gap: 0.5rem; }
  .admin-header h1 { font-size: 1rem; }
  
  /* Form card reduce padding */
  .form-card { padding: 1.25rem; }
  
  /* Table card header wrapping */
  .table-card-header { flex-wrap: wrap; gap: 0.5rem; }
  
  /* Action buttons wrap */
  .action-btns { flex-wrap: wrap; gap: 4px; }
}

@media (max-width: 480px) {
  .streams-grid  { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: 1fr; }
  .stats-grid .stat-item { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .stats-grid .stat-item:last-child { border-bottom: none; }

  /* Admin extra-small mobile overrides */
  .admin-content  { padding: 0.875rem; }
  .admin-header   { padding: 0.75rem; gap: 0.4rem; }
  .admin-stat-card { padding: 1rem; }
  .asc-value      { font-size: 1.5rem; }
  .form-card      { padding: 1rem; }
  .table-card-header { padding: 0.875rem 1rem; }
  .admin-table    { font-size: 0.8rem; }
  .admin-table th,
  .admin-table td { padding: 0.6rem 0.875rem; }
  .action-btns    { flex-direction: column; align-items: flex-start; }
  .action-btn     { display: block; text-align: center; }
  .btn-sm         { font-size: 0.75rem; padding: 0.4rem 0.75rem; }

  /* Blog featured image auto-fit */
  .article-thumb  { aspect-ratio: 16/9; }
  .article-thumb img { width: 100%; height: 100%; object-fit: contain; }
}

/* ─── Spinner / Skeleton ──────────────────────────────────────── */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--brand-100);
  border-top-color: var(--brand-600);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 8px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ─── Misc ────────────────────────────────────────────────────── */
.bg-muted { background: var(--gray-50); }
.section-muted { background: var(--gray-50); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.divider { height: 1px; background: var(--gray-200); margin: 1.5rem 0; }
.view-all-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .75rem 2rem;
  border: 1.5px solid var(--gray-300);
  border-radius: 12px;
  font-size: .9rem; font-weight: 600;
  color: var(--gray-700);
  transition: all .15s;
}
.view-all-btn:hover { border-color: var(--brand-400); color: var(--brand-700); background: var(--brand-50); }

input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

/* Mobile CTA */
.mobile-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--gray-200);
  padding: .875rem 1rem;
  z-index: 90;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
@media (max-width: 1023px) {
  .mobile-cta { display: flex; gap: .75rem; }
  body { padding-bottom: 80px; }
}

/* Compare highlight */
.compare-best { background: var(--brand-50) !important; position: relative; }
.compare-best::after {
  content: 'Best'; position: absolute; top: 2px; right: 4px;
  font-size: 9px; font-weight: 700; color: var(--brand-700);
  text-transform: uppercase; letter-spacing: .5px;
}

/* Search page highlight */
mark { background: #fef08a; padding: 0 2px; border-radius: 3px; }

@media print {
  .site-header, .site-footer, .mobile-cta, .filter-sidebar { display: none !important; }
}

/* ─── College Hero Slider ────────────────────────────────────── */
.college-hero-slider {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: #0f172a;
}
.college-slider-track {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.college-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}
.college-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.college-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,23,42,0.2) 0%, rgba(15,23,42,0.85) 100%);
  pointer-events: none;
  z-index: 2;
}
.college-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 10;
  pointer-events: none;
}
.college-slider-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}
.college-slider-btn:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  transform: scale(1.08);
}
.college-slider-dots {
  position: absolute;
  bottom: 25px;
  right: 25px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.college-slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.25s ease;
}
.college-slider-dot.active {
  background: var(--brand-600);
  width: 24px;
  border-radius: 100px;
}
.college-slider-content-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding-bottom: 2.5rem;
  color: #fff;
}
@media(max-width:767px) {
  .college-hero-slider { height: 380px; }
  .college-slider-dots { display: none; }
}

/* ─── Responsive Adjustments & Overrides ───────────────────────── */

/* Mobile Filter Collapsible System */
.mobile-filter-toggle {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-filter-toggle {
    display: inline-flex !important;
    width: 100%;
    margin-bottom: 1.25rem;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 44px;
    border-radius: 10px;
    background: #fff;
    border: 1.5px solid var(--gray-300);
    color: var(--gray-700);
    font-weight: 600;
  }
  .mobile-filter-toggle:hover {
    border-color: var(--brand-500);
    color: var(--brand-700);
    background: var(--brand-50);
  }
  .filter-sidebar {
    position: static !important;
    display: none; /* Hidden by default on mobile */
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
  }
  .filter-sidebar.active {
    display: block !important;
    width: 100%;
    animation: slideDownFade 0.3s ease-out;
  }
}

@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Predictor Page Responsiveness */
.predictor-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.predictor-info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .predictor-form-grid {
    grid-template-columns: 1fr !important;
  }
  .predictor-info-cards {
    grid-template-columns: 1fr !important;
  }
  .predictor-card {
    padding: 1.5rem !important;
  }
  
  /* Details Hero Stack */
  .detail-hero-inner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1rem !important;
  }
  .detail-logo {
    margin: 0 auto !important;
  }
  .detail-badges {
    justify-content: center !important;
  }
  .detail-meta {
    justify-content: center !important;
  }
  
  /* Predictor list spacing */
  .predictor-result-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    position: relative;
    padding-right: 2.5rem !important;
  }
  .predictor-result-item i {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* Profile Form Columns Responsiveness */
.profile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .profile-row {
    grid-template-columns: 1fr !important;
  }
  
  /* Dialog size limits */
  .auth-modal {
    margin: 0 1rem;
    border-radius: 16px;
  }
}

/* General Layout Padding & Mobile Search */
@media (max-width: 580px) {
  .search-inner {
    flex-direction: column !important;
    padding: .5rem !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.15) !important;
  }
  .search-inner input {
    width: 100% !important;
    height: 48px !important;
    padding: 0 .5rem !important;
  }
  .search-inner .btn-primary {
    width: 100% !important;
    margin: .5rem 0 0 0 !important;
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem !important;
  }
  .py-12 {
    padding: 2rem 0 !important;
  }
  
  /* College Card Sizing Optimization for Mobiles */
  .college-card {
    border-radius: 12px;
  }
  .card-header {
    padding: 0.85rem !important;
    gap: 10px !important;
  }
  .card-logo {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.1rem !important;
  }
  .card-name {
    font-size: 0.875rem !important;
  }
  .card-location {
    font-size: 0.7rem !important;
  }
  .badge {
    padding: 0.15rem 0.4rem !important;
    font-size: 0.625rem !important;
  }
  .card-stats {
    padding: 0.625rem 0.75rem !important;
  }
  .cs-value {
    font-size: 0.75rem !important;
  }
  .cs-label {
    font-size: 0.6rem !important;
  }
  .card-courses {
    padding: 0.4rem 0.75rem !important;
    gap: 0.25rem !important;
  }
  .course-tag {
    padding: 0.15rem 0.4rem !important;
    font-size: 0.625rem !important;
  }
  .card-footer-bar {
    padding: 0.625rem 0.75rem !important;
  }
  .card-rating {
    font-size: 0.75rem !important;
  }
  .card-view-btn {
    font-size: 0.72rem !important;
  }
}

/* College Public Info Tables Responsive Scroll */
@media (max-width: 768px) {
  .college-info-table {
    min-width: 600px;
  }
}

/* ============================================================ */
/* ─── Admission Dakhila PWA & Mobile Responsiveness System ────────── */
/* ============================================================ */

/* Touch optimization */
html {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body {
  max-width: 100vw;
}

/* ─── Mobile Bottom App Bar ──────────────────────────────────── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--gray-200);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.25rem;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.mobile-nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 6px 0;
  border-radius: 8px;
  transition: all 0.15s ease;
  position: relative;
}

.mobile-nav-tab i,
.mobile-nav-tab svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2px;
  color: var(--gray-500);
  transition: transform 0.15s ease, color 0.15s ease;
}

.mobile-nav-tab:active i,
.mobile-nav-tab:active svg {
  transform: scale(0.88);
}

.mobile-nav-tab.active {
  color: var(--brand-600);
  font-weight: 800;
}

.mobile-nav-tab.active i,
.mobile-nav-tab.active svg {
  stroke-width: 2.6px;
  color: var(--brand-600);
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
  body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom)) !important;
  }
  #floating-compare-bar {
    bottom: calc(74px + env(safe-area-inset-bottom)) !important;
  }
}

/* ─── PWA In-App Install Prompt Banner ────────────────────────── */
.pwa-install-banner {
  position: fixed;
  bottom: calc(70px + env(safe-area-inset-bottom));
  left: 0.75rem;
  right: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
  background: #ffffff;
  border: 1.5px solid #bfdbfe;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  animation: pwaSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 769px) {
  .pwa-install-banner {
    bottom: 1.5rem;
    right: 1.5rem;
    left: auto;
    width: 380px;
  }
}

@keyframes pwaSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.pwa-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pwa-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.pwa-app-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pwa-banner-title {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
}

.pwa-banner-desc {
  font-size: 0.72rem;
  color: var(--gray-500);
  margin-top: 2px;
  line-height: 1.3;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pwa-btn-install {
  background: var(--brand-600);
  color: #fff;
  font-weight: 800;
  border: none;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.78rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.pwa-btn-dismiss {
  padding: 0.45rem 0.65rem;
  font-size: 0.75rem;
  border-radius: 8px;
}

/* iOS PWA Guide Modal */
.pwa-guide-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

@media (min-width: 600px) {
  .pwa-guide-modal-overlay {
    align-items: center;
  }
}

.pwa-guide-card {
  background: #fff;
  border-radius: 24px;
  max-width: 440px;
  width: 100%;
  padding: 1.75rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  animation: pwaSlideUp 0.3s ease-out;
}

.pwa-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.pwa-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.4;
  background: var(--gray-50);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

.pwa-step-num {
  width: 24px;
  height: 24px;
  background: var(--brand-600);
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ─── Colleges Listing Page Mobile Grid Overrides ────────────── */
@media (max-width: 768px) {
  .colleges-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  .college-card {
    width: 100% !important;
  }
}

/* ─── Single Blog & Article Mobile Overflow Overrides ─────────── */
.blog-layout,
.blog-main-content,
.blog-article-container,
.article-main-body,
.article-header {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.article-main-body,
.article-content {
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
}

.article-main-body img,
.article-main-body video,
.article-main-body iframe {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px;
}

.article-main-body table {
  width: 100% !important;
  display: block !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  margin: 1.5rem 0 !important;
}

@media (max-width: 991px) {
  .blog-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .blog-sidebar-col {
    width: 100% !important;
  }
}

/* ─── Colleges Listing Toolbar - Mobile Overrides ────────────── */
@media (max-width: 640px) {
  /* Hide grid column toggles (CSS forces 1 col anyway) */
  #view-mode-toggle {
    display: none !important;
  }
  /* Stack listing top bar */
  .listing-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }
  /* Listing layout side-by-side → stacked */
  .listing-layout {
    grid-template-columns: 1fr !important;
  }
  /* Filter sidebar mobile */
  .filter-sidebar {
    display: none;
  }
  .filter-sidebar.active {
    display: block;
  }
  .mobile-filter-toggle {
    display: inline-flex !important;
  }
}

/* ─── General Mobile Overflow Safety ──────────────────────────── */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  img {
    max-width: 100%;
    height: auto;
  }
  pre, code {
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
  }
  /* Make sure headings don't overflow */
  h1, h2, h3, h4 {
    word-break: break-word;
    overflow-wrap: break-word;
  }
  /* Touch-friendly interactive targets */
  .btn, button, a.btn, input[type="submit"] {
    min-height: 44px;
  }
  select, input[type="text"], input[type="email"], input[type="tel"], textarea {
    min-height: 44px;
    font-size: 16px !important; /* Prevent iOS zoom on focus */
  }
}

/* ─── PWA 1-Click App Installer Styles ─────────────────────────────── */
.cw-pwa-bar {
  position: fixed;
  bottom: 74px; /* Sits cleanly above mobile-bottom-nav */
  left: 12px;
  right: 12px;
  max-width: 540px;
  margin: 0 auto;
  background: #ffffff;
  border: 1.5px solid #bfdbfe;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(37, 99, 235, 0.15);
  z-index: 99990;
  padding: 10px 14px;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
  pointer-events: none;
}
.cw-pwa-bar.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 769px) {
  .cw-pwa-bar {
    bottom: 24px;
    right: 24px;
    left: auto;
    width: 420px;
  }
}
.cw-pwa-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cw-pwa-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.cw-pwa-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.cw-pwa-info {
  min-width: 0;
}
.cw-pwa-title {
  font-size: 0.925rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cw-pwa-sub {
  font-size: 0.725rem;
  color: #64748b;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cw-pwa-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.cw-pwa-btn-dismiss {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cw-pwa-btn-dismiss:hover {
  background: #e2e8f0;
}
.cw-pwa-btn-install {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cw-pwa-btn-install:active {
  transform: scale(0.96);
}

/* iOS Safari Modal Sheet */
.cw-ios-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cw-ios-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cw-ios-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: 20px 20px 0 0;
  padding: 1.5rem 1.25rem 2rem 1.25rem;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cw-ios-modal-overlay.active .cw-ios-modal-card {
  transform: translateY(0);
}
.cw-ios-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.cw-ios-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.25rem;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cw-ios-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 1.5rem;
}
.cw-ios-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.cw-step-badge {
  width: 24px;
  height: 24px;
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cw-step-text {
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.4;
}
.cw-ios-icon-inline {
  display: inline-flex;
  vertical-align: middle;
  padding: 2px 4px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  margin: 0 3px;
}

/* Toast */
.cw-pwa-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 999999;
  opacity: 0;
  transition: all 0.3s ease;
}
.cw-pwa-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ─── Universal Auto-Fit Image Classes & Responsive Guardrails ───────────── */
img, picture, video, canvas, svg {
  max-width: 100%;
}

/* Full bleed container crop without distortion */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center;
}

/* Complete logo / icon visibility without clipping */
.img-contain {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
}

/* Aspect-ratio preserving auto fluid */
.img-autofit {
  max-width: 100%;
  height: auto;
  display: block;
}

/* In-feed and sidebar responsive banner fit */
.img-banner-fit {
  width: 100%;
  height: 100%;
  max-height: 200px;
  object-fit: contain;
  object-position: center;
  background-color: #f8fafc;
  border-radius: 12px;
  display: block;
}

/* University & College Logo Fit */
.logo-fit {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
  padding: 3px;
  background: #ffffff;
  box-sizing: border-box;
}



