/* ============ TOKENS ============ */
:root {
  --blue-deep: #011F58;
  --orange-primary: #F35E04;
  --white: #FFFFFF;
  --bg-light: #F5F7FA;
  --ink: #011F58;
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-light);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(1, 31, 88, 0.08);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark { display: flex; align-items: center; }

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--blue-deep);
  letter-spacing: -0.2px;
}

.logo-accent { color: var(--orange-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--blue-deep);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:not(.btn-apply):hover { color: var(--orange-primary); }

.btn-apply {
  background: var(--orange-primary);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-apply:hover {
  background: #D14F00;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.btn-apply-mobile {
  display: none;
  background: var(--orange-primary);
  color: var(--white);
  font-weight: 700;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background: var(--blue-deep);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ COURSE PILL STRIP (stable, manually slidable) ============ */
.course-strip {
  position: fixed;
  top: 58px;
  left: 0; right: 0;
  z-index: 999;
  background: var(--white);
  border-bottom: 1px solid rgba(1,31,88,0.08);
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.course-track {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 6px 4px;
}

.course-track::-webkit-scrollbar { display: none; }

.course-pill {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  color: var(--white);
  background: var(--blue-deep);
  padding: 5px 13px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill-online {
  background: var(--orange-primary);
}

/* ============ HERO BANNER (rectangle) ============ */
.hero {
  width: 100%;
  margin-top: 96px;
  padding: 0;
}

.hero-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 8;
  min-height: 220px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-bg.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(1,31,88,0.55) 0%, rgba(1,31,88,0.35) 40%, rgba(1,31,88,0.12) 70%, rgba(1,31,88,0.05) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 28px 26px;
  max-width: 560px;
}

.hero-content.slide-in {
  animation: heroTextIn 0.7s ease forwards;
}

@keyframes heroTextIn {
  from { opacity: 0; transform: translateX(-36px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(243, 94, 4, 0.9);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.6vw, 30px);
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.highlight-cr {
  font-size: clamp(24px, 3.6vw, 40px);
  font-weight: 800;
  color: var(--orange-primary);
}

.hero-sub-1 {
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 600;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.hero-sub-1 strong { color: var(--orange-primary); }

/* ============ TOP UNIVERSITIES/COLLEGES ============ */
.universities {
  background: var(--bg-light);
  padding: 36px 0 44px;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--blue-deep);
  margin-bottom: 16px;
}

.uni-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 4px 2px 12px;
}

.uni-row::-webkit-scrollbar { display: none; }

.uni-card {
  flex: 0 0 auto;
  width: 178px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(1,31,88,0.08);
  border: 1px solid rgba(1,31,88,0.06);
}

.uni-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--blue-deep);
}

.uni-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.uni-tag {
  position: absolute;
  top: 7px;
  right: 7px;
  background: var(--white);
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 8.5px;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.15);
}

.uni-logo-wrap {
  position: absolute;
  left: 9px;
  bottom: -14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(1,31,88,0.18);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uni-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uni-body {
  padding: 20px 10px 10px;
}

.uni-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  line-height: 1.25;
  color: var(--blue-deep);
  margin-bottom: 2px;
}

.uni-location {
  font-size: 9px;
  color: #6B7789;
  margin-bottom: 5px;
}

.uni-scholarship {
  font-size: 8.5px;
  font-weight: 700;
  color: #1BA37D;
  margin-bottom: 8px;
}

.choose-label {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #6B7789;
  margin-bottom: 5px;
}

.course-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.course-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 8.5px;
  color: var(--blue-deep);
  background: rgba(1,31,88,0.07);
  border: none;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.course-btn:hover { background: rgba(1,31,88,0.14); }

.course-btn.active {
  background: var(--blue-deep);
  color: var(--white);
}

.uni-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(1,31,88,0.08);
  padding-top: 8px;
  margin-bottom: 10px;
  gap: 4px;
}

.uni-fees {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fees-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: #1BA3E8;
  white-space: nowrap;
}

.fees-label {
  font-size: 8px;
  color: #6B7789;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uni-rating {
  font-size: 10px;
  font-weight: 600;
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.rating-src {
  font-size: 8px;
  font-weight: 500;
  color: #6B7789;
}

.uni-apply {
  display: block;
  text-align: center;
  background: var(--white);
  color: rgba(0,0,0,0.6);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10.5px;
  padding: 7px 0;
  border-radius: 7px;
  border: 1px solid rgba(0,0,0,0.15);
  transition: background 0.2s ease, color 0.2s ease;
}

.uni-apply:hover { background: rgba(0,0,0,0.04); color: rgba(0,0,0,0.8); }

/* Specialization popup (shared, positioned via JS) */
.spec-popup {
  position: absolute;
  z-index: 1200;
  display: none;
  flex-direction: column;
  gap: 3px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(1,31,88,0.22);
  border: 1px solid rgba(1,31,88,0.1);
  padding: 6px;
  max-width: 180px;
}

.spec-option {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 9.5px;
  color: var(--blue-deep);
  background: none;
  border: none;
  text-align: left;
  padding: 6px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s ease;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
}

.spec-option:hover { background: rgba(1,31,88,0.07); }

.spec-option .spec-fee {
  color: #1BA3E8;
  font-weight: 700;
}

@media (max-width: 560px) {
  .universities { padding: 26px 0 32px; }
  .uni-card { width: 158px; }
}
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 56px;
    right: -100%;
    height: calc(100vh - 56px);
    width: 240px;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 22px;
    gap: 18px;
    box-shadow: -6px 0 20px rgba(1,31,88,0.08);
    transition: right 0.3s ease;
  }

  .nav-links.active { right: 0; }

  .hamburger { display: flex; }
  .btn-apply-mobile { display: inline-block; }

  .btn-apply { width: 100%; text-align: center; }

  .course-strip { top: 52px; height: 34px; }
  .hero { margin-top: 86px; }
  .hero-banner { aspect-ratio: 4 / 3; min-height: 200px; }
  .hero-content { padding: 0 18px 18px; }
}

@media (max-width: 560px) {
  .nav-inner { padding: 10px 16px; }
  .logo-text { font-size: 16px; }
  .course-pill { font-size: 10px; padding: 4px 11px; }
  .hero-banner { aspect-ratio: 16 / 11; min-height: 190px; }
  .hero-content { padding: 0 16px 14px; }
  .hero-tag { font-size: 9px; padding: 3px 10px; margin-bottom: 8px; }
  .hero-headline { margin-bottom: 8px; }
  .btn-apply-mobile { font-size: 11px; padding: 6px 12px; }
}