/* =====================================================================
   EduPredict — Custom CSS (Bootstrap 5 + Canvas class implementations)
   Primary: #1A4FBA  Secondary: #F59E0B  Font: Inter
   ===================================================================== */

/* ── Success Stories section ─────────────────────────────────────── */
.ep-stories-section {
  background: linear-gradient(145deg, #0B1E50 0%, #1A4FBA 55%, #0D3190 100%);
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.ep-stories-section .section-tag {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.92);
}
.ep-stories-section .section-header h2 { color: #fff; }
.ep-stories-section .section-header p  { color: rgba(255,255,255,.7); }

/* Stat pills row */
.ep-stories-stats {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.4rem;
  margin-bottom: 2.8rem;
}
.ep-stories-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  font-weight: 600;
  padding: .32rem .85rem;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}
.ep-stories-stat-pill i { color: var(--ep-secondary); font-size: .82rem; }

/* Card */
.ep-sc-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .22s ease, box-shadow .22s ease;
}
.ep-sc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.28);
}

/* Photo */
.ep-sc-photo-wrap {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  flex-shrink: 0;
  background: #EEF3FF;
}
.ep-sc-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform .35s ease;
}
.ep-sc-card:hover .ep-sc-photo { transform: scale(1.04); }
.ep-sc-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
}

/* Achievement badge — top-right overlay */
.ep-sc-achieve {
  position: absolute;
  top: .7rem;
  right: .7rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: .28rem .6rem;
  border-radius: 100px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.ep-sc-achieve.aiims   { background: rgba(26,79,186,.88); color: #fff; }
.ep-sc-achieve.govt    { background: rgba(5,150,105,.88);  color: #fff; }
.ep-sc-achieve.mbbs    { background: rgba(124,58,237,.88); color: #fff; }
.ep-sc-achieve.private { background: rgba(217,119,6,.88);  color: #fff; }

/* College overlay at bottom of photo */
.ep-sc-college-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(11,30,80,.9) 0%, transparent 100%);
  padding: 1.8rem .9rem .55rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.ep-sc-college-bar i {
  color: var(--ep-secondary);
  font-size: .8rem;
  flex-shrink: 0;
}
.ep-sc-college-bar span {
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .3px;
  line-height: 1.2;
}

/* Card body */
.ep-sc-body {
  padding: 1.1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ep-sc-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .65rem;
}
.ep-sc-stars { color: #F59E0B; font-size: .92rem; letter-spacing: 1px; }
.ep-sc-g-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .62rem;
  font-weight: 700;
  color: #6B7280;
  background: #F3F4F6;
  border-radius: 100px;
  padding: .18rem .5rem;
}
.ep-sc-quote {
  font-size: .82rem;
  color: #374151;
  line-height: 1.72;
  font-style: italic;
  flex: 1;
  /* clamp to 4 lines */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .9rem;
  position: relative;
}
.ep-sc-divider {
  border: none;
  border-top: 1px solid var(--ep-border);
  margin: 0 0 .8rem;
}
.ep-sc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}
.ep-sc-name {
  font-size: .88rem;
  font-weight: 800;
  color: var(--ep-dark);
  line-height: 1.15;
}
.ep-sc-tag {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .65rem;
  font-weight: 700;
  color: var(--ep-primary);
  background: var(--ep-primary-light);
  border-radius: 100px;
  padding: .18rem .5rem;
  margin-top: .25rem;
}
.ep-sc-ago {
  font-size: .65rem;
  color: #9CA3AF;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-end;
}

/* ── Contact cards hover ─────────────────────────────────────────── */
.ep-contact-card:hover {
  box-shadow: 0 8px 28px rgba(26,79,186,.16) !important;
  transform: translateY(-4px);
}

/* ── Logo image sizing ───────────────────────────────────────────── */
.ep-logo-img {
  height: 70px;
  width: auto;
  display: block;
  object-fit: contain;
}
.ep-footer-logo-img {
  height: 70px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ── Footer social icon buttons ──────────────────────────────────── */
.ep-social-btn {
  background: rgba(255,255,255,.1);
  color: #fff !important;
  border-radius: 8px;
  font-size: 1.05rem;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  transition: background var(--ep-transition);
  border: 1px solid transparent;
  text-decoration: none;
}
.ep-social-btn:hover { background: rgba(255,255,255,.22); color: #fff !important; }

/* ── Footer address link ─────────────────────────────────────────── */
.ep-footer-address-link {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.75;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  transition: color var(--ep-transition);
}
.ep-footer-address-link:hover { color: #fff; }
.ep-footer-address-link .ep-pin-icon { flex-shrink: 0; margin-top: 3px; }

/* ── Floating map button ─────────────────────────────────────────── */
.ep-float-map {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ep-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(var(--ep-primary-rgb), .45);
  z-index: 1000;
  text-decoration: none;
  transition: background var(--ep-transition), transform var(--ep-transition), box-shadow var(--ep-transition);
}
.ep-float-map:hover {
  background: var(--ep-primary-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(var(--ep-primary-rgb), .55);
}
.ep-float-map-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--ep-dark);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.3rem 0.65rem;
  border-radius: var(--ep-radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ep-transition);
}
.ep-float-map:hover .ep-float-map-tooltip { opacity: 1; }

/* ── Root Variables ────────────────────────────────────────────────── */
:root {
  --ep-primary:        #1A4FBA;
  --ep-primary-dark:   #0D3190;
  --ep-primary-light:  #EEF3FF;
  --ep-primary-rgb:    26, 79, 186;
  --ep-secondary:      #F59E0B;
  --ep-success:        #10B981;
  --ep-danger:         #EF4444;
  --ep-warning:        #F59E0B;
  --ep-dark:           #111827;
  --ep-gray:           #6B7280;
  --ep-border:         #E5E7EB;
  --ep-surface:        #F9FAFB;
  --ep-white:          #FFFFFF;
  --ep-radius:         12px;
  --ep-radius-sm:      8px;
  --ep-shadow:         0 4px 20px rgba(26, 79, 186, .08);
  --ep-shadow-lg:      0 8px 40px rgba(26, 79, 186, .14);
  --ep-transition:     0.2s ease;
  /* Canvas CSS vars override */
  --cnvs-themecolor:     #1A4FBA;
  --cnvs-themecolor-rgb: 26, 79, 186;
}

/* ── Base ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  color: var(--ep-dark);
  background: var(--ep-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ep-primary); transition: color var(--ep-transition); }
a:hover { color: var(--ep-primary-dark); }

img { max-width: 100%; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; }
.lead { font-size: 1.1rem; }

/* ── Canvas wrapper compatibility ────────────────────────────────────── */
body.stretched { overflow-x: hidden; }
#wrapper { position: relative; min-height: 100vh; display: flex; flex-direction: column; }
#content  { flex: 1 1 auto; }

/* ── Navigation (#header) ─────────────────────────────────────────── */
#header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  border-bottom: 1px solid var(--ep-border);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
#header-wrap { padding: 0; }
#header .navbar { padding: 0.5rem 0; }

/* Logo */
.ep-logo { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.ep-logo-edu     { font-size: 1.35rem; font-weight: 800; color: var(--ep-primary); letter-spacing: -0.5px; }
.ep-logo-predict { font-size: 1.35rem; font-weight: 800; color: var(--ep-dark);    letter-spacing: -0.5px; }
.ep-logo-name    { font-size: 1.1rem;  font-weight: 800; color: var(--ep-primary); letter-spacing: -0.2px; line-height: 1.2; }

/* Nav links */
.ep-nav-links { gap: .1rem; }
#header .nav-link {
  color: var(--ep-gray) !important;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.45rem 0.85rem !important;
  border-radius: var(--ep-radius-sm);
  transition: color .15s, background .15s;
}
#header .nav-link:hover  { color: var(--ep-primary) !important; background: var(--ep-primary-light); }
#header .nav-link.ep-active { color: var(--ep-primary) !important; font-weight: 600; }
#header .nav-link.dropdown-toggle::after { margin-left: .3rem; }

/* Mobile toggler */
.ep-toggler {
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-sm);
  padding: .35rem .55rem;
  font-size: 1.35rem;
  color: var(--ep-dark);
  background: transparent;
  line-height: 1;
}
.ep-toggler:focus { box-shadow: none; }

/* ── Tools mega-dropdown ─────────────────────────────────────────── */
.ep-mega-drop {
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
  padding: .5rem;
  min-width: 300px;
  margin-top: .4rem !important;
}
.ep-drop-item {
  display: flex !important;
  align-items: center;
  gap: .85rem;
  padding: .7rem .85rem !important;
  border-radius: var(--ep-radius-sm) !important;
  transition: background .15s !important;
  position: relative;
}
.ep-drop-item:hover { background: var(--ep-surface) !important; color: inherit !important; }
.ep-drop-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.ep-drop-text { display: flex; flex-direction: column; flex: 1; }
.ep-drop-title { font-size: .875rem; font-weight: 600; color: var(--ep-dark); line-height: 1.3; }
.ep-drop-sub   { font-size: .76rem; color: var(--ep-gray); margin-top: 1px; }
.ep-drop-active-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ep-primary);
  flex-shrink: 0;
}
.ep-drop-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem .85rem;
  margin-top: .25rem;
  border-top: 1px solid var(--ep-border);
  font-size: .72rem;
  color: var(--ep-gray);
  gap: .5rem;
}
.ep-drop-footer i { color: var(--ep-primary); }

/* ── Auth area ───────────────────────────────────────────────────── */
.ep-nav-auth { display: flex; align-items: center; gap: .6rem; }
.ep-signin-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--ep-gray);
  text-decoration: none;
  padding: .4rem .75rem;
  border-radius: var(--ep-radius-sm);
  transition: color .15s, background .15s;
}
.ep-signin-link:hover { color: var(--ep-primary); background: var(--ep-primary-light); }
.ep-predict-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--ep-primary);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  padding: .45rem 1.1rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background .15s, transform .15s;
  white-space: nowrap;
}
.ep-predict-btn:hover { background: var(--ep-primary-dark); color: #fff; transform: translateY(-1px); }

/* User account trigger */
.ep-user-trigger {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  border: 1px solid var(--ep-border);
  border-radius: 100px;
  padding: .3rem .75rem .3rem .3rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ep-dark);
}
.ep-user-trigger:hover { border-color: var(--ep-primary); background: var(--ep-primary-light); }
.ep-user-trigger::after { margin-left: .15rem; }
.ep-user-av {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ep-primary);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ep-user-name { font-size: .875rem; }
.ep-user-caret { font-size: .7rem; color: var(--ep-gray); }

