:root {
  --primary: #0b1f4d;
  --secondary: #123c7c;
  --royal: #1f5fbf;
  --accent: #f5b700;
  --accent-soft: #fff3c4;
  --text: #172033;
  --muted: #667085;
  --light: #f7f9fc;
  --surface: #ffffff;
  --border: #dce5f2;
  --shadow: 0 18px 45px rgba(11, 31, 77, 0.12);
  --shadow-soft: 0 10px 30px rgba(11, 31, 77, 0.08);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1180px;
  --section: 92px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.topbar {
  background: linear-gradient(90deg, #f5b700, #ffe08a 55%, #f5b700);
  color: #16213a;
  font-size: 14px;
  font-weight: 800;
}

.topbar .container {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.topbar a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(11, 31, 77, 0.12);
  color: var(--primary);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220, 229, 242, 0.9);
  box-shadow: 0 10px 28px rgba(11, 31, 77, 0.05);
}

.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-text {
  display: block;
  color: var(--primary);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.brand-text span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.main-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: #33415c;
  font-size: 14px;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: #eef5ff;
  color: var(--secondary);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn::before {
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, var(--accent), #ffdc72);
  box-shadow: 0 12px 26px rgba(245, 183, 0, 0.3);
}

.btn-secondary {
  color: var(--surface);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 12px 26px rgba(11, 31, 77, 0.22);
}

.btn-outline {
  color: var(--surface);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-light {
  color: var(--primary);
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.nav-cta {
  min-height: 42px;
  padding: 10px 17px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--primary);
  cursor: pointer;
  place-items: center;
  box-shadow: var(--shadow-soft);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle span + span {
  margin-top: 5px;
}

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

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

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

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--surface);
  background: radial-gradient(circle at 84% 16%, rgba(31, 95, 191, 0.75), transparent 32%),
    linear-gradient(135deg, rgba(8, 24, 59, 0.98), rgba(18, 60, 124, 0.92));
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  transform: scale(1.02);
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 130px;
  background: linear-gradient(0deg, rgba(11, 31, 77, 0.35), transparent);
  pointer-events: none;
}

.hero .container,
.page-hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  min-height: 660px;
  padding: 86px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.page-hero {
  padding: 98px 0;
}

.page-hero .lead {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffe28b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  color: inherit;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  margin: 16px 0 18px;
  font-size: clamp(40px, 6.8vw, 74px);
}

h2 {
  color: var(--primary);
  font-size: clamp(28px, 4vw, 44px);
}

h3 {
  color: var(--primary);
  font-size: 21px;
}

p {
  margin: 0;
  color: var(--muted);
}

.hero p,
.page-hero p,
.dark p,
.cta-band p {
  color: rgba(255, 255, 255, 0.84);
}

.lead {
  font-size: 18px;
  max-width: 720px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-visual {
  position: relative;
}

.hero-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.35s ease;
}

.hero-card:hover img,
.feature-image:hover img,
.result-card:hover img,
.faculty-card:hover img {
  transform: scale(1.035);
}

.floating-badges {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--primary);
  background: #eef5ff;
  font-size: 12px;
  font-weight: 900;
}

.badge.gold,
.tag.gold {
  background: var(--accent-soft);
}

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

.stat {
  padding: 14px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--light);
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--primary);
  font-size: 23px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.section {
  padding: var(--section) 0;
}

.section.alt {
  background: linear-gradient(180deg, #f7f9fc, #eef4fb);
}

.section.dark {
  background: linear-gradient(135deg, var(--primary), #081833);
  color: var(--surface);
}

.section.dark h2,
.section.dark h3 {
  color: var(--surface);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 680px;
  margin-top: 12px;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  min-width: 0;
  height: 100%;
  padding: 26px;
  border: 1px solid rgba(220, 229, 242, 0.95);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(31, 95, 191, 0.28);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 10px;
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 15px;
  color: var(--primary);
  background: linear-gradient(135deg, var(--accent-soft), #ffffff);
  border: 1px solid rgba(245, 183, 0, 0.35);
  font-size: 13px;
  font-weight: 950;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  gap: 46px;
  align-items: center;
}

.feature-image {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--primary);
  box-shadow: var(--shadow);
}

.feature-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 24px 0 0;
}

.list li {
  position: relative;
  list-style: none;
  padding-left: 30px;
  color: var(--muted);
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
}

.program-card {
  position: relative;
  overflow: hidden;
}

.program-card::after {
  content: "";
  position: absolute;
  inset: auto 26px 0 26px;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--accent), var(--royal));
  pointer-events: none;
}

