:root {
  --hb-bg: #ffffff;
  --hb-surface: rgba(255, 255, 255, 0.78);
  --hb-surface-2: rgba(255, 255, 255, 0.92);
  --hb-text: #1f2a37;
  --hb-muted: rgba(31, 42, 55, 0.72);
  --hb-border: rgba(18, 28, 45, 0.12);

  --hb-primary: #7c3aed; /* violet */
  --hb-primary-2: #ec4899; /* pink */
  --hb-mint: #10b981; /* mint/green */
  --hb-lavender: #f7f0f5;
  --hb-mist: #e8f7f3;

  --hb-shadow: 0 18px 55px rgba(26, 17, 46, 0.12);
  --hb-shadow-2: 0 10px 28px rgba(26, 17, 46, 0.10);
}

html[data-theme="dark"] {
  --hb-bg: #070a12;
  --hb-surface: rgba(16, 22, 38, 0.55);
  --hb-surface-2: rgba(16, 22, 38, 0.80);
  --hb-text: #e8eef8;
  --hb-muted: rgba(232, 238, 248, 0.72);
  --hb-border: rgba(232, 238, 248, 0.14);

  --hb-primary: #a78bfa;
  --hb-primary-2: #f472b6;
  --hb-mint: #34d399;
  --hb-lavender: rgba(124, 58, 237, 0.10);
  --hb-mist: rgba(16, 185, 129, 0.10);

  --hb-shadow: 0 18px 55px rgba(0, 0, 0, 0.40);
  --hb-shadow-2: 0 10px 28px rgba(0, 0, 0, 0.32);

  /* Care mode: doctor photo / media strip — deep violet → navy (matches card header tone) */
  --hb-care-media-stack: radial-gradient(circle at 18% 10%, rgba(167, 139, 250, 0.16), transparent 55%),
    radial-gradient(circle at 90% 18%, rgba(236, 72, 153, 0.1), transparent 52%),
    linear-gradient(180deg, #2e2552 0%, #151a2b 100%);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  background: var(--hb-bg);
  color: var(--hb-text);
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

html,
body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

main {
  overflow-x: hidden;
  max-width: 100%;
}

img,
picture,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.hb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.42) 100%
  );
  border-bottom: 1px solid var(--hb-border);
}

html[data-theme="dark"] .hb-header {
  background: linear-gradient(
    180deg,
    rgba(8, 12, 24, 0.70) 0%,
    rgba(8, 12, 24, 0.35) 100%
  );
}

.hb-navbar {
  padding-top: 14px;
  padding-bottom: 14px;
}

.hb-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(124, 58, 237, 0.14);
  display: grid;
  place-items: center;
  box-shadow: var(--hb-shadow-2);
  position: relative;
  overflow: hidden;
}

.hb-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.06);
}

html[data-theme="dark"] .hb-logo {
  background: rgba(16, 22, 38, 0.75);
}

@media (max-width: 575px) {
  .hb-logo {
    width: 48px;
    height: 48px;
  }
}

.hb-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.hb-brand-name {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hb-brand-tag {
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--hb-muted);
}

html[data-theme="dark"] .navbar-brand {
  color: var(--hb-text);
}

html[data-theme="dark"] .hb-brand-name {
  color: #f0eaff;
}

.hb-nav .nav-link {
  font-weight: 600;
  color: var(--hb-muted);
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.hb-nav .nav-link:hover,
.hb-nav .nav-link:focus-visible {
  color: var(--hb-text);
  background: rgba(124, 58, 237, 0.10);
  transform: translateY(-1px);
}

.hb-nav .nav-link.hb-nav-active {
  color: var(--hb-text);
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(124, 58, 237, 0.18);
}

.hb-btn-primary {
  background: linear-gradient(135deg, var(--hb-primary) 0%, var(--hb-primary-2) 100%);
  border: none;
  color: white;
  box-shadow: 0 16px 35px rgba(124, 58, 237, 0.22);
}
.hb-btn-primary:hover {
  filter: brightness(1.03);
}

.hb-btn-soft {
  background: rgba(124, 58, 237, 0.10);
  border: 1px solid rgba(124, 58, 237, 0.18);
  color: var(--hb-text);
}

.hb-actions .hb-btn-soft {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 14px;
  padding-right: 14px;
}

.hb-theme-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(236, 72, 153, 0.25));
  border: 1px solid rgba(124, 58, 237, 0.18);
}

