/**
 * EduPortal - Modern White & Blue Design System
 * Specializing in Graduate & Post-Graduate College Search
 */

:root {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-blue-subtle: #f0f7ff;
  --bg-blue-tint: #e0f2fe;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-deep: #1e3a8a;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-light: #e2e8f0;

  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;
  --accent-emerald-bg: #ecfdf5;
  --accent-emerald-text: #065f46;

  --accent-rose: #f43f5e;
  --accent-rose-text: #be123c;

  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1);
  --shadow-hover: 0 14px 28px rgba(37, 99, 235, 0.12);

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--navy-800);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}
.btn-outline {
  background-color: #ffffff;
  color: var(--primary);
  border-color: #bfdbfe;
}
.btn-outline:hover {
  background-color: var(--bg-blue-subtle);
  border-color: var(--primary);
}
.btn-ghost {
  background: transparent;
  color: var(--navy-700);
}
.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 6px;
}
.btn-icon-sm {
  padding: 8px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--navy-700);
}
.btn-icon-sm.active {
  background: var(--bg-blue-subtle);
  color: var(--primary);
  border-color: var(--primary);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge-pg { background-color: #1e3a8a; color: #ffffff; }
.badge-grad { background-color: #0284c7; color: #ffffff; }
.badge-featured { background-color: var(--accent-gold); color: #ffffff; }
.badge-emerald { background-color: var(--accent-emerald-bg); color: var(--accent-emerald-text); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 21px;
  color: var(--navy-900);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
}
.brand-logo .logo-text span { color: var(--primary); }

.main-nav {
  display: flex;
  align-items: center;
}
.main-nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-800);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 2px;
  transition: var(--transition);
}
.main-nav a:hover { color: var(--primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
}
.btn-compare-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-blue-subtle);
  color: var(--primary-deep);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid #bfdbfe;
}
.btn-compare-badge .count-tag {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
}
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy-900);
}

/* Hero Section */
.portal-hero {
  position: relative;
  padding: 40px 0 60px;
  background: linear-gradient(180deg, #f0f7ff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}
.hero-glow-bg {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-headline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid #bfdbfe;
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.portal-hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  color: var(--navy-900);
  margin-bottom: 18px;
  line-height: 1.15;
}
.portal-hero h1 span.gradient-text {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtext {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--navy-700);
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero-search-wrapper {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(37, 99, 235, 0.12);
  padding: 14px 18px 18px;
  max-width: 1040px;
  margin: 0 auto;
}
.search-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 12px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 14px;
  overflow-x: auto;
}
.search-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: var(--transition);
}
.search-tab-btn:hover {
  color: var(--navy-900);
  background: #f1f5f9;
}
.search-tab-btn.active {
  background-color: var(--bg-blue-subtle);
  color: var(--primary);
  border-color: #bfdbfe;
}
.hero-advance-search-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Primary Smart Search Row */
.hero-primary-search-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.hero-smart-input-box {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 0 16px;
  height: 52px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-smart-input-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}
.hero-search-icon {
  color: var(--primary);
  margin-right: 12px;
  flex-shrink: 0;
}
.hero-smart-input-box input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-900);
}
.hero-smart-input-box input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}
.hero-clear-btn {
  background: #f1f5f9;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-left: 8px;
  flex-shrink: 0;
}
.hero-clear-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}
.hero-search-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-hero-search {
  height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: var(--radius-md);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.btn-hero-explorer {
  height: 52px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-md);
  white-space: nowrap;
}

/* Floating Live Autocomplete Dropdown */
.hero-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.05);
  z-index: 9999;
  max-height: 420px;
  overflow-y: auto;
  text-align: left;
  animation: modalPopIn 0.18s ease-out;
}
.autocomplete-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  padding: 8px 16px 4px;
  letter-spacing: 0.04em;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}
