/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

/* Ekran okuyucu yardımcı sınıfı — görsel olarak gizli ama erişilebilir */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  border-radius: 6px;
  clip: auto;
  white-space: normal;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important
  }
}

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

a {
  color: inherit;
  text-decoration: none
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit
}

ul {
  list-style: none
}

:root {
  --ink: #162c4b;
  --ink-2: #225aa6;
  --paper: #F5F3ED;
  --paper-2: #FFFFFF;
  --gold: #B8902E;
  --gold-light: #D4B45A;
  --gold-dark: #8B6414;
  --maroon: #7A2A2A;
  --slate: #5B6472;
  --slate-light: #8A93A3;
  --charcoal: #1D2129;
  --line: rgba(20, 33, 61, .13);
  --line-2: rgba(20, 33, 61, .08);
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 18px;
  --shadow-s: 0 1px 2px rgba(20, 33, 61, .07), 0 1px 1px rgba(20, 33, 61, .05);
  --shadow-m: 0 10px 28px rgba(20, 33, 61, .11);
  --shadow-l: 0 30px 60px rgba(20, 33, 61, .20);
  --container: 1240px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  /* Font değişkenleri */
  --font-body:    'Inter', sans-serif;
  --font-heading: 'Fraunces', serif;
  --font-mono:    'IBM Plex Mono', monospace;
}

body {
  background: var(--paper);
  color: var(--charcoal);
  font-family: 'Inter', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip
}

h1,
h2,
h3,
h4 {
  font-family: 'Fraunces', serif;
  color: var(--ink);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -.01em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .55em;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold-dark);
  display: inline-block;
}

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

.icon {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .85em 1.6em;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: .92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow-s)
}

.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow-m);
  transform: translateY(-1px)
}

.btn-ink {
  background: var(--ink);
  color: var(--paper-2)
}

.btn-ink:hover {
  background: var(--ink-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-m)
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line)
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(20, 33, 61, .04)
}

.btn-sm {
  padding: .55em 1.1em;
  font-size: .82rem
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(245, 243, 237, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.nav.scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 20px rgba(20, 33, 61, .06)
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--container);
  margin: 0 auto
}

.brand {
  display: flex;
  align-items: center;
  gap: .6em;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--ink)
}

.brand .seal-mark {
  width: 34px;
  height: 34px
}

.brand .dotcom {
  color: var(--gold)
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width .22s var(--ease)
}

.nav-links a:hover::after {
  width: 100%
}

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

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 5px;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease)
}

.mobile-menu {
  display: none
}

@media (max-width: 920px) {
  .nav-inner {
    padding: 12px 16px;
  }

  .brand {
    flex-shrink: 0;
  }

  .nav-links {
    display: none
  }

  .nav-cta {
    display: none
  }

  .hamburger {
    display: flex;
    flex-shrink: 0;
  }

  .hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-menu {
    display: block;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: var(--paper);
    z-index: 190;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
    overflow-y: auto;
  }

  .mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto
  }

  .mobile-menu ul {
    display: flex;
    flex-direction: column;
    padding: 20px 28px;
    gap: 4px
  }

  .mobile-menu a {
    display: block;
    padding: 14px 4px;
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid var(--line-2);
    font-family: 'Fraunces', serif
  }

  .mobile-menu .btn {
    margin: 22px 4px 0;
    width: calc(100% - 8px)
  }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center
}

.hero-eyebrow {
  margin-bottom: 22px
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  margin-bottom: 20px
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-dark);
  font-weight: 600
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--slate);
  max-width: 46ch;
  margin-bottom: 34px
}

.search-panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 8px;
  box-shadow: var(--shadow-m);
}

.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px
}

.search-row .icon {
  width: 19px;
  height: 19px;
  color: var(--slate)
}

.search-row input {
  flex: 1;
  border: none;
  background: none;
  font-size: 1rem;
  padding: 10px 0;
  outline: none
}

.search-row .btn {
  flex-shrink: 0
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 10px 6px;
  border-top: 1px solid var(--line-2);
  margin-top: 4px
}