.process {
  counter-reset: step;
}

.process .card {
  position: relative;
  padding-top: 62px;
}

.process .card::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 22px;
  left: 24px;
  color: rgba(11, 31, 77, 0.16);
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: rgba(31, 95, 191, 0.22);
  pointer-events: none;
}

.timeline-step {
  position: relative;
  padding: 82px 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.timeline-step .dot {
  position: absolute;
  top: 16px;
  left: 18px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--surface);
  font-weight: 900;
  box-shadow: 0 0 0 8px #eef5ff;
}

.faculty-card,
.result-card,
.review-card {
  overflow: hidden;
  padding: 0;
}

.faculty-card img,
.result-card img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.faculty-card img {
  aspect-ratio: 4 / 5;
  object-position: center top;
}

.result-card img {
  aspect-ratio: 1 / 1;
}

.card-body {
  padding: 22px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.stars {
  color: var(--accent);
  font-size: 19px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.quote {
  font-size: 17px;
  color: #344054;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px;
  border-radius: var(--radius);
  color: var(--surface);
  background: radial-gradient(circle at 92% 20%, rgba(245, 183, 0, 0.26), transparent 28%),
    linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: var(--shadow);
}

.cta-band h2 {
  color: var(--surface);
}

.form {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.form label {
  display: grid;
  gap: 7px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 15px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form textarea {
  min-height: 130px;
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--royal);
  box-shadow: 0 0 0 4px rgba(31, 95, 191, 0.12);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.faq-question {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef5ff;
}

.faq-item.open .faq-question::after {
  content: "-";
}

.faq-answer {
  display: none;
  padding: 0 20px 20px;
}

.faq-item.open .faq-answer {
  display: block;
}

.map-placeholder {
  min-height: 340px;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1px dashed #9eb0cd;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eef5ff, #ffffff);
  color: var(--muted);
  text-align: center;
}

.footer {
  padding: 62px 0 24px;
  color: var(--surface);
  background: #06152d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.25fr;
  gap: 32px;
}

.footer h3 {
  margin-bottom: 16px;
  color: var(--surface);
  font-size: 18px;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.72);
}

.footer a {
  display: block;
  margin: 8px 0;
}

.footer a:hover {
  color: #ffe28b;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.social-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.copyright {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1200px) {
  .main-nav a {
    padding-inline: 8px;
    font-size: 13px;
  }
}

@media (max-width: 992px) {
  .nav-wrap {
    min-height: 76px;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav a {
    min-height: 46px;
    padding: 12px 14px;
    font-size: 15px;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-cta {
    display: none;
  }

  .hero-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline::before {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section: 64px;
  }

  .container {
    width: min(100% - 24px, var(--max));
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

  .brand-text {
    max-width: 190px;
    font-size: 14px;
  }

  .brand-text span {
    display: none;
  }

  .hero-grid,
  .split,
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid,
  .timeline,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding: 66px 0;
  }

  .page-hero {
    padding: 70px 0;
  }

  h1 {
    font-size: clamp(36px, 13vw, 52px);
  }

  .lead {
    font-size: 17px;
  }

  .section-head,
  .cta-band {
    display: grid;
    align-items: start;
  }

  .cta-band {
    padding: 30px 22px;
  }

  .section-head .btn,
  .cta-band .btn {
    width: 100%;
  }

  .actions .btn {
    flex: 1 1 190px;
  }
}

@media (max-width: 480px) {
  .topbar .container {
    flex-direction: column;
    gap: 5px;
    padding: 7px 0;
  }

  .nav-wrap {
    gap: 10px;
  }

  .brand-text {
    max-width: 160px;
  }

  .card {
    padding: 22px;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .actions {
    display: grid;
  }

  .actions .btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .container {
    width: min(100% - 20px, var(--max));
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand-text {
    max-width: 135px;
    font-size: 13px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }
}
