/* =======================================================================
   AdmitAbroad — design system
   Palette: deep navy + warm gold, serif display / clean sans body
   ======================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy-950: #080d1c;
  --navy-900: #0f1a35;
  --navy-800: #1f3260;
  --navy-700: #274176;
  --navy-600: #2f5190;
  --navy-500: #3f68ab;
  --navy-100: #dbe5f3;
  --navy-50: #f3f6fb;

  --gold-600: #b57116;
  --gold-500: #d6911e;
  --gold-400: #e6ac35;
  --gold-300: #ecc35d;
  --gold-100: #f9edc9;

  --green-600: #157347;
  --green-100: #d8f3e6;
  --red-600: #b3261e;
  --red-100: #fbe0de;
  --amber-600: #b5710f;
  --amber-100: #fdecc8;
  --purple-600: #6a3fb5;
  --purple-100: #ece3fb;
  --gray-600: #5b6473;
  --gray-100: #eef0f3;

  --ink: #16202f;
  --ink-soft: #4b5768;
  --paper: #fbfaf7;
  --line: #e4e1d8;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-soft: 0 10px 40px -14px rgba(8, 13, 28, 0.28);
  --shadow-lift: 0 18px 50px -18px rgba(8, 13, 28, 0.35);

  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .font-display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold-500); color: var(--navy-950); box-shadow: 0 8px 24px -8px rgba(214,145,30,.55); }
.btn-primary:hover { background: var(--gold-400); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-800); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.4); color: inherit; }
.btn-outline:hover { border-color: var(--gold-400); color: var(--gold-400); }
.btn-outline-dark { background: transparent; border-color: var(--navy-800); color: var(--navy-900); }
.btn-outline-dark:hover { background: var(--navy-900); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy-800); }
.btn-ghost:hover { background: var(--navy-50); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-whatsapp { background: #1fae56; color: #fff; }
.btn-whatsapp:hover { background: #179148; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Navbar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,247,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.25rem; color: var(--navy-950); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
  color: var(--gold-300); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; box-shadow: var(--shadow-soft);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--ink-soft); }
.nav-links a:hover, .nav-links a.active { color: var(--navy-950); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }
.avatar-pill { display:flex; align-items:center; gap:8px; padding:6px 14px 6px 6px; border-radius:999px; background:var(--navy-50); font-weight:600; font-size:.85rem; }
.avatar-circle { width: 30px; height: 30px; border-radius: 50%; background: var(--navy-900); color: var(--gold-300); display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 68px 0 0 0; background: #fff; flex-direction: column; padding: 24px; gap: 20px; align-items: flex-start; display: none; overflow-y:auto; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(ellipse at top left, var(--navy-800), var(--navy-950) 60%);
  color: #fff;
  overflow: hidden;
  padding: 96px 0 120px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.10) 1px, transparent 0);
  background-size: 26px 26px;
  opacity: .5;
}
.hero::after {
  content: '';
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,172,53,.35), transparent 70%);
  top: -180px; right: -140px; filter: blur(10px);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  color: var(--gold-300); background: rgba(230,172,53,.12); border: 1px solid rgba(230,172,53,.35);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.3rem, 4.3vw, 3.6rem); color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold-300); }
.hero p.lead { color: rgba(255,255,255,.78); font-size: 1.1rem; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-stats { display: flex; gap: 34px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat b { display: block; font-family: 'Fraunces', serif; font-size: 1.7rem; color: var(--gold-300); }
.hero-stat span { font-size: .82rem; color: rgba(255,255,255,.65); }

.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  padding: 26px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lift);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-14px);} }
.hero-card-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.hero-card-row:last-child { border-bottom: none; }
.hero-card-flag { width: 42px; height: 42px; border-radius: 10px; background: var(--navy-800); display:flex; align-items:center; justify-content:center; font-weight:700; color:var(--gold-300); }

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 80px; }
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: var(--gold-600); font-weight: 700; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 10px; display:block; }
.bg-navy { background: var(--navy-950); color: #fff; }
.bg-navy h2, .bg-navy .kicker { color: #fff; }
.bg-navy p { color: rgba(255,255,255,.7); }
.bg-tint { background: var(--navy-50); }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}
.feature-card { padding: 30px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.feature-icon { width: 50px; height: 50px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--navy-950); color: var(--gold-300); font-size: 1.3rem; margin-bottom: 18px; }

.uni-card { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease; display:flex; flex-direction:column; }
.uni-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.uni-cover { height: 160px; position: relative; background-size: cover; background-position: center; display:flex; align-items:flex-end; padding: 14px; }
.uni-cover::before { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(8,13,28,0) 40%, rgba(8,13,28,.75)); }
.uni-cover-badge { position: relative; z-index:1; background: rgba(255,255,255,.92); color: var(--navy-950); font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.uni-body { padding: 20px 22px 24px; flex:1; display:flex; flex-direction:column; }
.uni-body h3 { font-size: 1.12rem; margin-bottom: 4px; }
.uni-meta { font-size: .82rem; color: var(--ink-soft); margin-bottom: 14px; display:flex; align-items:center; gap:6px; }
.uni-tags { display:flex; flex-wrap:wrap; gap:8px; margin: 6px 0 18px; }
.tag { font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--navy-50); color: var(--navy-800); }
.uni-foot { margin-top: auto; display:flex; align-items:center; justify-content:space-between; padding-top: 14px; border-top: 1px dashed var(--line); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items:center; gap:6px; font-size: .74rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-blue { background: var(--navy-100); color: var(--navy-700); }
.badge-green { background: var(--green-100); color: var(--green-600); }
.badge-red { background: var(--red-100); color: var(--red-600); }
.badge-amber { background: var(--amber-100); color: var(--amber-600); }
.badge-purple { background: var(--purple-100); color: var(--purple-600); }
.badge-gold { background: var(--gold-100); color: var(--gold-600); }

/* ---------- Forms ---------- */
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--navy-900); }
.form-hint { font-size: .78rem; color: var(--ink-soft); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=tel], input[type=number], input[type=file], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid #d8d5cb;
  font-family: inherit; font-size: .93rem; background: #fff; color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(63,104,171,.18); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: auto; margin-top: 4px; }
