/* ==========================================================================
   INDIAN SHIKSHA — Design System
   Palette:  Indigo Night #14203D · Marigold #F2A93B · Deep Teal #0F6E63
             Ivory #FBF8F2 · Slate #47506B · Rose #C1443D
   Type:     Fraunces (display) · Inter (body) · JetBrains Mono (data/stats)
   Signature: the "Admission Ticket" card — a boarding-pass motif for
              colleges, reflecting the idea of an application as a ticket
              to somewhere new.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --ink:        #14203D;
  --ink-soft:   #1E2E54;
  --marigold:   #F2A93B;
  --marigold-d: #D98F1F;
  --teal:       #0F6E63;
  --teal-soft:  #E6F2EF;
  --ivory:      #FBF8F2;
  --paper:      #FFFFFF;
  --slate:      #47506B;
  --slate-lt:   #7A83A0;
  --line:       #E4E1D6;
  --rose:       #C1443D;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(20, 32, 61, 0.08);
  --shadow-lg: 0 20px 48px rgba(20, 32, 61, 0.14);
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--slate); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); }

:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------------- */
/* Buttons & form elements                                          */
/* ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--marigold); color: var(--ink); }
.btn-primary:hover { background: var(--marigold-d); box-shadow: var(--shadow); }
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-dark:hover { background: var(--ink-soft); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--ivory); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

.field { margin-bottom: 18px; text-align: left; }
.field label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal);
  outline: none;
}
.field .hint { font-size: 0.78rem; color: var(--slate-lt); margin-top: 4px; }
.error-text { color: var(--rose); font-size: 0.82rem; margin-top: 4px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.92rem; }
.alert-success { background: var(--teal-soft); color: var(--teal); border: 1px solid #bfe2da; }
.alert-error { background: #fbeceb; color: var(--rose); border: 1px solid #f2c9c6; }

/* ---------------------------------------------------------------- */
/* Top announcement bar + navbar                                    */
/* ---------------------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar a { color: rgba(255,255,255,0.9); }
.topbar .topbar-links { display: flex; gap: 16px; }

.navbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--ink); }
.brand .dot { color: var(--marigold); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.93rem; color: var(--slate); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

@media (max-width: 900px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 20px 24px; border-bottom: 1px solid var(--line); display: none; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------------------------------------------------------------- */
/* Hero — the "admission ticker" strip                               */
/* ---------------------------------------------------------------- */
.hero {
  background: var(--ink);
  color: var(--ivory);
  padding: 72px 0 0;
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--marigold); background: rgba(242,169,59,0.12); padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--marigold); }
.hero p.lead { color: rgba(255,255,255,0.72); font-size: 1.08rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.search-panel {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.search-panel .field { margin-bottom: 12px; }
.search-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.search-tabs button {
  flex: 1; padding: 9px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; font-weight: 600; font-size: 0.82rem; cursor: pointer; color: var(--slate);
}
.search-tabs button.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* the ticker: like a boarding-pass stat strip under the hero */
.ticker {
  margin-top: 56px;
  border-top: 1px dashed rgba(255,255,255,0.2);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ticker .tick {
  padding: 20px 24px;
  border-right: 1px dashed rgba(255,255,255,0.2);
  position: relative;
}
.ticker .tick:last-child { border-right: none; }
.ticker .tick::before {
  content: '';
  position: absolute; top: -7px; left: -7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ivory);
}
.ticker .tick:first-child::before { display: none; }
.ticker .num { font-family: var(--font-mono); font-size: 1.7rem; font-weight: 600; color: var(--marigold); }
.ticker .label { font-size: 0.78rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.05em; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .ticker { grid-template-columns: repeat(2, 1fr); }
  .ticker .tick:nth-child(2) { border-right: none; }
}

/* ---------------------------------------------------------------- */
/* Section scaffolding                                               */
/* ---------------------------------------------------------------- */
.section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; gap: 20px; flex-wrap: wrap; }
.section-head .eyebrow { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.section-alt { background: var(--paper); }
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- */
/* Signature component — the Admission Ticket card                  */
/* ---------------------------------------------------------------- */
.ticket-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
  border: 1px solid var(--line);
}
.ticket-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ticket-media { position: relative; height: 150px; background: var(--teal-soft); }
.ticket-media img { width: 100%; height: 100%; object-fit: cover; }
.ticket-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--marigold); color: var(--ink); font-weight: 700; font-size: 0.72rem;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em;
}
.ticket-body { padding: 18px 20px 4px; flex: 1; }
.ticket-body h3 { font-size: 1.08rem; margin-bottom: 4px; }
.ticket-body .loc { font-size: 0.82rem; color: var(--slate-lt); margin-bottom: 10px; }
.ticket-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ticket-tags span { font-size: 0.72rem; background: var(--teal-soft); color: var(--teal); padding: 3px 9px; border-radius: 999px; }

