/* =====================================================================
   YKS Tercih — EDU Design System 2.0
   Premium consumer education platform • Mobile-first
   "Google simplicity × Apple aesthetics × fintech trust"
   ===================================================================== */

/* ── 1. DESIGN TOKENS ─────────────────────────────────────────────── */
:root {
  /* Trust Blue */
  --e-brand:        #2563eb;
  --e-brand-dk:     #1d4ed8;
  --e-brand-lt:     #3b82f6;
  --e-brand-soft:   #eff6ff;
  --e-brand-mid:    #dbeafe;
  --e-brand-border: #bfdbfe;

  /* Education Green */
  --e-green:        #059669;
  --e-green-dk:     #047857;
  --e-green-lt:     #10b981;
  --e-green-soft:   #ecfdf5;
  --e-green-mid:    #d1fae5;

  /* Premium Violet */
  --e-violet:       #7c3aed;
  --e-violet-dk:    #6d28d9;
  --e-violet-soft:  #f5f3ff;

  /* Warning */
  --e-warn:         #d97706;
  --e-warn-soft:    #fffbeb;

  /* Danger */
  --e-danger:       #dc2626;
  --e-danger-soft:  #fef2f2;

  /* Neutrals */
  --e-n0:   #ffffff;
  --e-n50:  #f8fafc;
  --e-n100: #f1f5f9;
  --e-n200: #e2e8f0;
  --e-n300: #cbd5e1;
  --e-n400: #94a3b8;
  --e-n500: #64748b;
  --e-n600: #475569;
  --e-n700: #334155;
  --e-n800: #1e293b;
  --e-n900: #0f172a;

  /* Surfaces */
  --e-bg:      #eef2ff;
  --e-surface: #ffffff;

  /* Text */
  --e-text:       #0f172a;
  --e-text-2:     #334155;
  --e-text-muted: #64748b;
  --e-text-faint: #94a3b8;

  /* Borders */
  --e-border:        #e2e8f0;
  --e-border-strong: #cbd5e1;

  /* Gradients */
  --e-g-brand:   linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --e-g-hero:    linear-gradient(160deg, #020617 0%, #0f0c29 25%, #1e1b4b 55%, #312e81 78%, #1d4ed8 100%);
  --e-g-success: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --e-g-warm:    linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);

  /* Shadows */
  --e-sh-xs:      0 1px 2px rgba(0,0,0,.04);
  --e-sh-sm:      0 2px 8px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --e-sh:         0 4px 16px rgba(0,0,0,.09), 0 2px 4px rgba(0,0,0,.04);
  --e-sh-md:      0 8px 28px rgba(0,0,0,.11), 0 4px 8px rgba(0,0,0,.06);
  --e-sh-lg:      0 20px 48px rgba(0,0,0,.13), 0 8px 16px rgba(0,0,0,.07);
  --e-sh-brand:   0 6px 20px rgba(37,99,235,.30);
  --e-sh-success: 0 4px 16px rgba(5,150,105,.25);

  /* Radius */
  --e-r-xs:   6px;
  --e-r-sm:   10px;
  --e-r:      14px;
  --e-r-lg:   18px;
  --e-r-xl:   24px;
  --e-r-full: 9999px;

  /* Font */
  --e-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Animation */
  --e-ease:        200ms cubic-bezier(.2, 0, 0, 1);
  --e-ease-spring: 400ms cubic-bezier(.34, 1.56, .64, 1);
  --e-ease-fast:   120ms cubic-bezier(.2, 0, 0, 1);
  --e-ease-slow:   500ms cubic-bezier(.2, 0, 0, 1);

  /* Layout */
  --e-nav-h:    64px;
  --e-bottom-h: 64px;
  --e-max-w:    1200px;
}

/* ── 2. DARK MODE TOKENS ──────────────────────────────────────────── */
[data-theme="dark"] {
  --e-bg:           #0d1117;
  --e-surface:      #161b22;
  --e-brand-soft:   #162040;
  --e-brand-mid:    #1c3566;
  --e-brand-border: rgba(37,99,235,.45);
  --e-green-soft:   #0a1f14;
  --e-violet-soft:  #1a0f3a;
  --e-warn-soft:    #1f1600;
  --e-danger-soft:  #200808;
  --e-n50:          #161b22;
  --e-n100:         #21262d;
  --e-n200:         #30363d;
  --e-n300:         #444d56;
  --e-border:       #30363d;
  --e-border-strong:#444d56;
  --e-text:         #e6edf3;
  --e-text-2:       #cdd9e5;
  --e-text-muted:   #8b949e;
  --e-text-faint:   #6e7681;
}