.autocomplete-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--navy-900);
  border-bottom: 1px solid #f8fafc;
  transition: background 0.15s ease;
  cursor: pointer;
}
.autocomplete-item:hover, .autocomplete-item.selected {
  background: var(--bg-blue-subtle);
}
.autocomplete-item-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.autocomplete-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
}
.autocomplete-item-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.autocomplete-item-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2.5px 8px;
  border-radius: var(--radius-pill);
  background: #f1f5f9;
  color: var(--navy-700);
  white-space: nowrap;
}
.autocomplete-footer {
  padding: 11px 16px;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.15s;
}
.autocomplete-footer:hover {
  background: #eff6ff;
}

/* Secondary Quick Filter Pills Row */
.hero-secondary-filters-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: var(--bg-page);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.hero-filter-pill-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-filter-pill-item:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}
.filter-icon-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-800);
  white-space: nowrap;
  flex-shrink: 0;
}
.hero-filter-pill-item select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy-900);
  cursor: pointer;
}

/* Interactive Quick Tags */
.hero-quick-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.hero-quick-tags .tag-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 4px;
}
.quick-tag-chip {
  background: #ffffff;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  color: var(--navy-800);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.quick-tag-chip:hover {
  border-color: var(--primary);
  background: var(--bg-blue-subtle);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.1);
}

/* Stats */
.stats-strip {
  padding: 40px 0;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-blue-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--navy-900);
}
.stat-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* Section Common */
.section-padding { padding: 80px 0; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}
.section-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
  gap: 12px;
}
.section-header-center h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 800;
  color: var(--navy-900);
  margin: 0;
  line-height: 1.25;
}
.section-header-center p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0;
}

/* Cards Grid - Compact & Smart Layout */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
@media (min-width: 1100px) {
  .portal-main-catalog .edu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.edu-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.edu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -6px rgba(37, 99, 235, 0.12);
  border-color: #93c5fd;
}
.card-media {
  position: relative;
  height: 130px;
  overflow: hidden;
  background-color: var(--navy-800);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.edu-card:hover .card-media img { transform: scale(1.05); }

.media-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  gap: 6px;
  min-width: 0;
}
.media-badges .badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50%;
  flex-shrink: 0;
}
.media-badges .badge.badge-featured {
  max-width: 55%;
  flex-shrink: 1;
}
.mode-pill {
  position: absolute;
  bottom: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mode-pill svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}
