/* ============================================================
   TURKIYE SCHOLAR  —  Premium Turkish University Portal
   ============================================================ */

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

:root {
  --red:       #C8102E;
  --red-dark:  #8B0000;
  --red-light: #FF2040;
  --gold:      #D4A017;
  --gold-dark: #A07800;
  --cream:     #FDF8F0;
  --cream-2:   #F5EDE0;
  --ink:       #1A1410;
  --ink-2:     #3D2E20;
  --muted:     #7A6A58;
  --border:    #E8DDD0;
  --white:     #FFFFFF;

  --shadow-xs: 0 1px 4px rgba(0,0,0,.06);
  --shadow-sm: 0 2px 12px rgba(0,0,0,.08);
  --shadow-md: 0 6px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.13);
  --shadow-xl: 0 24px 64px rgba(0,0,0,.16);
  --glow-red:  0 6px 24px rgba(200,16,46,.22);
  --glow-gold: 0 4px 16px rgba(212,160,23,.28);

  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-full: 999px;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease:  cubic-bezier(.4, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; outline: none; font-family: var(--font-body); }
img { max-width: 100%; display: block; }

/* scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: 66px;
  background: var(--red);
  box-shadow: 0 2px 0 rgba(0,0,0,.12), 0 4px 20px rgba(139,0,0,.3);
  display: flex; align-items: center;
}

.nav-wrap {
  max-width: 1300px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; gap: 24px;
}

.nav-brand {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  color: white; flex-shrink: 0;
}

.nav-brand-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; letter-spacing: -1px;
  transition: background .2s;
}
.nav-brand:hover .nav-brand-icon { background: rgba(255,255,255,.25); }

.nav-brand-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.1; }
.nav-brand-sub  { font-size: 10.5px; opacity: .78; font-style: italic; }

.nav-links { display: flex; align-items: center; gap: 2px; }

.nav-btn {
  color: rgba(255,255,255,.88); padding: 7px 15px;
  border-radius: var(--r-sm); font-size: 14px; font-weight: 500;
  transition: background .18s, color .18s; background: none;
}
.nav-btn:hover { background: rgba(255,255,255,.18); color: white; }
.nav-btn.active { background: rgba(255,255,255,.22); color: white; font-weight: 600; }

.nav-apply {
  background: var(--gold); color: var(--ink) !important;
  font-weight: 700; padding: 8px 20px;
  border-radius: var(--r-full); margin-left: 8px;
  font-size: 13.5px; letter-spacing: .2px;
  box-shadow: 0 2px 8px rgba(212,160,23,.4);
  transition: all .18s var(--ease-spring);
}
.nav-apply:hover { background: #f0b820; transform: translateY(-1px); box-shadow: var(--glow-gold); }

.hamburger { display: none; background: none; color: white; font-size: 24px; padding: 4px 8px; border-radius: 6px; }
.hamburger:hover { background: rgba(255,255,255,.18); }

/* mobile menu */
.mob-menu {
  display: none; position: fixed; top: 66px; left: 0; right: 0; z-index: 899;
  background: var(--red-dark); padding: 10px 16px 16px;
  flex-direction: column; gap: 4px;
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
  border-top: 1px solid rgba(255,255,255,.1);
}
.mob-menu.open { display: flex; }
.mob-menu .nav-btn { padding: 12px 16px; border-radius: var(--r-md); color: rgba(255,255,255,.92); }
.mob-menu .nav-apply { margin: 6px 0 0; border-radius: var(--r-md); text-align: center; padding: 12px; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
main { padding-top: 66px; }

.hero {
  position: relative; overflow: hidden;
  min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  padding: 72px 24px 64px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(139,0,0,.6) 0%, transparent 70%),
    linear-gradient(160deg, #5c0010 0%, #8B0000 30%, #C8102E 65%, #a0001c 100%);
}

.hero-geo {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-geo::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212,160,23,.06) 0%, transparent 40%);
}
/* Arabesque star pattern */
.hero-geo::after {
  content: '';
  position: absolute; inset: 0; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='%23fff'%3E%3Cpath d='M60 18 L65 38 H86 L70 50 L76 70 L60 58 L44 70 L50 50 L34 38 H55Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
}