.chip {
  font-size: .78rem;
  font-weight: 600;
  padding: .5em 1em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  transition: all .18s var(--ease);
  color: var(--ink);
}

.chip:hover {
  border-color: var(--gold)
}

.chip.active {
  background: var(--ink);
  color: var(--paper-2);
  border-color: var(--ink)
}

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 38px;
  border-top: 1px solid var(--line);
  padding-top: 26px
}

.stat {
  flex: 1;
  padding-right: 20px
}

.stat b {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  color: var(--ink);
  display: block;
  font-weight: 600
}

.stat span {
  font-size: .8rem;
  color: var(--slate);
  font-weight: 500
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  z-index: 2;
}

.hero-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}

.hero-glow-1 {
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  top: 10%;
  left: 10%;
}

.hero-glow-2 {
  background: radial-gradient(circle, var(--ink-2) 0%, transparent 70%);
  bottom: 10%;
  right: 10%;
}

.hero-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.orbit-container {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(184, 144, 46, 0.15);
}

.orbit-ring-outer {
  width: 100%;
  height: 100%;
  border-style: dashed;
  animation: rotateCW 45s linear infinite;
}

.orbit-ring-inner {
  width: 72%;
  height: 72%;
  border-color: rgba(22, 44, 75, 0.12);
  border-style: double;
  border-width: 3px;
  animation: rotateCCW 30s linear infinite;
}

.emblem-center {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, #1a2a46 0%, #0c1527 100%);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(184, 144, 46, 0.28), inset 0 0 15px rgba(255, 255, 255, 0.05);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.emblem-center:hover {
  transform: scale(1.08);
}

.emblem-inner {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 1px dashed rgba(184, 144, 46, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.emblem-char {
  font-family: 'Fraunces', 'Georgia', serif;
  font-size: 52px;
  color: var(--paper);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  font-style: italic;
  font-weight: 300;
  transform: translateY(-2px);
}

.floating-glass-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-m);
  box-shadow: 0 8px 30px rgba(22, 44, 75, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  animation: floatSlow 7s ease-in-out infinite;
  z-index: 3;
}

.floating-glass-card:hover {
  transform: translateY(-6px) scale(1.02);
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(184, 144, 46, 0.4);
  box-shadow: 0 12px 40px rgba(184, 144, 46, 0.18);
}

.card-icon {
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.8);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-s);
}

.card-info {
  display: flex;
  flex-direction: column;
}

.card-info strong {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
}

.card-info span {
  font-size: 0.72rem;
  color: var(--slate);
  font-weight: 500;
}

.card-top-right {
  top: 6%;
  right: -8%;
  animation-delay: 0s;
}

.card-bottom-left {
  bottom: 14%;
  left: -12%;
  animation-delay: 2.2s;
}

.card-bottom-right {
  bottom: 0%;
  right: -5%;
  animation-delay: 4.4s;
}

@keyframes rotateCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateCCW {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width:920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px
  }

  .hero-visual {
    order: -1;
    min-height: 320px;
  }

  .hero-visual-wrapper {
    max-width: 300px;
  }

  .orbit-container {
    width: 200px;
    height: 200px;
  }

  .emblem-center {
    width: 86px;
    height: 86px;
  }

  .emblem-inner {
    width: 70px;
    height: 70px;
  }

  .emblem-char {
    font-size: 40px;
  }

  .floating-glass-card {
    padding: 8px 12px;
  }

  .card-top-right {
    top: 5%;
    right: -2%;
  }

  .card-bottom-left {
    bottom: 15%;
    left: -4%;
  }

  .card-bottom-right {
    bottom: -2%;
    right: -2%;
  }

  .hero-stats {
    flex-wrap: wrap;
    row-gap: 20px
  }

  .stat {
    flex: 1 1 45%
  }
}

/* ============ SECTION SCAFFOLDING ============ */
section {
  padding: 96px 0
}

.section-head {
  max-width: 640px;
  margin-bottom: 52px
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-top: 16px
}