.mode-pill span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranking-ribbon {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 9.5px;
  font-weight: 600;
  max-width: calc(100% - 60px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rating-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ffffff;
  font-weight: 600;
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.card-content {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}
.card-institution {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 6px;
  min-width: 0;
}
.inst-name {
  font-weight: 700;
  font-size: 11.5px;
  color: var(--navy-700);
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}
.inst-name .inst-icon {
  flex-shrink: 0;
}
.inst-name .inst-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inst-location {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 48%;
}
.inst-location svg {
  flex-shrink: 0;
}
.inst-location span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
  word-break: break-word;
}
.card-title a { color: var(--navy-900); text-decoration: none; }
.card-title a:hover { color: var(--primary); }

.card-spec-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px 8px;
  background-color: var(--bg-blue-subtle);
  border: 1px solid #e0f2fe;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  min-width: 0;
}
.spec-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.spec-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.spec-value {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--navy-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}
.fee-highlight { color: var(--primary-deep); }
.salary-highlight { color: #059669; }
.exam-badge { color: #1e40af; font-size: 11px; font-weight: 700; }
.deadline-badge { color: #e11d48; font-size: 11px; font-weight: 700; }

.card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.card-actions .btn-primary {
  flex-grow: 1;
  padding: 6px 10px;
  font-size: 12px;
  height: 32px;
}
.card-actions .btn-outline {
  padding: 6px 8px;
  font-size: 12px;
  height: 32px;
}
.card-actions .btn-icon-sm {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.college-meta-header { display: flex; gap: 8px; margin-bottom: 10px; }
.type-pill, .city-pill {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}
.college-excerpt {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 14px;
  min-height: 60px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.college-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border-light);
  background: #fbfcfe;
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  margin-bottom: 16px;
  gap: 2px;
}
.highlight-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 4px;
  min-height: 52px;
}
.highlight-stat:not(:last-child) {
  border-right: 1px solid #e2e8f0;
}
.highlight-stat .num {
  font-weight: 800;
  font-size: 13px;
  color: var(--navy-900);
  line-height: 1.2;
  white-space: nowrap;
}
.highlight-stat .num.highlight-salary {
  color: #059669;
}
.highlight-stat .stat-sub {
  font-size: 9.5px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}
.highlight-stat .lbl {
  font-size: 9.5px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 3px;
  line-height: 1;
}

/* ==========================================================================
   Interactive Academic Streams Section (Click-to-Detail) - Compact 1-Screen
   ========================================================================== */
.streams-interactive-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 32px 0 36px !important;
}
.streams-interactive-section .section-header-center {
  margin: 0 auto 14px;
  gap: 6px;
}
.streams-interactive-section .section-sub-badge {
  font-size: 11px;
  padding: 2px 10px;
}
.streams-interactive-section .section-header-center h2 {
  font-size: clamp(20px, 2.5vw, 25px);
  margin: 0;
  line-height: 1.2;
}
.streams-interactive-section .section-header-center p {
  font-size: 13px;
  line-height: 1.4;
  max-width: 580px;
  margin: 0;
}

.streams-selector-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.stream-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-heading);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.stream-pill-btn .stream-icon {
  font-size: 15px;
}
.stream-pill-btn .stream-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy-800);
}
.stream-pill-btn .stream-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--bg-page);
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}
.stream-pill-btn:hover {
  border-color: var(--primary);
  background: var(--bg-blue-subtle);
  transform: translateY(-1px);
}
.stream-pill-btn.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
}
.stream-pill-btn.active .stream-name {
  color: #ffffff;
}
.stream-pill-btn.active .stream-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Detail Box Display */
.stream-detail-display-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), 0 8px 24px -8px rgba(37, 99, 235, 0.08);
  overflow: hidden;
  max-width: 1060px;
  margin: 0 auto;
  transition: all 0.3s ease;
}
.stream-content-pane {
  display: none;
  animation: fadeInPane 0.2s ease-out;
}
.stream-content-pane.active {
  display: block;
}
@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.detail-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(90deg, #f8fafc 0%, #ffffff 100%);
  gap: 16px;
}
.pane-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.04em;
}
.detail-pane-header h3 {
  font-size: 18px;
  color: var(--navy-900);
  margin: 2px 0 4px;
  line-height: 1.25;
}
.detail-pane-header p {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.4;
  max-width: 620px;
  margin: 0;
}
.pane-stats-box {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  text-align: center;
  min-width: 140px;
  flex-shrink: 0;
}
.pane-stats-box .stat-highlight {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #065f46;
  line-height: 1.2;
}
.pane-stats-box .stat-lbl {
  font-size: 9.5px;
  font-weight: 600;
  color: #047857;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.detail-pane-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr;
  gap: 20px;
  padding: 16px 24px 18px;
}
.pane-col h4 {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pane-links-list, .pane-institutes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.pane-links-list li, .pane-institutes-list li {
  font-size: 12px;
  color: var(--navy-800);
  line-height: 1.35;
  padding-left: 2px;
}
.pane-exams-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.exam-chip {
  background: var(--bg-blue-subtle);
  color: var(--primary-deep);
  border: 1px solid #bfdbfe;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}
.pane-action-wrap {
  margin-top: 10px;
}
.pane-action-wrap .btn {
  padding: 7px 12px;
  font-size: 12px;
  min-height: 34px;
  height: auto;
}
@media (max-width: 900px) {
  .detail-pane-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .detail-pane-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .pane-stats-box {
    width: 100%;
  }
}

/* Discipline Stream Grid (Section 5) */
.stream-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 992px) {
  .stream-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .stream-grid {
    grid-template-columns: 1fr;
  }
}

.stream-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.stream-box:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -6px rgba(37, 99, 235, 0.14), 0 6px 12px -4px rgba(0, 0, 0, 0.05);
}
.stream-icon-badge {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: transform 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.stream-box:hover .stream-icon-badge {
  transform: scale(1.12);
}
.stream-box-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-grow: 1;
}
.stream-box-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0;
  transition: color 0.2s ease;
}
.stream-box:hover .stream-box-content h4 {
  color: var(--primary);
}
.stream-box-content .stream-count {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.35;
}
.stream-box-content .stream-action {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}
.stream-box:hover .stream-box-content .stream-action {
  transform: translateX(4px);
}

