/* =========================================================
   UNPAZ Medical Admissions — MBBS Admissions 2027
   Shared styles + three design options (body.d1 / .d2 / .d3)
   ========================================================= */
:root {
  --royal: #0b2a6f;
  --royal-deep: #061846;
  --royal-mid: #1a47a8;
  --sky: #4fb3f0;
  --sky-soft: #eaf6fd;
  --gold: #f5c542;
  --gold-light: #ffe08a;
  --gold-deep: #c9950c;
  --muted: #5b6a86;
  --line: #e4eaf3;
  --wa: #25d366;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Outfit", "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  font-family: var(--body); line-height: 1.6;
  overflow-x: hidden; position: relative;
}
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }
svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.fill { fill: currentColor; stroke: none; width: 22px; height: 22px; }

/* ---------- Shared pieces ---------- */
.headline { font-family: var(--display); font-weight: 900; line-height: .95; letter-spacing: -.02em; }
.headline span { display: block; }

.logo { border-radius: 50%; }

.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); position: relative; flex: none; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { to { transform: scale(3); opacity: 0; } }

.uc-label {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}

.bar { height: 6px; border-radius: 6px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 40%; border-radius: inherit; background: linear-gradient(90deg, var(--sky), var(--gold)); animation: slide 2.2s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

.contact { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font-family: var(--body); font-size: 1.02rem; font-weight: 800; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:focus-visible, .email:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px rgba(37, 211, 102, .3); }

.email { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.email:hover { text-decoration: underline; }

.footer { padding: 18px 20px; text-align: center; font-size: .84rem; position: relative; z-index: 1; }
.footer p { margin: 2px 0; }

/* emails, notices */
.emails { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; }
.emails:empty, .contact:empty { display: none; }
.notices { width: 100%; display: grid; gap: 12px; margin-top: 24px; text-align: left; }
.notices[hidden] { display: none; }
.notice { padding: 16px 18px; border-radius: 16px; border-left: 4px solid var(--gold); }
.notice strong { display: block; font-size: 1.02rem; font-weight: 800; }
.notice p { margin-top: 4px; font-size: .95rem; line-height: 1.55; }
.d1 .notices { max-width: 680px; }
.d1 .notice { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-left: 4px solid var(--gold); }
.d1 .notice strong { color: var(--gold); }
.d1 .notice p { color: rgba(255,255,255,.85); }
.d2 .notice, .d3 .notice { background: var(--sky-soft); }
.d2 .notice strong, .d3 .notice strong { color: var(--royal); }
.d2 .notice p, .d3 .notice p { color: var(--muted); }
.noscript { text-align: center; padding: 16px; }

/* entrance */
.wrap > *, .left > *, .right-inner > * { animation: rise .8s var(--ease) both; }
.wrap > *:nth-child(2), .left > *:nth-child(2), .right-inner > *:nth-child(2) { animation-delay: .08s; }
.wrap > *:nth-child(3), .left > *:nth-child(3), .right-inner > *:nth-child(3) { animation-delay: .16s; }
.wrap > *:nth-child(4), .left > *:nth-child(4), .right-inner > *:nth-child(4) { animation-delay: .24s; }
.wrap > *:nth-child(5), .left > *:nth-child(5), .right-inner > *:nth-child(5) { animation-delay: .32s; }
.wrap > *:nth-child(6), .left > *:nth-child(6) { animation-delay: .4s; }
.wrap > *:nth-child(7), .left > *:nth-child(7) { animation-delay: .48s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* =========================================================
   DESIGN 1 — Royal night (index.html)
   ========================================================= */
.d1 { color: #fff; background: radial-gradient(110% 80% at 50% 0%, #1b4fb8 0%, var(--royal) 45%, var(--royal-deep) 100%); }
.d1 .bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.d1 .orb { position: absolute; border-radius: 50%; filter: blur(80px); animation: drift 16s ease-in-out infinite alternate; }
.d1 .o1 { width: 520px; height: 520px; background: var(--sky); opacity: .28; top: -200px; left: -160px; }
.d1 .o2 { width: 460px; height: 460px; background: var(--gold); opacity: .18; bottom: -200px; right: -140px; animation-duration: 20s; }
.d1 .grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 60px 60px; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 15%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 40%, #000 15%, transparent 70%); }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.1); } }

.d1 .wrap { position: relative; z-index: 1; flex: 1; width: min(900px, 100% - 40px); margin: 0 auto; padding: 48px 0 36px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.d1 .logo { width: clamp(140px, 18vw, 190px); height: auto; box-shadow: 0 0 0 8px rgba(255,255,255,.08), 0 20px 50px rgba(0,0,0,.35); }
.d1 .uni { margin-top: 20px; font-size: .82rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); }

.d1 .headline { margin-top: 22px; }
.d1 .h-top { font-size: clamp(2.2rem, 6.4vw, 4.6rem); color: #fff; }
.d1 .h-year {
  font-size: clamp(5.5rem, 19vw, 12rem); line-height: .9;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 30px rgba(245, 197, 66, .3));
}
.d1 .study { margin-top: 8px; display: inline-flex; align-items: center; gap: 14px; font-size: clamp(1.05rem, 2.2vw, 1.3rem); font-weight: 700; color: rgba(255,255,255,.92); }
.d1 .study::before, .d1 .study::after { content: ""; width: 36px; height: 2px; background: var(--gold); border-radius: 2px; }

.d1 .chips { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.d1 .chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.d1 .chips svg { width: 16px; height: 16px; color: var(--gold); stroke-width: 3; }

.d1 .uc { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.d1 .uc-label { color: var(--gold); background: rgba(245,197,66,.1); border: 1px solid rgba(245,197,66,.4); }
.d1 .bar { width: 220px; background: rgba(255,255,255,.12); }

.d1 .contact { margin-top: 28px; justify-content: center; }
.d1 .btn-call { background: var(--gold); color: var(--royal-deep); box-shadow: 0 10px 26px rgba(245,197,66,.35); }
.d1 .email { color: #fff; }
.d1 .email svg { color: var(--gold); }
.d1 .footer { color: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.08); }

/* =========================================================
   DESIGN 2 — Split panel (design-2.html)
   ========================================================= */
.d2 { color: var(--royal); background: #fff; }
.d2 .split { flex: 1; display: grid; grid-template-columns: 1fr 1fr; }
.d2 .left { padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 80px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.d2 .logo { width: clamp(130px, 14vw, 170px); height: auto; box-shadow: 0 14px 36px rgba(11,42,111,.18); }
.d2 .uni { margin-top: 18px; font-size: .82rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--royal); }
.d2 .uc-label { margin-top: 16px; color: var(--gold-deep); background: #fff8e1; border: 1px solid #f3dc8f; }
.d2 .dream { margin-top: 22px; font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.1; letter-spacing: -.01em; }
.d2 .dream em { font-style: normal; color: var(--sky); }
.d2 .desc { margin-top: 14px; max-width: 48ch; color: var(--muted); }
.d2 .contact { margin-top: 28px; }
.d2 .btn-call { background: var(--royal); color: #fff; box-shadow: 0 10px 24px rgba(11,42,111,.25); }
.d2 .email { color: var(--royal); }
.d2 .emails { align-items: flex-start; }
.d2 .email svg { color: var(--gold-deep); }

.d2 .right {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(155deg, var(--royal-mid) 0%, var(--royal) 45%, var(--royal-deep) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px);
}
.d2 .right::before { content: "2027"; position: absolute; right: -4%; bottom: -8%; font-family: var(--display); font-weight: 900; font-size: clamp(10rem, 24vw, 22rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.07); pointer-events: none; }
.d2 .right::after { content: ""; position: absolute; width: 380px; height: 380px; top: -140px; right: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(79,179,240,.35), transparent 70%); }
.d2 .ecg { position: absolute; left: 0; right: 0; top: 4%; height: 90px; opacity: .45; }
.d2 .ecg svg { width: 100%; height: 100%; }
.d2 .ecg polyline { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 900; stroke-dashoffset: 900; animation: ecg 3.2s linear infinite; }
@keyframes ecg { 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -900; } }
.d2 .right-inner { position: relative; z-index: 1; width: 100%; max-width: 480px; }
.d2 .kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); }
.d2 .kicker::before { content: ""; width: 30px; height: 2px; background: var(--gold); }
.d2 .headline { margin-top: 16px; }
.d2 .h-top { font-size: clamp(2.6rem, 5.2vw, 4.2rem); }
.d2 .h-year { font-size: clamp(5rem, 11vw, 9rem); color: var(--gold); line-height: .9; }
.d2 .study { margin-top: 14px; font-size: 1.2rem; font-weight: 700; color: rgba(255,255,255,.9); }
.d2 .list { margin-top: 26px; display: grid; gap: 12px; }
.d2 .list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: rgba(255,255,255,.92); }
.d2 .list svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--gold); color: var(--royal-deep); stroke-width: 3; }
.d2 .footer { color: var(--muted); border-top: 1px solid var(--line); }

/* =========================================================
   DESIGN 3 — Admission card (design-3.html)
   ========================================================= */
.d3 { color: var(--royal); background: linear-gradient(160deg, var(--sky-soft) 0%, #ffffff 45%, #fff6dc 100%); }
.d3 .bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.d3 .plus { position: absolute; font-family: var(--display); font-weight: 900; line-height: 1; animation: float 8s ease-in-out infinite; }
.d3 .p1 { font-size: 140px; color: rgba(79,179,240,.16); top: 6%; left: 6%; }
.d3 .p2 { font-size: 90px; color: rgba(245,197,66,.28); top: 18%; right: 9%; animation-delay: -2s; }
.d3 .p3 { font-size: 110px; color: rgba(11,42,111,.06); bottom: 10%; left: 12%; animation-delay: -4s; }
.d3 .p4 { font-size: 160px; color: rgba(79,179,240,.12); bottom: 4%; right: 5%; animation-delay: -6s; }
@keyframes float { 50% { transform: translateY(-16px) rotate(8deg); } }

.d3 .wrap { position: relative; z-index: 1; flex: 1; width: min(820px, 100% - 32px); margin: 0 auto; padding: 48px 0 36px; display: flex; align-items: center; justify-content: center; }
.d3 .card { width: 100%; background: #fff; border-radius: 32px; overflow: hidden; box-shadow: 0 30px 80px rgba(11,42,111,.16); }
.d3 .ribbon {
  position: relative; padding: 26px 24px 30px; text-align: center; color: #fff;
  background: linear-gradient(120deg, var(--royal-deep), var(--royal) 50%, var(--royal-mid));
}
.d3 .ribbon::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--sky), var(--gold), var(--sky)); background-size: 200% 100%; animation: shine 4s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }
.d3 .r-small { font-size: .78rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); }
.d3 .headline { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 18px; }
.d3 .h-top { font-size: clamp(2.1rem, 5.6vw, 3.6rem); }
.d3 .h-year { font-size: clamp(3rem, 9vw, 5.6rem); color: var(--gold); }

.d3 .card-body { padding: 34px clamp(22px, 5vw, 56px) 40px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.d3 .logo { width: clamp(140px, 20vw, 180px); height: auto; margin-top: -10px; box-shadow: 0 14px 36px rgba(11,42,111,.18); }
.d3 .uni { margin-top: 16px; font-size: .8rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.d3 .uc-title { margin-top: 14px; font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 4.4vw, 2.6rem); line-height: 1.1; }
.d3 .bar { width: 200px; margin-top: 16px; background: var(--line); }
.d3 .desc { margin-top: 16px; max-width: 54ch; color: var(--muted); }
.d3 .grid4 { margin-top: 24px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.d3 .grid4 li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--sky-soft); font-size: .94rem; font-weight: 700; transition: transform .3s var(--ease), background .3s; }
.d3 .grid4 li:hover { transform: translateY(-3px); background: #dcefFB; }
.d3 .grid4 svg { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--royal); color: var(--gold); stroke-width: 3; }
.d3 .contact { margin-top: 28px; justify-content: center; }
.d3 .btn-call { background: var(--royal); color: #fff; box-shadow: 0 10px 24px rgba(11,42,111,.25); }
.d3 .email { color: var(--royal); }
.d3 .email svg { color: var(--gold-deep); }
.d3 .footer { color: var(--muted); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .d2 .split { grid-template-columns: 1fr; }
  .d2 .right { text-align: center; }
  .d2 .ecg { display: none; }
  .d2 .right-inner { margin: 0 auto; }
  .d2 .kicker { justify-content: center; }
  .d2 .list { width: fit-content; margin-inline: auto; text-align: left; }
  .d2 .left { align-items: center; text-align: center; }
  .d2 .contact { justify-content: center; }
  .d2 .emails { align-items: center; }
}
@media (max-width: 560px) {
  .contact { width: 100%; }
  .btn { flex: 1 1 100%; }
  .email { font-size: .9rem; gap: 8px; }
  .d1 .chips li { font-size: .84rem; }
  .d1 .study::before, .d1 .study::after { width: 20px; }
  .d2 .list li { font-size: .92rem; text-align: left; }
  .d3 .grid4 { grid-template-columns: 1fr; }
  .d3 .card { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