.section-head p {
  color: var(--slate);
  margin-top: 14px;
  font-size: 1.02rem
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease)
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0)
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
  position: relative
}

.divider::after {
  content: "";
  position: absolute;
  top: -3px;
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%
}

/* ============ VALUE PROPS ============ */
.values-band {
  background: var(--ink);
  color: var(--paper-2)
}

.values-band .eyebrow {
  color: var(--gold-light)
}

.values-band .section-head h2 {
  color: var(--paper-2)
}

.values-band .section-head p {
  color: rgba(245, 243, 237, .68)
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(245, 243, 237, .14);
  border: 1px solid rgba(245, 243, 237, .14);
  border-radius: var(--radius-m);
  overflow: hidden
}

.value-card {
  background: var(--ink);
  padding: 32px 26px
}

.value-card .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold-light)
}

.value-card h3 {
  color: var(--paper-2);
  font-size: 1.08rem;
  margin-bottom: 10px;
  font-weight: 600
}

.value-card p {
  color: rgba(245, 243, 237, .66);
  font-size: .92rem
}

@media (max-width:920px) {
  .values-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width:600px) {
  .values-grid {
    grid-template-columns: 1fr
  }
}

/* ============ PROGRAMS ============ */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

.program-chip {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px 22px;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  text-align: left;
}

.program-chip:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
  border-color: var(--gold)
}

.program-chip .icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-s);
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
  margin-bottom: 16px
}

.program-chip h3 {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 6px;
  font-weight: 600;
  font-family: 'Inter', sans-serif
}

.program-chip span {
  font-size: .78rem;
  color: var(--slate-light);
  font-family: 'IBM Plex Mono', monospace
}

@media (max-width:920px) {
  .programs-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width:560px) {
  .programs-grid {
    grid-template-columns: 1fr
  }
}

/* ============ DIRECTORY ============ */
.directory {
  background: var(--paper-2)
}

.data-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius-s);
  padding: 12px 16px;
  font-size: .82rem;
  color: var(--slate);
  margin-bottom: 28px;
}

.data-note .icon {
  color: var(--gold);
  width: 16px;
  height: 16px;
  flex-shrink: 0
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  margin-bottom: 34px;
}

.filter-input {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 9px 12px;
  background: var(--paper-2);
}

.filter-input input {
  border: none;
  background: none;
  outline: none;
  flex: 1;
  font-size: .9rem
}

.filter-input .icon {
  width: 16px;
  height: 16px;
  color: var(--slate)
}

.filter-bar select {
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 9px 12px;
  background: var(--paper-2);
  font-size: .87rem;
  cursor: pointer;
}

.type-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  overflow: hidden
}

.type-toggle button {
  padding: 9px 14px;
  background: var(--paper-2);
  border: none;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border-right: 1px solid var(--line)
}

.type-toggle button:last-child {
  border-right: none
}

.type-toggle button.active {
  background: var(--ink);
  color: var(--paper-2)
}

.results-count {
  font-size: .82rem;
  color: var(--slate);
  margin-bottom: 20px;
  font-family: 'IBM Plex Mono', monospace
}

.uni-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px
}

.uni-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}

.uni-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-m)
}

.uni-plate {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: var(--ink)
}

.uni-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.92)
}

.uni-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(20, 33, 61, .72), rgba(184, 144, 46, .28));
  mix-blend-mode: multiply
}

.uni-seal {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-s);
  z-index: 2;
  overflow: hidden;
}

.uni-seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.uni-seal.devlet {
  color: var(--ink)
}

.uni-seal.vakif {
  color: var(--gold)
}

.uni-seal .icon {
  width: 18px;
  height: 18px
}

.uni-body {
  padding: 20px 20px 18px;
  flex: 1;
  display: flex;
  flex-direction: column
}

.uni-city {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--maroon);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px
}

.uni-city .icon {
  width: 12px;
  height: 12px
}

.uni-body h3 {
  font-size: 1.14rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.28
}

.uni-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px
}