/* Hero */
.hb-hero {
  position: relative;
  padding: 68px 0 26px;
  overflow-x: hidden;
}

.hb-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hb-blob {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
}

.hb-blob-a {
  left: -220px;
  top: 80px;
  background: radial-gradient(circle at 30% 30%, rgba(236, 72, 153, 0.75), rgba(124, 58, 237, 0.50) 55%, rgba(16, 185, 129, 0.28) 90%);
}
.hb-blob-b {
  right: -260px;
  top: 10px;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle at 30% 30%, rgba(16, 185, 129, 0.45), rgba(124, 58, 237, 0.40) 50%, rgba(236, 72, 153, 0.25) 90%);
}

.hb-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(124, 58, 237, 0.18) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 40% 30%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 66%);
  opacity: 0.65;
}

.hb-hero-inner {
  position: relative;
  z-index: 1;
}

/* Mobile: wrap + center; md+: one line, scroll outer if needed so capsule fits full text */
.hb-pill-outer {
  max-width: 100%;
  text-align: center;
}

.hb-pill {
  display: inline-block;
  max-width: 100%;
  padding: 10px 16px;
  white-space: normal;
  text-align: center;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--hb-border);
  border-radius: 999px;
  color: var(--hb-muted);
  font-weight: 700;
  backdrop-filter: blur(12px);
}

@media (min-width: 768px) {
  .hb-pill-outer {
    text-align: start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .hb-pill {
    width: max-content;
    max-width: none;
    white-space: nowrap;
    text-align: left;
    line-height: 1.1;
  }
}

html[data-theme="dark"] .hb-pill {
  background: rgba(16, 22, 38, 0.55);
}

.hb-hero-title {
  margin-top: 14px;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hb-hero-subtitle {
  margin-top: 14px;
  font-size: 16px;
  color: var(--hb-muted);
  line-height: 1.7;
  max-width: 48ch;
}

.hb-hero-card {
  background: var(--hb-surface);
  border: 1px solid var(--hb-border);
  border-radius: 26px;
  box-shadow: var(--hb-shadow);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.hb-hero-image {
  height: 310px;
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.22), transparent 55%),
    radial-gradient(circle at 80% 25%, rgba(236, 72, 153, 0.20), transparent 60%),
    radial-gradient(circle at 55% 90%, rgba(16, 185, 129, 0.16), transparent 60%),
    linear-gradient(135deg, var(--hb-lavender), var(--hb-mist));
  display: grid;
  place-items: center;
  padding: 20px;
}

.hb-founder-hero {
  position: relative;
  overflow: hidden;
}

html[data-theme="dark"] .hb-founder-hero {
  background: var(--hb-care-media-stack);
}

.hb-founder-frame {
  width: min(320px, 92%);
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 26px 70px rgba(12, 18, 34, 0.22);
  box-sizing: border-box;
  padding: 14px;
}

html[data-theme="dark"] .hb-founder-frame {
  background: rgba(16, 22, 38, 0.30);
  border-color: rgba(232, 238, 248, 0.25);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
}

.hb-founder-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 40%);
  mix-blend-mode: screen;
  opacity: 0.55;
}

html[data-theme="dark"] .hb-founder-frame::before {
  background: linear-gradient(180deg, rgba(232, 238, 248, 0.16), rgba(232, 238, 248, 0) 45%);
  mix-blend-mode: normal;
  opacity: 0.7;
}