.checkbox-row label { font-weight: 500; margin-bottom: 0; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 20px; border: 1px solid transparent; }
.alert-success { background: var(--green-100); color: var(--green-600); border-color: #b6e6cf; }
.alert-error { background: var(--red-100); color: var(--red-600); border-color: #f1c3c0; }
.alert-info { background: var(--navy-100); color: var(--navy-700); border-color: #c3d4ec; }
.alert-warn { background: var(--amber-100); color: var(--amber-600); border-color: #f2dca6; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: calc(100vh - 74px); display: flex; align-items: center; justify-content: center; background: var(--navy-50); padding: 60px 20px; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 18px; padding: 40px 36px; box-shadow: var(--shadow-lift); border: 1px solid var(--line); }
.auth-card h1 { font-size: 1.6rem; }

/* ---------- App shell (dashboard/admin) ---------- */
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 0px); }
.app-sidebar { background: var(--navy-950); color: #fff; padding: 26px 20px; position: sticky; top: 0; height: 100vh; overflow-y:auto; }
.app-sidebar .brand { color: #fff; margin-bottom: 30px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: rgba(255,255,255,.7); font-size: .89rem; font-weight: 500; margin-bottom: 4px; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.active { background: var(--gold-500); color: var(--navy-950); font-weight: 700; }
.side-nav .group-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.4); margin: 22px 14px 8px; }
.app-main { padding: 34px 40px; background: var(--paper); min-height: 100vh; }
.app-topbar { display:flex; align-items:center; justify-content:space-between; margin-bottom: 30px; flex-wrap:wrap; gap:14px; }
.app-topbar h1 { font-size: 1.55rem; margin: 0; }

@media (max-width: 940px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { position: relative; height: auto; }
  .app-main { padding: 24px; }
}

.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat-card .stat-num { font-family: 'Fraunces', serif; font-size: 1.9rem; color: var(--navy-950); }
.stat-card .stat-label { font-size: .82rem; color: var(--ink-soft); font-weight: 600; }

.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .89rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--navy-50); font-weight: 700; color: var(--navy-800); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: none; }
td.wrap, th.wrap { white-space: normal; }