.uni-tag {
  font-size: .72rem;
  background: var(--paper);
  border: 1px solid var(--line-2);
  padding: .35em .7em;
  border-radius: 999px;
  color: var(--slate)
}

.uni-tag.scholarship-tag {
  background: rgba(139, 100, 20, 0.08);
  color: var(--gold-dark);
  border-color: rgba(139, 100, 20, 0.2);
  font-weight: 700;
}

.uni-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px dashed var(--line-2);
  border-bottom: 1px dashed var(--line-2);
  padding: 10px 0;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}

.uni-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid var(--line-2);
}

.uni-meta-item:last-child {
  border-right: none;
}

.uni-meta-item strong {
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
}

.uni-meta-item span {
  font-size: 0.65rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-top: 2px;
}

.uni-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-2)
}

.compare-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: .6em .8em;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--paper-2);
  transition: all .18s var(--ease);
}

.compare-toggle .icon {
  width: 14px;
  height: 14px
}

.compare-toggle.active {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon)
}

.detail-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius-s);
  padding: .6em .8em;
  font-size: .8rem;
  font-weight: 600;
  background: var(--ink);
  color: var(--paper-2);
  cursor: pointer;
  transition: all .18s var(--ease)
}

.detail-btn:hover {
  background: var(--ink-2)
}

.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--slate)
}

.empty-state .icon {
  width: 34px;
  height: 34px;
  color: var(--slate-light);
  margin-bottom: 14px
}

@media (max-width:980px) {
  .uni-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width:640px) {
  .uni-grid {
    grid-template-columns: 1fr
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch
  }
}

/* ============ GALLERY ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 14px
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-s);
  overflow: hidden;
  cursor: pointer;
  background: var(--ink)
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2
}

.gallery-item:nth-child(4) {
  grid-row: span 2
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.9);
  transition: transform .5s var(--ease)
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(20, 33, 61, .7), rgba(184, 144, 46, .22));
  mix-blend-mode: multiply;
  transition: opacity .3s
}

.gallery-item:hover img {
  transform: scale(1.06)
}

.gallery-cap {
  position: absolute;
  left: 12px;
  bottom: 10px;
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  z-index: 2;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: .02em
}

.gallery-zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: var(--ink)
}

.gallery-zoom .icon {
  width: 13px;
  height: 13px
}

@media (max-width:920px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2
  }
}

/* ============ COMPARE TRAY ============ */
.compare-tray {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 140%);
  background: var(--ink);
  color: var(--paper-2);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-l);
  z-index: 150;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform .35s var(--ease);
  border: 1px solid rgba(212, 180, 90, .3);
  max-width: calc(100vw - 32px);
}

.compare-tray.open {
  transform: translate(-50%, 0)
}

.tray-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: rgba(245, 243, 237, .7);
  font-family: 'IBM Plex Mono', monospace
}

.tray-slots {
  display: flex;
  gap: 8px
}

.tray-slot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink-2);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold-light);
  position: relative;
  font-family: 'Fraunces', serif;
}

.tray-slot button {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 15px;
  height: 15px;
  background: var(--maroon);
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer
}

.tray-slot button .icon {
  width: 8px;
  height: 8px;
  stroke-width: 3;
  color: #fff
}

@media (max-width:640px) {
  .compare-tray {
    left: 16px;
    right: 16px;
    transform: translateX(0) translateY(140%);
    width: auto
  }

  .compare-tray.open {
    transform: translateX(0) translateY(0)
  }

  .tray-label {
    display: none
  }
}