.hb-founder-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transform: scale(0.78);
  transform-origin: center;
}

.hb-hero-image-inner {
  text-align: center;
  max-width: 360px;
}

.hb-hero-image-icon {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--hb-border);
  display: inline-grid;
  place-items: center;
  box-shadow: 0 16px 45px rgba(124, 58, 237, 0.12);
  position: relative;
}

.hb-hero-image-icon::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.8), rgba(236, 72, 153, 0.7));
  opacity: 0.9;
}

.hb-hero-image-text {
  margin-top: 14px;
  font-weight: 800;
}

.hb-hero-image-note {
  display: block;
  margin-top: 6px;
  font-weight: 700;
  color: var(--hb-muted);
  font-size: 12.5px;
}

.hb-hero-card-footer {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-top: 1px solid var(--hb-border);
  background: rgba(255, 255, 255, 0.35);
}
html[data-theme="dark"] .hb-hero-card-footer {
  background: rgba(16, 22, 38, 0.40);
}

.hb-founder-footer {
  grid-column: 1 / -1;
  color: var(--hb-muted);
  font-weight: 800;
  line-height: 1.55;
}

.hb-mini-stat-value {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.hb-mini-stat-label {
  color: var(--hb-muted);
  font-weight: 700;
  font-size: 12.5px;
  margin-top: 4px;
}

/* Sections */
.hb-section {
  padding: 86px 0;
  position: relative;
}

.hb-section-alt {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.06), transparent 42%);
}

.hb-section-head {
  max-width: 720px;
  margin-bottom: 26px;
}

.hb-kicker {
  color: var(--hb-primary);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 10px;
}
.hb-section-title {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 950;
  letter-spacing: -0.03em;
}
.hb-section-sub {
  margin-top: 12px;
  color: var(--hb-muted);
  line-height: 1.7;
}

/* About features */
.hb-feature {
  height: 100%;
  padding: 18px 18px;
  border-radius: 22px;
  border: 1px solid var(--hb-border);
  background: var(--hb-surface);
  box-shadow: var(--hb-shadow-2);
  backdrop-filter: blur(12px);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}

.hb-feature > div:last-child {
  min-width: 0;
  flex: 1;
}
.hb-feature-icon {
  width: 78px;
  min-width: 78px;
  height: 40px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.10);
  border: 1px solid rgba(124, 58, 237, 0.18);
  display: grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
.hb-feature-title {
  font-weight: 900;
  font-size: 16px;
}
.hb-feature-desc {
  margin-top: 8px;
  color: var(--hb-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Cards */
.hb-cards {
  margin-top: 18px;
}

.hb-card {
  background: var(--hb-surface);
  border: 1px solid var(--hb-border);
  border-radius: 26px;
  padding: 20px;
  box-shadow: var(--hb-shadow-2);
  backdrop-filter: blur(14px);
  height: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.hb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(124, 58, 237, 0.18);
}

.hb-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hb-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(236, 72, 153, 0.10);
  border: 1px solid rgba(236, 72, 153, 0.18);
  font-size: 18px;
}
.hb-card-title {
  font-weight: 950;
  font-size: 18px;
  margin: 0;
}
.hb-card-desc {
  margin-top: 12px;
  color: var(--hb-muted);
  line-height: 1.7;
}
.hb-card-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hb-tag {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.10);
  border: 1px solid rgba(124, 58, 237, 0.15);
  color: var(--hb-text);
  font-weight: 800;
  font-size: 12px;
}