/* ── 3. BASE OVERRIDES ────────────────────────────────────────────── */
body.m-body {
  font-family: var(--e-font);
  background: var(--e-bg);
  overflow-x: clip;
}

/* Allow full-width hero bleed from constrained m-shell parent */
body.m-body .m-page,
body.m-body .m-main,
body.m-body .m-shell { overflow: visible; }

/* Summary / details collapsible polish */
summary.edu-filter__toggle { list-style: none; }
summary.edu-filter__toggle::-webkit-details-marker { display: none; }

/* ── 4. NAV — CLEAN WHITE (overrides dark gradient) ──────────────── */
.m-navbar {
  background: var(--e-surface) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid var(--e-border) !important;
  box-shadow: 0 1px 0 var(--e-border), var(--e-sh-xs) !important;
}

[data-theme="dark"] .m-navbar {
  background: var(--e-surface) !important;
  border-bottom-color: var(--e-border) !important;
  box-shadow: 0 1px 0 var(--e-border) !important;
}

.m-brand           { color: var(--e-text) !important; font-family: var(--e-font); font-weight: 700; }
.m-brand:hover     { color: var(--e-brand) !important; text-decoration: none; }
.m-brand-mark      {
  background: var(--e-g-brand) !important;
  border-radius: 10px !important;
  width: 32px !important;
  height: 32px !important;
  box-shadow: var(--e-sh-brand) !important;
}

.m-nav-link         { color: var(--e-text-muted) !important; font-family: var(--e-font); font-weight: 500; }
.m-nav-link:hover   { color: var(--e-text) !important; background: var(--e-n100) !important; text-decoration: none; }
.m-nav-link.active  { color: var(--e-brand) !important; background: var(--e-brand-soft) !important; font-weight: 600; }
.m-badge--brand     { background: var(--e-brand) !important; }

.m-icon-btn         { color: var(--e-text-muted) !important; border-color: var(--e-border) !important; background: transparent !important; }
.m-icon-btn:hover   { color: var(--e-text) !important; background: var(--e-n100) !important; border-color: var(--e-border-strong) !important; }

.m-mobile-nav       { background: var(--e-surface) !important; backdrop-filter: none !important; border-top: 1px solid var(--e-border) !important; }
.m-mobile-nav .m-nav-link        { color: var(--e-text-muted) !important; }
.m-mobile-nav .m-nav-link:hover  { color: var(--e-text) !important; background: var(--e-n100) !important; }
.m-mobile-nav .m-nav-link.active { color: var(--e-brand) !important; background: var(--e-brand-soft) !important; }

/* Eski Arayüz link */
.m-btn.m-btn--ghost.m-btn--sm { color: var(--e-text-faint) !important; font-size: 0.76rem !important; }
.m-btn.m-btn--ghost.m-btn--sm:hover { color: var(--e-text-muted) !important; background: var(--e-n100) !important; }

/* ── 5. PAGE LAYOUT ───────────────────────────────────────────────── */
.m-main  { padding-top: 0 !important; }
.m-shell { max-width: var(--e-max-w) !important; }
.m-page  { animation: eduFadeUp 250ms cubic-bezier(.2,0,0,1) both; }
.m-footer { background: var(--e-surface) !important; border-top: 1px solid var(--e-border) !important; }

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

/* Bottom padding for mobile bottom nav */
@media (max-width: 767.98px) {
  .m-page { padding-bottom: var(--e-bottom-h); }
}

/* ── 6. BOTTOM NAVIGATION ─────────────────────────────────────────── */
.edu-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--e-bottom-h);
  background: var(--e-surface);
  border-top: 1px solid var(--e-border);
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  z-index: 80;
  flex-direction: row;
  align-items: stretch;
}

.edu-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--e-text-faint);
  font-family: var(--e-font);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color var(--e-ease-fast);
  padding: 4px 0 8px;
}
.edu-bottom-nav__item:hover   { color: var(--e-text-muted); text-decoration: none; }
.edu-bottom-nav__item.active  { color: var(--e-brand); }