/* ---------- Timeline (application tracking) ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content:''; position:absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 26px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -34px; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display:flex; align-items:center; justify-content:center; }
.timeline-item.done .timeline-dot { background: var(--navy-950); border-color: var(--navy-950); color: var(--gold-300); }
.timeline-item.current .timeline-dot { background: var(--gold-500); border-color: var(--gold-500); }
.timeline-item h4 { margin: 0 0 3px; font-size: .95rem; font-family: 'Inter'; font-weight: 700; }
.timeline-item p { margin: 0; font-size: .82rem; }

/* ---------- Progress steps (application wizard) ---------- */
.steps { display:flex; align-items:center; gap: 6px; margin-bottom: 36px; flex-wrap:wrap; }
.step { display:flex; align-items:center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.step-num { width: 26px; height:26px; border-radius:50%; background: var(--gray-100); display:flex; align-items:center; justify-content:center; font-size:.76rem; }
.step.active .step-num, .step.done .step-num { background: var(--navy-950); color: var(--gold-300); }
.step.active { color: var(--navy-950); }
.step-sep { width: 30px; height: 1px; background: var(--line); }

/* ---------- IELTS ---------- */
.ielts-hero { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color:#fff; border-radius: 22px; padding: 44px; position: relative; overflow:hidden; }
.test-timer { position: sticky; top: 74px; z-index: 30; background: var(--navy-950); color:#fff; padding: 12px 22px; border-radius: 999px; display:inline-flex; align-items:center; gap:10px; font-weight:700; font-variant-numeric: tabular-nums; box-shadow: var(--shadow-soft); }
.test-timer.warn { background: var(--red-600); }
.passage-box { background: var(--navy-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-height: 560px; overflow-y: auto; font-size: .95rem; line-height: 1.75; }
.question-block { padding: 18px 0; border-bottom: 1px solid var(--line); }
.question-block:last-child { border-bottom: none; }
.option-row { display:flex; align-items:center; gap:10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.option-row:hover { border-color: var(--navy-500); }
.option-row input { width:auto; margin:0; }
.word-count { font-size: .8rem; color: var(--ink-soft); text-align:right; }
.cue-card { background: var(--gold-100); border: 1px dashed var(--gold-500); border-radius: var(--radius); padding: 26px; }
.band-ring { width: 130px; height: 130px; border-radius: 50%; display:flex; align-items:center; justify-content:center; flex-direction:column; background: conic-gradient(var(--gold-500) calc(var(--pct,50) * 1%), var(--navy-100) 0); }
.band-ring-inner { width: 104px; height: 104px; border-radius: 50%; background: #fff; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.band-ring-inner b { font-family:'Fraunces',serif; font-size: 1.7rem; color: var(--navy-950); }
.band-ring-inner span { font-size: .68rem; color: var(--ink-soft); font-weight:700; text-transform:uppercase; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.72); padding: 64px 0 26px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; font-family:'Inter'; }
.site-footer a { color: rgba(255,255,255,.65); }
.site-footer a:hover { color: var(--gold-300); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; padding-top: 22px; font-size: .8rem; flex-wrap:wrap; gap:10px; }
.partner-badge { display:flex; align-items:center; gap:10px; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 12px 16px; margin-top: 14px; }

/* ---------- WhatsApp floating button ---------- */
.wa-float { position: fixed; bottom: 26px; right: 26px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display:flex; align-items:center; justify-content:center; font-size: 1.5rem; box-shadow: 0 12px 30px -8px rgba(0,0,0,.4); }
.wa-float:hover { background: #1fae56; }

/* ---------- Utility ---------- */
.flex { display:flex; } .items-center{align-items:center;} .justify-between{justify-content:space-between;} .gap-8{gap:8px;} .gap-12{gap:12px;} .gap-20{gap:20px;}
.mt-0{margin-top:0;} .mt-8{margin-top:8px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;} .mt-32{margin-top:32px;}
.mb-0{margin-bottom:0;} .mb-8{margin-bottom:8px;} .mb-16{margin-bottom:16px;} .mb-24{margin-bottom:24px;}
.text-center{text-align:center;} .text-sm{font-size:.85rem;} .text-muted{color:var(--ink-soft);}
.w-full{width:100%;}
.divider { height:1px; background: var(--line); margin: 26px 0; border:none; }
.pill-list { display:flex; flex-wrap:wrap; gap:10px; }
.empty-state { text-align:center; padding: 60px 20px; color: var(--ink-soft); }

@media print {
  .site-header, .site-footer, .wa-float, .no-print { display: none !important; }
  body { background: #fff; }
}