.hb-cta-row {
  display: flex;
  justify-content: center;
}
.hb-cta-box {
  width: 100%;
  max-width: 920px;
  padding: 20px 22px;
  border-radius: 26px;
  border: 1px solid var(--hb-border);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.11), rgba(16, 185, 129, 0.08));
  box-shadow: var(--hb-shadow-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.hb-cta-title {
  font-weight: 950;
  font-size: 18px;
  margin-bottom: 6px;
}
.hb-cta-sub {
  margin-bottom: 0;
  color: var(--hb-muted);
  line-height: 1.6;
}

/* Doctors */
.hb-doctor {
  border-radius: 26px;
  border: 1px solid var(--hb-border);
  background: var(--hb-surface);
  box-shadow: var(--hb-shadow-2);
  overflow: hidden;
  backdrop-filter: blur(14px);
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hb-doctor-media {
  position: relative;
  height: 176px;
  background: radial-gradient(circle at 20% 15%, rgba(124, 58, 237, 0.22), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.19), transparent 60%),
    linear-gradient(135deg, rgba(247, 240, 245, 1), rgba(232, 247, 243, 1));
}
html[data-theme="dark"] .hb-doctor-media {
  background: var(--hb-care-media-stack);
}

.hb-avatar {
  position: absolute;
  top: 22px;
  left: 18px;
  width: 76px;
  height: 76px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--hb-border);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 45px rgba(124, 58, 237, 0.14);
}
html[data-theme="dark"] .hb-avatar {
  background: rgba(16, 22, 38, 0.55);
}

.hb-avatar-initials {
  font-weight: 950;
  letter-spacing: -0.03em;
}

.hb-doctor-overlay {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 150px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.60);
  border: 1px dashed rgba(124, 58, 237, 0.25);
  font-weight: 900;
  color: var(--hb-muted);
  font-size: 12px;
}
html[data-theme="dark"] .hb-doctor-overlay {
  background: rgba(16, 22, 38, 0.50);
}

.hb-doctor-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.hb-doctor-name {
  font-weight: 950;
  letter-spacing: -0.02em;
  font-size: 18px;
  margin: 0;
}
.hb-doctor-role {
  margin: -2px 0 0;
  color: var(--hb-muted);
  font-weight: 800;
}
.hb-doctor-focus {
  margin: 0;
  color: var(--hb-muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.hb-doctor-actions {
  margin-top: auto;
  display: flex;
}

/* Doctors */
.hb-dept-block {
  margin-top: 34px;
}

.hb-dept-row-triple {
  margin-top: 34px;
}

.hb-dept-row-triple .hb-dept-block {
  margin-top: 0;
}

.hb-dept-title {
  font-weight: 1000;
  letter-spacing: -0.02em;
  font-size: 22px;
  margin: 0 0 14px;
}

.hb-doctor-tags {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hb-doctor--small {
  border-radius: 22px;
}

.hb-doctor--small .hb-doctor-media {
  height: 150px;
}

/* Lead doctor: photo left-aligned; right edge blends into standard media gradient */
.hb-doctor--small .hb-doctor-media.hb-doctor-media--lead {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

html[data-theme="dark"] .hb-doctor--small .hb-doctor-media.hb-doctor-media--lead {
  background: transparent;
}

.hb-doctor-lead-rest {
  flex: 1;
  min-width: 0;
  background: radial-gradient(circle at 20% 15%, rgba(124, 58, 237, 0.22), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.19), transparent 60%),
    linear-gradient(135deg, rgba(247, 240, 245, 1), rgba(232, 247, 243, 1));
}

html[data-theme="dark"] .hb-doctor-lead-rest {
  background: var(--hb-care-media-stack);
}

.hb-doctor-lead-photo {
  position: relative;
  flex: 0 0 48%;
  max-width: 56%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  /* Same backdrop as .hb-doctor-media / .hb-doctor-lead-rest so transparent PNGs match */
  background: radial-gradient(circle at 20% 15%, rgba(124, 58, 237, 0.22), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.19), transparent 60%),
    linear-gradient(135deg, rgba(247, 240, 245, 1), rgba(232, 247, 243, 1));
}

html[data-theme="dark"] .hb-doctor-lead-photo {
  background: var(--hb-care-media-stack);
}

.hb-doctor-lead-img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bias toward top of source so crown of head stays inside frame */
  object-position: left 22%;
  display: block;
}

/* Centered subject in source file (e.g. square headshot); same lead layout as .hb-doctor-lead-img */
.hb-doctor-lead-img--center {
  object-position: center 18%;
}

/* Fade uses the same stack as .hb-doctor-lead-rest; mask reveals it toward the right only */
.hb-doctor-lead-photo::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(72%, 148px);
  pointer-events: none;
  background: radial-gradient(circle at 20% 15%, rgba(124, 58, 237, 0.22), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.19), transparent 60%),
    linear-gradient(135deg, rgba(247, 240, 245, 1), rgba(232, 247, 243, 1));
  -webkit-mask-image: linear-gradient(
    to right,
    rgb(0 0 0 / 0) 0%,
    rgb(0 0 0 / 0) 52%,
    rgb(0 0 0 / 0.35) 72%,
    rgb(0 0 0 / 0.85) 88%,
    rgb(0 0 0 / 1) 100%
  );
  mask-image: linear-gradient(
    to right,
    rgb(0 0 0 / 0) 0%,
    rgb(0 0 0 / 0) 52%,
    rgb(0 0 0 / 0.35) 72%,
    rgb(0 0 0 / 0.85) 88%,
    rgb(0 0 0 / 1) 100%
  );
}

