/* ============ Design tokens ============ */
:root {
  --ink: #0f172a;
  --ink-soft: #4b5875;
  --ink-faint: #94a3b8;
  --paper: #ffffff;
  --paper-alt: #f5f7fb;
  --border: #e3e8f2;

  --navy-950: #0a1330;
  --navy-900: #101c3f;

  --brand: #3550a0;
  --brand-600: #2a4080;
  --brand-100: #e9edf9;
  --accent: #0c71c3;
  --gold: #e8a33d;
  --gold-100: #fdf3e2;

  --gradient: linear-gradient(135deg, #0c71c3 0%, #3550a0 55%, #280589 100%);
  --gradient-soft: linear-gradient(135deg, rgba(12, 113, 195, 0.12) 0%, rgba(53, 80, 160, 0.08) 100%);

  --font-head: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);

  --container: 1200px;
}

/* ============ Reset ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 12px 18px;
  border-radius: 0 0 8px 0; z-index: 1000;
}
.skip-link:focus { left: 0; }

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section { padding: 96px 0; }
.section-alt { background: var(--paper-alt); }
.section-tight { padding: 56px 0; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-600); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--brand);
  color: var(--brand-600);
}
.btn-outline:hover { background: var(--brand-100); }
.btn-light { background: #fff; color: var(--brand-600); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 30px; width: auto; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav > ul { display: flex; gap: 8px; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav a {
  display: block;
  font-size: 0.95rem; font-weight: 500; color: var(--ink-soft);
  padding: 10px 14px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav > ul > li > a:hover { color: var(--brand-600); background: var(--brand-100); }

.has-dropdown > a { display: flex; align-items: center; gap: 5px; }
.has-dropdown > a::after {
  content: ''; width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-top: -4px;
}
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 250px;
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; font-size: 0.92rem;
}
.dropdown a:hover { background: var(--paper-alt); }
.flag-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 110px;
  background: var(--navy-950);
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient);
  opacity: 0.94;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.14) 0%, transparent 45%);
}

/* Per-market hero tint: same dark gradient shape/contrast as the default,
   just that market's flag colour worked into the starting stop — keeps the
   site's brand cohesion while giving each market page its own identity. */
