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

:root {
  --primary: #e037ba;
  --primary-dark: #b51a93;
  --primary-light: #fdf0fa;
  --accent: #7c3aed;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .2s ease;
}

html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.4rem; font-weight: 800; color: var(--primary);
  letter-spacing: -.5px;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; font-weight: 900;
}
.nav-logo-img { height: 48px; width: auto; display: block; object-fit: contain; }
.nav-logo-img--footer { height: 38px; filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 18px; border-radius: 8px;
  font-size: .95rem; font-weight: 500; color: var(--text-muted);
  transition: var(--transition);
}
.nav-links a:hover { background: var(--primary-light); color: var(--primary); }
.nav-links a.active {
  background: var(--primary); color: #fff;
  box-shadow: 0 2px 8px rgba(26,86,219,.3);
}
.nav-cta {
  padding: 9px 22px; border-radius: 9px;
  background: var(--primary); color: #fff;
  font-size: .9rem; font-weight: 600;
  box-shadow: 0 2px 8px rgba(26,86,219,.25);
  transition: var(--transition);
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ===== HOME — HERO ===== */
.hero {
  background: linear-gradient(135deg, #4c1d95 0%, #e037ba 50%, #7c3aed 100%);
  color: #fff; padding: 90px 24px 80px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 780px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px; padding: 6px 16px; font-size: .82rem; font-weight: 600;
  margin-bottom: 24px; backdrop-filter: blur(8px);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: #f5d0fe; }
.hero p { font-size: clamp(.95rem, 2vw, 1.15rem); color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 36px; }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary {
  padding: 14px 32px; border-radius: 10px;
  background: #fff; color: var(--primary);
  font-weight: 700; font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transition: var(--transition);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.25); }
.btn-hero-outline {
  padding: 14px 32px; border-radius: 10px;
  border: 2px solid rgba(255,255,255,.5); color: #fff;
  font-weight: 600; font-size: 1rem;
  transition: var(--transition);
}
.btn-hero-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 28px 24px;
}
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat-item { text-align: center; padding: 16px; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: .82rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

/* ===== SECTION COMMONS ===== */
.section { padding: 72px 24px; }
.section-alt { background: var(--white); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: var(--text); margin-bottom: 12px; }
.section-header p { font-size: 1rem; color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.section-tag {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  font-size: .78rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 50px; margin-bottom: 12px;
}
.container { max-width: 1200px; margin: 0 auto; }

/* ===== FEATURES ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
}
.feature-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.fi-blue { background: var(--primary-light); }
.fi-green { background: #d1fae5; }
.fi-orange { background: #fef3c7; }
.fi-purple { background: #ede9fe; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

/* ===== FEATURED UNIVERSITIES ===== */
.uni-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px;
}
.uni-chip {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 20px 16px; text-align: center; transition: var(--transition); cursor: pointer;
}
.uni-chip:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(26,86,219,.12); transform: translateY(-2px); }
.uni-avatar {
  width: 50px; height: 50px; border-radius: 50%; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800; color: #fff; letter-spacing: -.5px;
}
.uni-chip span { font-size: .82rem; font-weight: 600; color: var(--text); line-height: 1.3; display: block; }

/* ===== HOW IT WORKS ===== */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; position: relative;
}
.step-card { text-align: center; padding: 28px 20px; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--primary);
  color: #fff; font-size: 1.2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(26,86,219,.3);
}
.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: .87rem; color: var(--text-muted); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff; padding: 64px 24px; text-align: center;
}
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.cta-banner p { font-size: 1rem; color: rgba(255,255,255,.85); margin-bottom: 32px; }
.btn-cta-white {
  padding: 14px 36px; border-radius: 10px;
  background: #fff; color: var(--primary); font-weight: 700; font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.2); transition: var(--transition);
  display: inline-block;
}
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.25); }