.hero-crescent {
  position: absolute; right: 3%; top: 50%; transform: translateY(-50%);
  pointer-events: none; opacity: .10;
}

.hero-inner {
  position: relative; z-index: 1; text-align: center;
  max-width: 780px; width: 100%;
}

.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(10px);
  color: rgba(255,255,255,.95); padding: 6px 18px; border-radius: var(--r-full);
  font-size: 12.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase;
  margin-bottom: 28px; border: 1px solid rgba(255,255,255,.22);
}
.hero-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 68px);
  color: white; font-weight: 700; line-height: 1.1;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.hero-title em {
  color: var(--gold); font-style: normal;
  background: linear-gradient(135deg, #F5C842, var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-sub {
  color: rgba(255,255,255,.82); font-size: 18px;
  max-width: 540px; margin: 0 auto 40px; line-height: 1.65;
}

/* Search bar */
.hero-search-wrap {
  background: white; border-radius: var(--r-full);
  display: flex; align-items: center;
  max-width: 580px; margin: 0 auto;
  box-shadow: 0 12px 48px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.1);
  padding: 6px;
}

.hero-search-icon { padding: 0 6px 0 14px; font-size: 18px; opacity: .5; flex-shrink: 0; }

.hero-search-input {
  flex: 1; padding: 12px 4px; font-size: 15px;
  border: none; outline: none; background: transparent;
  color: var(--ink); font-family: var(--font-body);
}
.hero-search-input::placeholder { color: #aaa; }

.hero-search-btn {
  background: var(--red); color: white;
  padding: 12px 24px; border-radius: var(--r-full);
  font-size: 14px; font-weight: 700; transition: all .2s;
  white-space: nowrap; flex-shrink: 0;
}
.hero-search-btn:hover { background: var(--red-dark); box-shadow: var(--glow-red); }

/* Quick filters */
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }

.hero-tag {
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.88);
  padding: 6px 16px; border-radius: var(--r-full); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .18s;
  border: 1px solid rgba(255,255,255,.2);
}
.hero-tag:hover { background: rgba(255,255,255,.24); color: white; border-color: rgba(255,255,255,.4); transform: translateY(-1px); }

/* ══════════════════════════════════════
   STATS STRIP
══════════════════════════════════════ */
.stats {
  background: var(--ink);
  padding: 0 28px;
}

.stats-grid {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr);
  divide: each;
}

.stat {
  padding: 28px 20px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.06);
  position: relative;
}
.stat:last-child { border-right: none; }

.stat-n {
  font-family: var(--font-display); font-size: 36px; font-weight: 700;
  color: var(--gold); display: block; line-height: 1; margin-bottom: 6px;
}
.stat-l { font-size: 12.5px; color: rgba(255,255,255,.55); font-weight: 500; letter-spacing: .3px; }

/* ══════════════════════════════════════
   SECTIONS
══════════════════════════════════════ */
.sec { padding: 88px 24px; }
.sec-alt { background: white; }
.sec-cream { background: var(--cream-2); }

.sec-inner { max-width: 1300px; margin: 0 auto; }

.sec-head { text-align: center; margin-bottom: 56px; }

.sec-eye {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--red); font-size: 11.5px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px;
}
.sec-eye::before, .sec-eye::after { content: ''; width: 32px; height: 2px; background: var(--gold); border-radius: 2px; }

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px); font-weight: 700;
  color: var(--ink); line-height: 1.2; margin-bottom: 14px;
}
.sec-sub { color: var(--muted); font-size: 17px; max-width: 520px; margin: 0 auto; line-height: 1.65; }

.divider { text-align: center; color: var(--gold); font-size: 18px; letter-spacing: 10px; opacity: .8; }