/* ==========================================================================
   Modern Faceted Portal Layout & Filter Sidebar
   ========================================================================== */
.portal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 20px 0 60px;
  align-items: flex-start;
}

.portal-sidebar {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px -2px rgba(15, 23, 42, 0.05);
  padding: 12px 14px;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 95px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.portal-sidebar::-webkit-scrollbar {
  width: 4px;
}
.portal-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}

/* Sidebar Header */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 10px;
}
.sidebar-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #eff6ff;
  color: var(--primary);
}
.sidebar-filter-icon svg {
  width: 14px;
  height: 14px;
}
.sidebar-header h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy-900);
  margin: 0;
  letter-spacing: -0.01em;
}
.btn-sidebar-reset {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-sidebar-reset svg {
  width: 11px;
  height: 11px;
}
.btn-sidebar-reset:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* Active Filter Chips Bar */
.active-filter-chips-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 10px;
}
.active-chips-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.active-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.2;
}
.active-chip .chip-remove {
  background: transparent;
  border: none;
  color: #3b82f6;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
}
.active-chip .chip-remove:hover {
  color: #ef4444;
}

/* Sidebar Search Box */
.filter-search-group {
  margin-bottom: 10px;
  padding-bottom: 0;
  border-bottom: none;
}
.sidebar-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.sidebar-search-box .search-icon {
  position: absolute;
  left: 10px;
  width: 13px;
  height: 13px;
  color: #94a3b8;
  pointer-events: none;
}
.sidebar-search-box input {
  width: 100%;
  height: 33px;
  padding: 0 28px 0 30px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: var(--navy-900);
  transition: all 0.15s ease;
  font-family: inherit;
  outline: none;
}
.sidebar-search-box input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 2.5px rgba(37, 99, 235, 0.1);
}
.sidebar-search-box .clear-search-btn {
  position: absolute;
  right: 8px;
  background: #e2e8f0;
  border: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
}
.sidebar-search-box .clear-search-btn:hover {
  background: #cbd5e1;
  color: var(--navy-900);
}

/* Filter Groups & Accordion Headers */
.filter-group {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.filter-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 2px 0 4px;
  transition: color 0.15s ease;
}
.filter-group-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy-900);
}
.filter-group-title .group-icon {
  font-size: 12px;
}
.group-toggle-icon {
  color: #94a3b8;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}
.group-toggle-icon svg {
  width: 12px;
  height: 12px;
}
.filter-group.is-collapsed .group-toggle-icon {
  transform: rotate(-90deg);
}

/* Modern Filter Option Items (Radio / Checkbox replacements) */
.filter-options-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 140px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: #e2e8f0 transparent;
}
.filter-options-list::-webkit-scrollbar {
  width: 3px;
}
.filter-options-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}