/* User dropdown */
.ep-user-drop {
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
  padding: .4rem;
  min-width: 220px;
  margin-top: .4rem !important;
}
.ep-user-drop-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem .85rem;
}
.ep-user-drop-av {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ep-primary);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ep-user-drop-name { font-weight: 700; font-size: .9rem; color: var(--ep-dark); }
.ep-user-drop-role { font-size: .74rem; color: var(--ep-gray); }
.ep-user-drop .dropdown-divider { margin: .25rem .5rem; }
.ep-user-item {
  display: flex !important;
  align-items: center;
  gap: .65rem;
  padding: .6rem .85rem !important;
  border-radius: var(--ep-radius-sm) !important;
  font-size: .875rem !important;
  color: var(--ep-dark) !important;
  transition: background .15s !important;
}
.ep-user-item i { font-size: 1rem; color: var(--ep-primary); width: 18px; text-align: center; }
.ep-user-item:hover { background: var(--ep-surface) !important; color: var(--ep-dark) !important; }
.ep-signout { color: var(--ep-danger) !important; background: transparent; border: none; width: 100%; text-align: left; }
.ep-signout i { color: var(--ep-danger) !important; }
.ep-signout:hover { background: #FEF2F2 !important; }

/* Mobile nav adjustments */
@media (max-width: 991.98px) {
  #mainNavMenu {
    border-top: 1px solid var(--ep-border);
    margin-top: .5rem;
    padding-top: .75rem;
    padding-bottom: .75rem;
  }
  .ep-mega-drop { min-width: 100%; box-shadow: none; border: 1px solid var(--ep-border); margin-top: .25rem !important; }
  .ep-nav-auth { padding: .75rem 0 .25rem; border-top: 1px solid var(--ep-border); margin-top: .5rem; }
  .ep-user-drop { min-width: 100%; }
}

/* ── Canvas: .button (standalone button class) ─────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--ep-radius-sm);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--ep-transition);
  background: var(--ep-primary);
  color: #fff;
}
.button:hover  { background: var(--ep-primary-dark); color: #fff; transform: translateY(-1px); }
.button-border { background: transparent; border-color: var(--ep-primary); color: var(--ep-primary); }
.button-border:hover { background: var(--ep-primary); color: #fff; }
.button-white  { background: #fff; color: var(--ep-primary); }
.button-white:hover { background: #f0f4ff; color: var(--ep-primary-dark); }
.button-large  { padding: 0.85rem 2rem; font-size: 1rem; }
.button-rounded { border-radius: 100px; }
.button-secondary { background: var(--ep-secondary); color: #111; }
.button-secondary:hover { background: #e08c00; color: #111; }

/* ── Hero / Slider ─────────────────────────────────────────────────── */
#slider { position: relative; overflow: hidden; }
.slider-element {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--ep-primary) 0%, var(--ep-primary-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.slider-element::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.slider-element .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}
.hero-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  color: #fff;
}
.hero-headline .highlight {
  color: var(--ep-secondary);
}
.hero-subhead {
  font-size: 1.15rem;
  color: rgba(255,255,255,.8);
  max-width: 560px;
  margin: 1.25rem 0 2rem;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Stats strip */
.stats-strip {
  background: #fff;
  border-bottom: 1px solid var(--ep-border);
  padding: 1.5rem 0;
}
.stat-item { text-align: center; }
.stat-item .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ep-primary);
  line-height: 1;
}
.stat-item .stat-label {
  font-size: 0.8rem;
  color: var(--ep-gray);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Feature boxes (Canvas .feature-box / .fbox-icon) ─────────────── */
.feature-box {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--ep-radius);
  background: #fff;
  border: 1px solid var(--ep-border);
  transition: all var(--ep-transition);
}
.feature-box:hover {
  box-shadow: var(--ep-shadow);
  border-color: rgba(var(--ep-primary-rgb), .15);
  transform: translateY(-2px);
}
.fbox-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--ep-radius-sm);
  background: var(--ep-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--ep-primary);
}
.fbox-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ep-dark);
}
.fbox-content p { font-size: 0.875rem; color: var(--ep-gray); margin: 0; }

/* Tool card (promo-card style) */
.tool-card {
  border-radius: var(--ep-radius);
  border: 1px solid var(--ep-border);
  background: #fff;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}
.tool-card:hover {
  box-shadow: var(--ep-shadow-lg);
  border-color: var(--ep-primary);
  transform: translateY(-4px);
  color: inherit;
}
.tool-card .tool-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--ep-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--ep-primary);
}
.tool-card h4 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.tool-card p  { font-size: 0.875rem; color: var(--ep-gray); margin: 0; flex: 1; }
.tool-card .tool-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ep-primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Steps (how it works) */
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ep-primary);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

/* Section styles */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .section-tag {
  display: inline-block;
  background: var(--ep-primary-light);
  color: var(--ep-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.5px;
}
.section-header p { font-size: 1.05rem; color: var(--ep-gray); max-width: 560px; margin: 0.75rem auto 0; }

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--ep-primary) 0%, var(--ep-primary-dark) 100%);
  color: #fff;
  border-radius: var(--ep-radius);
}

/* ── Auth Pages ─────────────────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}
.auth-brand-panel {
  background: linear-gradient(160deg, var(--ep-primary) 0%, var(--ep-primary-dark) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.auth-brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.auth-brand-logo {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  position: relative;
}
.auth-brand-logo span { color: var(--ep-secondary); }
.auth-brand-tagline {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  line-height: 1.3;
  text-align: center;
  position: relative;
}
.auth-brand-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,.85);
  position: relative;
  margin-bottom: 0.75rem;
}
.auth-brand-feature i { color: var(--ep-secondary); font-size: 1rem; }

.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: var(--ep-surface);
}
.auth-form-card {
  background: #fff;
  border-radius: var(--ep-radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--ep-shadow);
}
.auth-form-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}
.auth-form-card .auth-subtitle {
  font-size: 0.9rem;
  color: var(--ep-gray);
  margin-bottom: 1.75rem;
}

/* OTP inputs */
.otp-inputs {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin: 1.5rem 0;
}
.otp-digit {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ep-primary);
  border: 2px solid var(--ep-border);
  border-radius: var(--ep-radius-sm);
  outline: none;
  transition: all var(--ep-transition);
  caret-color: var(--ep-primary);
}
.otp-digit:focus {
  border-color: var(--ep-primary);
  box-shadow: 0 0 0 3px rgba(var(--ep-primary-rgb), .15);
}
.otp-digit.filled { border-color: var(--ep-primary); background: var(--ep-primary-light); }

/* OTP countdown */
.otp-timer { font-size: 0.85rem; color: var(--ep-gray); text-align: center; }
.otp-timer .countdown { font-weight: 700; color: var(--ep-primary); }
.otp-timer.expired .countdown { color: var(--ep-danger); }