/* ══════════════════════════════════════
   WHY TURKEY
══════════════════════════════════════ */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

.why-card {
  background: white; border-radius: var(--r-lg); padding: 36px 28px 32px; text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all .25s var(--ease);
  position: relative; overflow: hidden;
}
.why-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.why-card:hover { box-shadow: var(--shadow-md), var(--glow-red); transform: translateY(-5px); border-color: transparent; }
.why-card:hover::after { transform: scaleX(1); }

.why-icon-wrap {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, #FFF0F3, #FFE4EA);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(200,16,46,.12);
}

.why-ttl { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.why-desc { color: var(--muted); font-size: 14px; line-height: 1.68; }

/* ══════════════════════════════════════
   UNIVERSITY CARDS
══════════════════════════════════════ */
.unis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }

.uni-card {
  background: white; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: all .25s var(--ease); cursor: pointer;
}
.uni-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: rgba(200,16,46,.15); }

.uni-card-top {
  height: 110px; display: flex; align-items: center; justify-content: center;
  position: relative;
}

.uni-card-logo {
  width: 72px; height: 72px; border-radius: 50%;
  background: white; box-shadow: 0 4px 20px rgba(0,0,0,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; border: 3px solid white;
  position: relative; z-index: 1;
}

.uni-card-city-badge {
  position: absolute; bottom: 8px; right: 10px;
  background: rgba(0,0,0,.35); color: white;
  font-size: 10.5px; font-weight: 600;
  padding: 2px 10px; border-radius: var(--r-full);
  backdrop-filter: blur(6px);
}

.uni-card-body {
  padding: 18px 20px 20px;
  border-top: 3px solid var(--red);
}

.uni-card-name {
  font-family: var(--font-display); font-size: 16.5px; font-weight: 700;
  color: var(--ink); margin-bottom: 6px; line-height: 1.3;
}
.uni-card-name-tr { font-size: 11.5px; color: var(--muted); font-style: italic; margin-bottom: 10px; }

.uni-card-desc {
  color: var(--muted); font-size: 13px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 16px;
}

.uni-card-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; border-top: 1px solid var(--border); padding-top: 14px;
}
.ust { text-align: center; }
.ust + .ust { border-left: 1px solid var(--border); }
.ust-n { font-weight: 800; font-size: 19px; color: var(--red); display: block; line-height: 1; }
.ust-l { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-top: 4px; }

/* ══════════════════════════════════════
   COURSE CARDS
══════════════════════════════════════ */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.cc {
  background: white; border-radius: var(--r-lg); padding: 0;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: all .22s var(--ease); cursor: pointer;
  display: flex; flex-direction: column; overflow: hidden;
}
.cc:hover { box-shadow: var(--shadow-md), var(--glow-red); transform: translateY(-3px); border-color: rgba(200,16,46,.2); }

.cc-head {
  padding: 20px 20px 16px;
  flex: 1;
}

.cc-meta-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 12px;
}

.cc-uni-tag { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.cc-uni-ico { width: 24px; height: 24px; border-radius: 50%; background: var(--cream-2); display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }

.cc-scholar-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: #E6FAF0; color: #0f7a45;
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-full);
  letter-spacing: .2px;
}

.cc-title {
  font-family: var(--font-display); font-size: 17.5px; font-weight: 700;
  color: var(--ink); margin-bottom: 10px; line-height: 1.3;
}