.edu-bottom-nav__icon {
  width: 24px;
  height: 24px;
  position: relative;
  display: grid;
  place-items: center;
}

.edu-bottom-nav__badge {
  position: absolute;
  top: -5px;
  right: -8px;
  min-width: 17px;
  height: 17px;
  background: var(--e-brand);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  border-radius: var(--e-r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--e-surface);
}
.edu-bottom-nav__badge[data-count="0"] { display: none; }

@media (max-width: 767.98px) {
  .edu-bottom-nav { display: flex; }
  .m-mobile-menu-btn { display: none !important; }
}

[data-theme="dark"] .edu-bottom-nav {
  background: var(--e-surface);
  border-top-color: var(--e-border);
  box-shadow: 0 -4px 16px rgba(0,0,0,.25);
}

/* ── 7. HERO SECTION ──────────────────────────────────────────────── */
.edu-hero {
  background: var(--e-g-hero);
  color: #fff;
  padding: 5rem 1.5rem 5.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  /* Full-width bleed from any max-width parent container */
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  max-width: none;
}

.edu-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 110%, rgba(37,99,235,.35) 0%, transparent 70%);
  pointer-events: none;
}

.edu-hero__blob {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 340px;
  background: radial-gradient(ellipse at center, rgba(124,58,237,.22) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.edu-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 0 auto;
}

.edu-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--e-r-full);
  padding: 0.3rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  margin-bottom: 1.5rem;
  font-family: var(--e-font);
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
}

.edu-hero__title {
  font-family: var(--e-font);
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 1rem;
}

.edu-hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, #93c5fd 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.edu-hero__sub {
  font-family: var(--e-font);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: rgba(255,255,255,.72);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.edu-hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.edu-hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 2rem;
}

.edu-hero__stat-num {
  font-family: var(--e-font);
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  display: block;
}

.edu-hero__stat-lbl {
  font-size: 0.72rem;
  color: rgba(255,255,255,.55);
  font-weight: 500;
  display: block;
  margin-top: 1px;
}

/* ── 8. HERO BUTTONS ──────────────────────────────────────────────── */
.edu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--e-font);
  font-weight: 600;
  line-height: 1.2;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--e-ease-fast), box-shadow var(--e-ease-fast), opacity var(--e-ease-fast), background var(--e-ease-fast);
  white-space: nowrap;
  border-radius: var(--e-r-sm);
  padding: 0.65rem 1.3rem;
  font-size: 0.9rem;
  user-select: none;
}
.edu-btn:focus-visible { outline: 2px solid var(--e-brand); outline-offset: 2px; }
.edu-btn:active        { transform: scale(0.97); }

.edu-btn--hero-primary {
  background: #fff;
  color: var(--e-brand-dk);
  box-shadow: 0 8px 24px rgba(255,255,255,.2);
  font-weight: 700;
}
.edu-btn--hero-primary:hover {
  background: #f0f4ff;
  color: var(--e-brand-dk);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(255,255,255,.25);
  text-decoration: none;
}

.edu-btn--hero-secondary {
  background: rgba(255,255,255,.10);
  border: 1.5px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
}
.edu-btn--hero-secondary:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
  text-decoration: none;
}

.edu-btn--primary {
  background: var(--e-g-brand);
  color: #fff;
  box-shadow: var(--e-sh-brand);
  border: none;
}
.edu-btn--primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37,99,235,.42);
  color: #fff;
  text-decoration: none;
}

.edu-btn--outline {
  background: var(--e-surface);
  border: 1.5px solid var(--e-border-strong);
  color: var(--e-text-2);
  box-shadow: var(--e-sh-xs);
}
.edu-btn--outline:hover {
  background: var(--e-n100);
  border-color: var(--e-brand-border);
  color: var(--e-brand);
  text-decoration: none;
}

.edu-btn--add {
  background: var(--e-brand-soft);
  border: 1.5px solid var(--e-brand-border);
  color: var(--e-brand);
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--e-r-sm);
  font-family: var(--e-font);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--e-ease-fast), border-color var(--e-ease-fast), color var(--e-ease-fast), box-shadow var(--e-ease-fast);
}
.edu-btn--add:hover {
  background: var(--e-brand);
  border-color: var(--e-brand);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--e-sh-brand);
}
.edu-btn--add.is-added {
  background: var(--e-green-soft);
  border-color: rgba(5,150,105,.3);
  color: var(--e-green);
  pointer-events: none;
}

