/* =========================================================================
   Medical Thesis Topics — SEO landing pages (one per specialty × degree)
   Light, fast, crawlable. No React. Static HTML.
   ========================================================================= */

@import url("../colors_and_type.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper-50); }
body {
  font-family: var(--font-sans);
  color: var(--fg-2);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ── Skip-to-content (accessibility + SEO) ─────────────────────────────── */
.skip { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; top: 8px; z-index: 200; }

/* ── Top utility strip ─────────────────────────────────────────────────── */
.topstrip {
  background: var(--navy-900); color: var(--navy-200);
  font-size: 12.5px; padding: 9px 24px;
  display: flex; gap: 22px; align-items: center;
  flex-wrap: wrap;
}
.topstrip .live::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #3ddc97; box-shadow: 0 0 0 3px rgba(61,220,151,0.18);
  margin-right: 8px; vertical-align: middle;
}
.topstrip strong { color: #fff; font-weight: 500; }
.topstrip .ml-auto { margin-left: auto; }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-1);
  padding: 12px 24px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-serif-display); font-size: 19px; font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow: var(--elev-1);
}
.brand-text { line-height: 1.05; font-family: var(--font-serif-display); }
.brand-text .name { font-size: 17px; font-weight: 600; color: var(--navy-900); letter-spacing: -0.015em; white-space: nowrap; }
.brand-text .tag  { font-size: 10.5px; font-weight: 500; color: var(--fg-3); letter-spacing: 0.16em; text-transform: uppercase; margin-top: 3px; font-family: var(--font-sans); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--fg-1);
  text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--brand); }
.nav-cta {
  margin-left: auto;
  background: #25D366; color: #fff;
  padding: 10px 16px; border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: var(--elev-1);
  white-space: nowrap;
}
.nav-cta:hover { background: #1ebe5a; }

/* ── Breadcrumb ────────────────────────────────────────────────────────── */
.crumb {
  max-width: 1280px; margin: 0 auto; padding: 16px 24px 0;
  font-size: 12.5px; color: var(--fg-3);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.crumb a { color: inherit; text-decoration: none; }
.crumb a:hover { color: var(--brand); }
.crumb .sep { color: var(--fg-4); }
.crumb .here { color: var(--fg-1); font-weight: 500; }

/* ── Hero (compact, SEO-focused — H1 + sub + stat pills) ───────────────── */
.hero {
  max-width: 1280px; margin: 0 auto; padding: 24px 24px 28px;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--blue-50); color: var(--blue-700);
  border: 1px solid var(--blue-100);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-serif-display);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 500; line-height: 1.05; letter-spacing: -0.025em;
  margin: 0 0 12px; color: var(--fg-1);
  text-wrap: balance;
}
.hero h1 .deg { color: var(--brand); }
.hero .lead {
  font-size: 16.5px; color: var(--fg-2); max-width: 760px; line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}
.stats {
  margin-top: 22px;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.stat {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: #fff;
  border: 1px solid var(--border-1);
  border-radius: 12px;
  font-size: 13px; color: var(--fg-2);
}
.stat .n { font-family: var(--font-serif-display); font-size: 18px; font-weight: 600; color: var(--fg-1); }
.stat svg { color: var(--brand); }

/* ── Layout: main + sidebar ────────────────────────────────────────────── */
.layout {
  max-width: 1280px; margin: 0 auto; padding: 8px 24px 64px;
  display: grid; grid-template-columns: 1fr 340px; gap: 36px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 24px; padding-bottom: 96px; }
}

/* ── Title list ────────────────────────────────────────────────────────── */
.listhead {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 8px 0 14px; border-bottom: 1px solid var(--border-1);
  margin-bottom: 4px; flex-wrap: wrap; gap: 12px;
}
.listhead h2 {
  font-family: var(--font-serif-display);
  font-size: 22px; font-weight: 500; margin: 0; color: var(--fg-1);
  letter-spacing: -0.015em;
}
.listhead .count { font-size: 13px; color: var(--fg-3); }
.listhead .count strong { color: var(--fg-1); font-weight: 600; }