/* the perforated stub divider — literal "ticket" reference */
.ticket-stub {
  position: relative;
  border-top: 1px dashed var(--line);
  padding: 14px 20px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ticket-stub::before, .ticket-stub::after {
  content: '';
  position: absolute; top: -8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ivory); border: 1px solid var(--line);
}
.ticket-stub::before { left: -8px; }
.ticket-stub::after { right: -8px; }
.ticket-stub .fee { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.ticket-stub .fee small { display: block; font-family: var(--font-body); font-size: 0.68rem; color: var(--slate-lt); text-transform: uppercase; }
.ticket-stub .rating { font-size: 0.85rem; color: var(--marigold-d); }

/* ---------------------------------------------------------------- */
/* Generic cards (courses, blog, exam)                               */
/* ---------------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--teal-soft); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 14px;
}
.blog-card img { border-radius: var(--radius) var(--radius) 0 0; height: 170px; object-fit: cover; width: 100%; }
.blog-card { padding: 0; overflow: hidden; }
.blog-card .body { padding: 18px 20px; }
.blog-card .meta { font-size: 0.75rem; color: var(--slate-lt); margin-bottom: 8px; }

/* ---------------------------------------------------------------- */
/* Breadcrumbs / page header for inner pages                        */
/* ---------------------------------------------------------------- */
.page-header { background: var(--ink); color: var(--ivory); padding: 46px 0; }
.page-header h1 { color: #fff; margin-bottom: 6px; }
.breadcrumbs { font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.breadcrumbs a { color: rgba(255,255,255,0.85); }
.breadcrumbs span { margin: 0 6px; }

/* Filters sidebar (college listing) */
.filters { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.filters h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; color: var(--slate); }
.filters .filter-group { margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.filters label.chk { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--slate); margin-bottom: 8px; cursor: pointer; }

.listing-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .listing-layout { grid-template-columns: 1fr; } }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.page-link { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 0.88rem; color: var(--slate); }
.page-link.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------------------------------------------------------------- */
/* College detail page                                               */
/* ---------------------------------------------------------------- */
.college-hero { background: var(--ink); color: #fff; padding: 40px 0; }
.college-hero-flex { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.college-logo { width: 92px; height: 92px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.college-logo img { width: 100%; height: 100%; object-fit: contain; }
.college-meta-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 0.88rem; color: rgba(255,255,255,0.75); }
.tab-strip { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.tab-strip a { padding: 12px 18px; font-weight: 600; font-size: 0.9rem; color: var(--slate); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab-strip a.active, .tab-strip a:hover { color: var(--teal); border-color: var(--teal); }

.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .detail-layout { grid-template-columns: 1fr; } }
.sticky-side { position: sticky; top: 92px; }

.stat-box { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.stat-box:last-child { border-bottom: none; }
.stat-box .v { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }

/* Course row table */
.course-table { width: 100%; border-collapse: collapse; }
.course-table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; color: var(--slate-lt); padding: 10px 12px; border-bottom: 2px solid var(--line); }
.course-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }

/* Reviews */
.review-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.review-item .who { font-weight: 600; }
.review-item .stars { color: var(--marigold-d); }

/* ---------------------------------------------------------------- */
/* Footer                                                            */
/* ---------------------------------------------------------------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.65); padding: 56px 0 24px; margin-top: 60px; }
.footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer h4 { color: #fff; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 16px; font-family: var(--font-body); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 0.88rem; }
.footer a:hover { color: var(--marigold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; font-size: 0.8rem; flex-wrap: wrap; gap: 10px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- */
/* Auth pages (login/register/reset)                                */
/* ---------------------------------------------------------------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--ink); padding: 40px 20px; }
.auth-card { background: var(--paper); width: 100%; max-width: 420px; border-radius: var(--radius); padding: 40px 36px; box-shadow: var(--shadow-lg); }
.auth-card .brand { justify-content: center; margin-bottom: 6px; }
.auth-card .subtitle { text-align: center; color: var(--slate-lt); font-size: 0.88rem; margin-bottom: 28px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 0.88rem; color: var(--slate); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.badge-green { background: var(--teal-soft); color: var(--teal); }
.badge-amber { background: rgba(242,169,59,0.15); color: var(--marigold-d); }
.badge-rose { background: #fbeceb; color: var(--rose); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--slate-lt); }

/* ---------------------------------------------------------------- */
/* Ad Banner slots                                                   */
/* ---------------------------------------------------------------- */
.ad-banner-slot { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 24px 0; }
.ad-banner-slot::before {
  content: 'Advertisement';
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate-lt);
}
.ad-banner-link { display: inline-block; }

/* ---------------------------------------------------------------- */
/* Carousel module                                                   */
/* ---------------------------------------------------------------- */
.carousel-block { margin: 40px 0; position: relative; }
.carousel-title { margin-bottom: 18px; }
.carousel-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { scroll-snap-align: start; flex: 0 0 auto; }
.carousel-item-photo { width: 280px; }
.carousel-item-photo img { width: 280px; height: 190px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.carousel-caption { font-size: 0.82rem; color: var(--slate); margin-top: 8px; }
.carousel-item-logo { width: 160px; height: 90px; display: flex; align-items: center; justify-content: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.carousel-item-logo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(40%); opacity: 0.85; transition: filter .2s, opacity .2s; }
.carousel-item-logo:hover img { filter: grayscale(0%); opacity: 1; }
.carousel-controls { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.carousel-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  cursor: pointer; font-size: 1rem; color: var(--ink);
}
.carousel-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------------------------------------------------------------- */
/* Popup module                                                      */
/* ---------------------------------------------------------------- */
.is-popup-overlay {
  position: fixed; inset: 0; background: rgba(20,32,61,0.6); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.is-popup-overlay.open { opacity: 1; pointer-events: auto; }
.is-popup-box {
  background: var(--paper); border-radius: var(--radius); max-width: 420px; width: 100%;
  overflow: hidden; box-shadow: var(--shadow-lg); position: relative; transform: translateY(10px);
  transition: transform .25s ease;
}
.is-popup-overlay.open .is-popup-box { transform: translateY(0); }
.is-popup-close {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(20,32,61,0.7); color: #fff; border: none; font-size: 1.1rem; cursor: pointer; z-index: 2;
}
.is-popup-img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.is-popup-body { padding: 22px; text-align: center; }
.is-popup-body h3 { margin-bottom: 8px; }
.is-popup-body p { font-size: 0.9rem; }

@media (max-width: 480px) {
  .is-popup-box { max-width: 100%; }
  .carousel-item-photo { width: 220px; }
  .carousel-item-photo img { width: 220px; height: 150px; }
}

/* ---------------------------------------------------------------- */
/* Header Mega Menu (multi-level: nav item -> column -> links)       */
/* ---------------------------------------------------------------- */
.mega-menu-item { position: relative; }
.mega-menu-trigger { display: flex; align-items: center; gap: 4px; font-weight: 500; font-size: 0.93rem; color: var(--slate); }
.mega-menu-trigger:hover { color: var(--ink); }
.mega-caret { font-size: 0.6rem; transition: transform .15s ease; }
.mega-menu-item:hover .mega-caret { transform: rotate(180deg); }

.mega-menu-panel {
  display: none;
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  min-width: 560px;
  z-index: 150;
}
.mega-menu-item:hover .mega-menu-panel { display: block; }
/* small invisible bridge so the dropdown doesn't close in the gap while moving the mouse down to it */
.mega-menu-panel::before { content: ''; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }

.mega-menu-columns { display: flex; gap: 36px; }
.mega-menu-col { min-width: 160px; }
.mega-menu-col-title {
  display: block; font-weight: 700; font-size: 0.85rem; color: var(--ink);
  padding-bottom: 8px; margin-bottom: 8px; border-bottom: 2px solid var(--marigold);
}
.mega-menu-col ul { list-style: none; margin: 0; padding: 0; }
.mega-menu-col li { margin-bottom: 8px; }
.mega-menu-col a { font-size: 0.85rem; color: var(--slate); }
.mega-menu-col li a:hover { color: var(--teal); }

@media (max-width: 900px) {
  .mega-menu-panel {
    display: none; position: static; transform: none; box-shadow: none; border: none;
    padding: 8px 0 8px 16px; min-width: 0; background: var(--ivory); border-radius: var(--radius-sm);
  }
  .mega-menu-item.mobile-open .mega-menu-panel { display: block; }
  .mega-menu-columns { flex-direction: column; gap: 16px; }
  .mega-menu-trigger { justify-content: space-between; width: 100%; }
}

/* ---------------------------------------------------------------- */
/* Top Universities/Colleges grid (Collegedunia-style)               */
/* ---------------------------------------------------------------- */
.uni-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-align: center; position: relative; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.uni-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.uni-rank {
  position: absolute; top: 14px; right: 14px; background: var(--marigold); color: var(--ink);
  font-family: var(--font-mono); font-weight: 700; font-size: 0.75rem; padding: 3px 9px; border-radius: 999px;
}
.uni-logo {
  width: 64px; height: 64px; border-radius: 14px; background: var(--teal-soft);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 1.6rem; overflow: hidden;
}
.uni-logo img { width: 100%; height: 100%; object-fit: contain; }
.uni-card h3 { font-size: 1rem; margin-bottom: 4px; }
.uni-card .loc { font-size: 0.8rem; color: var(--slate-lt); margin-bottom: 10px; }
.uni-meta { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.uni-meta span { font-size: 0.72rem; background: var(--ivory); color: var(--slate); padding: 3px 10px; border-radius: 999px; }

/* ---------------------------------------------------------------- */
/* College Ranking 2026 — numbered list                              */
/* ---------------------------------------------------------------- */
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-row {
  display: flex; align-items: center; gap: 18px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 20px; transition: transform .15s ease, box-shadow .15s ease;
}
.rank-row:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.rank-num {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; color: var(--teal);
  width: 44px; text-align: center; flex-shrink: 0;
}
.rank-logo {
  width: 46px; height: 46px; border-radius: 10px; background: var(--teal-soft);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; font-size: 1.2rem;
}
.rank-logo img { width: 100%; height: 100%; object-fit: contain; }
.rank-info { flex: 1; min-width: 0; }
.rank-info h3 { font-size: 0.95rem; margin-bottom: 2px; }
.rank-info .loc { font-size: 0.78rem; color: var(--slate-lt); }
.rank-stat { text-align: right; flex-shrink: 0; }
.rank-stat .v { display: block; font-family: var(--font-mono); font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.rank-stat small { font-size: 0.68rem; color: var(--slate-lt); text-transform: uppercase; }

@media (max-width: 640px) {
  .rank-row { flex-wrap: wrap; }
  .rank-stat { width: 100%; text-align: left; margin-left: 62px; }
}

/* ---------------------------------------------------------------- */
/* Top Study Places (city/state icons)                                */
/* ---------------------------------------------------------------- */
.study-place-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; transition: transform .18s ease, box-shadow .18s ease;
}
.study-place-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal); }
.study-place-icon { font-size: 2.2rem; margin-bottom: 10px; }
.study-place-card h3 { font-size: 1rem; margin-bottom: 2px; }
.study-place-card p { font-size: 0.82rem; color: var(--slate-lt); margin: 0; }

/* ---------------------------------------------------------------- */
/* Latest News & Articles cards                                      */
/* ---------------------------------------------------------------- */
.news-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: block; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  background: rgba(193,68,61,0.1); color: var(--rose); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.news-card h3 { font-size: 0.98rem; margin-bottom: 6px; }
.news-card p { font-size: 0.85rem; margin-bottom: 10px; }
.news-date { font-size: 0.72rem; color: var(--slate-lt); }

/* ---------------------------------------------------------------- */
/* Floating WhatsApp chat button                                     */
/* ---------------------------------------------------------------- */
.floating-whatsapp {
  position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px;
  background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4); z-index: 900; transition: transform .15s ease;
}
.floating-whatsapp:hover { transform: scale(1.08); }
body.compare-bar-open .floating-whatsapp { bottom: 90px; }
@media (max-width: 640px) {
  .floating-whatsapp { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  body.compare-bar-open .floating-whatsapp { bottom: 130px; }
}

/* ---------------------------------------------------------------- */
/* College Compare tool                                              */
/* ---------------------------------------------------------------- */
.compare-check {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  background: rgba(255,255,255,0.95); border-radius: 999px; padding: 5px 12px 5px 8px;
  font-size: 0.72rem; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 5px;
  box-shadow: var(--shadow); cursor: pointer;
}
.compare-check input { width: 14px; height: 14px; cursor: pointer; }

.compare-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  background: var(--ink); color: #fff; padding: 14px 24px;
  display: none; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.15);
}
.compare-bar.open { display: flex; }
.compare-bar-names { font-size: 0.85rem; color: rgba(255,255,255,0.8); }
.compare-bar-names strong { color: #fff; }
.compare-bar-actions { display: flex; gap: 10px; }

/* ---------------------------------------------------------------- */
/* College Logos strip (homepage) — fixed 250x90 boxes                */
/* ---------------------------------------------------------------- */
.logo-strip-track {
  display: flex; gap: 18px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none;
}
.logo-strip-track::-webkit-scrollbar { display: none; }
.logo-strip-item {
  flex: 0 0 auto; width: 250px; height: 90px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  padding: 12px 18px; transition: transform .15s ease, box-shadow .15s ease;
}
.logo-strip-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal); }
.logo-strip-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