html[data-theme="dark"] .hb-doctor-lead-photo::after {
  background: var(--hb-care-media-stack);
  -webkit-mask-image: linear-gradient(
    to right,
    rgb(0 0 0 / 0) 0%,
    rgb(0 0 0 / 0) 52%,
    rgb(0 0 0 / 0.4) 74%,
    rgb(0 0 0 / 0.9) 90%,
    rgb(0 0 0 / 1) 100%
  );
  mask-image: linear-gradient(
    to right,
    rgb(0 0 0 / 0) 0%,
    rgb(0 0 0 / 0) 52%,
    rgb(0 0 0 / 0.4) 74%,
    rgb(0 0 0 / 0.9) 90%,
    rgb(0 0 0 / 1) 100%
  );
}

.hb-doctor--small .hb-avatar {
  top: 18px;
  left: 14px;
  width: 66px;
  height: 66px;
  border-radius: 26px;
}

.hb-doctor--small .hb-doctor-overlay {
  right: 10px;
  bottom: 10px;
  width: 130px;
  height: 46px;
  border-radius: 18px;
}

.hb-doctor--small .hb-doctor-body {
  padding: 14px;
  gap: 8px;
}

.hb-doctor--small .hb-doctor-name {
  font-size: 16px;
}

.hb-doctor--small .hb-doctor-role,
.hb-doctor--small .hb-doctor-focus {
  font-size: 13.5px;
}

/* Compact doctor cards (used for the 3 main doctors) */
.hb-doctor--compact .hb-doctor-media {
  height: 124px;
}

.hb-doctor--compact .hb-doctor-body {
  padding: 12px;
  gap: 7px;
}

.hb-doctor--compact .hb-doctor-overlay {
  width: 118px;
  height: 40px;
}

.hb-doctor--compact .hb-avatar {
  width: 60px;
  height: 60px;
  border-radius: 24px;
}

.hb-doctor--compact .hb-doctor-tags .hb-tag {
  padding: 6px 10px;
  font-size: 11.5px;
}

/* Stories / Swiper */
.hb-quote {
  padding: 28px 22px;
  border-radius: 26px;
  border: 1px solid var(--hb-border);
  background: var(--hb-surface);
  box-shadow: var(--hb-shadow-2);
  backdrop-filter: blur(14px);
  min-height: 140px;
  display: flex;
  align-items: center;
}
.hb-quote {
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.7;
  color: var(--hb-text);
}
.hb-quote-meta {
  margin-top: 14px;
  font-weight: 900;
  color: var(--hb-muted);
  text-align: center;
}