.modern-filter-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3.5px 6px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.12s ease;
  position: relative;
  user-select: none;
}
.modern-filter-option:hover {
  background: #f8fafc;
}
.modern-filter-option input[type="radio"],
.modern-filter-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.custom-radio-dot {
  width: 13px;
  height: 13px;
  border: 1.5px solid #cbd5e1;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all 0.12s ease;
  background: #ffffff;
}
.modern-filter-option:hover .custom-radio-dot {
  border-color: #93c5fd;
}
.modern-filter-option input:checked ~ .custom-radio-dot {
  border-color: var(--primary);
  background: var(--primary);
}
.modern-filter-option input:checked ~ .custom-radio-dot::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ffffff;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.modern-filter-option .option-label {
  font-size: 12px;
  color: var(--navy-800);
  font-weight: 500;
  flex-grow: 1;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 5px;
}
.modern-filter-option .option-label .str-icon {
  font-size: 11.5px;
}
.modern-filter-option .salary-label-tier small {
  font-size: 9.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.modern-filter-option input:checked ~ .option-label {
  color: var(--primary-deep);
  font-weight: 700;
}
.modern-filter-option:has(input:checked) {
  background: #eff6ff;
}

.modern-filter-option .option-count {
  font-size: 9.5px;
  font-weight: 700;
  background: #f1f5f9;
  color: #64748b;
  padding: 0 5px;
  height: 16px;
  line-height: 16px;
  border-radius: 8px;
  flex-shrink: 0;
}
.modern-filter-option input:checked ~ .option-count {
  background: #dbeafe;
  color: #1e40af;
}

/* Exam Pills Grid */
.filter-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.filter-pill-label {
  cursor: pointer;
  user-select: none;
}
.filter-pill-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.filter-pill-label span {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2.5px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: var(--navy-700);
  transition: all 0.12s ease;
}
.filter-pill-label:hover span {
  border-color: var(--primary);
  background: #f8fafc;
}
.filter-pill-label input:checked ~ span {
  background: var(--navy-900);
  color: #ffffff;
  border-color: var(--navy-900);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.15);
}

/* Sidebar Select Box & Quick Tags */
.sidebar-select-wrap {
  margin-bottom: 6px;
}
.sidebar-select {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--navy-900);
  outline: none;
  font-family: inherit;
  cursor: pointer;
}
.sidebar-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}
.quick-city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.quick-city-chip {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #475569;
  cursor: pointer;
  transition: all 0.12s ease;
}
.quick-city-chip:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--primary);
}

/* Quick Budget Pills & Range */
.fee-display-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-deep);
  background: #eff6ff;
  padding: 1px 6px;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
}
.budget-pills-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.budget-pill-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 3.5px 2px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--navy-700);
  cursor: pointer;
  text-align: center;
  transition: all 0.12s ease;
}
.budget-pill-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--primary);
}
.budget-pill-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.2);
}
.range-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.range-slider-wrap input[type="range"] {
  accent-color: var(--primary);
  height: 4px;
  cursor: pointer;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

.portal-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.view-mode-toggle {
  display: inline-flex;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
}
.btn-view-toggle {
  border: none;
  background: transparent;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-view-toggle:hover {
  color: var(--navy-900);
}
.btn-view-toggle.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Compact List View Mode */
.edu-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.edu-grid.list-view .edu-card {
  flex-direction: row;
  align-items: center;
  height: auto;
}
.edu-grid.list-view .card-media {
  width: 130px;
  height: 105px;
  flex-shrink: 0;
}
.edu-grid.list-view .card-content {
  padding: 10px 16px;
  flex-grow: 1;
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 130px;
  align-items: center;
  gap: 14px;
}
.edu-grid.list-view .card-title {
  margin-bottom: 4px;
  min-height: auto;
}
.edu-grid.list-view .card-spec-grid {
  margin-bottom: 0;
  padding: 6px 10px;
}
.edu-grid.list-view .card-actions {
  flex-direction: column;
  gap: 6px;
  margin-top: 0;
  width: 100%;
}
.edu-grid.list-view .card-actions .btn-primary {
  width: 100%;
}
@media (max-width: 992px) {
  .edu-grid.list-view .card-content {
    grid-template-columns: 1fr;
  }
}

.sort-select {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #ffffff;
  font-size: 13px;
  outline: none;
}
.eduportal-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.page-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #ffffff;
  font-weight: 600;
  cursor: pointer;
}
.page-num.active, .page-num:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.eduportal-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-light);
}