.tlist { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.titem {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 18px 4px 18px;
  border-bottom: 1px solid var(--border-1);
}
.titem:hover { background: rgba(247, 248, 250, 0.5); }
.titem .num {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--fg-3);
  padding-top: 4px;
}
.titem h3 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 15.5px; font-weight: 500;
  color: var(--fg-1); line-height: 1.45;
  text-wrap: pretty;
}
.tchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tchip {
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
}
.tchip.sub  { background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100); }
.tchip.des  { background: var(--paper-100); color: var(--fg-2); border: 1px solid var(--border-1); }
.tchip.type { background: var(--marigold-50); color: var(--marigold-600); border: 1px solid var(--marigold-100); }

/* Locked objective row */
.locked {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; margin: 4px 0 10px;
  background: var(--paper-50);
  border: 1px dashed var(--border-2);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--fg-3);
}
.locked .blur {
  flex: 1;
  background: linear-gradient(90deg, var(--paper-200) 0 30%, var(--paper-100) 50%, var(--paper-200) 100%);
  height: 12px; border-radius: 4px;
  filter: blur(2px);
  position: relative;
  overflow: hidden;
}
.locked .blur::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 30%, var(--paper-100) 50%, transparent 70%);
}
.locked-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.locked-label svg { color: var(--marigold-500); }

.tcta { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  border: 1px solid transparent;
  transition: all 140ms var(--ease-out);
  white-space: nowrap;
}
.btn.wa { background: #25D366; color: #fff; }
.btn.wa:hover { background: #1ebe5a; }
.btn.obj { background: #fff; color: var(--fg-1); border-color: var(--border-2); }
.btn.obj:hover { background: var(--paper-100); border-color: var(--brand); color: var(--brand); }
.btn svg { color: currentColor; }

/* ── Sidebar (sticky on desktop) ───────────────────────────────────────── */
.side {
  position: sticky; top: 84px;
  display: flex; flex-direction: column; gap: 16px;
}
@media (max-width: 900px) {
  .side { position: static; }
}
.card {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--elev-1);
}
.card h3 {
  font-family: var(--font-serif-display);
  font-size: 19px; font-weight: 500; margin: 0 0 6px;
  color: var(--fg-1); letter-spacing: -0.015em;
}
.card p { font-size: 13.5px; color: var(--fg-2); margin: 0 0 16px; line-height: 1.5; }
.wa-big {
  display: flex; align-items: center; gap: 12px;
  background: #25D366; color: #fff;
  padding: 14px 16px; border-radius: 12px;
  text-decoration: none;
  margin-bottom: 12px;
  box-shadow: var(--elev-1);
}
.wa-big .lbl { font-size: 11px; opacity: 0.85; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 2px; }
.wa-big .num { font-family: var(--font-serif-display); font-size: 20px; font-weight: 600; letter-spacing: 0.01em; }
.wa-big:hover { background: #1ebe5a; }

.lead-form { display: flex; flex-direction: column; gap: 10px; }
.lead-form label {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-3);
}
.lead-form .field {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-2);
  border-radius: 10px; padding: 4px 12px; background: #fff;
}
.lead-form .field .pre { font-size: 14px; color: var(--fg-2); font-weight: 500; }
.lead-form input[type="tel"] {
  flex: 1; border: none; outline: none;
  font: inherit; font-size: 15px; color: var(--fg-1);
  padding: 11px 0;
  background: transparent;
}
.lead-form .field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,95,142,0.12); }
.lead-form button {
  background: var(--brand); color: #fff;
  border: none; padding: 12px 16px; border-radius: 10px;
  font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer;
  box-shadow: var(--elev-1);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.lead-form button:hover { background: var(--blue-700); }
.fine { font-size: 11.5px; color: var(--fg-3); margin: 4px 0 0; }

.trust {
  display: grid; gap: 12px; padding: 18px 22px;
  background: var(--paper-100);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-1);
}
.trust-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--fg-2); }
.trust-item svg { flex-shrink: 0; color: #1bb55c; margin-top: 2px; }
.trust-item strong { color: var(--fg-1); font-weight: 600; }

/* ── Cross-links section (internal SEO) ────────────────────────────────── */
.xlinks {
  max-width: 1280px; margin: 24px auto 0; padding: 56px 24px 24px;
  border-top: 1px solid var(--border-1);
}
.xlinks h2 {
  font-family: var(--font-serif-display);
  font-size: 26px; font-weight: 500; margin: 0 0 8px;
  color: var(--fg-1); letter-spacing: -0.015em;
}
.xlinks .sub { font-size: 14px; color: var(--fg-2); margin: 0 0 24px; max-width: 720px; }
.xgroups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 900px) { .xgroups { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .xgroups { grid-template-columns: 1fr; } }
.xgroup h4 {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-3);
  margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border-1);
}
.xgroup ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.xgroup a {
  display: block; padding: 6px 0;
  font-size: 13.5px; color: var(--fg-1); text-decoration: none;
  border-radius: 4px;
}
.xgroup a:hover { color: var(--brand); }
.xgroup a.here { color: var(--brand); font-weight: 600; }
.xgroup a .badge { font-size: 11px; color: var(--fg-3); margin-left: 6px; font-weight: 400; }