.hb-swiper .swiper-pagination-bullet {
  background: rgba(124, 58, 237, 0.35);
  opacity: 1;
}
.hb-swiper .swiper-pagination-bullet-active {
  background: linear-gradient(135deg, var(--hb-primary), var(--hb-primary-2));
}

/* Stats */
.hb-stat {
  border-radius: 26px;
  border: 1px solid var(--hb-border);
  background: var(--hb-surface);
  box-shadow: var(--hb-shadow-2);
  backdrop-filter: blur(14px);
  padding: 22px 20px;
  text-align: center;
}
.hb-stat-value {
  font-size: 34px;
  font-weight: 1000;
  letter-spacing: -0.04em;
}
.hb-stat-label {
  margin-top: 8px;
  color: var(--hb-muted);
  font-weight: 900;
  line-height: 1.5;
}

/* Contact */
.hb-contact-card {
  height: 100%;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid var(--hb-border);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.10), rgba(16, 185, 129, 0.06));
  box-shadow: var(--hb-shadow-2);
}
.hb-contact-title {
  font-weight: 1000;
  margin-bottom: 6px;
  font-size: 18px;
}
.hb-contact-text {
  margin-bottom: 16px;
  color: var(--hb-muted);
  line-height: 1.7;
}
.hb-contact-list {
  display: grid;
  gap: 10px;
}
.hb-contact-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  background: rgba(255, 255, 255, 0.45);
  min-width: 0;
}

.hb-contact-item > span:last-of-type {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}
html[data-theme="dark"] .hb-contact-item {
  background: rgba(16, 22, 38, 0.40);
}
.hb-contact-icon {
  width: 86px;
  min-width: 86px;
  height: 34px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.10);
  border: 1px solid rgba(124, 58, 237, 0.18);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  color: var(--hb-text);
  flex-shrink: 0;
}
.hb-contact-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--hb-muted);
  line-height: 1.6;
}

.hb-form {
  padding: 22px;
  border-radius: 26px;
  border: 1px solid var(--hb-border);
  background: var(--hb-surface);
  box-shadow: var(--hb-shadow-2);
  backdrop-filter: blur(14px);
}

.hb-form .form-control,
.hb-form .form-select {
  border-radius: 16px;
  border-color: rgba(18, 28, 45, 0.18);
}
html[data-theme="dark"] .hb-form .form-control,
html[data-theme="dark"] .hb-form .form-select {
  border-color: rgba(232, 238, 248, 0.18);
}

.hb-form-hint {
  color: var(--hb-muted);
  font-weight: 800;
  font-size: 12.5px;
  line-height: 1.5;
}

.hb-form-success {
  border-radius: 18px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.10);
  padding: 14px;
}
.hb-success-title {
  font-weight: 1000;
}

.hb-form-error {
  border-radius: 18px;
  border: 1px solid rgba(236, 72, 153, 0.25);
  background: rgba(236, 72, 153, 0.10);
  padding: 14px;
  font-weight: 900;
}