/* Detail Templates */
.hero-detail {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 60px 0;
}
.detail-header-flex { display: flex; gap: 32px; align-items: center; }
.detail-cover-thumb {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 8px;
  flex-shrink: 0;
}
.detail-cover-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); }
.detail-info h1 { color: #ffffff; font-size: clamp(26px, 3.5vw, 40px); margin-bottom: 12px; }
.detail-badges-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.badge-light {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
}

.quick-facts-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.fact-item { border-right: 1px solid var(--border-light); padding-right: 16px; }
.fact-item:last-child { border-right: none; }
.fact-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }
.fact-value { font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: var(--navy-900); }

.detail-body-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  padding: 50px 0 80px;
}
.detail-main-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 36px;
}
.sidebar-sticky-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 96px;
}
.sidebar-sticky-card .price-tag { font-size: 30px; font-weight: 800; color: var(--primary-deep); }
.sidebar-sticky-card .price-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.apply-actions-box { display: flex; flex-direction: column; gap: 12px; }

/* Compare Tray & Matrix */
.compare-tray {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.96);
  color: #ffffff;
  padding: 16px 0;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.compare-tray.visible { transform: translateY(0); }
.compare-tray-inner { display: flex; align-items: center; justify-content: space-between; }
.compare-items-list { display: flex; align-items: center; gap: 14px; }
.compare-item-pill {
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.compare-item-pill button { background: none; border: none; color: #fff; cursor: pointer; }
.compare-matrix-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.compare-matrix-table th, .compare-matrix-table td {
  padding: 18px 20px;
  border: 1px solid var(--border-light);
  text-align: left;
}

/* Search Modal */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: 99999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}
.search-modal-backdrop.open { display: flex; }
.search-modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 680px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.search-modal-input-wrap {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
}
.search-modal-input-wrap input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 18px;
  color: var(--navy-900);
}
.instant-results-list { max-height: 380px; overflow-y: auto; padding: 12px; }
.instant-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}
.instant-result-item:hover { background: var(--bg-blue-subtle); }

/* Footer */
.site-footer {
  background: var(--navy-900);
  color: #cbd5e1;
  padding: 70px 0 30px;
  border-top: 1px solid var(--navy-800);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-col h4 { color: #ffffff; font-size: 16px; margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #94a3b8; font-size: 14px; }
.footer-col a:hover { color: #ffffff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 13px;
  color: #64748b;
}

/* ==========================================================================
   3-Tier Advanced Mega Explorer (As shown in Image 2)
   ========================================================================== */
.btn-mega-explorer-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-blue-subtle);
  color: var(--primary-deep);
  border: 1px solid #bfdbfe;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-mega-explorer-trigger:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.mega-explorer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.mega-explorer-modal {
  background: #ffffff;
  width: 100%;
  max-width: 1140px;
  max-height: 88vh;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  animation: modalPopIn 0.22s ease-out;
}
@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.97) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.mega-explorer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: linear-gradient(90deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-light);
}
.btn-close-explorer {
  background: #f1f5f9;
  border: none;
  font-size: 24px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--navy-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-close-explorer:hover {
  background: #fee2e2;
  color: #dc2626;
}
.mega-explorer-body {
  display: grid;
  grid-template-columns: 240px 1fr 320px;
  min-height: 480px;
  max-height: calc(88vh - 75px);
  overflow: hidden;
}

/* Column 1: Vertical Tabs (Left) */
.explorer-col-left {
  background: #f8fafc;
  border-right: 1px solid var(--border-light);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}
.explorer-col-left .nav-tab-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-800);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}
.explorer-col-left .nav-tab-btn:hover {
  background: #e2e8f0;
  color: var(--navy-900);
}
.explorer-col-left .nav-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 3px solid var(--primary);
}
.explorer-col-left .nav-tab-btn svg {
  color: #94a3b8;
  transition: transform 0.15s ease;
}
.explorer-col-left .nav-tab-btn.active svg {
  color: var(--primary);
  transform: translateX(3px);
}