/* ===== FOOTER ===== */
.footer {
  background: #0f172a; color: rgba(255,255,255,.7);
  padding: 48px 24px 28px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.footer-brand .nav-logo { color: #fff; margin-bottom: 12px; font-size: 1.2rem; }
.footer-brand p { font-size: .87rem; line-height: 1.7; color: rgba(255,255,255,.55); max-width: 280px; }
.footer-col h4 { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col a { display: block; font-size: .87rem; margin-bottom: 8px; color: rgba(255,255,255,.55); transition: var(--transition); }
.footer-col a:hover { color: #fff; }
.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: .83rem;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; transition: var(--transition);
}
.social-links a:hover { background: var(--primary); color: #fff; }

/* ===== UNIVERSITY PAGE ===== */
.page-hero {
  background: linear-gradient(135deg, #4c1d95 0%, #e037ba 60%, #7c3aed 100%);
  color: #fff; padding: 52px 24px;
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.8); font-size: .95rem; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px; font-size: .82rem;
  color: rgba(255,255,255,.65); margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,.65); transition: var(--transition); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { font-size: .7rem; opacity: .5; }

/* ===== FILTERS ===== */
.filters-bar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 20px 24px; position: sticky; top: 64px; z-index: 50;
}
.filters-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.search-wrap {
  flex: 1; min-width: 220px; position: relative;
}
.search-wrap input {
  width: 100%; padding: 10px 16px 10px 40px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--text); background: var(--bg);
  transition: var(--transition);
}
.search-wrap input:focus { outline: none; border-color: var(--primary); background: #fff; }
.search-wrap .search-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: .95rem; pointer-events: none;
}
.filter-select {
  padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .87rem; color: var(--text); background: var(--bg);
  transition: var(--transition); cursor: pointer; min-width: 140px;
}
.filter-select:focus { outline: none; border-color: var(--primary); background: #fff; }
.filter-badge {
  background: var(--primary-light); color: var(--primary);
  font-size: .82rem; font-weight: 600; padding: 4px 12px; border-radius: 50px;
}
.results-info {
  max-width: 1200px; margin: 0 auto;
  padding: 16px 24px 0;
  font-size: .87rem; color: var(--text-muted);
}
.results-info strong { color: var(--text); }

/* ===== ACTIVE FILTERS ===== */
.active-filters {
  max-width: 1200px; margin: 0 auto;
  padding: 8px 24px 0;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.filter-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-light); color: var(--primary);
  font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 50px;
  cursor: pointer; transition: var(--transition);
}
.filter-tag:hover { background: #dbeafe; }
.filter-tag .remove { font-size: .7rem; }

/* ===== COURSES GRID ===== */
.courses-section { max-width: 1200px; margin: 0 auto; padding: 24px; }
.courses-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px;
}
.course-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: var(--transition); position: relative; overflow: hidden;
}
.course-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.course-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #c7d7f8; }
.card-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.card-avatar {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800; color: #fff; letter-spacing: -.3px; line-height: 1.2;
  text-align: center;
}
.card-uni { flex: 1; }
.card-uni-name { font-size: .82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.card-title { font-size: .97rem; font-weight: 700; color: var(--text); line-height: 1.4; }
.level-badge {
  font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 50px; flex-shrink: 0;
}
.level-pre-u { background: #fef3c7; color: #92400e; }
.level-diploma { background: #d1fae5; color: #065f46; }
.level-undergrad { background: var(--primary-light); color: var(--primary-dark); }
.level-postgrad { background: #ede9fe; color: #5b21b6; }
.level-cert { background: #fce7f3; color: #9d174d; }
.card-divider { height: 1px; background: var(--border); margin: 14px 0; }
.card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-bottom: 16px; }
.meta-item label { font-size: .74rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px; display: block; margin-bottom: 3px; }
.meta-item span { font-size: .88rem; font-weight: 600; color: var(--text); }
.meta-item.full { grid-column: 1/-1; }
.intake-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.intake-tag {
  font-size: .74rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: 50px; padding: 2px 9px; color: var(--text-muted); font-weight: 500;
}
.fee-value { color: var(--primary) !important; font-size: .97rem !important; }
.card-actions { display: flex; gap: 10px; }
.btn-apply {
  flex: 1; padding: 10px; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff;
  font-size: .88rem; font-weight: 600;
  transition: var(--transition);
}
.btn-apply:hover { background: var(--primary-dark); }
.btn-details {
  padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); color: var(--text-muted);
  font-size: .88rem; font-weight: 600; background: transparent;
  transition: var(--transition);
}
.btn-details:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 80px 24px; color: var(--text-muted); }
.empty-state .icon { font-size: 3.5rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: .9rem; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; padding: 40px 24px;
}
.pg-btn {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--text); font-size: .88rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.pg-btn:hover { border-color: var(--primary); color: var(--primary); }
.pg-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(26,86,219,.3); }
.pg-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links a:not(.active) { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .courses-grid { grid-template-columns: 1fr; }
  .filters-inner { gap: 8px; }
  .filter-select { min-width: 0; flex: 1; }
}