/* Footer */
.hb-footer {
  padding: 22px 0 44px;
  border-top: 1px solid var(--hb-border);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.05), transparent 40%);
}
.hb-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.hb-footer-brand {
  font-weight: 1000;
  letter-spacing: -0.02em;
}
.hb-footer-copy {
  color: var(--hb-muted);
  font-weight: 800;
  margin-top: 6px;
}
.hb-footer-right {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.hb-footer-link {
  font-weight: 900;
  color: var(--hb-muted);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 160ms ease;
}
.hb-footer-link:hover {
  color: var(--hb-text);
  border-color: rgba(124, 58, 237, 0.18);
  background: rgba(124, 58, 237, 0.10);
}

/* Modal */
.hb-modal .modal-content {
  border-radius: 22px;
  border: 1px solid var(--hb-border);
  background: var(--hb-surface-2);
  backdrop-filter: blur(16px);
}

html[data-theme="dark"] .hb-modal .modal-content {
  color: var(--hb-text);
}

/* Bootstrap close icon is dark; invert on dark surfaces (care mode) */
html[data-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%) brightness(1.2);
}
.hb-modal-title {
  font-weight: 1000;
}
.hb-modal-subtitle {
  color: var(--hb-muted);
  font-weight: 900;
  margin-top: 4px;
}
.hb-modal-focus {
  font-weight: 900;
  color: var(--hb-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.hb-modal-highlights-title {
  font-weight: 1000;
  margin-bottom: 8px;
}
.hb-modal-list {
  padding-left: 18px;
  margin: 0;
}
.hb-modal-list li {
  color: var(--hb-muted);
  font-weight: 800;
  margin-bottom: 6px;
}

/* More details popup (blur backdrop + 80% panel) */
.hb-popup-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 4vh 4%;
  box-sizing: border-box;
  background: rgba(7, 10, 18, 0.45);
  backdrop-filter: blur(12px);
}

.hb-popup-panel {
  width: min(80vw, calc(100% - 8%));
  height: min(80vh, calc(100% - 8%));
  max-width: 980px;
  max-height: 900px;
  overflow: auto;
  border-radius: 28px;
  border: 1px solid var(--hb-border);
  background: var(--hb-surface-2);
  box-shadow: var(--hb-shadow);
  padding: 18px 18px 22px;
  box-sizing: border-box;
}

html[data-theme="dark"] .hb-popup-panel {
  background: rgba(16, 22, 38, 0.88);
}

body.hb-popup-open {
  overflow: hidden;
}

.hb-popup-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.hb-popup-lang {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hb-lang-btn {
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  background: rgba(124, 58, 237, 0.10);
  color: var(--hb-text);
  font-weight: 950;
  padding: 8px 14px;
  cursor: pointer;
}

.hb-lang-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--hb-primary) 0%, var(--hb-primary-2) 100%);
  border-color: rgba(124, 58, 237, 0.35);
  color: white;
}

.hb-popup-contentwrap {
  max-width: 760px;
  margin: 0 auto;
}

.hb-popup-title {
  font-weight: 1000;
  letter-spacing: -0.03em;
  margin: 6px 0 14px;
  font-size: 22px;
}

.hb-popup-q {
  font-weight: 1000;
  letter-spacing: -0.02em;
  font-size: 16.5px;
  margin: 16px 0 8px;
}

.hb-popup-contentwrap p {
  margin: 0 0 10px;
  line-height: 1.75;
  color: var(--hb-muted);
  font-weight: 850;
}

.hb-popup-note {
  margin-top: 18px !important;
  font-weight: 950 !important;
  color: var(--hb-text) !important;
}

.hb-popup-contentwrap .hb-popup-langcontent[hidden] {
  display: none;
}

.hb-tag--clickable {
  cursor: pointer;
  border-color: rgba(124, 58, 237, 0.35);
}
.hb-tag--clickable:hover {
  background: rgba(124, 58, 237, 0.16);
}

@media (max-width: 576px) {
  .hb-popup-backdrop {
    display: block;
    padding: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .hb-popup-panel {
    position: fixed;
    top: 5%;
    left: 5%;
    right: 5%;
    bottom: 5%;
    width: auto;
    height: auto;
    max-width: calc(100% - 10%);
    max-height: none;
    padding: 12px 12px 16px;
    border-radius: 18px;
    margin: 0 auto;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    box-sizing: border-box;
  }

  .hb-popup-contentwrap {
    max-width: 100%;
    font-size: 13px;
  }

  .hb-popup-title {
    font-size: 17px;
    margin: 4px 0 10px;
  }

  .hb-popup-q {
    font-size: 14px;
    margin: 13px 0 6px;
  }

  .hb-popup-contentwrap p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 7px;
  }

  .hb-lang-btn {
    padding: 6px 11px;
    font-size: 12px;
  }
}

/* Focus */
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.nav-link:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.35);
  outline-offset: 2px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