/* ── Form controls override ────────────────────────────────────────── */
.form-control, .form-select {
  border-radius: var(--ep-radius-sm);
  border-color: var(--ep-border);
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  transition: border-color var(--ep-transition), box-shadow var(--ep-transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--ep-primary);
  box-shadow: 0 0 0 3px rgba(var(--ep-primary-rgb), .12);
}
.form-label { font-weight: 600; font-size: 0.875rem; color: var(--ep-dark); margin-bottom: 0.35rem; }
.btn-primary {
  background: var(--ep-primary);
  border-color: var(--ep-primary);
  font-weight: 600;
  border-radius: var(--ep-radius-sm);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--ep-primary-dark);
  border-color: var(--ep-primary-dark);
}
.btn-outline-primary {
  border-color: var(--ep-primary);
  color: var(--ep-primary);
  font-weight: 600;
  border-radius: var(--ep-radius-sm);
}
.btn-outline-primary:hover {
  background: var(--ep-primary);
  color: #fff;
}

/* ── Dashboard ─────────────────────────────────────────────────────── */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 64px);
}
.dashboard-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--ep-dark);
  color: #fff;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
}
.sidebar-user {
  text-align: center;
  padding: 1rem 0.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 1rem;
}
.sidebar-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ep-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.sidebar-user-name { font-weight: 700; font-size: 1rem; }
.sidebar-user-email { font-size: 0.75rem; color: rgba(255,255,255,.5); word-break: break-all; }

.sidebar-nav { list-style: none; padding: 0; margin: 0; flex: 1; }
.sidebar-nav .nav-item + .nav-item { margin-top: 2px; }
.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,.7);
  padding: 0.65rem 0.9rem;
  border-radius: var(--ep-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--ep-transition);
}
.sidebar-nav .nav-link i { font-size: 1.1rem; }
.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.sidebar-nav .nav-link.active { background: var(--ep-primary); color: #fff; }

.dashboard-content { flex: 1; padding: 2rem; background: var(--ep-surface); overflow-x: auto; }

/* Dashboard stat cards */
.stat-card {
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: box-shadow var(--ep-transition);
}
.stat-card:hover { box-shadow: var(--ep-shadow); }
.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--ep-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-icon.blue   { background: var(--ep-primary-light); color: var(--ep-primary); }
.stat-icon.green  { background: #ECFDF5; color: var(--ep-success); }
.stat-icon.amber  { background: #FFFBEB; color: var(--ep-secondary); }
.stat-icon.red    { background: #FEF2F2; color: var(--ep-danger); }
.stat-num { font-size: 1.75rem; font-weight: 800; line-height: 1; }
.stat-lbl { font-size: 0.8rem; color: var(--ep-gray); margin-top: 3px; }

/* ── Tool page layout ─────────────────────────────────────────────── */
.tool-header {
  background: linear-gradient(135deg, var(--ep-primary) 0%, var(--ep-primary-dark) 100%);
  color: #fff;
  padding: 2.5rem 0 2rem;
}
.tool-header h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.35rem; }
.tool-header p  { color: rgba(255,255,255,.8); font-size: 0.95rem; margin: 0; }
.tool-icon-lg {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tool-layout { display: flex; gap: 1.5rem; padding: 2rem 0; }
.tool-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  padding: 1.5rem;
  align-self: flex-start;
  position: sticky;
  top: 80px;
}
.tool-sidebar h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ep-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
}
.tool-results { flex: 1; min-width: 0; }

/* Classification badges */
.badge-safe    { background: #ECFDF5; color: #065F46; font-weight: 600; }
.badge-target  { background: #FFFBEB; color: #92400E; font-weight: 600; }
.badge-reach   { background: #FEF2F2; color: #991B1B; font-weight: 600; }

/* Result section header */
.result-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--ep-radius-sm);
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.result-section-header.safe   { background: #ECFDF5; color: #065F46; }
.result-section-header.target { background: #FFFBEB; color: #92400E; }
.result-section-header.reach  { background: #FEF2F2; color: #991B1B; }

/* College result card */
.college-card {
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all var(--ep-transition);
}
.college-card:hover { box-shadow: var(--ep-shadow); border-color: rgba(var(--ep-primary-rgb),.2); }
.college-card .college-name { font-weight: 700; font-size: 0.95rem; color: var(--ep-dark); }
.college-card .college-meta { font-size: 0.8rem; color: var(--ep-gray); margin-top: 3px; }
.college-card .rank-pills { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.rank-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  background: var(--ep-surface);
  color: var(--ep-gray);
  border: 1px solid var(--ep-border);
}
.rank-pill.opening { background: var(--ep-primary-light); color: var(--ep-primary); border-color: transparent; }
.rank-pill.closing { background: var(--ep-primary); color: #fff; border-color: transparent; }

/* Shortlist toggle button */
.btn-shortlist {
  background: transparent;
  border: 1px solid var(--ep-border);
  color: var(--ep-gray);
  border-radius: var(--ep-radius-sm);
  padding: 0.35rem 0.6rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--ep-transition);
  flex-shrink: 0;
}
.btn-shortlist:hover, .btn-shortlist.shortlisted {
  background: var(--ep-primary-light);
  border-color: var(--ep-primary);
  color: var(--ep-primary);
}

/* Rank predictor result card */
.rank-result-card {
  background: linear-gradient(135deg, var(--ep-primary) 0%, var(--ep-primary-dark) 100%);
  color: #fff;
  border-radius: var(--ep-radius);
  padding: 2rem;
  text-align: center;
}
.rank-result-card .big-rank {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
}
.rank-result-card .rank-range {
  font-size: 0.9rem;
  color: rgba(255,255,255,.7);
  margin-top: 0.5rem;
}

/* Comparison table */
.comparison-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.comparison-table th {
  background: var(--ep-primary);
  color: #fff;
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  border: none;
}
.comparison-table th:first-child { border-radius: var(--ep-radius-sm) 0 0 0; }
.comparison-table th:last-child  { border-radius: 0 var(--ep-radius-sm) 0 0; }
.comparison-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--ep-border);
  font-size: 0.875rem;
  vertical-align: middle;
  background: #fff;
}
.comparison-table tr:hover td { background: var(--ep-surface); }
.comparison-table td.highlight { background: #FEFCE8; font-weight: 700; }

/* College search chip */
.college-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ep-primary-light);
  border: 1px solid rgba(var(--ep-primary-rgb),.2);
  color: var(--ep-primary);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0.25rem;
}
.college-chip .remove-chip {
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity var(--ep-transition);
}
.college-chip .remove-chip:hover { opacity: 1; }

/* ── Cards / generic ───────────────────────────────────────────────── */
.card {
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  box-shadow: none;
}
.card-header {
  background: var(--ep-surface);
  border-bottom: 1px solid var(--ep-border);
  font-weight: 700;
  font-size: 0.9rem;
}
.page-card {
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  padding: 1.75rem;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
#footer {
  background: var(--ep-dark);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
#footer .footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}
#footer .footer-logo span { color: var(--ep-secondary); }
#footer p { font-size: 0.875rem; color: rgba(255,255,255,.55); }
#footer h6 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 1rem;
}
#footer ul { list-style: none; padding: 0; margin: 0; }
#footer ul li { margin-bottom: 0.5rem; }
#footer ul li a { color: rgba(255,255,255,.55); font-size: 0.875rem; text-decoration: none; transition: color var(--ep-transition); }
#footer ul li a:hover { color: #fff; }
#footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Alerts ─────────────────────────────────────────────────────────── */
.alert { border-radius: var(--ep-radius-sm); border: none; font-size: 0.9rem; }
.alert-success { background: #ECFDF5; color: #065F46; }
.alert-danger   { background: #FEF2F2; color: #991B1B; }
.alert-warning  { background: #FFFBEB; color: #92400E; }
.alert-info     { background: #EEF3FF; color: #1E40AF; }

/* ── Utility ─────────────────────────────────────────────────────────── */
.text-primary { color: var(--ep-primary) !important; }
.bg-primary   { background: var(--ep-primary) !important; }
.color         { color: var(--ep-primary) !important; }
.bg-color      { background: var(--ep-primary) !important; }
.fw-800       { font-weight: 800 !important; }
.rounded-ep   { border-radius: var(--ep-radius) !important; }
.shadow-ep    { box-shadow: var(--ep-shadow) !important; }
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--ep-gray);
  gap: 1rem;
}
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--ep-gray);
}
.empty-state i { font-size: 3rem; opacity: 0.3; margin-bottom: 1rem; }

/* ── Autocomplete dropdown ────────────────────────────────────────── */
.autocomplete-wrap { position: relative; }
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-sm);
  box-shadow: var(--ep-shadow-lg);
  z-index: 1000;
  max-height: 260px;
  overflow-y: auto;
}
.autocomplete-item {
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--ep-border);
  transition: background var(--ep-transition);
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: var(--ep-primary-light); }
.autocomplete-item .college-type-badge {
  font-size: 0.7rem;
  background: var(--ep-surface);
  color: var(--ep-gray);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.4rem;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .tool-layout { flex-direction: column; }
  .tool-sidebar { width: 100%; position: static; }
  .dashboard-layout { flex-direction: column; }
  .dashboard-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; padding: 1rem; }
  .sidebar-user { display: none; }
  .dashboard-content { padding: 1rem; }
}