/* ============ MODALS ============ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 33, 61, .55);
  backdrop-filter: blur(3px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto
}

.modal-box {
  background: var(--paper-2);
  border-radius: var(--radius-l);
  max-width: 640px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: var(--shadow-l);
  transform: translateY(16px) scale(.98);
  transition: transform .3s var(--ease);
}

.modal-backdrop.open .modal-box {
  transform: translateY(0) scale(1)
}

.modal-box.wide {
  max-width: 820px
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line)
}

.modal-head h3 {
  font-size: 1.3rem
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0
}

.modal-close:hover {
  border-color: var(--maroon);
  color: var(--maroon)
}

.modal-body {
  padding: 26px
}

.modal-plate {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-m);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative
}

.modal-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.92)
}

.modal-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(20, 33, 61, .65), rgba(184, 144, 46, .2));
  mix-blend-mode: multiply
}

.modal-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0
}

.modal-stat {
  background: var(--paper);
  border-radius: var(--radius-s);
  padding: 14px;
  text-align: center;
  border: 1px solid var(--line-2)
}

.modal-stat b {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--ink)
}

.modal-stat span {
  font-size: .72rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .04em
}

.modal-body p.desc {
  color: var(--slate);
  margin-bottom: 18px;
  font-size: .95rem
}

.modal-body h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink);
  margin-bottom: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600
}

.modal-body .uni-tags {
  margin-bottom: 0
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem
}

.compare-table th,
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
  vertical-align: top
}

.compare-table th {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--ink);
  font-size: .95rem;
  background: var(--paper)
}

.compare-table td.label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap
}

.compare-empty {
  padding: 40px 26px;
  text-align: center;
  color: var(--slate)
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, .92);
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto
}

.lightbox img {
  max-width: 88vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  filter: grayscale(1) contrast(1.08) brightness(.95)
}

.lightbox-cap {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .85rem
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, .25)
}

.lightbox-close {
  top: 24px;
  right: 24px
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%)
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%)
}

@media (max-width:640px) {

  .lightbox-prev,
  .lightbox-next {
    width: 38px;
    height: 38px
  }
}

/* ============ CONTACT ============ */
.contact {
  background: var(--ink);
  color: var(--paper-2)
}

.contact .eyebrow {
  color: var(--gold-light)
}

.contact .section-head h2 {
  color: var(--paper-2)
}

.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
  align-items: start
}

.contact-info p {
  color: rgba(245, 243, 237, .68);
  margin-bottom: 28px;
  font-size: .98rem
}

.info-row {
  display: flex;
  gap: 14px;
  margin-bottom: 22px
}

.info-row .icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  flex-shrink: 0
}

.info-row b {
  display: block;
  font-size: .92rem;
  margin-bottom: 2px
}

.info-row span {
  font-size: .85rem;
  color: rgba(245, 243, 237, .6)
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 243, 237, .18);
  border-radius: var(--radius-s);
  font-size: .8rem;
  color: rgba(245, 243, 237, .72)
}

.trust-badge .icon {
  color: var(--gold-light);
  width: 18px;
  height: 18px;
  flex-shrink: 0
}

.form-card {
  background: var(--paper-2);
  border-radius: var(--radius-l);
  padding: 34px;
  box-shadow: var(--shadow-l)
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0
}

.field.full {
  grid-column: 1/-1
}

.field label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink)
}

.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 11px 13px;
  background: var(--paper);
  font-size: .92rem;
  outline: none;
  transition: border-color .18s;
  color: var(--charcoal);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold)
}

.field.error input,
.field.error select,
.field.error textarea {
  border-color: var(--maroon)
}

.field .err-msg {
  font-size: .74rem;
  color: var(--maroon);
  display: none
}

.field.error .err-msg {
  display: block
}

.field textarea {
  resize: vertical;
  min-height: 90px
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px
}

.form-note {
  font-size: .74rem;
  color: var(--slate-light)
}

.success-panel {
  display: none;
  text-align: center;
  padding: 30px 10px
}

.success-panel.show {
  display: block
}

.success-panel .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--gold)
}

.success-panel .icon-wrap .icon {
  width: 26px;
  height: 26px
}

.success-panel h3 {
  margin-bottom: 8px
}

.success-panel p {
  color: var(--slate);
  font-size: .92rem
}

.form-card.sent form {
  display: none
}

.spin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(20, 33, 61, .25);
  border-top-color: var(--ink);
  animation: spin .7s linear infinite;
  display: none
}

.btn.loading .spin {
  display: inline-block
}