/* Column 2: Sub-category Links (Middle) */
.explorer-col-mid {
  padding: 24px 28px;
  overflow-y: auto;
  background: #ffffff;
}
.explorer-col-mid .tab-pane {
  display: none;
}
.explorer-col-mid .tab-pane.active {
  display: block;
}
.explorer-col-mid h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-900);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-blue-subtle);
}
.explorer-col-mid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.explorer-col-mid ul li a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--navy-800);
  font-size: 14.5px;
  text-decoration: none;
  transition: var(--transition);
  background: #ffffff;
  border: 1px solid transparent;
}
.explorer-col-mid ul li a:hover {
  background: var(--bg-blue-subtle);
  color: var(--primary);
  border-color: #bfdbfe;
  padding-left: 16px;
}

/* Column 3: Featured Colleges (Right) */
.explorer-col-right {
  background: #f8fafc;
  border-left: 1px solid var(--border-light);
  padding: 24px 20px;
  overflow-y: auto;
}
.explorer-col-right h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-900);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.featured-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.featured-item-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.featured-item-box:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}
.f-info { display: flex; flex-direction: column; gap: 4px; }
.f-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.featured-item-box h5 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.3;
}
.f-meta {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Portal Header Banner & Quick Chips Bar */
.portal-header-banner {
  background: linear-gradient(135deg, var(--navy-900) 0%, #1e3a8a 100%);
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--border-light);
}
.portal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 8px;
}
.portal-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
}
.portal-breadcrumb a:hover {
  color: #ffffff;
}
.portal-quick-chips-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.chips-label {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  margin-right: 4px;
}
.chip-item {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}
.chip-item:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-1px);
}
.chip-item.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

/* Exam badge & Specs */
.exam-badge {
  background: #ede9fe;
  color: #6d28d9;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  width: fit-content;
}
.btn-icon-sm {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-light);
  cursor: pointer;
  color: var(--navy-700);
  transition: var(--transition);
}
.btn-icon-sm:hover {
  background: var(--bg-blue-subtle);
  color: var(--primary);
  border-color: #bfdbfe;
}

@media (max-width: 1024px) {
  .advance-fields-grid { grid-template-columns: 1fr 1fr; }
  .fg-actions { grid-column: span 2; }
  .portal-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-body-layout { grid-template-columns: 1fr; }
  .mega-explorer-body { grid-template-columns: 200px 1fr; }
  .explorer-col-right { display: none; }
  .detail-pane-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-nav-toggle { display: block; }
  .hero-primary-search-row { flex-direction: column; }
  .hero-search-actions { width: 100%; }
  .btn-hero-search { flex: 1; justify-content: center; }
  .btn-hero-explorer { flex: 1; justify-content: center; }
  .hero-secondary-filters-row { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .detail-pane-header { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
  .detail-pane-grid { grid-template-columns: 1fr; padding: 20px; }
  .streams-selector-grid { gap: 8px; }
  .stream-pill-btn { padding: 8px 14px; font-size: 12px; }
  .mega-explorer-body {
    grid-template-columns: 1fr;
    max-height: 75vh;
  }
  .explorer-col-left {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 8px;
  }
  .explorer-col-left .nav-tab-btn {
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
  }
  .explorer-col-left .nav-tab-btn.active {
    border-left: none;
    border-bottom: 2px solid var(--primary);
  }
  .btn-mega-explorer-trigger span {
    display: none;
  }
}