@media (max-width: 767.98px) {
  .auth-brand-panel { display: none; }
  .auth-form-panel  { padding: 2rem 1rem; }
  .auth-form-card   { padding: 1.75rem 1.25rem; }
  .hero-headline    { font-size: 1.9rem; }
  .hero-subhead     { font-size: 1rem; }
  .otp-digit        { width: 42px; height: 52px; font-size: 1.25rem; }
  .otp-inputs       { gap: 0.4rem; }
}

@media (max-width: 575.98px) {
  .tool-layout { padding: 1rem 0; }
  .college-card { flex-direction: column; }
}

/* =================================================================
   HOMEPAGE v2 COMPONENTS
   ================================================================= */

/* ── Announcement Bar ─────────────────────────────────────────────── */
.ep-announcement {
  background: linear-gradient(90deg, #0D3190, #1A4FBA);
  color: rgba(255,255,255,.92);
  padding: .55rem 0;
  font-size: .83rem;
  text-align: center;
  z-index: 1031;
  position: relative;
}
.ep-announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.ep-announcement-badge {
  background: var(--ep-secondary);
  color: #111;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: .15rem .55rem;
  border-radius: 4px;
  flex-shrink: 0;
}
.ep-announcement-link {
  color: var(--ep-secondary);
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}
.ep-announcement-link:hover { color: #fff; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.ep-hero-new {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  background: linear-gradient(135deg, #1A4FBA 0%, #0D3190 55%, #071e5c 100%) !important;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ep-hero-container {
  padding-top: 4rem;
  padding-bottom: 4.5rem;
  position: relative;
  z-index: 2;
}
.ep-hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ep-blob-1 { width: 520px; height: 520px; background: rgba(255,255,255,.04); top: -130px; right: -160px; }
.ep-blob-2 { width: 360px; height: 360px; background: rgba(255,255,255,.03); bottom: -100px; left: -100px; }
.ep-blob-3 { width: 220px; height: 220px; background: rgba(245,158,11,.07); top: 45%; right: 28%; }

.ep-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.92);
  padding: .35rem 1rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}
.ep-hero-h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 1.25rem;
}
.ep-hero-accent {
  color: #fbbf24 !important;           /* amber-400, visible on dark-blue hero bg */
  text-shadow: 0 2px 12px rgba(251,191,36,.35);
}
.ep-hero-sub {
  font-size: 1.08rem;
  color: rgba(255,255,255,.82);
  max-width: 530px;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.ep-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.ep-hero-outline {
  background: transparent !important;
  border-color: rgba(255,255,255,.4) !important;
  color: #fff !important;
}
.ep-hero-outline:hover {
  background: rgba(255,255,255,.15) !important;
  color: #fff !important;
}

.ep-trust-pills { display: flex; gap: .65rem; flex-wrap: wrap; }
.ep-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  font-weight: 500;
  padding: .28rem .72rem;
  border-radius: 100px;
}
.ep-trust-pill i { color: var(--ep-secondary); font-size: .8rem; }

/* Quick Predictor Card */
.ep-quick-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(0,0,0,.28);
}
.ep-quick-card-header {
  background: var(--ep-primary);
  color: #fff;
  padding: .95rem 1.5rem;
  font-weight: 700;
  font-size: .88rem;
}
.ep-quick-card-body {
  padding: 1.5rem;
  border-bottom: 1px solid var(--ep-border);
}
.ep-quick-field { margin-bottom: .9rem; }
.ep-quick-field label {
  display: block;
  font-size: .77rem;
  font-weight: 600;
  color: var(--ep-gray);
  margin-bottom: .3rem;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.ep-quick-submit { width: 100%; justify-content: center; }
.ep-quick-note { text-align: center; font-size: .74rem; color: var(--ep-gray); margin: .6rem 0 0; }

/* ── Rank Predictor Hero Card ─────────────────────────────────────────── */
.ep-rank-card .ep-quick-card-header {
  background: linear-gradient(135deg, #312e81, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ep-rank-free-badge {
  font-size: 10px;
  font-weight: 600;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  padding: 2px 8px;
  border-radius: 100px;
  color: rgba(255,255,255,.85);
  letter-spacing: .3px;
}

/* Exam toggle */
.ep-rank-toggle {
  display: flex;
  background: rgba(0,0,0,.06);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}
.ep-rtab {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ep-gray);
  cursor: pointer;
  transition: all .15s;
}
.ep-rtab.active {
  background: #fff;
  color: var(--ep-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.ep-quick-field label { color: #374151; }
.ep-quick-field label { text-transform: none; letter-spacing: 0; font-size:13px; }

/* Result panel */
.ep-rp-result-inner { padding: 1.25rem 1.5rem 1.5rem; }

.ep-rp-rank-display {
  text-align: center;
  padding: 1rem 0 .75rem;
  border-bottom: 1px solid var(--ep-border);
  margin-bottom: 1rem;
}
.ep-rp-rank-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--ep-gray);
  font-weight: 600;
  margin-bottom: 4px;
}
.ep-rp-rank-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--ep-primary);
  line-height: 1;
  letter-spacing: -2px;
}
.ep-rp-rank-range {
  font-size: 11px;
  color: var(--ep-gray);
  margin-top: 5px;
}

.ep-rp-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 1rem;
}
.ep-rp-stat {
  background: var(--ep-surface);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}
.ep-rp-stat-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--ep-dark);
  line-height: 1.2;
}
.ep-rp-stat-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--ep-gray);
  margin-top: 3px;
}

/* Explore more tools */
.ep-explore-tools {
  border-top: 1px solid var(--ep-border);
  padding-top: 1rem;
  margin-top: 1rem;
}
.ep-explore-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--ep-gray);
  margin-bottom: 8px;
}
.ep-explore-links { display: flex; flex-direction: column; gap: 6px; }
.ep-explore-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--ep-surface);
  border: 1px solid var(--ep-border);
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ep-dark);
  transition: all .15s;
}
.ep-explore-link:hover {
  background: #EEF3FF;
  border-color: var(--ep-primary);
  color: var(--ep-primary);
  text-decoration: none;
}
.ep-explore-link i:first-child { color: var(--ep-primary); font-size: 15px; }

.ep-preview-results { padding: 1rem 1.5rem 1.25rem; }
.ep-preview-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem .75rem;
  border-radius: 8px;
  background: var(--ep-surface);
  margin-bottom: .4rem;
  font-size: .82rem;
}
.ep-preview-tag {
  font-size: .68rem;
  font-weight: 700;
  padding: .15rem .55rem;
  border-radius: 100px;
  flex-shrink: 0;
}
.safe-tag   { background: #ECFDF5; color: #065F46; }
.target-tag { background: #FFFBEB; color: #92400E; }
.reach-tag  { background: #FEF2F2; color: #991B1B; }
.ep-preview-college { color: var(--ep-dark); font-weight: 500; font-size: .82rem; }
.ep-preview-foot { font-size: .72rem; color: var(--ep-gray); text-align: center; margin-top: .75rem; }

/* ── Stats Band ───────────────────────────────────────────────────── */
.ep-stats-band { background: var(--ep-dark); }
.ep-stat-item {
  padding: 1.6rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
}
.ep-stat-item--mid  { border-right: 1px solid rgba(255,255,255,.08); }
.ep-stat-item--last { border-right: none; }
.ep-stat-num {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ep-secondary);
}
.ep-stat-lbl {
  font-size: .76rem;
  color: rgba(255,255,255,.55);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── Sections ─────────────────────────────────────────────────────── */
.ep-section { padding: 5rem 0; }
.ep-section--alt { background: var(--ep-surface); }

/* ── Tool Cards v2 ────────────────────────────────────────────────── */
.ep-tool-card {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: 2rem 1.75rem;
  background: #fff;
  border: 2px solid var(--ep-border);
  border-radius: var(--ep-radius);
  height: 100%;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: all .25s ease;
}
.ep-tool-card:hover {
  border-color: var(--ep-primary);
  box-shadow: 0 12px 40px rgba(26,79,186,.14);
  transform: translateY(-5px);
  color: inherit;
}
.ep-tool-icon {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  flex-shrink: 0;
}
.ep-tool-popular {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--ep-secondary);
  color: #111;
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: .2rem .6rem;
  border-radius: 100px;
}
.ep-tool-card h4 { font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--ep-dark); }
.ep-tool-card p  { font-size: .875rem; color: var(--ep-gray); margin: 0; flex: 1; line-height: 1.6; }
.ep-tool-cta {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ep-primary);
  margin-top: .25rem;
}