.btn.loading .btn-text {
  opacity: .6
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

@media (max-width:920px) {
  .contact-grid {
    grid-template-columns: 1fr
  }
}

@media (max-width:560px) {
  .form-row {
    grid-template-columns: 1fr
  }
}

/* ============ COUNTS ROW MOTIF ============ */
.ledger-rule {
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
  margin: 0
}

/* ============ FOOTER ============ */
footer {
  background: var(--ink);
  color: rgba(245, 243, 237, .78);
  padding-top: 70px
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 50px
}

.footer-brand .brand {
  color: var(--paper-2);
  margin-bottom: 14px
}

.footer-brand p {
  font-size: .88rem;
  max-width: 32ch;
  color: rgba(245, 243, 237, .78)
}

.footer-col h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px
}

.footer-col li {
  margin-bottom: 10px
}

.footer-col a {
  font-size: .87rem;
  color: rgba(245, 243, 237, .85);
  transition: color .18s
}

.footer-col a:hover {
  color: var(--paper-2)
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px
}

.footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(245, 243, 237, .2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center
}

.footer-social a:hover {
  border-color: var(--gold-light);
  color: var(--gold-light)
}

.footer-social .icon {
  width: 15px;
  height: 15px
}

.footer-bottom {
  border-top: 1px solid rgba(245, 243, 237, .14);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .78rem
}

.footer-bottom .legal-links {
  display: flex;
  gap: 18px
}

.data-disclaimer {
  font-size: .72rem;
  color: rgba(245, 243, 237, .72);
  padding-bottom: 18px;
  max-width: 900px
}

@media (max-width:900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 36px
  }
}

@media (max-width:560px) {
  .footer-grid {
    grid-template-columns: 1fr
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start
  }
}

/* toast */
.toast {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: var(--maroon);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-s);
  font-size: .85rem;
  font-weight: 600;
  z-index: 400;
  opacity: 0;
  transition: all .3s var(--ease);
  box-shadow: var(--shadow-m);
  pointer-events: none
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0)
}

/* ============================================================
   V2 ADDITIONS — micro-interactions, detail pages, perf polish
   ============================================================ */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--maroon));
  z-index: 400;
  transition: width .1s linear
}

/* Scrollspy active nav link */
.nav-links a.active {
  color: var(--gold)
}

.nav-links a.active::after {
  width: 100%
}

/* Magnetic buttons */
.magnetic {
  transition: transform .25s var(--ease)
}

/* Card tilt (JS sets --rx/--ry via inline style) */
.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease)
}

.tilt:hover {
  transition: transform .05s linear
}

/* Image skeleton shimmer */
.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--ink)
}

.img-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(245, 243, 237, .03) 30%, rgba(245, 243, 237, .14) 50%, rgba(245, 243, 237, .03) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  opacity: 1;
  transition: opacity .4s var(--ease);
}

.img-frame.loaded::before {
  opacity: 0;
  pointer-events: none
}

@keyframes shimmer {
  0% {
    background-position: 200% 0
  }

  100% {
    background-position: -200% 0
  }
}

/* Hero load-in sequence */
.load-in {
  opacity: 0;
  transform: translateY(16px);
  animation: loadIn .8s var(--ease) forwards
}

@keyframes loadIn {
  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* Checkmark draw animation */
.draw-check {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawCheck .6s .15s var(--ease) forwards
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0
  }
}

.pulse-ring {
  animation: pulseRing .6s var(--ease)
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(184, 144, 46, .45)
  }

  100% {
    box-shadow: 0 0 0 16px rgba(184, 144, 46, 0)
  }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper-2);
  border: 1px solid rgba(212, 180, 90, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 140;
  box-shadow: var(--shadow-m);
  opacity: 0;
  transform: translateY(12px) scale(.9);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto
}

.back-to-top:hover {
  background: var(--ink-2)
}

.back-to-top .icon {
  width: 18px;
  height: 18px
}

@media (max-width:640px) {
  .back-to-top {
    right: 16px;
    bottom: 88px;
    width: 42px;
    height: 42px
  }
}

