:root {
  --nxdt-primary: #0f766e;
  --nxdt-primary-dark: #115e59;
  --nxdt-navy: #0b1f4d;
  --nxdt-text: #1f2937;
  --nxdt-muted: #6b7280;
  --nxdt-border: #e5e7eb;
  --nxdt-bg: #f7fbfc;
  --nxdt-card: #ffffff;
}

.nxdt-template {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  font-family: inherit;
  color: var(--nxdt-text);
}

.nxdt-template * { box-sizing: border-box; }

.nxdt-hero {
  display: grid;
  grid-template-columns: 300px 1fr 280px;
  gap: 32px;
  align-items: center;
  padding: 44px 26px;
  background: linear-gradient(135deg, #ffffff 0%, #f3faf9 100%);
  border: 1px solid var(--nxdt-border);
  border-radius: 24px;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

.nxdt-doctor-photo, .nxdt-photo-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 22px;
  object-fit: cover;
  background: #e6f2f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
}

.nxdt-eyebrow {
  margin: 0 0 8px;
  color: var(--nxdt-primary);
  font-weight: 700;
  letter-spacing: .02em;
}

.nxdt-hero-info h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  color: var(--nxdt-navy);
  font-weight: 800;
}

.nxdt-hero-info h2 {
  margin: 0 0 16px;
  font-size: 22px;
  color: var(--nxdt-primary);
  font-weight: 750;
}

.nxdt-degree {
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--nxdt-text);
}

.nxdt-hero-meta {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--nxdt-text);
}

.nxdt-button-row, .nxdt-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nxdt-primary-btn,
.nxdt-secondary-btn,
.nxdt-outline-btn,
.nxdt-white-btn,
.nxdt-transparent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: 750;
  transition: .2s ease;
}

.nxdt-primary-btn {
  background: var(--nxdt-primary);
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(15, 118, 110, .25);
}

.nxdt-secondary-btn,
.nxdt-outline-btn {
  background: #fff;
  color: var(--nxdt-primary) !important;
  border: 1px solid var(--nxdt-primary);
}

.nxdt-primary-btn:hover { background: var(--nxdt-primary-dark); }
.nxdt-secondary-btn:hover, .nxdt-outline-btn:hover { background: #ecfdf5; }

.nxdt-booking-box {
  padding: 24px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--nxdt-border);
  border-radius: 16px;
}

.nxdt-booking-box h3 { margin: 0 0 10px; color: var(--nxdt-navy); }
.nxdt-booking-box p { color: var(--nxdt-text); margin-bottom: 14px; }
.nxdt-booking-box ul { padding-left: 0; list-style: none; margin: 0; display: grid; gap: 10px; }
.nxdt-booking-box li::before { content: '✓'; color: var(--nxdt-primary); margin-right: 8px; font-weight: 800; }

.nxdt-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 24px 0;
}

.nxdt-stat-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 16px;
  align-items: center;
  padding: 22px;
  background: var(--nxdt-card);
  border: 1px solid var(--nxdt-border);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.nxdt-stat-card span {
  grid-row: 1 / 3;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: #e7f7f5;
}

.nxdt-stat-card strong { color: var(--nxdt-navy); }
.nxdt-stat-card p { margin: 4px 0 0; color: var(--nxdt-text); font-size: 14px; }

.nxdt-section {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  margin: 18px 0;
}

.nxdt-content-card {
  padding: 28px;
  background: var(--nxdt-card);
  border: 1px solid var(--nxdt-border);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
}

.nxdt-section-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #e7f7f5;
  color: var(--nxdt-primary);
  font-size: 24px;
  font-weight: 800;
}

.nxdt-section h2 {
  margin: 0 0 12px;
  color: var(--nxdt-navy);
  font-size: 24px;
  line-height: 1.2;
}

.nxdt-richtext {
  line-height: 1.75;
}

.nxdt-richtext p:last-child { margin-bottom: 0; }

.nxdt-hospital-list { display: grid; gap: 16px; }

.nxdt-hospital-card {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--nxdt-border);
  border-radius: 14px;
  background: #fff;
}

.nxdt-hospital-card img, .nxdt-hospital-placeholder {
  width: 170px;
  height: 105px;
  object-fit: cover;
  border-radius: 10px;
  background: #eef7f6;
  display: grid;
  place-items: center;
  font-size: 42px;
}

.nxdt-hospital-info h3 { margin: 0 0 8px; color: var(--nxdt-primary); font-size: 20px; }
.nxdt-hospital-info p { margin: 8px 0 0; line-height: 1.6; }
.nxdt-mini-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--nxdt-muted); font-size: 13px; }

.nxdt-pill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.nxdt-pill {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 15px;
  border: 1px solid var(--nxdt-border);
  border-radius: 12px;
  background: #fff;
  color: var(--nxdt-text) !important;
  text-decoration: none !important;
  font-weight: 650;
  min-height: 58px;
}

.nxdt-pill:hover { border-color: var(--nxdt-primary); background: #f0fdfa; }
.nxdt-pill-icon { color: var(--nxdt-primary); font-weight: 900; }

.nxdt-cta {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 28px;
  margin: 28px 0 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f766e, #10a394);
  color: #fff;
  box-shadow: 0 18px 40px rgba(15, 118, 110, .22);
}

.nxdt-cta-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: grid;
  place-items: center;
  font-size: 32px;
}

.nxdt-cta h2 { margin: 0 0 6px; color: #fff; font-size: 26px; }
.nxdt-cta p { margin: 0; opacity: .94; }
.nxdt-white-btn { background: #fff; color: var(--nxdt-primary) !important; }
.nxdt-transparent-btn { border: 1px solid rgba(255,255,255,.78); color: #fff !important; }
.nxdt-transparent-btn:hover { background: rgba(255,255,255,.12); }

.nxdt-form-placeholder {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--nxdt-border);
  border-radius: 18px;
  margin-bottom: 28px;
}

.nxdt-form-placeholder h2 { margin: 0 0 10px; color: var(--nxdt-navy); }
.nxdt-muted { color: var(--nxdt-muted); }
.nxdt-safe-box {
  padding: 22px;
  background: #f8fafc;
  border: 1px solid var(--nxdt-border);
  border-radius: 14px;
}
.nxdt-safe-box ul { margin: 12px 0 0; padding-left: 18px; }

@media (max-width: 1024px) {
  .nxdt-hero { grid-template-columns: 260px 1fr; }
  .nxdt-booking-box { grid-column: 1 / -1; }
  .nxdt-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nxdt-hospital-card { grid-template-columns: 150px 1fr; }
  .nxdt-hospital-card .nxdt-outline-btn { grid-column: 2; width: fit-content; }
  .nxdt-pill-grid { grid-template-columns: repeat(2, 1fr); }
  .nxdt-cta { grid-template-columns: 70px 1fr; }
  .nxdt-cta-buttons { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .nxdt-template { padding: 0 14px; }
  .nxdt-hero, .nxdt-section, .nxdt-form-placeholder { grid-template-columns: 1fr; }
  .nxdt-hero { padding: 22px; gap: 22px; }
  .nxdt-stats-grid, .nxdt-pill-grid { grid-template-columns: 1fr; }
  .nxdt-hospital-card { grid-template-columns: 1fr; }
  .nxdt-hospital-card img, .nxdt-hospital-placeholder { width: 100%; height: 170px; }
  .nxdt-hospital-card .nxdt-outline-btn { grid-column: auto; width: 100%; }
  .nxdt-cta { grid-template-columns: 1fr; text-align: left; }
  .nxdt-cta-buttons a { width: 100%; }
}