/* ── Exam Cards ───────────────────────────────────────────────────── */
.ep-exam-card {
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  overflow: hidden;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.ep-exam-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  color: #fff;
}
.ep-exam-head--blue  { background: linear-gradient(135deg, #1A4FBA, #0D3190); }
.ep-exam-head--amber { background: linear-gradient(135deg, #F59E0B, #D97706); }
.ep-exam-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  color: #fff;
}
.ep-exam-icon--amber { color: #7C2D12; }
.ep-exam-name { font-size: 1.25rem; font-weight: 800; }
.ep-exam-sub  { font-size: .8rem; opacity: .82; margin-top: 2px; }
.ep-exam-body { padding: 1.5rem; }
.ep-exam-list { list-style: none; padding: 0; margin: 0; }
.ep-exam-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .5rem 0;
  font-size: .875rem;
  border-bottom: 1px solid var(--ep-border);
  color: var(--ep-dark);
  line-height: 1.5;
}
.ep-exam-list li:last-child { border-bottom: none; }
.ep-chk-blue  { color: var(--ep-primary); flex-shrink: 0; margin-top: 2px; }
.ep-chk-amber { color: #D97706; flex-shrink: 0; margin-top: 2px; }
.ep-exam-btn {
  width: 100%;
  justify-content: center;
  margin-top: 1.25rem;
}
.ep-exam-btn--amber { background: var(--ep-secondary) !important; color: #111 !important; }
.ep-exam-btn--amber:hover { background: #D97706 !important; }

/* ── How It Works ─────────────────────────────────────────────────── */
.ep-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.ep-step {
  flex: 1;
  min-width: 210px;
  max-width: 280px;
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ep-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ep-primary);
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .85rem;
  letter-spacing: -0.5px;
}
.ep-step-num--green { background: var(--ep-success); }
.ep-step-num--amber { background: var(--ep-secondary); color: #111; }
.ep-step-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--ep-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: .85rem;
}
.ep-step-icon.blue   { background: var(--ep-primary-light); color: var(--ep-primary); }
.ep-step-icon.green  { background: #ECFDF5; color: var(--ep-success); }
.ep-step-icon.amber  { background: #FFFBEB; color: #D97706; }
.ep-step h5 { font-size: .95rem; font-weight: 700; margin-bottom: .5rem; color: var(--ep-dark); }
.ep-step p  { font-size: .85rem; color: var(--ep-gray); margin: 0; line-height: 1.6; }
.ep-step-connector {
  font-size: 1.6rem;
  color: var(--ep-primary);
  opacity: .3;
  align-self: center;
  flex-shrink: 0;
}

/* ── Why EduPredict ───────────────────────────────────────────────── */
.ep-why-lead { font-size: 1rem; line-height: 1.8; color: var(--ep-gray); }
.ep-why-checks { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.25rem; }
.ep-why-check {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .88rem;
  color: var(--ep-dark);
  line-height: 1.5;
}
.ep-why-check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ep-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.ep-why-card {
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  padding: 1.5rem;
  height: 100%;
  transition: box-shadow .2s, border-color .2s;
}
.ep-why-card:hover { box-shadow: var(--ep-shadow); border-color: rgba(26,79,186,.2); }
.ep-why-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--ep-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: .85rem;
}
.ep-why-card-icon.blue   { background: var(--ep-primary-light); color: var(--ep-primary); }
.ep-why-card-icon.green  { background: #ECFDF5; color: var(--ep-success); }
.ep-why-card-icon.amber  { background: #FFFBEB; color: #D97706; }
.ep-why-card-icon.purple { background: #F5F3FF; color: #7C3AED; }
.ep-why-card h5 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; color: var(--ep-dark); }
.ep-why-card p  { font-size: .85rem; color: var(--ep-gray); margin: 0; line-height: 1.6; }

/* ── Testimonials ─────────────────────────────────────────────────── */
.ep-tcard {
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow .2s, border-color .2s;
}
.ep-tcard:hover { box-shadow: var(--ep-shadow); border-color: rgba(26,79,186,.15); }
.ep-tcard-stars { color: #F59E0B; font-size: 1rem; letter-spacing: 2px; }
.ep-tcard-text {
  font-size: .88rem;
  color: #374151;
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}
.ep-tcard-author {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding-top: .85rem;
  border-top: 1px solid var(--ep-border);
}
.ep-tcard-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ep-tcard-name    { font-weight: 700; font-size: .9rem; color: var(--ep-dark); }
.ep-tcard-college { font-size: .77rem; color: var(--ep-gray); margin-top: 2px; }

/* ── FAQ ──────────────────────────────────────────────────────────── */
.ep-faq-list { display: flex; flex-direction: column; gap: .5rem; }
.ep-faq-item {
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-sm);
  transition: border-color .2s;
}
.ep-faq-item[open] { border-color: var(--ep-primary); box-shadow: 0 0 0 3px rgba(26,79,186,.06); }
.ep-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ep-dark);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color .15s;
}
.ep-faq-q::-webkit-details-marker { display: none; }
.ep-faq-item[open] .ep-faq-q { color: var(--ep-primary); }
.ep-faq-chevron {
  font-size: .82rem;
  color: var(--ep-gray);
  flex-shrink: 0;
  transition: transform .22s ease, color .15s;
}
.ep-faq-item[open] .ep-faq-chevron { transform: rotate(180deg); color: var(--ep-primary); }
.ep-faq-a {
  padding: .75rem 1.25rem 1.25rem;
  font-size: .88rem;
  color: var(--ep-gray);
  line-height: 1.75;
  border-top: 1px solid var(--ep-border);
}

/* ── FAQ tab filter ──────────────────────────────────────────────── */
.ep-faq-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.ep-faq-tab {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1.5px solid var(--ep-border);
  background: #fff;
  color: var(--ep-gray);
  font-size: .78rem;
  font-weight: 600;
  padding: .38rem .9rem;
  border-radius: 100px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.ep-faq-tab:hover {
  border-color: var(--ep-primary);
  color: var(--ep-primary);
  background: var(--ep-primary-light);
}
.ep-faq-tab.active {
  background: var(--ep-primary);
  border-color: var(--ep-primary);
  color: #fff;
  box-shadow: 0 3px 12px rgba(26,79,186,.28);
}
.ep-faq-tab i { font-size: .8rem; }

/* Category group header */
.ep-faq-group { margin-bottom: 1.75rem; }
.ep-faq-group:last-child { margin-bottom: 0; }
.ep-faq-group-hd {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 100px;
  margin-bottom: .75rem;
  background: var(--ep-gclr-bg, var(--ep-primary-light));
  color: var(--ep-gclr, var(--ep-primary));
  border: 1.5px solid currentColor;
  opacity: .9;
}
.ep-faq-count {
  background: currentColor;
  color: #fff;
  border-radius: 100px;
  font-size: .65rem;
  font-weight: 800;
  padding: .1rem .38rem;
  line-height: 1.4;
  filter: brightness(1.2);
}

/* ── CTA Strip ────────────────────────────────────────────────────── */
.ep-cta-strip {
  background: linear-gradient(135deg, var(--ep-primary) 0%, var(--ep-primary-dark) 100%);
  border-radius: var(--ep-radius);
  padding: 3.5rem;
}
.ep-cta-tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: .3rem .9rem;
  border-radius: 100px;
}

/* ── Responsive: Homepage ─────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .ep-hero-container { padding-top: 3rem; }
  .ep-step-connector { display: none; }
  .ep-cta-strip { padding: 2.5rem; }
}
@media (max-width: 767.98px) {
  .ep-stats-band .ep-stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .ep-stats-band .ep-stat-item--last { border-bottom: none; }
  .ep-stat-num { font-size: 1.75rem; }
  .ep-quick-card { margin-top: 2rem; }
  .ep-hero-h1 { font-size: 1.85rem; }
  .ep-hero-sub { font-size: .93rem; }
  .ep-section { padding: 3.5rem 0; }
  .ep-cta-strip { padding: 2rem; }
  .ep-cta-strip .col-lg-5 { text-align: left !important; }
  .ep-announcement { font-size: .78rem; }
}

/* ═══════════════════════════════════════════════════════════
   COLLEGE PREDICTOR — Document-table style (cpt-*)
   ═══════════════════════════════════════════════════════════ */

/* Results meta bar */
.cpt-results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
  padding: .85rem 1.1rem;
  background: #F8FAFF;
  border: 1px solid #DEE8FF;
  border-radius: 10px;
}
/* ── Results meta bar ── */
.cpt-results-title { font-size: 1rem; font-weight: 600; color: var(--ep-dark); }
.cpt-results-title strong { color: var(--ep-primary); }
.cpt-results-via { font-size: .8rem; font-weight: 400; color: #64748B; margin-left: .45rem; }
.cpt-results-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.cpt-sum-badge {
  display: inline-flex; align-items: center;
  padding: .25rem .65rem;
  font-size: .78rem; font-weight: 600;
  border-radius: 100px;
}
.cpt-safe   { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }
.cpt-target { background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; }
.cpt-reach  { background: #FFF7ED; color: #EA580C; border: 1px solid #FED7AA; }

/* ── Section headers ── */
.cpt-section-head {
  display: flex; align-items: center;
  padding: .5rem .85rem;
  font-size: .875rem; font-weight: 700;
  margin: 1.25rem 0 .5rem;
  border-left: 3px solid;
  gap: .3rem;
}
.cpt-section--safe   { background: #F0FDF4; color: #166534; border-color: #10B981; }
.cpt-section--target { background: #EFF6FF; color: #1E40AF; border-color: #3B82F6; }
.cpt-section--reach  { background: #FFF7ED; color: #9A3412; border-color: #F97316; }
.cpt-section-count {
  margin-left: auto;
  font-size: .78rem; font-weight: 500; opacity: .7;
}

.cpt-truncate-note {
  font-size: .8rem; color: #64748B;
  text-align: center; padding: .6rem;
  margin-top: .5rem;
  border-top: 1px dashed #E2E8F0;
}

/* ── Entry (one college document block) ── */
.cpt-entry {
  background: #fff;
  border: 1px solid #D1D9E0;
  border-left: 4px solid #D1D9E0;
  border-radius: 6px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.cpt-entry--safe   { border-left-color: #10B981; }
.cpt-entry--target { border-left-color: #3B82F6; }
.cpt-entry--reach  { border-left-color: #F97316; }

/* ── Top bar ── */
.cpt-topbar {
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem .85rem;
  background: #F8F9FA;
  border-bottom: 1px solid #E2E8F0;
  flex-wrap: wrap;
}
.cpt-sno {
  font-size: .73rem; font-weight: 700;
  background: #DDE3EA; color: #374151;
  border-radius: 4px;
  padding: .1rem .45rem;
  min-width: 1.6rem; text-align: center;
  flex-shrink: 0;
}
.cpt-tier {
  font-size: .72rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 100px;
  text-transform: uppercase; letter-spacing: .04em;
}
.cpt-tier--safe   { background: #ECFDF5; color: #059669; }
.cpt-tier--target { background: #EFF6FF; color: #2563EB; }
.cpt-tier--reach  { background: #FFF7ED; color: #EA580C; }

.cpt-type-badge {
  font-size: .72rem; font-weight: 600;
  padding: .15rem .5rem; border-radius: 100px;
  background: #F1F5F9; color: #475569;
}

/* Shortlist button */
.btn-shortlist {
  background: none; border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: .3rem .5rem;
  cursor: pointer; color: #94A3B8;
  transition: color .2s, border-color .2s, background .2s;
  font-size: .95rem; line-height: 1;
}
.btn-shortlist:hover       { color: var(--ep-primary); border-color: var(--ep-primary); background: #EEF3FF; }
.btn-shortlist.shortlisted { color: var(--ep-primary); border-color: var(--ep-primary); background: #EEF3FF; }

/* ── Info table (document header block) ── */
.cpt-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  border-bottom: 1px solid #E2E8F0;
}
.cpt-lbl {
  background: #F4F6F9;
  color: #5A6475;
  font-weight: 600;
  font-size: .74rem;
  padding: .4rem .75rem;
  border: 1px solid #E2E8F0;
  white-space: nowrap;
  width: 1%;
}
.cpt-val {
  padding: .4rem .75rem;
  border: 1px solid #E2E8F0;
  color: #1E293B;
  font-size: .82rem;
}
.cpt-college-name {
  font-weight: 700;
  font-size: .9rem;
  color: var(--ep-dark);
  line-height: 1.4;
}

/* ── Rank note ── */
.cpt-rank-note {
  padding: .45rem .85rem;
  font-size: .79rem;
  display: flex; align-items: center; gap: .3rem;
  border-top: 1px solid #E8ECF1;
}
.cpt-rank-note--safe   { background: #F0FDF4; color: #15803D; }
.cpt-rank-note--target { background: #EFF6FF; color: #1D4ED8; }
.cpt-rank-note--reach  { background: #FFF7ED; color: #C2410C; }
.cpt-rank-note strong  { font-weight: 700; }

/* ── Cutoff matrix table ── */
.cpt-cutoff-wrap { overflow-x: auto; }
.cpt-cutoff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
}
.cpt-gender-th,
.cpt-cat-th {
  padding: .38rem .65rem;
  background: #F4F6F9;
  border: 1px solid #D8DFE8;
  font-weight: 700;
  text-align: center;
  color: #374151;
  white-space: nowrap;
}
.cpt-gender-th { text-align: left; min-width: 72px; }

/* Highlighted category column */
.cpt-cat-match {
  background: #E8EFFE;
  color: var(--ep-primary);
  position: relative;
}

.cpt-gender-cell {
  padding: .4rem .75rem;
  border: 1px solid #D8DFE8;
  font-weight: 600;
  background: #F9FAFB;
  color: #374151;
  white-space: nowrap;
}
.cpt-gender-match {
  background: #EEF3FF;
  color: var(--ep-dark);
}

.cpt-cut-cell {
  padding: .4rem .65rem;
  border: 1px solid #D8DFE8;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: .77rem;
}
.cpt-cell-match {
  background: #EEF3FF;
  color: var(--ep-primary);
  font-weight: 700;
}
.cpt-cell-empty { color: #C8D0DA; }

/* Trend pills */
.cpt-trend {
  display: inline-flex; align-items: center; gap: .2rem;
  padding: .15rem .45rem; border-radius: 100px;
  font-size: .72rem; font-weight: 600;
}
.cpt-trend--rising  { background: #ECFDF5; color: #059669; }
.cpt-trend--falling { background: #FFF1F2; color: #E11D48; }
.cpt-trend--stable  { background: #F1F5F9; color: #475569; }
.cpt-trend--na      { color: #94A3B8; }

/* ── Rounds table ── */
.cpt-rounds-table { width: 100%; border-collapse: collapse; }
.cpt-round-th,
.cpt-rank-th {
  padding: .45rem .75rem;
  font-size: .72rem; font-weight: 700;
  color: #64748B; text-transform: uppercase; letter-spacing: .4px;
  background: #F8FAFC; border-bottom: 1.5px solid #E2E8F0;
  text-align: left;
}
.cpt-rank-th { text-align: right; }
.cpt-round-cell {
  padding: .5rem .75rem;
  font-size: .8rem; font-weight: 600; color: #475569;
  border-bottom: 1px solid #F1F5F9; white-space: nowrap;
  vertical-align: top;
}
.cpt-rank-cell {
  padding: .5rem .75rem;
  font-size: .82rem; font-weight: 600; color: #1E293B;
  border-bottom: 1px solid #F1F5F9; text-align: right;
  vertical-align: top;
}
.cpt-rank-closing { font-weight: 700; }
.cpt-rank-final   { color: var(--ep-primary); }
.cpt-final-row    { background: #F5F7FF; }
.cpt-final-badge  {
  display: inline-block; padding: .1rem .4rem;
  background: var(--ep-primary); color: #fff;
  border-radius: 4px; font-size: .62rem; font-weight: 700;
  letter-spacing: .3px; vertical-align: middle; margin-left: .3rem;
}
.cpt-merit {
  font-size: .65rem; font-weight: 700;
  color: var(--ep-primary); margin-top: 2px; opacity: .85;
}

/* ── Responsive (legacy) ── */
@media (max-width: 575.98px) {
  .cpt-results-meta { flex-direction: column; align-items: flex-start; }
  .cpt-topbar { gap: .35rem; }
  .cpt-info-table td { padding: .35rem .5rem; font-size: .77rem; }
  .cpt-cutoff-table { font-size: .72rem; }
  .cpt-round-th, .cpt-rank-th,
  .cpt-round-cell, .cpt-rank-cell { padding: .35rem .5rem; }
}

/* ═══════════════════════════════════════════════════════════
   COLLEGE PREDICTOR — Redesigned card overrides
   ═══════════════════════════════════════════════════════════ */

/* ── Card shell: shadow + hover lift ── */
.cpt-entry {
  background: #fff;
  border: none;
  border-left: none;
  border-radius: 14px;
  margin-bottom: 1.15rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.06);
  transition: box-shadow .18s ease, transform .18s ease;
}
.cpt-entry:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.13);
  transform: translateY(-2px);
}
.cpt-entry--safe, .cpt-entry--target, .cpt-entry--reach { border-left: none; }

/* ── Section headers: gradient bands ── */
.cpt-section-head {
  border-left: none;
  border-radius: 9px;
  padding: .65rem 1rem;
  font-size: .88rem;
  margin: 1.5rem 0 .7rem;
}
.cpt-section--safe   { background: linear-gradient(90deg,#ECFDF5,#D1FAE5); color: #065F46; border: 1px solid #A7F3D0; }
.cpt-section--target { background: linear-gradient(90deg,#EFF6FF,#DBEAFE); color: #1E3A8A; border: 1px solid #BFDBFE; }
.cpt-section--reach  { background: linear-gradient(90deg,#FFF7ED,#FFEDD5); color: #7C2D12; border: 1px solid #FED7AA; }
.cpt-section-count   { background: rgba(0,0,0,.07); padding: .1rem .5rem; border-radius: 100px; }

/* ── Hero header (gradient colour-coded band) ── */
.cpt-hero {
  padding: .9rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.cpt-hero--safe   { background: linear-gradient(135deg, #059669 0%, #10B981 100%); }
.cpt-hero--target { background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%); }
.cpt-hero--reach  { background: linear-gradient(135deg, #C2410C 0%, #EA580C 100%); }

.cpt-hero-body { flex: 1; min-width: 0; }

.cpt-hero-name {
  font-size: .97rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: .45rem;
  word-break: break-word;
}

.cpt-hero-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem;
}

/* All hero chips: white-on-colour */
.cpt-sno {
  font-size: .7rem; font-weight: 700;
  background: rgba(255,255,255,.22); color: #fff;
  border-radius: 5px; padding: .1rem .42rem; flex-shrink: 0;
}
.cpt-tier,
.cpt-tier--safe,
.cpt-tier--target,
.cpt-tier--reach {
  font-size: .7rem; font-weight: 700;
  padding: .12rem .5rem; border-radius: 100px;
  text-transform: uppercase; letter-spacing: .05em;
  background: rgba(255,255,255,.2); color: #fff;
  border: 1px solid rgba(255,255,255,.33);
}
.cpt-type-badge {
  font-size: .69rem; font-weight: 600;
  padding: .12rem .44rem; border-radius: 100px;
  background: rgba(255,255,255,.18); color: rgba(255,255,255,.93);
  border: 1px solid rgba(255,255,255,.28);
}
.cpt-code-chip {
  display: inline-block;
  font-size: .63rem; font-weight: 700;
  background: rgba(255,255,255,.25); color: #fff;
  padding: .07rem .4rem; border-radius: 4px;
  vertical-align: middle; margin-left: .42rem;
  letter-spacing: .03em;
}

/* Trend pills on hero inherit white */
.cpt-hero .cpt-trend {
  background: rgba(255,255,255,.17) !important;
  color: rgba(255,255,255,.95) !important;
  border: 1px solid rgba(255,255,255,.28) !important;
}

/* Shortlist button on hero */
.btn-shortlist {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.33);
  border-radius: 7px;
  padding: .38rem .55rem;
  cursor: pointer; color: rgba(255,255,255,.92);
  transition: background .18s, color .18s;
  font-size: .95rem; line-height: 1;
  flex-shrink: 0;
}
.btn-shortlist:hover       { background: rgba(255,255,255,.3); color: #fff; }
.btn-shortlist.shortlisted { background: rgba(255,255,255,.3); color: #fff; }

/* ── Detail strip (replaces the table layout) ── */
.cpt-detail-row {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #F0F3F8;
}
.cpt-ditem {
  display: flex;
  flex-direction: column;
  gap: .07rem;
  padding: .52rem .85rem;
  border-right: 1px solid #F0F3F8;
  flex: 1;
  min-width: 0;
}
.cpt-ditem:last-child { border-right: none; }
.cpt-dlbl {
  font-size: .65rem; font-weight: 700;
  color: #94A3B8; text-transform: uppercase;
  letter-spacing: .06em; white-space: nowrap;
}
.cpt-dval {
  font-size: .82rem; font-weight: 600;
  color: #1E293B; overflow-wrap: break-word;
}

/* ── Rounds table ── */
.cpt-rounds-table { width: 100%; border-collapse: collapse; }

/* ── Comparison table: allow header text to wrap (no truncation) ── */
.comparison-table th { white-space: normal; word-break: break-word; min-width: 140px; }

/* ── Responsive: new card ── */
@media (max-width: 575.98px) {
  .cpt-hero         { padding: .72rem .75rem; gap: .5rem; }
  .cpt-hero-name    { font-size: .88rem; }
  .cpt-ditem        { padding: .4rem .6rem; min-width: 45%; }
  .cpt-dval         { font-size: .77rem; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS ENHANCEMENTS
   ═══════════════════════════════════════════════════════════ */

/* ── Dashboard sidebar: horizontal scrollable nav on mobile ──────── */
@media (max-width: 991.98px) {
  .dashboard-sidebar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.4rem 0.75rem;
    gap: 0;
    flex-direction: row;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .dashboard-sidebar::-webkit-scrollbar { display: none; }
  .sidebar-nav {
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
    flex: 1;
    white-space: nowrap;
  }
  .sidebar-nav .nav-item { margin-top: 0; flex-shrink: 0; }
  .sidebar-nav .nav-link {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .sidebar-nav .nav-link i { font-size: 0.95rem; }
}

/* ── Touch targets: min 44px for interactive elements ───────────── */
@media (max-width: 767.98px) {
  .btn:not(.btn-sm):not(.btn-xs),
  .form-control,
  .form-select {
    min-height: 44px;
  }
  .otp-digit { width: 44px; height: 52px; font-size: 1.25rem; }
  .ep-predict-btn { padding: 0.6rem 1.1rem; }
  .sidebar-nav .nav-link { min-height: 40px; }
}

/* ── Notification toast stack: safe area + full width on mobile ──── */
#ep-notif-stack {
  position: fixed;
  top: 70px;
  right: 18px;
  z-index: 9000;
  width: min(340px, calc(100vw - 36px));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (max-width: 575.98px) {
  #ep-notif-stack {
    top: calc(60px + env(safe-area-inset-top, 0px));
    right: 10px;
    left: 10px;
    width: auto;
  }
}

/* ── Floating buttons: stack map above WhatsApp ──────────────────── */
/* Move map button up so it doesn't overlap the WhatsApp button */
.ep-float-map {
  bottom: 5.5rem;
}
@media (max-width: 575.98px) {
  .ep-float-map {
    bottom: 5rem;
    right: 18px;
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }
}

/* ── Tool header: tighter on mobile ─────────────────────────────── */
@media (max-width: 767.98px) {
  .tool-header { padding: 1.5rem 0 1.25rem; }
  .tool-header h1 { font-size: 1.4rem; }
  .tool-sidebar { margin-bottom: 0.75rem; }
}

/* ── Hero: no forced full-height on small phones ─────────────────── */
@media (max-width: 575.98px) {
  .ep-hero-new { min-height: auto; }
  .ep-hero-container { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .ep-cta-strip { padding: 1.75rem 1.25rem; border-radius: var(--ep-radius-sm); }
  .ep-section { padding: 2.5rem 0; }
  .ep-stories-section { padding-top: 3rem; padding-bottom: 3rem; }
}

/* ── Announcement bar: compact on mobile ────────────────────────── */
@media (max-width: 575.98px) {
  .ep-announcement { font-size: .74rem; padding: .5rem 0; }
  .ep-announcement-inner { gap: .4rem; }
  .ep-announcement-link { font-size: .74rem; }
}

/* ── Page-level card padding reduced on phones ───────────────────── */
@media (max-width: 575.98px) {
  .page-card { padding: 1.1rem; }
  .auth-form-card { padding: 1.5rem 1.1rem; }
  .dashboard-content { padding: 0.75rem; }
}

/* ═══════════════════════════════════════════════════════════
   COLLEGE COMPARISON — Redesigned card (cmp-*)
   ═══════════════════════════════════════════════════════════ */

/* Step label */
.cmp-step-label {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700;
  color: #64748B; text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: .85rem;
}
.cmp-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: var(--ep-primary); color: #fff;
  border-radius: 50%; font-size: .72rem; font-weight: 700; flex-shrink: 0;
}

/* Result card shell */
.cmp-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.06);
  margin-bottom: 2rem;
  background: #fff;
}
.cmp-card-title {
  padding: .85rem 1.2rem;
  background: #F8FAFF;
  border-bottom: 1px solid #E2E8F0;
  font-size: .95rem; font-weight: 600; color: var(--ep-dark);
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
}
.cmp-params-tag {
  font-size: .77rem; font-weight: 500;
  background: #EFF6FF; color: #1D4ED8;
  padding: .18rem .55rem; border-radius: 100px; margin-left: .15rem;
}

/* Table */
.cmp-table { width: 100%; border-collapse: collapse; }

/* Feature label column (left) */
.cmp-feat-col {
  width: 175px; min-width: 155px;
  background: #F8FAFC;
  border-bottom: 2px solid #E2E8F0;
  padding: .75rem 1rem;
  font-size: .75rem; font-weight: 700;
  color: #64748B; text-transform: uppercase; letter-spacing: .04em;
}
.cmp-feat-cell {
  padding: .58rem 1rem;
  font-size: .82rem; font-weight: 600; color: #374151;
  background: #F8FAFC;
  border-bottom: 1px solid #F0F3F8;
  border-right: 2px solid #E8EDF4;
  white-space: nowrap; vertical-align: middle;
}
.cmp-feat-cell i { color: #94A3B8; }

/* College header columns */
.cmp-college-th {
  padding: .85rem 1rem;
  text-align: left; min-width: 195px; vertical-align: top;
}
.cmp-th-name {
  font-size: .9rem; font-weight: 700; color: #fff;
  line-height: 1.35; margin-bottom: .38rem; word-break: break-word;
}
.cmp-th-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .32rem; }
.cmp-th-code {
  font-size: .65rem; font-weight: 700;
  background: rgba(255,255,255,.22); color: #fff;
  padding: .06rem .38rem; border-radius: 4px; letter-spacing: .03em;
}
.cmp-th-state { font-size: .72rem; color: rgba(255,255,255,.85); font-weight: 500; }

/* Data cells */
.cmp-table td {
  padding: .58rem .95rem;
  font-size: .84rem; color: #1E293B;
  border-bottom: 1px solid #F0F3F8;
  vertical-align: middle;
}
.cmp-table tbody tr:hover td           { background: #F7F9FF; }
.cmp-table tbody tr:hover .cmp-feat-cell { background: #EFF3FA; }

/* Section divider rows */
.cmp-section-row td {
  background: linear-gradient(90deg,#F1F5F9,#F8FAFC) !important;
  color: #475569;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .42rem 1rem !important;
  border-top: 2px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

/* Highlighted cell */
.cmp-hl { background: #FEFCE8 !important; }

/* Inline tag (Easiest / Toughest / Best) */
.cmp-best-tag {
  display: inline-block;
  font-size: .63rem; font-weight: 700;
  padding: .07rem .38rem; border-radius: 100px;
  margin-left: .3rem; vertical-align: middle;
}

/* Type pill */
.cmp-type-pill {
  display: inline-block; font-size: .75rem; font-weight: 600;
  padding: .18rem .55rem; border-radius: 100px;
  background: #F1F5F9; color: #475569;
}

/* NAAC badge */
.cmp-naac-badge {
  display: inline-block; font-size: .78rem; font-weight: 700;
  padding: .18rem .55rem; border-radius: 6px;
  background: #ECFDF5; color: #065F46;
}

/* Link */
.cmp-link { color: var(--ep-primary); font-weight: 600; font-size: .82rem; text-decoration: none; }
.cmp-link:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 767.98px) {
  .cmp-feat-col, .cmp-feat-cell { min-width: 110px; font-size: .75rem; padding: .48rem .65rem; }
  .cmp-college-th { min-width: 150px; padding: .7rem .75rem; }
  .cmp-th-name    { font-size: .82rem; }
  .cmp-table td   { padding: .48rem .65rem; font-size: .78rem; }
}

/* ── CUTOFF COMPARISON — Redesigned card layout (ctc-*) ─────────── */

/* Outer card */
.ctc-card { border-radius: 14px; box-shadow: 0 2px 16px rgba(0,0,0,.07); background: #fff; overflow: hidden; margin-bottom: 1.5rem; }
.ctc-card-title {
  padding: 14px 20px; border-bottom: 1px solid var(--ep-border);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-weight: 700; font-size: .95rem; color: var(--ep-dark);
}
.ctc-params-tag { background: #EFF6FF; color: #1D4ED8; border-radius: 20px; padding: 2px 10px; font-size: .75rem; font-weight: 600; }
.ctc-count-tag  { background: #F1F5F9; color: #475569;  border-radius: 20px; padding: 2px 10px; font-size: .75rem; font-weight: 600; }

/* Year divider */
.ctc-year-badge {
  padding: 9px 20px;
  background: linear-gradient(90deg, #F1F5F9, #F8FAFC);
  border-top: 1px solid var(--ep-border); border-bottom: 1px solid var(--ep-border);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: #64748B;
}

/* College list */
.ctc-college-list { }
.ctc-coll-card { border-bottom: 1px solid var(--ep-border); }
.ctc-coll-card:last-child { border-bottom: none; }

/* College header — left accent by type */
.ctc-coll-hdr { padding: 10px 16px 8px; border-left: 4px solid #CBD5E1; }
.ctc-coll-hdr--govt    { border-left-color: #2563EB; background: linear-gradient(90deg, #EFF6FF 0%, transparent 60%); }
.ctc-coll-hdr--private { border-left-color: #EA580C; background: linear-gradient(90deg, #FFF7ED 0%, transparent 60%); }
.ctc-coll-hdr--deemed  { border-left-color: #8B5CF6; background: linear-gradient(90deg, #F5F3FF 0%, transparent 60%); }
.ctc-coll-hdr--aided   { border-left-color: #10B981; background: linear-gradient(90deg, #ECFDF5 0%, transparent 60%); }
.ctc-coll-hdr--default { border-left-color: #0EA5E9; background: linear-gradient(90deg, #F0F9FF 0%, transparent 60%); }
.ctc-cn { font-size: .88rem; font-weight: 700; color: var(--ep-dark); word-break: break-word; line-height: 1.35; }
.ctc-coll-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ctc-code      { font-size: .68rem; color: var(--ep-primary); font-weight: 700; }
.ctc-code-tag  { font-size: .7rem; font-weight: 800; color: var(--ep-primary);
                 background: rgba(37,99,235,.12); border-radius: 4px;
                 padding: 1px 5px; margin-right: 3px; display: inline-block;
                 vertical-align: middle; letter-spacing: .02em; }
.ctc-state { font-size: .7rem; color: var(--ep-gray); }
.ctc-type-pill { display: inline-block; font-size: .63rem; padding: 1px 7px; border-radius: 20px; background: #F1F5F9; color: #475569; font-weight: 600; }

/* Row per filter combo */
.ctc-coll-row { padding: 10px 16px 12px; background: #F8FAFC; border-top: 1px solid #EFF3F8; }
.ctc-filter-badges { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.ctc-fbadge        { font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.ctc-fbadge--cat    { background: #F8FAFF; color: #3730A3; border: 1px solid #C7D2FE; }
.ctc-fbadge--quota  { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.ctc-fbadge--gender { background: #FDF4FF; color: #6B21A8; border: 1px solid #E9D5FF; }

/* ── Rounds matrix table ─────────────────────────────────────────── */
.ctc-matrix { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ctc-mtx-table { border-collapse: collapse; width: 100%; }

/* Top-left blank corner */
.ctc-mtx-corner { width: 46px; min-width: 46px; }

/* Group headers — AIR / SML */
.ctc-mtx-group {
  text-align: center; font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .6px;
  padding: 5px 12px; border-bottom: 1px solid #E2E8F0;
}
.ctc-mtx-group--air { background: #F0FDF4; color: #059669; }
.ctc-mtx-group--sml { background: #EFF6FF; color: #1D4ED8; }

/* Sub-headers — Opens / Close */
.ctc-mtx-subh {
  text-align: center; font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .3px;
  padding: 4px 12px; border-bottom: 2px solid #E2E8F0; color: #94A3B8;
}
.ctc-mtx-subh--open  { color: #059669; }
.ctc-mtx-subh--close { color: #C2410C; }

/* Separator column (after AIR Close / before SML Opens) */
.ctc-mtx-sep { border-right: 2px solid #E2E8F0 !important; }

/* Round label column (R1 / R2 / R3) */
.ctc-mtx-round {
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .4px;
  color: #1D4ED8; background: #EFF6FF;
  padding: 7px 10px; border-right: 2px solid #E2E8F0;
  white-space: nowrap; text-align: center;
}

/* Value cells */
.ctc-mtx-v {
  text-align: center; font-weight: 700; font-size: .84rem;
  padding: 7px 12px; border-bottom: 1px solid #F1F5F9;
}
.ctc-mtx-table tbody tr:last-child .ctc-mtx-v { border-bottom: none; }
.ctc-mtx-v--open  { color: #059669; background: #F9FEFF; }
.ctc-mtx-v--close { color: #C2410C; background: #FFFBF5; }
.ctc-mtx-v--sml   { color: #1D4ED8; }

/* Pagination */
.ctc-pagination {
  padding: 12px 20px; border-top: 1px solid var(--ep-border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}

@media (max-width: 575.98px) {
  .ctc-coll-hdr  { padding: 8px 12px 6px; }
  .ctc-coll-row  { padding: 8px 12px 10px; }
  .ctc-round-box { min-width: 130px; }
  .ctc-mini-v    { font-size: .75rem; }
  .ctc-cn        { font-size: .84rem; }
}