.cc-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 600; letter-spacing: .3px;
  white-space: nowrap;
}
.b-bsc  { background: #EBF3FF; color: #1455a4; }
.b-msc  { background: #E8F7F0; color: #0f6b3b; }
.b-phd  { background: #FFF7E0; color: #8a5d00; }
.b-voc  { background: #F4F4F4; color: #555; }
.b-en   { background: #EBF3FF; color: #1455a4; }
.b-tr   { background: #FFF0E8; color: #b04000; }
.b-bi        { background: #EEE8FF; color: #5428aa; }
.b-annual    { background: #E8F4FF; color: #1456a0; }
.b-full-prog { background: #FFF3E0; color: #8a4000; }

.cc-foot {
  padding: 14px 20px;
  background: var(--cream); border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}

.cc-price { }
.cc-price-label { font-size: 11px; color: var(--muted); line-height: 1; }
.cc-price-strike { font-size: 13px; text-decoration: line-through; color: var(--muted); margin: 1px 0; }
.cc-price-main { font-size: 21px; font-weight: 800; color: var(--red); line-height: 1; }
.cc-price-plain { font-size: 21px; font-weight: 800; color: var(--ink); line-height: 1; }
.cc-price-unit { font-size: 11px; color: var(--muted); font-weight: 400; }

.cc-apply {
  background: var(--red); color: white;
  padding: 9px 18px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 700;
  transition: all .18s var(--ease-spring);
  white-space: nowrap; flex-shrink: 0;
}
.cc-apply:hover { background: var(--red-dark); transform: scale(1.04); box-shadow: var(--glow-red); }

/* ══════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════ */
.pg-head {
  background: linear-gradient(145deg, var(--red-dark) 0%, var(--red) 100%);
  padding: 56px 24px 48px; text-align: center; position: relative; overflow: hidden;
}
.pg-head::before {
  content: '☽'; position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  font-size: 220px; opacity: .055; pointer-events: none; color: white;
}
.pg-head-eye { display: inline-block; color: rgba(255,255,255,.7); font-size: 18px; letter-spacing: 8px; margin-bottom: 14px; }
.pg-head-title { font-family: var(--font-display); font-size: clamp(28px,4vw,46px); font-weight: 700; color: white; margin-bottom: 10px; }
.pg-head-sub { font-size: 16px; color: rgba(255,255,255,.78); max-width: 480px; margin: 0 auto; }

/* ══════════════════════════════════════
   COURSES PAGE LAYOUT
══════════════════════════════════════ */
.courses-pg {
  max-width: 1300px; margin: 0 auto; padding: 40px 24px 88px;
  display: flex; gap: 28px; align-items: flex-start;
}

/* Sidebar */
.sidebar {
  width: 260px; flex-shrink: 0;
  background: white; border-radius: var(--r-lg); padding: 22px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  position: sticky; top: 82px;
}

.sb-head {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  color: var(--ink); margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 2px solid var(--red); display: flex; align-items: center; justify-content: space-between;
}
.sb-clear { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--red); cursor: pointer; }
.sb-clear:hover { text-decoration: underline; }

.fg { margin-bottom: 22px; }

.fg-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--ink-2); margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.fg-count {
  background: var(--red); color: white;
  font-size: 10px; font-weight: 700; padding: 1px 6px;
  border-radius: var(--r-full); letter-spacing: 0;
}

.fopt {
  display: flex; align-items: center; gap: 10px; padding: 6px 0;
  cursor: pointer; font-size: 14px; color: var(--ink); border-radius: 6px;
  transition: color .15s;
}
.fopt:hover { color: var(--red); }
.fopt input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--red); cursor: pointer; flex-shrink: 0; }

.toggle-row { display: flex; border: 1.5px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.tgl {
  flex: 1; padding: 7px 4px; font-size: 12.5px; font-weight: 600;
  background: white; color: var(--muted); transition: all .15s;
  text-align: center;
}
.tgl.on { background: var(--red); color: white; }

/* Main */
.courses-main { flex: 1; min-width: 0; }

.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; gap: 14px; flex-wrap: wrap;
}

.search-row {
  flex: 1; min-width: 200px; max-width: 380px;
  display: flex; align-items: center;
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--r-full); overflow: hidden;
  padding: 2px 4px 2px 16px; box-shadow: var(--shadow-xs);
  transition: border-color .18s, box-shadow .18s;
}
.search-row:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,.1); }

.search-row input {
  flex: 1; border: none; outline: none; font-size: 14px; color: var(--ink);
  background: transparent; padding: 8px 0; font-family: var(--font-body);
}
.search-row input::placeholder { color: #bbb; }
.search-row-btn { background: var(--red); color: white; padding: 7px 14px; border-radius: var(--r-full); font-size: 14px; }

.res-count { font-size: 14px; color: var(--muted); }
.res-count strong { color: var(--ink); font-weight: 700; }

/* ══════════════════════════════════════
   UNIVERSITY DETAIL
══════════════════════════════════════ */
.uni-pg { max-width: 1100px; margin: 40px auto; padding: 0 24px 88px; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 28px; flex-wrap: wrap; }
.breadcrumb a { color: var(--red); cursor: pointer; font-weight: 500; transition: opacity .15s; }
.breadcrumb a:hover { opacity: .75; text-decoration: underline; }
.bc-sep { color: var(--border); }

.uni-hero-card {
  border-radius: var(--r-xl); padding: 48px 52px;
  color: white; display: flex; align-items: center; gap: 40px;
  margin-bottom: 28px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.uni-hero-card::after {
  content: '☽'; position: absolute; right: 48px; top: 50%; transform: translateY(-50%);
  font-size: 180px; opacity: .08; pointer-events: none;
}

.uni-hero-logo {
  width: 100px; height: 100px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.2); display: flex; align-items: center;
  justify-content: center; font-size: 44px;
  border: 3px solid rgba(255,255,255,.4);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.uni-hero-name { font-family: var(--font-display); font-size: clamp(22px, 3.5vw, 36px); font-weight: 700; margin-bottom: 4px; }
.uni-hero-name-tr { font-style: italic; opacity: .78; margin-bottom: 16px; font-size: 15px; }
.uni-hero-meta { display: flex; gap: 22px; font-size: 14px; flex-wrap: wrap; opacity: .9; }
.uni-hero-meta span { display: flex; align-items: center; gap: 6px; }

.uni-about-card {
  background: white; border-radius: var(--r-lg); padding: 32px; margin-bottom: 36px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.uni-about-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.uni-about-card p { color: var(--ink-2); line-height: 1.8; font-size: 15px; }

/* ══════════════════════════════════════
   TABS
══════════════════════════════════════ */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 28px; gap: 0; overflow-x: auto; }

.tab {
  padding: 11px 22px; font-size: 14px; font-weight: 500;
  color: var(--muted); cursor: pointer; transition: all .18s;
  border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.on { color: var(--red); border-bottom-color: var(--red); font-weight: 700; }

.tab-count { margin-left: 5px; font-size: 11px; opacity: .65; }

/* ══════════════════════════════════════
   COURSE DETAIL
══════════════════════════════════════ */
.cd-pg { max-width: 900px; margin: 40px auto; padding: 0 24px 88px; }

.cd-card { background: white; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }

.cd-banner {
  background: linear-gradient(145deg, var(--red-dark), var(--red));
  padding: 52px 52px 44px; color: white; position: relative; overflow: hidden;
}
.cd-banner::after {
  content: '★ ☽ ★'; position: absolute; right: 48px; top: 50%; transform: translateY(-50%);
  font-size: 48px; opacity: .08; pointer-events: none; letter-spacing: 8px;
}
.cd-banner-uni { display: flex; align-items: center; gap: 10px; font-size: 14px; opacity: .88; margin-bottom: 16px; }
.cd-banner-uni span { cursor: pointer; }
.cd-banner-uni span:hover { text-decoration: underline; }
.cd-banner-title { font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px); font-weight: 700; margin-bottom: 18px; line-height: 1.2; }
.cd-banner-badges { display: flex; gap: 10px; flex-wrap: wrap; }

.cd-body { padding: 48px 52px; }

.cd-section { margin-bottom: 36px; }
.cd-section-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.cd-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.fee-cover-info { margin-bottom: 14px; }
.fee-cover-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 600;
}
.fee-cover-badge.annual   { background: #E8F4FF; color: #1456a0; border: 1.5px solid #b3d4ff; }
.fee-cover-badge.full     { background: #FFF3E0; color: #8a4000; border: 1.5px solid #ffd9a0; }
.fee-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.fee-box {
  border-radius: var(--r-md); padding: 28px; text-align: center;
  background: var(--cream); border: 1.5px solid var(--border);
}
.fee-box.scholar { background: #EAF9EF; border-color: #27ae60; }
.fee-box-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; }
.fee-box.scholar .fee-box-tag { color: #0f7a45; }
.fee-box-amt { font-family: var(--font-display); font-size: 38px; font-weight: 700; color: var(--ink); }
.fee-box.scholar .fee-box-amt { color: #0f7a45; }
.fee-box-note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.fee-box.dimmed { opacity: .5; }

.intake-row { display: flex; gap: 12px; flex-wrap: wrap; }
.intake-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500;
  background: var(--cream-2); color: var(--muted); border: 1px solid var(--border);
}
.intake-pill.yes { background: #EAF9EF; color: #0f7a45; border-color: #27ae60; }

.cd-desc-p { font-size: 16px; line-height: 1.82; color: var(--ink-2); }

.cd-cta-box {
  text-align: center; padding: 44px;
  background: linear-gradient(135deg, #FFF4F7, #FFF9EC);
  border-radius: var(--r-lg); border: 1.5px solid var(--border);
}
.cd-cta-icon { font-size: 28px; letter-spacing: 6px; margin-bottom: 14px; opacity: .7; }
.cd-cta-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.cd-cta-sub { color: var(--muted); font-size: 15px; margin-bottom: 24px; }

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px; border-radius: var(--r-full);
  font-size: 15px; font-weight: 700; transition: all .22s var(--ease-spring);
  cursor: pointer; border: none;
}
.btn-red { background: var(--red); color: white; }
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--glow-red); }
.btn-outline { background: transparent; color: var(--red); border: 2px solid var(--red); margin-left: 12px; }
.btn-outline:hover { background: var(--red); color: white; transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: var(--glow-gold); }
.btn-gold:hover { background: #e6b720; transform: translateY(-2px); }
.btn-sm { padding: 10px 24px; font-size: 13.5px; }

/* ══════════════════════════════════════
   MODAL
══════════════════════════════════════ */
.modal-bg {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,5,2,.68); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity .28s var(--ease);
}
.modal-bg.show { opacity: 1; pointer-events: all; }

.modal {
  background: white; border-radius: var(--r-xl);
  width: 100%; max-width: 620px; max-height: 90vh; overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(.98);
  transition: transform .28s var(--ease-spring);
  box-shadow: var(--shadow-xl);
}
.modal-bg.show .modal { transform: none; }

.modal-top {
  background: linear-gradient(145deg, var(--red-dark), var(--red));
  padding: 30px 32px 26px; color: white; position: relative;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.modal-x {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; transition: background .15s;
}
.modal-x:hover { background: rgba(255,255,255,.3); }
.modal-deco { font-size: 16px; letter-spacing: 6px; margin-bottom: 10px; opacity: .75; }
.modal-title { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin-bottom: 3px; }
.modal-sub { font-size: 13px; opacity: .82; }

.modal-body { padding: 26px 32px; }
.modal-foot { padding: 18px 32px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

.selected-prog {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--cream); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 22px;
}
.sp-label { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.sp-name  { font-weight: 700; font-size: 14px; color: var(--ink); }

.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.frow.wide { grid-template-columns: 1fr; }

.flabel { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.flabel .req { color: var(--red); }

.finput, .fselect {
  width: 100%; padding: 10px 13px; border-radius: var(--r-sm);
  border: 1.5px solid var(--border); font-size: 14px;
  color: var(--ink); font-family: var(--font-body);
  transition: border-color .18s, box-shadow .18s; background: white; outline: none;
}
.finput:focus, .fselect:focus {
  border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,.1);
}
.finput::placeholder { color: #c0b4a8; }

.btn-cancel-sm { background: var(--cream-2); color: var(--ink); padding: 10px 20px; border-radius: var(--r-full); font-size: 14px; font-weight: 600; transition: background .15s; }
.btn-cancel-sm:hover { background: var(--border); }
.btn-submit { background: var(--red); color: white; padding: 10px 28px; border-radius: var(--r-full); font-size: 14px; font-weight: 700; transition: all .18s; }
.btn-submit:hover { background: var(--red-dark); box-shadow: var(--glow-red); }

/* ══════════════════════════════════════
   SUCCESS STATE
══════════════════════════════════════ */
.success { text-align: center; padding: 48px 32px; }
.success-ico { width: 72px; height: 72px; background: #E6FAF0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 20px; }
.success-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.success-text { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 420px; margin: 0 auto 20px; }
.success-email { padding: 13px 18px; background: var(--cream); border-radius: var(--r-md); font-size: 13px; color: var(--ink-2); border: 1px solid var(--border); }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer { background: #110D08; color: rgba(255,255,255,.72); padding: 64px 24px 32px; }
.footer-inner { max-width: 1300px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 52px; }

.footer-brand-logo {
  display: flex; align-items: center; gap: 10px;
  color: white; font-family: var(--font-display); font-size: 20px; font-weight: 700;
  margin-bottom: 14px; cursor: pointer;
}
.fbl-icon { width: 38px; height: 38px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; letter-spacing: -1px; }
.footer-tagline { font-size: 14px; line-height: 1.68; color: rgba(255,255,255,.52); margin-bottom: 22px; }
.footer-social { display: flex; gap: 9px; }
.soc { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; transition: all .18s; font-weight: 700; }
.soc:hover { background: var(--red); color: white; transform: translateY(-2px); }

.footer-col-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.3px; color: white; margin-bottom: 18px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.55); transition: color .15s; cursor: pointer; }
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,.38);
}
.footer-bottom a { color: var(--gold); }

/* ══════════════════════════════════════
   MISC
══════════════════════════════════════ */
.empty { text-align: center; padding: 60px 24px; }
.empty-ico { font-size: 44px; margin-bottom: 14px; opacity: .6; }
.empty-title { font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.empty-sub { color: var(--muted); font-size: 14px; }

.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 2000;
  background: var(--ink); color: white; padding: 14px 20px;
  border-radius: var(--r-md); font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-xl); max-width: 300px;
  transform: translateY(70px); opacity: 0; transition: all .28s var(--ease-spring);
}
.toast.show { transform: translateY(0); opacity: 1; }

.spinner-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 100px 24px; gap: 16px; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--red); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid  { grid-template-columns: repeat(3,1fr); }
  .stat:nth-child(4), .stat:nth-child(5) { border-top: 1px solid rgba(255,255,255,.06); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero { padding: 56px 20px 52px; }
  .courses-pg { flex-direction: column; gap: 0; padding-top: 24px; }
  .sidebar { width: 100%; position: static; margin-bottom: 20px; }
  .frow { grid-template-columns: 1fr; }
  .fee-grid { grid-template-columns: 1fr; }
  .uni-hero-card { flex-direction: column; gap: 20px; padding: 32px; text-align: center; }
  .uni-hero-meta { justify-content: center; }
  .cd-banner { padding: 32px; }
  .cd-body { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .modal { border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 85vh; }
  .modal-bg { align-items: flex-end; padding: 0; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(5) { grid-column: 1/-1; border-right: none; }
}

@media (max-width: 480px) {
  .hero-search-wrap { border-radius: var(--r-lg); flex-direction: column; padding: 10px; gap: 6px; }
  .hero-search-btn { width: 100%; text-align: center; border-radius: var(--r-md); }
  .hero-search-icon { display: none; }
  .courses-grid { grid-template-columns: 1fr; }
  .unis-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