/* ============ BREADCRUMB (detail pages) ============ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--slate);
  padding: 18px 0;
  flex-wrap: wrap
}

.breadcrumb a {
  color: var(--slate);
  transition: color .18s
}

.breadcrumb a:hover {
  color: var(--gold)
}

.breadcrumb .sep {
  color: var(--slate-light)
}

.breadcrumb .current {
  color: var(--ink);
  font-weight: 600
}

/* ============ DETAIL HERO ============ */
.detail-hero {
  position: relative;
  height: 430px;
  border-radius: var(--radius-l);
  overflow: hidden;
  margin-bottom: -64px;
  box-shadow: var(--shadow-l)
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.85)
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(20, 33, 61, .55), rgba(122, 42, 42, .35) 55%, rgba(184, 144, 46, .25));
  mix-blend-mode: multiply
}

.detail-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 36px 36px 80px 36px;
  z-index: 2
}

.detail-hero-content .uni-seal {
  position: static;
  width: 52px;
  height: 52px;
  margin-bottom: 14px
}

.detail-hero-title {
  color: #fff
}

.detail-hero-title .uni-city {
  color: var(--gold-light)
}

.detail-hero-title h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.7rem)
}

.detail-card {
  position: relative;
  z-index: 3;
  max-width: 920px;
  margin: 0 auto;
  background: var(--paper-2);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  padding: 26px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

.detail-stat {
  text-align: center;
  flex: 1;
  min-width: 110px
}

.detail-stat b {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  color: var(--ink)
}

.detail-stat span {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--slate)
}

.detail-card .btn {
  flex-shrink: 0
}

/* ============ SUB NAV (detail pages) ============ */
.subnav {
  position: sticky;
  top: 90px;
  z-index: 120;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  margin-top: 80px
}

.subnav .container {
  display: flex;
  gap: 2rem;
  overflow-x: auto
}

.subnav a {
  padding: 16px 2px;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  color: var(--slate)
}

.subnav a.active {
  color: var(--ink);
  border-color: var(--gold)
}

/* ============ DETAIL CONTENT SECTIONS ============ */
.detail-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line-2);
  scroll-margin-top: 140px
}

.detail-section:last-of-type {
  border-bottom: none
}

.detail-body-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 48px;
  align-items: start
}

.fact-table {
  width: 100%;
  border-collapse: collapse
}

.fact-table tr {
  border-bottom: 1px solid var(--line-2)
}

.fact-table td {
  padding: 12px 4px;
  font-size: .9rem
}

.fact-table td:first-child {
  color: var(--slate);
  font-family: 'IBM Plex Mono', monospace;
  font-size: .74rem;
  text-transform: uppercase;
  width: 44%
}

.fact-table td:last-child {
  font-weight: 600;
  color: var(--ink)
}

.side-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px
}

.side-card h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--maroon);
  margin-bottom: 14px
}

.program-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.program-list-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 18px 20px
}

.program-list-item h4 {
  font-size: .98rem;
  color: var(--ink);
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 600
}

.program-list-item a {
  font-size: .78rem;
  color: var(--maroon);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px
}

.program-list-item a .icon {
  width: 12px;
  height: 12px
}

@media (max-width:640px) {
  .program-list {
    grid-template-columns: 1fr
  }
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px
}

@media (max-width:920px) {
  .related-grid {
    grid-template-columns: 1fr 1fr
  }

  .detail-body-grid {
    grid-template-columns: 1fr
  }
}

@media (max-width:640px) {
  .related-grid {
    grid-template-columns: 1fr
  }

  .detail-hero {
    height: 260px
  }

  .detail-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center
  }
}

.mini-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px
}

@media (prefers-reduced-motion: reduce) {
  .tilt {
    transform: none !important
  }

  .img-frame::before {
    animation: none
  }

  .load-in {
    animation: none;
    opacity: 1;
    transform: none
  }
}

/* ============ PROGRAM TABLE STYLES (V3 additions) ============ */
.program-tabs {
  display: inline-flex;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: var(--radius-m);
  margin-bottom: 24px;
}