.edu-btn--remove {
  background: transparent;
  border: 1px solid var(--e-border);
  color: var(--e-text-faint);
  font-size: 0.75rem;
  padding: 0.32rem 0.6rem;
  border-radius: var(--e-r-sm);
  font-family: var(--e-font);
  cursor: pointer;
  transition: all var(--e-ease-fast);
  white-space: nowrap;
}
.edu-btn--remove:hover {
  background: var(--e-danger-soft);
  border-color: rgba(220,38,38,.3);
  color: var(--e-danger);
  text-decoration: none;
}

.edu-btn--sm  { font-size: 0.8rem; padding: 0.38rem 0.85rem; }
.edu-btn--lg  { font-size: 1rem;   padding: 0.75rem 1.75rem; }

/* ── 9. FEATURE CARDS (Home page) ─────────────────────────────────── */
.edu-features {
  padding: 4.5rem 0;
  max-width: var(--e-max-w);
  margin: 0 auto;
}

.edu-features__head { text-align: center; margin-bottom: 2.5rem; }

.edu-features__eyebrow {
  display: inline-block;
  font-family: var(--e-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--e-brand);
  margin-bottom: 0.5rem;
}

.edu-features__title {
  font-family: var(--e-font);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--e-text);
  margin: 0 0 0.5rem;
}

.edu-features__sub {
  font-size: 1rem;
  color: var(--e-text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.edu-feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.edu-feat-card {
  background: var(--e-surface);
  border: 1px solid var(--e-border);
  border-radius: var(--e-r-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--e-sh-sm);
  transition: transform var(--e-ease), box-shadow var(--e-ease);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.edu-feat-card:hover { transform: translateY(-3px); box-shadow: var(--e-sh-md); }

.edu-feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
.edu-feat-icon--blue   { background: var(--e-brand-soft); }
.edu-feat-icon--green  { background: var(--e-green-soft); }
.edu-feat-icon--violet { background: var(--e-violet-soft); }
.edu-feat-icon--amber  { background: var(--e-warn-soft); }

.edu-feat-title {
  font-family: var(--e-font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--e-text);
  margin: 0 0 0.45rem;
}

.edu-feat-desc {
  font-size: 0.875rem;
  color: var(--e-text-muted);
  line-height: 1.6;
  margin: 0 0 1rem;
  flex: 1;
}

.edu-feat-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--e-brand);
  text-decoration: none;
  transition: gap var(--e-ease-fast);
  margin-top: auto;
}
.edu-feat-link:hover { gap: 0.5rem; text-decoration: none; }

/* ── 10. PROGRAM CARDS ────────────────────────────────────────────── */
.edu-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@media (min-width: 640px) {
  .edu-cards { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1080px) {
  .edu-cards { grid-template-columns: 1fr 1fr 1fr; }
}

.edu-prog-card {
  background: var(--e-surface);
  border: 1px solid var(--e-border);
  border-radius: var(--e-r-lg);
  box-shadow: var(--e-sh-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--e-ease), box-shadow var(--e-ease), border-color var(--e-ease);
  position: relative;
}
.edu-prog-card:hover { transform: translateY(-2px); box-shadow: var(--e-sh-md); }

/* Match indicator strip */
.edu-prog-card__strip {
  height: 4px;
  background: var(--e-border);
  flex-shrink: 0;
}
.edu-prog-card.match--great .edu-prog-card__strip { background: var(--e-g-success); }
.edu-prog-card.match--good  .edu-prog-card__strip { background: linear-gradient(90deg, #10b981, #3b82f6); }
.edu-prog-card.match--ok    .edu-prog-card__strip { background: var(--e-g-brand); }
.edu-prog-card.match--low   .edu-prog-card__strip { background: var(--e-g-warm); }
.edu-prog-card.is-added     .edu-prog-card__strip { background: var(--e-g-success); }
.edu-prog-card.is-added { border-color: rgba(5,150,105,.25); }

.edu-prog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem 0;
  gap: 0.4rem;
}

.edu-type-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: var(--e-r-full);
  font-family: var(--e-font);
  white-space: nowrap;
}
.edu-type-pill--devlet { background: var(--e-brand-soft); color: var(--e-brand); border: 1px solid var(--e-brand-border); }
.edu-type-pill--vakif  { background: var(--e-violet-soft); color: var(--e-violet); border: 1px solid rgba(124,58,237,.2); }

.edu-city-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  color: var(--e-text-faint);
  font-family: var(--e-font);
}

.edu-prog-card__body {
  padding: 0.55rem 0.9rem 0.7rem;
  flex: 1;
}

.edu-prog-card__uni {
  font-family: var(--e-font);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--e-text);
  line-height: 1.3;
  margin-bottom: 0.1rem;
}