/* ── FAQ block (SEO copy, optional below xlinks) ───────────────────────── */
.faq {
  max-width: 1280px; margin: 0 auto; padding: 32px 24px 64px;
}
.faq h2 {
  font-family: var(--font-serif-display);
  font-size: 26px; font-weight: 500; margin: 0 0 18px;
  color: var(--fg-1); letter-spacing: -0.015em;
}
.faq details {
  border-bottom: 1px solid var(--border-1);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer; list-style: none;
  font-size: 15.5px; font-weight: 500; color: var(--fg-1);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '＋'; color: var(--fg-3); font-weight: 400; font-size: 18px; }
.faq details[open] summary::after { content: '−'; }
.faq details p { font-size: 14px; color: var(--fg-2); margin: 12px 0 0; line-height: 1.6; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.foot {
  background: var(--navy-900); color: var(--navy-200);
  padding: 48px 24px 24px; font-size: 13.5px;
  margin-top: 32px;
}
.foot-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 900px) { .foot-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-inner { grid-template-columns: 1fr; } }
.foot h5 { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.foot a { color: var(--navy-200); text-decoration: none; display: block; padding: 4px 0; }
.foot a:hover { color: #fff; }
.foot .copy { max-width: 1280px; margin: 32px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 12px; color: var(--navy-300); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ── Mobile nav: hide desktop links, shrink top strip ─────────────────── */
@media (max-width: 767px) {
  /* Top strip: single compact row — keep only "24×7" + WhatsApp, drop email/hours */
  .topstrip { padding: 7px 14px; gap: 10px; font-size: 11.5px; flex-wrap: nowrap; }
  .topstrip > *:not(.live):not(.ml-auto) { display: none; }
  .topstrip .ml-auto { margin-left: auto; white-space: nowrap; }
  .topstrip .live { white-space: nowrap; }
  /* Nav: single row — icon-only brand + WhatsApp CTA */
  .nav { padding: 9px 14px; gap: 10px; flex-wrap: nowrap; }
  .nav-links { display: none; }
  .brand-text { display: none; }
  .nav-cta { margin-left: auto; padding: 9px 13px; font-size: 13px; flex-shrink: 0; }
  .hero { padding: 18px 14px 20px; }
  .hero h1 { font-size: clamp(24px, 7vw, 34px); }
  .hero .lead { font-size: 14.5px; }
  .layout { padding: 6px 14px 80px; }
  .titem { gap: 10px; }
  .titem h3 { font-size: 14.5px; }
  .btn { font-size: 12px; padding: 6px 12px; }
  .xlinks { padding: 32px 14px 24px; }
  .faq { padding: 20px 14px 48px; }
  .foot-inner { gap: 24px; }
}

/* ── Floating mobile WhatsApp ──────────────────────────────────────────── */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  background: #25D366; color: #fff;
  border-radius: 999px;
  padding: 14px 18px;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
  text-decoration: none;
}
.fab:hover { background: #1ebe5a; }
@media (min-width: 901px) { .fab { display: none; } }

/* ── Toasts ────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 92px; z-index: 200;
  background: var(--navy-900); color: #fff;
  padding: 12px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  box-shadow: var(--elev-3);
  opacity: 0; pointer-events: none;
  transition: opacity 220ms var(--ease-out);
}
.toast.show { opacity: 1; }