.program-tabs .tab-btn {
  background: transparent;
  border: none;
  color: var(--slate);
  padding: 10px 20px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.program-tabs .tab-btn.active {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-s);
}

.program-pane {
  display: none;
}

.program-table-container {
  overflow-x: auto;
  margin-top: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
}

.program-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: .9rem;
}

.program-table th {
  background: var(--ink);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 16px 20px;
  border-bottom: none;
  white-space: nowrap;
}

.program-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-2);
  color: var(--charcoal);
  vertical-align: middle;
}

.program-table tr {
  transition: background-color 0.15s ease;
}

.program-table tr:nth-child(even) {
  background-color: rgba(20, 33, 61, 0.015);
}

.program-table tr:last-child td {
  border-bottom: none;
}

.program-table tr:hover {
  background-color: rgba(184, 144, 46, 0.04) !important;
}

.program-table td.code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .76rem;
  color: var(--slate);
  font-weight: 500;
}

.program-table td.score {
  font-weight: 700;
  color: var(--gold);
  font-size: 1.05rem;
}

.program-table td.rank {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.84rem;
}

.faculty-group {
  margin-bottom: 48px;
}

.faculty-group h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.45rem;
  color: var(--ink);
  margin-bottom: 14px;
}

/* ============ BADGE STYLES (V3 additions) ============ */
.puan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.puan-badge.say {
  background: rgba(244, 63, 94, 0.1);
  color: #e11d48;
  border: 1px solid rgba(244, 63, 94, 0.15);
}

.puan-badge.ea {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.puan-badge.soz {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.puan-badge.dil {
  background: rgba(168, 85, 247, 0.1);
  color: #9333ea;
  border: 1px solid rgba(168, 85, 247, 0.15);
}

.puan-badge.tyt {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.prog-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

.prog-badge.lang {
  background: rgba(20, 33, 61, 0.05);
  color: var(--ink);
  border: 1px solid rgba(20, 33, 61, 0.08);
}

.prog-badge.burs-100 {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.prog-badge.burs-50 {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.prog-badge.burs-25 {
  background: rgba(249, 115, 22, 0.1);
  color: #c2410c;
  border: 1px solid rgba(249, 115, 22, 0.15);
}

.prog-badge.ucretli {
  background: rgba(107, 114, 128, 0.1);
  color: #4b5563;
  border: 1px solid rgba(107, 114, 128, 0.15);
}

.prog-badge.devlet-ucretsiz {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

/* ============ SUBNAV TRANSITION ============ */
.subnav a {
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

/* ============ PROGRAM TABLE — MOBİL RESPONSIVE ============ */
/* 768px altında: Kod ve Süre sütunlarını gizle */
@media (max-width: 768px) {

  .program-table th:nth-child(1),
  .program-table td:nth-child(1),
  .program-table th:nth-child(4),
  .program-table td:nth-child(4) {
    display: none;
  }

  .program-table th,
  .program-table td {
    padding: 12px 14px;
    font-size: .82rem;
  }

  .program-table td.score {
    font-size: .95rem;
  }
}

/* 480px altında: Başarı Sırası sütununu da gizle */
@media (max-width: 480px) {

  .program-table th:nth-child(5),
  .program-table td:nth-child(5),
  .program-table th:nth-child(6),
  .program-table td:nth-child(6) {
    display: none;
  }

  .program-table th,
  .program-table td {
    padding: 10px 10px;
    font-size: .78rem;
  }

  .program-tabs {
    display: flex;
    flex-wrap: wrap;
  }

  .program-tabs .tab-btn {
    font-size: .78rem;
    padding: 8px 14px;
  }

  .faculty-group h3 {
    font-size: 1.15rem;
  }
}

/* ============ EMPTY STATE ============ */
#emptyState {
  animation: fadeIn .3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ BURS BADGE (kart içi) ============ */
.uni-meta span[style*="gold"] {
  font-size: .72rem;
  letter-spacing: .04em;
}