.edu-prog-card__prog {
  font-family: var(--e-font);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--e-text-2);
  margin-bottom: 0.15rem;
  line-height: 1.3;
}

.edu-prog-card__faculty {
  font-size: 0.68rem;
  color: var(--e-text-faint);
  margin-bottom: 0.55rem;
}

.edu-prog-card__tags {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.edu-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: var(--e-r-full);
  font-family: var(--e-font);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.edu-tag--lisans   { background: var(--e-brand-soft); color: var(--e-brand-dk); border: 1px solid var(--e-brand-border); }
.edu-tag--onlisans { background: var(--e-n100); color: var(--e-n600); border: 1px solid var(--e-border-strong); }
.edu-tag--puan     { background: var(--e-n100); color: var(--e-text-muted); border: 1px solid var(--e-border); }
.edu-tag--kod      { background: transparent; color: var(--e-text-faint); border: none; font-size: 0.6rem; font-family: monospace; }
.edu-tag--star     { background: linear-gradient(135deg,#f59e0b,#10b981); color:#fff; box-shadow:0 2px 6px rgba(245,158,11,.3); }
.edu-tag--yakin    { background: var(--e-warn-soft); color: var(--e-warn); border: 1px solid rgba(217,119,6,.2); }

/* Stats grid */
.edu-prog-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--e-border);
}

.edu-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.55rem 0.3rem;
  gap: 2px;
}
.edu-stat + .edu-stat { border-left: 1px solid var(--e-border); }

.edu-stat__label {
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--e-text-faint);
  font-family: var(--e-font);
}

.edu-stat__val {
  font-family: var(--e-font);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--e-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.edu-stat__val--na { color: var(--e-text-faint); font-weight: 400; font-size: 0.75rem; }

/* Card footer */
.edu-prog-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--e-border);
  gap: 0.5rem;
}

/* ── 11. FILTER PANEL ─────────────────────────────────────────────── */
.edu-filter {
  background: var(--e-surface);
  border: 1px solid var(--e-border);
  border-radius: var(--e-r-lg);
  box-shadow: var(--e-sh-sm);
  overflow: hidden;
  margin-bottom: 1rem;
}

.edu-filter__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: background var(--e-ease-fast);
  gap: 0.75rem;
}
.edu-filter__toggle:hover { background: var(--e-n50); }

.edu-filter__toggle-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.edu-filter__toggle-label {
  font-family: var(--e-font);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--e-text);
}

.edu-filter__toggle-count {
  background: var(--e-brand);
  color: #fff;
  font-size: 0.63rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: var(--e-r-full);
  font-family: var(--e-font);
}

.edu-filter__chevron {
  width: 18px;
  height: 18px;
  color: var(--e-text-faint);
  flex-shrink: 0;
  transition: transform var(--e-ease);
}
.edu-filter[open] .edu-filter__chevron { transform: rotate(180deg); }

.edu-filter__body {
  padding: 0 1.1rem 1.1rem;
  border-top: 1px solid var(--e-border);
}

