/* Nidhya Medical Academy – nidhya.in */
:root {
  --brand: #6d28d9;
  --brand-2: #8b5cf6;
  --brand-dark: #4c1d95;
  --brand-soft: #f3efff;
  --accent: #f59e0b;
  --ink: #1c1530;
  --ink-2: #4a4360;
  --muted: #6e6885;
  --line: #e7e3f0;
  --bg: #ffffff;
  --bg-2: #faf9fd;
  --green: #16a34a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 21, 48, .06), 0 8px 24px rgba(28, 21, 48, .07);
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Top strip + header ---------- */
.topbar { background: var(--brand-dark); color: #e9e3ff; font-size: .85rem; }
.topbar .wrap { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .hide-sm { display: none; }
@media (min-width: 720px) { .topbar .hide-sm { display: inline; } }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; }
.brand:hover { text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; font-size: 1.05rem; }
.brand small { font-weight: 600; color: var(--muted); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }

.nav { display: none; }
.nav a { color: var(--ink-2); font-weight: 600; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.header .header-cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
@media (min-width: 960px) {
  .nav { display: flex; gap: 2px; }
  .header .header-cta { display: inline-flex; }
  .menu-btn { display: none; }
}
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.mobile-nav .btn { margin: 14px 16px; display: flex; }
@media (min-width: 960px) { .mobile-nav, .mobile-nav.open { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: .98rem; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(109, 40, 217, .28); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand-soft); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); }
.btn-wa { background: #25d366; color: #073b1c; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { padding: 9px 14px; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #a78bfa 0%, transparent 60%), linear-gradient(135deg, #5b21b6 0%, #7c3aed 55%, #8b5cf6 100%); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 64px; align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; padding-top: 80px; padding-bottom: 88px; } }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.15rem; color: #ede9fe; max-width: 36em; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 600; margin-bottom: 18px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .25); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 1.6rem; font-weight: 800; }
.hero-stats span { color: #ddd6fe; font-size: .9rem; }

.hero-card { background: #fff; color: var(--ink); border-radius: 20px; padding: 22px; box-shadow: 0 30px 60px rgba(30, 10, 70, .35); }
.hero-card h3 { display: flex; align-items: center; gap: 8px; }
.hero-card .badge { margin-left: auto; }
.hero-card ul { list-style: none; margin: 14px 0 18px; padding: 0; }
.hero-card li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.hero-card li:last-child { border-bottom: 0; }
.date-chip { flex: none; width: 52px; text-align: center; background: var(--brand-soft); color: var(--brand-dark); border-radius: 10px; padding: 4px 0; font-weight: 800; line-height: 1.1; }
.date-chip small { display: block; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; color: var(--brand); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p { color: var(--ink-2); margin-bottom: 0; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.icon svg { width: 24px; height: 24px; }

/* Exam chips */
.exam-list { display: flex; flex-wrap: wrap; gap: 10px; }
.exam { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; min-width: 150px; flex: 1 1 150px; }
.exam b { font-size: 1.02rem; }
.exam span { color: var(--muted); font-size: .85rem; }

/* Course cards */
.course { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.course:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(28, 21, 48, .06), 0 16px 36px rgba(28, 21, 48, .12); }
.course img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--brand-soft); }
.course-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-body p { color: var(--ink-2); font-size: .94rem; margin: 0; }
.course-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); }
.badge.green { background: #dcfce7; color: #166534; }
.badge.amber { background: #fef3c7; color: #92400e; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 8px; }
.price b { font-size: 1.4rem; font-weight: 800; }
.price s { color: var(--muted); font-size: .95rem; }
.price .off { color: var(--green); font-weight: 700; font-size: .85rem; }
.course .btn { margin-top: 10px; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Schedule table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 480px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
td.when { white-space: nowrap; font-weight: 600; }

/* App band */
.app-band { background: linear-gradient(135deg, #4c1d95, #6d28d9); color: #fff; border-radius: 24px; padding: 36px 24px; display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .app-band { grid-template-columns: 1.3fr .7fr; padding: 48px; } }
.app-band h2 { color: #fff; }
.app-band p { color: #ddd6fe; }
.app-band ul { margin: 0 0 22px; padding-left: 20px; color: #ede9fe; }
.app-band .logo-big { justify-self: center; width: 180px; height: 180px; border-radius: 40px; box-shadow: 0 24px 50px rgba(0, 0, 0, .3); }
.play-badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border-radius: 10px; padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .25); }
.play-badge:hover { text-decoration: none; background: #111; }
.play-badge svg { width: 26px; height: 26px; }
.play-badge span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 700; font-size: 1.1rem; }
.play-badge small { font-size: .65rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }

/* Community */
.social { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--ink); box-shadow: var(--shadow); }
.social:hover { text-decoration: none; border-color: var(--brand-2); }
.social .s-ico { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.social .s-ico svg { width: 24px; height: 24px; }
.social b { display: block; }
.social span { color: var(--muted); font-size: .88rem; }
.yt { background: #ff0000; } .ig { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); } .fb { background: #1877f2; }
.tg { background: #229ed9; } .wa { background: #25d366; } .xx { background: #111; } .th { background: #000; } .li { background: #0a66c2; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 16px; margin: 0; }

/* Page header (inner pages) */
.page-head { background: linear-gradient(135deg, #5b21b6, #7c3aed); color: #fff; padding: 48px 0 44px; }
.page-head h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-head p { color: #ede9fe; max-width: 40em; font-size: 1.08rem; margin: 0; }
.crumbs { font-size: .85rem; color: #ddd6fe; margin-bottom: 10px; }
.crumbs a { color: #fff; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon { margin: 0; flex: none; }
.contact-list b { display: block; }
.map { border: 0; width: 100%; height: 320px; border-radius: var(--radius); background: var(--brand-soft); }

.notice { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; border-radius: 12px; padding: 14px 16px; font-size: .95rem; }

/* CTA band */
.cta { text-align: center; }
.cta .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: #160f2a; color: #c4bdd8; padding: 56px 0 24px; font-size: .94rem; }
.footer a { color: #e9e3ff; }
.footer h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand small { color: #a79fc0; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--brand); }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: #8f87a8; font-size: .85rem; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.muted { color: var(--muted); }

/* ---------- Landing pages ---------- */
.show-xs { display: none; }
@media (max-width: 420px) { .hide-xs { display: none; } .show-xs { display: inline; } }
.lp-header .wrap { height: 62px; }
.coupon-bar { background: #fef3c7; color: #78350f; text-align: center; font-size: .92rem; padding: 8px 0; border-bottom: 1px solid #fde68a; }

.lp-hero { background: radial-gradient(900px 420px at 90% -10%, #a78bfa 0%, transparent 60%), linear-gradient(135deg, #4c1d95 0%, #6d28d9 55%, #7c3aed 100%); color: #fff; }
.lp-hero .wrap { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 44px; align-items: start; }
@media (min-width: 960px) { .lp-hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 48px; padding-top: 64px; padding-bottom: 72px; align-items: center; } }
.lp-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3rem); }
.lp-hero .lead { color: #ede9fe; font-size: 1.1rem; }
.lp-hero .ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.lp-hero .ticks li { display: flex; gap: 10px; align-items: flex-start; color: #f5f3ff; }
.lp-hero .ticks li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #4ade80; color: #052e16; font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.countdown { display: inline-block; margin-top: 20px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; padding: 10px 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.lp-price b { font-size: 2rem; font-weight: 800; }
.lp-price b small { font-size: .9rem; font-weight: 600; color: #fde68a; }
.lp-price s { color: #c4b5fd; }
.lp-price .off { background: #4ade80; color: #052e16; font-weight: 800; font-size: .8rem; padding: 3px 8px; border-radius: 999px; }

.lead-form, .lead-done { background: #fff; color: var(--ink); border-radius: 18px; padding: 22px; box-shadow: 0 30px 60px rgba(30, 10, 70, .35); display: grid; gap: 12px; }
.lead-form h3, .lead-done h3 { margin: 0; font-size: 1.3rem; }
.lead-form p { margin: 0; }
.lead-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.lead-form input, .lead-form select { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; min-height: 48px; }
.lead-form input:focus, .lead-form select:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(139, 92, 246, .18); }
.phone-input { display: flex; align-items: stretch; }
.phone-input span { display: flex; align-items: center; padding: 0 12px; border: 1.5px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; background: var(--bg-2); color: var(--muted); font-weight: 700; }
.phone-input input { border-radius: 0 10px 10px 0; }
.lead-form .btn { width: 100%; padding: 14px; font-size: 1.05rem; }
.lead-form .btn:disabled { opacity: .7; cursor: wait; }
.form-error { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 8px 12px; font-size: .9rem; }
.form-note { color: var(--muted); font-size: .8rem; text-align: center; }
.hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.lead-done .btn { width: 100%; }

.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; padding-top: 16px; padding-bottom: 16px; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.trust b { color: var(--brand); }

.inside { display: grid; gap: 12px; }
@media (min-width: 640px) { .inside { grid-template-columns: repeat(2, 1fr); } }
.inside li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.inside li b { display: block; }
.inside li span { color: var(--muted); font-size: .9rem; }
.inside ul { padding: 0; margin: 0; display: contents; }
.inside .num { flex: none; min-width: 52px; text-align: center; font-weight: 800; color: var(--brand); font-size: 1.15rem; }

.compare { display: grid; gap: 16px; }
@media (min-width: 860px) { .compare { grid-template-columns: repeat(4, 1fr); } }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.plan.best { border: 2px solid var(--brand); position: relative; }
.plan.best::before { content: "Most complete"; position: absolute; top: -12px; left: 16px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.plan ul { padding-left: 18px; margin: 4px 0 8px; color: var(--ink-2); font-size: .92rem; }
.plan .btn { margin-top: auto; }

.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(28, 21, 48, .08); }
.sticky-cta .btn { padding: 12px 10px; }
@media (min-width: 960px) { .sticky-cta { display: none; } }
@media (max-width: 959px) { body.lp { padding-bottom: 76px; } }
.lp-footer { padding: 24px 0; }