.hero-tint-brazil::before    { background: linear-gradient(135deg, #0a9257 0%, #3550a0 62%, #1a1f4a 100%); }
.hero-tint-indonesia::before { background: linear-gradient(135deg, #c92a3c 0%, #3550a0 62%, #1a1f4a 100%); }
.hero-tint-india::before     { background: linear-gradient(135deg, #e08a2e 0%, #3550a0 62%, #1a1f4a 100%); }
.hero-tint-vietnam::before   { background: linear-gradient(135deg, #d1432a 0%, #3550a0 62%, #1a1f4a 100%); }
.hero-tint-nigeria::before   { background: linear-gradient(135deg, #159e46 0%, #3550a0 62%, #1a1f4a 100%); }
.hero-tint-colombia::before  { background: linear-gradient(135deg, #c99a1f 0%, #3550a0 62%, #1a1f4a 100%); }
.hero-tint-peru::before      { background: linear-gradient(135deg, #b52145 0%, #3550a0 62%, #1a1f4a 100%); }
.hero-inner { position: relative; max-width: 760px; }
.hero .eyebrow { color: #bcd6f7; }
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 20px;
}

/* Homepage hero only: shift the text column left instead of centering it,
   so it reads clearly against the photo's darker left side (see
   .hero-photo's overlay gradient) rather than floating mid-frame. Country
   pages keep the default centered hero-inner treatment. */
@media (min-width: 769px) {
  .hero-photo .hero-inner { margin-left: clamp(24px, 4vw, 80px); }
}
.hero-sub {
  color: #e2e9f7;
  font-size: 1.12rem;
  max-width: 620px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.hero .btn-ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.hero .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.hero-photo {
  background: linear-gradient(90deg, rgba(10, 15, 35, 0.9) 0%, rgba(10, 15, 35, 0.72) 32%, rgba(10, 15, 35, 0.3) 62%, rgba(10, 15, 35, 0.05) 88%), url('../images/study-in-usa-hero.jpg') center 22% / cover no-repeat;
}
.hero-photo::before { content: none; }

.hero-small { padding: 64px 0 78px; }
.hero-small h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.hero-small .hero-sub { margin-bottom: 0; }
.hero-small .hero-cta { margin-top: 26px; }
.hero-crumb { color: #bcd6f7; font-size: 0.9rem; margin-bottom: 10px; }
.hero-crumb a:hover { text-decoration: underline; }

/* ============ Feature icon row ============ */
.feature-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.feature-row.count-3 { grid-template-columns: repeat(3, 1fr); }
.feature-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
  text-align: center;
}
.feature-item p { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.feature-icon-duo {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.feature-icon-duo svg { width: 100%; height: 100%; }

/* ============ Market cards ============ */
.markets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
/* Center a lone card left over on the final row (e.g. 7 cards in 3 columns) */
.markets-grid > .market-card:last-child:nth-child(3n+1) { grid-column: 2; }
.market-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column;
}
.market-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.market-thumb { height: 168px; position: relative; overflow: hidden; }
.market-thumb img { width: 100%; height: 100%; object-fit: cover; }
.market-flagbar { height: 5px; display: flex; }
.market-flagbar span { flex: 1; }
.market-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.market-native { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin-bottom: 6px; }
.market-body h3 { font-size: 1.15rem; margin-bottom: 10px; }
.market-body p { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 18px; flex: 1; }
.market-link { font-weight: 700; font-size: 0.9rem; color: var(--brand-600); display: inline-flex; align-items: center; gap: 6px; }
.market-link::after { content: '\2192'; transition: transform 0.15s ease; }
.market-card:hover .market-link::after { transform: translateX(3px); }

/* ============ Stat pills ============ */
.stat-row { display: flex; flex-wrap: wrap; gap: 18px; margin: 36px 0; }
.stat-pill {
  flex: 1; min-width: 240px;
  background: var(--gold-100); border: 1px solid rgba(232,163,61,0.35);
  border-radius: var(--radius-md); padding: 20px 22px;
}
.stat-pill strong { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--brand-600); margin-bottom: 4px; }
.stat-pill span { font-size: 0.88rem; color: var(--ink-soft); }

/* ============ Logo strip / trust ============ */
.logo-strip-section { padding: 60px 0; }
.client-logo-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.client-logo {
  display: flex; align-items: center; justify-content: center;
  height: 108px; padding: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.client-logo img {
  max-height: 70px; max-width: 100%; width: auto; height: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.client-logo:hover img { transform: scale(1.04); }

/* ============ Testimonial ============ */
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.testimonial {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.testimonial p { font-size: 1rem; color: var(--ink); line-height: 1.6; margin-bottom: 18px; }
.testimonial p::before { content: '\201C'; color: var(--accent); }
.testimonial p::after { content: '\201D'; color: var(--accent); }
.testimonial footer strong { display: block; color: var(--ink); font-size: 0.92rem; }
.testimonial footer span { color: var(--ink-faint); font-size: 0.85rem; }

/* ============ About / split ============ */
.split-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center;
}
.split-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.split-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 18px; }
.split-copy p { color: var(--ink-soft); margin-bottom: 16px; }
.split-copy .btn { margin-top: 8px; }
.btn-linkedin {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 10px; margin-top: 8px;
  background: #0a66c2; box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-linkedin svg { width: 26px; height: 26px; fill: #fff; }
.btn-linkedin:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.social-icon-light:hover svg { fill: #fff; }

/* ============ Site + social preview cards ============ */
.site-social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 16px; }
.site-social-card {
  position: relative; display: block; height: 210px;
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.site-social-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.site-social-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.site-social-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(8, 14, 30, 0.88) 0%, rgba(8, 14, 30, 0) 100%);
  color: #fff; padding: 22px 14px 10px; font-size: 0.8rem; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.site-social-label svg { width: 15px; height: 15px; flex-shrink: 0; fill: #fff; }
.site-social-label svg.icon-globe { fill: none; stroke: #fff; stroke-width: 1.6; }
.site-social-label .label-text {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}

.instagram-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; border: 1px solid var(--border); border-radius: 999px;
  background: #fff; transition: border-color 0.15s ease, transform 0.15s ease;
}
.instagram-badge:hover { border-color: var(--brand); transform: translateY(-2px); }
.instagram-badge img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.instagram-badge span { font-size: 0.88rem; font-weight: 600; color: var(--ink); }

/* ============ Timeline ============ */
.timeline { position: relative; padding-left: 32px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 32px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: ''; position: absolute; left: -39px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gradient); box-shadow: 0 0 0 4px var(--brand-100);
}
.timeline-year { font-family: var(--font-head); font-weight: 800; color: var(--accent); font-size: 0.95rem; margin-bottom: 4px; display: block; }
.timeline-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.timeline-item p { color: var(--ink-soft); font-size: 0.92rem; }

/* ============ FAQ ============ */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px; font-weight: 600; font-size: 1.02rem;
  color: var(--ink); gap: 20px;
}
.faq-icon { width: 20px; height: 20px; flex-shrink: 0; position: relative; margin-left: 16px; }
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; background: var(--brand);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; transition: transform 0.2s ease; }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease, padding 0.25s ease; padding: 0 4px; }
.faq-a p { color: var(--ink-soft); padding-bottom: 20px; max-width: 680px; }
.faq-item.open .faq-a { max-height: 320px; }

/* ============ CTA banner ============ */
.cta-banner { background: var(--gradient); color: #fff; padding: 70px 0; }
.cta-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.cta-inner p { color: rgba(255,255,255,0.9); margin-bottom: 30px; font-size: 1.05rem; }

/* ============ Contact ============ */
.contact-cards { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin: 40px 0; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 32px 44px; min-width: 220px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.contact-card-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--brand-100);
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.contact-card-icon svg { width: 24px; height: 24px; stroke: var(--brand-600); fill: none; stroke-width: 1.8; }
.contact-card-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); }
.contact-card-value { font-size: 1.15rem; font-weight: 700; color: var(--ink); }

.next-steps {
  margin: 40px auto 0; max-width: 520px; text-align: left;
  padding: 22px 24px;
  background: var(--paper-alt); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.next-steps strong { display: block; margin-bottom: 12px; font-size: 0.95rem; }
.next-steps ul { display: flex; flex-direction: column; gap: 8px; }
.next-steps li { position: relative; padding-left: 20px; font-size: 0.9rem; color: var(--ink-soft); }
.next-steps li::before { content: '\2022'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ============ Legal / 404 ============ */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-updated { color: var(--ink-faint); font-size: 0.9rem; margin-bottom: 40px; }
.legal-content h2 { font-size: 1.2rem; margin: 36px 0 14px; }
.legal-content p, .legal-content li { color: var(--ink-soft); line-height: 1.75; margin-bottom: 14px; }
.legal-content ul { padding-left: 22px; margin-bottom: 14px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--brand-600); text-decoration: underline; }

.not-found-section { min-height: 55vh; display: flex; align-items: center; }
.not-found-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.not-found-inner .eyebrow { display: block; }
.not-found-inner h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 14px; }
.not-found-inner p { color: var(--ink-soft); margin-bottom: 28px; }

/* ============ Footer ============ */
.site-footer { background: var(--navy-950); color: #cbd5e1; padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand img { height: 28px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: #94a3b8; font-size: 0.92rem; margin-bottom: 6px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.social-icon {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.social-icon svg { width: 18px; height: 18px; fill: #fff; }
.social-icon:hover { background: var(--brand); transform: translateY(-2px); }
.footer-links h4 { color: #fff; font-size: 0.85rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; font-size: 0.92rem; transition: color 0.15s ease; }
.footer-links a:hover { color: #fff; }
.footer-flag { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.footer-bottom { padding: 24px 0 32px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom p { color: #64748b; font-size: 0.85rem; margin-bottom: 6px; }
.footer-bottom p:last-child { margin-bottom: 0; margin-top: 12px; }

/* ============ Reveal animation ============ */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .split-grid { grid-template-columns: 1fr; }
  .split-visual { max-width: 420px; margin: 0 auto; }
  .markets-grid { grid-template-columns: repeat(2, 1fr); }
  .markets-grid > .market-card:last-child:nth-child(3n+1) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: calc(50% - 13px);
  }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .feature-row, .feature-row.count-3 { grid-template-columns: repeat(2, 1fr); }
  .client-logo-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .site-social-row { grid-template-columns: 1fr; }
  .hero-photo {
    /* 72% horizontal keeps the photo centered on her rather than the
       image's geometric middle — she sits right-of-centre in the source
       photo, so a plain "center" crop on narrow screens cut off her
       backpack/arm on the right. */
    background: linear-gradient(rgba(10, 15, 35, 0.8), rgba(10, 15, 35, 0.8)), url('../images/study-in-usa-hero.jpg') 72% 22% / cover no-repeat;
    padding: 56px 0 60px;
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed; top: 78px; left: 0; right: 0; bottom: 0;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    padding: 20px; overflow-y: auto;
    display: block;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .has-dropdown > a::after { margin-left: auto; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; display: none; padding: 0 0 0 14px; min-width: 0;
  }
  .has-dropdown.open .dropdown { display: block; }
  .header-actions { gap: 10px; }
  .header-actions .btn-sm { padding: 8px 14px; font-size: 0.8rem; }
  .nav-toggle { display: flex; }
  .markets-grid { grid-template-columns: 1fr; }
  .markets-grid > .market-card:last-child:nth-child(3n+1) {
    grid-column: auto;
    justify-self: stretch;
    max-width: none;
  }
  .section { padding: 60px 0; }
  .client-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .stat-row { flex-direction: column; }
}