/* ── 12. CHIP BAR ─────────────────────────────────────────────────── */
.edu-chip-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.edu-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--e-brand);
  border: 1.5px solid var(--e-brand);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 600;
  border-radius: var(--e-r-full);
  padding: 0.22rem 0.6rem;
  text-decoration: none;
  font-family: var(--e-font);
  transition: background var(--e-ease-fast), border-color var(--e-ease-fast);
}
.edu-chip:hover { background: var(--e-brand-dk); border-color: var(--e-brand-dk); text-decoration: none; color: #fff; }

.edu-chip__x {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  line-height: 1;
  transition: background var(--e-ease-fast);
  flex-shrink: 0;
}
.edu-chip:hover .edu-chip__x { background: rgba(255,255,255,.35); }

.edu-chip--clear {
  background: transparent;
  border-color: var(--e-border-strong);
  color: var(--e-danger);
}
.edu-chip--clear:hover { background: var(--e-danger-soft); border-color: rgba(220,38,38,.3); color: var(--e-danger); }

/* ── 13. TOOLBAR ──────────────────────────────────────────────────── */
.edu-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.edu-toolbar__info { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.edu-toolbar__right { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; flex-wrap: wrap; }

.edu-result-count {
  font-family: var(--e-font);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--e-text);
}

.edu-result-sub {
  font-size: 0.75rem;
  color: var(--e-text-faint);
  background: var(--e-n100);
  padding: 0.18rem 0.55rem;
  border-radius: var(--e-r-full);
  border: 1px solid var(--e-border);
  font-family: var(--e-font);
}

.edu-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--e-surface);
  border: 1.5px solid var(--e-border-strong);
  border-radius: var(--e-r-sm);
  padding: 0.38rem 2.1rem 0.38rem 0.65rem;
  font-family: var(--e-font);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--e-text-2);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2364748b'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  transition: border-color var(--e-ease-fast);
}
.edu-select:focus { outline: 2px solid var(--e-brand); border-color: var(--e-brand); }

[data-theme="dark"] .edu-select {
  background-color: var(--e-surface);
  border-color: var(--e-border-strong);
  color: var(--e-text-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238b949e'/%3E%3C/svg%3E");
}

/* ── 14. PAGINATION ───────────────────────────────────────────────── */
.edu-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  padding: 1.5rem 0 0.5rem;
}

.edu-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.45rem;
  border-radius: var(--e-r-sm);
  font-family: var(--e-font);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--e-text-muted);
  text-decoration: none;
  border: 1px solid var(--e-border);
  background: var(--e-surface);
  transition: all var(--e-ease-fast);
}
.edu-page-btn:hover { background: var(--e-brand-soft); border-color: var(--e-brand-border); color: var(--e-brand); text-decoration: none; }
.edu-page-btn.is-active { background: var(--e-brand); border-color: var(--e-brand); color: #fff; box-shadow: var(--e-sh-brand); }
.edu-page-btn.is-disabled { opacity: 0.35; pointer-events: none; }
.edu-page-btn.is-ellipsis { border-color: transparent; background: transparent; pointer-events: none; color: var(--e-text-faint); }

/* ── 15. PREFERENCE LIST ──────────────────────────────────────────── */
.edu-pref-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.edu-pref-heading {
  font-family: var(--e-font);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--e-text);
  margin: 0;
}

.edu-pref-progress {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.edu-progress-bar {
  width: 100px;
  height: 6px;
  background: var(--e-n200);
  border-radius: var(--e-r-full);
  overflow: hidden;
}

.edu-progress-fill {
  height: 100%;
  background: var(--e-g-brand);
  border-radius: var(--e-r-full);
  transition: width var(--e-ease-slow);
}

.edu-progress-label {
  font-family: var(--e-font);
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--e-text-muted);
  white-space: nowrap;
}

/* Score input card */
.edu-score-card {
  background: var(--e-surface);
  border: 1px solid var(--e-border);
  border-radius: var(--e-r-lg);
  box-shadow: var(--e-sh-sm);
  padding: 1rem 1.1rem;
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.edu-score-field { flex: 1; min-width: 9rem; }

.edu-score-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--e-text-muted);
  margin-bottom: 0.3rem;
  font-family: var(--e-font);
}

.edu-score-input {
  display: block;
  width: 100%;
  padding: 0.48rem 0.72rem;
  background: var(--e-n50);
  border: 1.5px solid var(--e-border-strong);
  border-radius: var(--e-r-sm);
  font-family: var(--e-font);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--e-text);
  -webkit-appearance: none;
  transition: border-color var(--e-ease-fast), box-shadow var(--e-ease-fast);
}
.edu-score-input:focus {
  outline: none;
  border-color: var(--e-brand);
  box-shadow: 0 0 0 3px var(--e-brand-soft);
  background: var(--e-surface);
}

/* Legend */
.edu-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  background: var(--e-surface);
  border: 1px solid var(--e-border);
  border-radius: var(--e-r-lg);
  font-size: 0.73rem;
  margin-bottom: 0.9rem;
}

.edu-legend__item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--e-text-muted);
  font-family: var(--e-font);
}

.edu-legend__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Preference list */
.edu-pref-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.edu-pref-item {
  background: var(--e-surface);
  border: 1px solid var(--e-border);
  border-radius: var(--e-r-lg);
  box-shadow: var(--e-sh-xs);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem 0.75rem 0.7rem;
  transition: box-shadow var(--e-ease), transform var(--e-ease), border-color var(--e-ease);
  position: relative;
  overflow: hidden;
}
.edu-pref-item:hover { box-shadow: var(--e-sh-sm); }

/* Left accent stripe */
.edu-pref-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--e-border);
}
.edu-pref-item.row-great::before   { background: var(--e-g-success); }
.edu-pref-item.row-likely::before  { background: linear-gradient(180deg,#10b981,#3b82f6); }
.edu-pref-item.row-border::before  { background: linear-gradient(180deg,#f59e0b,#f97316); }
.edu-pref-item.row-est::before     { background: var(--e-g-success); }
.edu-pref-item.row-near::before    { background: linear-gradient(180deg,#f97316,#ef4444); }
.edu-pref-item.row-broken::before  { background: var(--e-danger); }
.edu-pref-item.row-placed::before  { background: var(--e-g-success); }
.edu-pref-item.row-placed          { background: var(--e-green-soft); border-color: rgba(5,150,105,.25); }

.edu-pref-item__rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--e-n100);
  border: 1.5px solid var(--e-border);
  display: grid;
  place-items: center;
  font-family: var(--e-font);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--e-text-muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.edu-pref-item.row-placed .edu-pref-item__rank {
  background: var(--e-g-success);
  border-color: transparent;
  color: #fff;
}

.edu-pref-item__drag {
  color: var(--e-text-faint);
  cursor: grab;
  flex-shrink: 0;
  padding: 0 1px;
  transition: color var(--e-ease-fast);
}
.edu-pref-item__drag:active { cursor: grabbing; }
.edu-pref-item:hover .edu-pref-item__drag { color: var(--e-text-muted); }

.edu-pref-item__body {
  flex: 1;
  min-width: 0;
}

.edu-pref-item__uni {
  font-family: var(--e-font);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--e-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.edu-pref-item__prog {
  font-size: 0.76rem;
  color: var(--e-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.edu-pref-item__right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.edu-pref-item__score {
  text-align: right;
  display: none;
}

.edu-pref-score-main {
  font-family: var(--e-font);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--e-text);
  font-variant-numeric: tabular-nums;
}

.edu-pref-score-sub {
  font-size: 0.67rem;
  color: var(--e-text-faint);
  display: block;
}

.edu-diff {
  display: inline-flex;
  align-items: center;
  font-family: var(--e-font);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.14rem 0.42rem;
  border-radius: var(--e-r-full);
  white-space: nowrap;
}
.edu-diff--pos { background: var(--e-green-soft); color: var(--e-green); border:1px solid rgba(5,150,105,.2); }
.edu-diff--neg { background: var(--e-danger-soft); color: var(--e-danger); border:1px solid rgba(220,38,38,.15); }

/* ── 16. EMPTY STATE ──────────────────────────────────────────────── */
.edu-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  background: var(--e-surface);
  border-radius: var(--e-r-lg);
  border: 1px solid var(--e-border);
}

.edu-empty__icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--e-brand-soft);
  display: grid;
  place-items: center;
  color: var(--e-brand);
  margin-bottom: 0.25rem;
}

.edu-empty__title {
  font-family: var(--e-font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--e-text);
  margin: 0;
}

.edu-empty__sub {
  font-size: 0.875rem;
  color: var(--e-text-muted);
  max-width: 340px;
  line-height: 1.6;
  margin: 0;
}

/* ── 17. PAGE HEADER ──────────────────────────────────────────────── */
.edu-page-hd {
  padding: 1.5rem 0 0.5rem;
}

.edu-page-hd__title {
  font-family: var(--e-font);
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--e-text);
  margin: 0 0 0.2rem;
}

.edu-page-hd__sub {
  font-size: 0.875rem;
  color: var(--e-text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

/* ── 18. DARK MODE ────────────────────────────────────────────────── */
[data-theme="dark"] .edu-feat-card       { background: var(--e-surface); border-color: var(--e-border); }
[data-theme="dark"] .edu-feat-card:hover { box-shadow: var(--e-sh-md); }
[data-theme="dark"] .edu-prog-card       { background: var(--e-surface); border-color: var(--e-border); }
[data-theme="dark"] .edu-prog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.4); }
[data-theme="dark"] .edu-filter          { background: var(--e-surface); border-color: var(--e-border); }
[data-theme="dark"] .edu-filter__toggle:hover { background: var(--e-n100); }
[data-theme="dark"] .edu-score-card      { background: var(--e-surface); border-color: var(--e-border); }
[data-theme="dark"] .edu-score-input     { background: var(--e-n100); border-color: var(--e-border-strong); color: var(--e-text); }
[data-theme="dark"] .edu-pref-item       { background: var(--e-surface); border-color: var(--e-border); }
[data-theme="dark"] .edu-pref-item.row-placed { background: rgba(5,150,105,.10); }
[data-theme="dark"] .edu-pref-item__rank { background: var(--e-n100); border-color: var(--e-border-strong); }
[data-theme="dark"] .edu-page-btn        { background: var(--e-surface); border-color: var(--e-border); }
[data-theme="dark"] .edu-page-btn:hover  { background: var(--e-brand-soft); border-color: var(--e-brand-border); }
[data-theme="dark"] .edu-legend          { background: var(--e-surface); border-color: var(--e-border); }
[data-theme="dark"] .edu-empty           { background: var(--e-surface); border-color: var(--e-border); }
[data-theme="dark"] .edu-empty__icon     { background: var(--e-brand-soft); }
[data-theme="dark"] .edu-btn--outline    { background: var(--e-surface); border-color: var(--e-border-strong); color: var(--e-text-2); }
[data-theme="dark"] .edu-btn--outline:hover { background: var(--e-n100); }
[data-theme="dark"] .edu-btn--add        { background: rgba(37,99,235,.15); border-color: rgba(37,99,235,.35); color: #93c5fd; }
[data-theme="dark"] .edu-btn--add:hover  { background: var(--e-brand); border-color: var(--e-brand); color: #fff; }
[data-theme="dark"] .edu-tag--puan, [data-theme="dark"] .edu-tag--onlisans { background: var(--e-n100); border-color: var(--e-border-strong); }
[data-theme="dark"] .edu-result-sub      { background: var(--e-n100); border-color: var(--e-border); }

/* ── 19. ANIMATIONS ───────────────────────────────────────────────── */
.edu-prog-card { animation: eduCardIn 280ms cubic-bezier(.2,0,0,1) both; }
.edu-prog-card:nth-child(1) { animation-delay: 0ms; }
.edu-prog-card:nth-child(2) { animation-delay: 35ms; }
.edu-prog-card:nth-child(3) { animation-delay: 70ms; }
.edu-prog-card:nth-child(4) { animation-delay: 105ms; }
.edu-prog-card:nth-child(5) { animation-delay: 140ms; }
.edu-prog-card:nth-child(6) { animation-delay: 175ms; }
.edu-prog-card:nth-child(n+7) { animation-delay: 210ms; }

@keyframes eduCardIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)     scale(1); }
}

.edu-pref-item { animation: eduSlideIn 220ms cubic-bezier(.2,0,0,1) both; }
@keyframes eduSlideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .edu-prog-card, .edu-pref-item, .m-page { animation: none !important; transition-duration: 1ms !important; }
}

/* ── 20. RESPONSIVE ───────────────────────────────────────────────── */
@media (min-width: 768px) {
  .edu-pref-item__score { display: block; }
}

@media (max-width: 767.98px) {
  .edu-hero          { padding: 3rem 1rem 4rem; }
  .edu-hero__stats   { gap: 1.5rem; padding-top: 1.5rem; }
  .edu-hero__stat-num { font-size: 1.3rem; }
  .edu-features      { padding: 2.5rem 0; }
  .edu-feat-grid     { grid-template-columns: 1fr; }
  .edu-toolbar       { gap: 0.5rem; }
  .edu-pref-item     { gap: 0.5rem; }
  .edu-pref-item__rank { width: 24px; height: 24px; font-size: 0.7rem; }
}

@media (max-width: 575.98px) {
  .edu-hero__title  { font-size: 1.85rem; }
  .edu-prog-card__stats { grid-template-columns: 1fr 1fr; }
  .edu-prog-card__stats .edu-stat:last-child { display: none; }
}

/* ── 21. PRINT ────────────────────────────────────────────────────── */
@media print {
  .edu-bottom-nav { display: none !important; }
}
