/* ============================================================
   EDC Hub — Homepage V3
   Three-page system: unified gateway · patient · dentist
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,600&family=Inter:wght@400;500;600;700&display=swap');

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --v3-ink:       #0f172a;
  --v3-ink-soft:  #1e293b;
  --v3-muted:     #64748b;
  --v3-border:    #e2e8f0;
  --v3-warm:      #faf8f5;
  --v3-white:     #ffffff;

  --v3-teal:      #0d9488;
  --v3-teal-mid:  #14b8a6;
  --v3-teal-pale: #f0fdfa;
  --v3-teal-glow: rgba(13, 148, 136, 0.15);

  --v3-patient:   #f97316;
  --v3-patient-pale: #fff7ed;
  --v3-patient-glow: rgba(249, 115, 22, 0.12);

  --v3-dentist:   #0369a1;
  --v3-dentist-pale: #eff6ff;
  --v3-dentist-glow: rgba(3, 105, 161, 0.12);

  --v3-serif: 'Fraunces', Georgia, serif;
  --v3-sans:  'Inter', system-ui, sans-serif;

  --v3-radius-sm: 0.75rem;
  --v3-radius:    1.25rem;
  --v3-radius-lg: 2rem;
  --v3-radius-xl: 3rem;

  --v3-shadow-sm: 0 1px 3px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.04);
  --v3-shadow:    0 4px 16px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
  --v3-shadow-lg: 0 20px 48px rgba(15,23,42,0.12), 0 8px 20px rgba(15,23,42,0.06);
  --v3-shadow-xl: 0 40px 80px rgba(15,23,42,0.16);

  --v3-max: 76rem;
  --v3-gap: clamp(1rem, 3vw, 2rem);
}

/* ── Base reset for v3 pages ───────────────────────────────── */
.edcv3-page {
  font-family: var(--v3-sans);
  color: var(--v3-ink-soft);
  background: var(--v3-warm);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.edcv3-page *, .edcv3-page *::before, .edcv3-page *::after {
  box-sizing: border-box;
}

/* ── Layout helpers ────────────────────────────────────────── */
.edcv3-wrap {
  width: 100%;
  max-width: var(--v3-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.edcv3-section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

/* ── Typography ────────────────────────────────────────────── */
.edcv3-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v3-teal);
}

.edcv3-eyebrow--patient { color: var(--v3-patient); }
.edcv3-eyebrow--dentist { color: var(--v3-dentist); }

.edcv3-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.edcv3-h1 {
  font-family: var(--v3-serif);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.025em;
  color: var(--v3-ink);
  margin: 0;
}

.edcv3-h2 {
  font-family: var(--v3-serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--v3-ink);
  margin: 0;
}

.edcv3-h3 {
  font-family: var(--v3-sans);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--v3-ink);
  margin: 0;
}

.edcv3-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: var(--v3-muted);
  margin: 0;
}

.edcv3-italic { font-style: italic; }

/* Gradient text */
.edcv3-grad-teal {
  background: linear-gradient(135deg, #0d9488 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.edcv3-grad-patient {
  background: linear-gradient(135deg, #ea580c 0%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.edcv3-grad-dentist {
  background: linear-gradient(135deg, #0369a1 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ───────────────────────────────────────────────── */
.edcv3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-family: var(--v3-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.edcv3-btn:hover { transform: translateY(-2px); }
.edcv3-btn:active { transform: translateY(0); }

.edcv3-btn--teal {
  background: var(--v3-teal);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13,148,136,0.35);
}
.edcv3-btn--teal:hover {
  background: #0f766e;
  box-shadow: 0 8px 24px rgba(13,148,136,0.45);
}

.edcv3-btn--patient {
  background: var(--v3-patient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249,115,22,0.35);
}
.edcv3-btn--patient:hover {
  background: #ea580c;
  box-shadow: 0 8px 24px rgba(249,115,22,0.45);
}

.edcv3-btn--dentist {
  background: var(--v3-dentist);
  color: #fff;
  box-shadow: 0 4px 14px rgba(3,105,161,0.35);
}
.edcv3-btn--dentist:hover {
  background: #075985;
  box-shadow: 0 8px 24px rgba(3,105,161,0.45);
}

.edcv3-btn--ghost {
  background: transparent;
  color: var(--v3-ink);
  border: 1.5px solid var(--v3-border);
}
.edcv3-btn--ghost:hover {
  background: var(--v3-white);
  border-color: var(--v3-ink-soft);
  box-shadow: var(--v3-shadow);
}

.edcv3-btn--ghost-white {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}
.edcv3-btn--ghost-white:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.edcv3-btn--white {
  background: #fff;
  color: var(--v3-ink);
  box-shadow: var(--v3-shadow-lg);
}
.edcv3-btn--white:hover {
  box-shadow: var(--v3-shadow-xl);
}

.edcv3-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Icon inside button */
.edcv3-btn svg { flex-shrink: 0; }

/* ── Cards ─────────────────────────────────────────────────── */
.edcv3-card {
  background: var(--v3-white);
  border: 1px solid var(--v3-border);
  border-radius: var(--v3-radius);
  box-shadow: var(--v3-shadow);
}

.edcv3-card--hoverable {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.edcv3-card--hoverable:hover {
  transform: translateY(-4px);
  box-shadow: var(--v3-shadow-lg);
}

/* ── Photo helpers ─────────────────────────────────────────── */
.edcv3-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.edcv3-photo-frame {
  border-radius: var(--v3-radius);
  overflow: hidden;
  position: relative;
}

/* ── Divider ───────────────────────────────────────────────── */
.edcv3-divider {
  width: 100%;
  height: 1px;
  background: var(--v3-border);
  margin: 0;
  border: none;
}

/* ══════════════════════════════════════════════════════════════
   UNIFIED GATEWAY — homepage_v3.php
   ══════════════════════════════════════════════════════════════ */

/* ── Gateway Hero ──────────────────────────────────────────── */
.edcv3-gate-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.edcv3-gate-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1588776814546-1ffbb172d82e?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}

.edcv3-gate-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(2, 8, 23, 0.82) 0%,
    rgba(2, 8, 23, 0.55) 50%,
    rgba(2, 8, 23, 0.70) 100%
  );
  z-index: 1;
}

.edcv3-gate-hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(3rem, 6vw, 5rem);
}

.edcv3-gate-hero__text {
  max-width: 46rem;
}

.edcv3-gate-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.edcv3-gate-hero__tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: edcv3-pulse 2s ease-in-out infinite;
}

@keyframes edcv3-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.edcv3-gate-hero__h1 {
  font-family: var(--v3-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 1.25rem;
}

.edcv3-gate-hero__h1 em {
  font-style: italic;
  color: #99f6e4;
}

.edcv3-gate-hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  max-width: 38rem;
  margin: 0 0 3rem;
}

/* Split path cards */
.edcv3-gate-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 52rem;
}

@media (max-width: 640px) {
  .edcv3-gate-split { grid-template-columns: 1fr; max-width: 24rem; }
}

.edcv3-gate-split__card {
  position: relative;
  border-radius: var(--v3-radius);
  padding: 2rem 1.75rem;
  text-decoration: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  min-height: 200px;
}

.edcv3-gate-split__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.edcv3-gate-split__card:hover { transform: translateY(-6px); }
.edcv3-gate-split__card:hover::before { opacity: 1; }

.edcv3-gate-split__card--patient {
  background: linear-gradient(145deg, rgba(249,115,22,0.22), rgba(234,88,12,0.12));
}
.edcv3-gate-split__card--patient:hover {
  box-shadow: 0 20px 48px rgba(249,115,22,0.35);
  border-color: rgba(249,115,22,0.4);
}

.edcv3-gate-split__card--dentist {
  background: linear-gradient(145deg, rgba(3,105,161,0.22), rgba(7,89,133,0.12));
}
.edcv3-gate-split__card--dentist:hover {
  box-shadow: 0 20px 48px rgba(3,105,161,0.35);
  border-color: rgba(3,105,161,0.4);
}

.edcv3-gate-split__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edcv3-gate-split__card--patient .edcv3-gate-split__icon {
  background: rgba(249,115,22,0.25);
  border: 1px solid rgba(249,115,22,0.3);
}
.edcv3-gate-split__card--dentist .edcv3-gate-split__icon {
  background: rgba(3,105,161,0.25);
  border: 1px solid rgba(3,105,161,0.3);
}

.edcv3-gate-split__icon svg {
  width: 26px;
  height: 26px;
  color: #fff;
}

.edcv3-gate-split__label {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.2rem;
}

.edcv3-gate-split__title {
  font-family: var(--v3-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}

.edcv3-gate-split__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
  margin: 0;
}

.edcv3-gate-split__arrow {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  transition: gap 0.2s ease, color 0.2s ease;
}

.edcv3-gate-split__card:hover .edcv3-gate-split__arrow {
  gap: 0.7rem;
  color: #fff;
}

.edcv3-gate-split__arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.edcv3-gate-split__card:hover .edcv3-gate-split__arrow svg {
  transform: translateX(3px);
}

/* Gateway scroll indicator */
.edcv3-gate-hero__scroll {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.edcv3-gate-scroll-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  animation: edcv3-bounce 2s ease-in-out infinite;
}

@keyframes edcv3-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ── Gateway Stats ─────────────────────────────────────────── */
.edcv3-gate-stats {
  background: var(--v3-white);
  border-bottom: 1px solid var(--v3-border);
}

.edcv3-gate-stats__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  divide-x: 1px solid var(--v3-border);
  padding: 2.5rem 0;
  gap: 0;
}

@media (max-width: 560px) {
  .edcv3-gate-stats__inner { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0; }
}

.edcv3-gate-stat {
  text-align: center;
  padding: 0 2rem;
  border-right: 1px solid var(--v3-border);
}

.edcv3-gate-stat:last-child { border-right: none; }

@media (max-width: 560px) {
  .edcv3-gate-stat { border-right: none; border-bottom: 1px solid var(--v3-border); padding: 0 1rem 1.5rem; }
  .edcv3-gate-stat:last-child { border-bottom: none; padding-bottom: 0; }
}

.edcv3-gate-stat__num {
  font-family: var(--v3-serif);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--v3-ink);
  letter-spacing: -0.03em;
}

.edcv3-gate-stat__label {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--v3-muted);
  font-weight: 500;
}

/* ── Gateway "Two worlds" ──────────────────────────────────── */
.edcv3-gate-worlds {
  background: var(--v3-warm);
}

.edcv3-gate-worlds__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .edcv3-gate-worlds__inner { grid-template-columns: 1fr; }
}

.edcv3-gate-world {
  border-radius: var(--v3-radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.edcv3-gate-world:hover { transform: scale(1.015); }

.edcv3-gate-world__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.edcv3-gate-world:hover .edcv3-gate-world__img { transform: scale(1.04); }

.edcv3-gate-world__grad {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.edcv3-gate-world--patient .edcv3-gate-world__grad {
  background: linear-gradient(to top, rgba(194,65,12,0.85) 0%, rgba(194,65,12,0.15) 55%, transparent 100%);
}

.edcv3-gate-world--dentist .edcv3-gate-world__grad {
  background: linear-gradient(to top, rgba(3,105,161,0.85) 0%, rgba(3,105,161,0.15) 55%, transparent 100%);
}

.edcv3-gate-world__body {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.edcv3-gate-world__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.5rem;
}

.edcv3-gate-world__title {
  font-family: var(--v3-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 0.6rem;
}

.edcv3-gate-world__desc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.edcv3-gate-world__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s;
}

.edcv3-gate-world:hover .edcv3-gate-world__cta {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.6);
}

/* ── Gateway trust logos / testimonial strip ───────────────── */
.edcv3-gate-trust {
  background: var(--v3-white);
  border-top: 1px solid var(--v3-border);
  border-bottom: 1px solid var(--v3-border);
}

.edcv3-gate-trust__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 3rem 0;
  text-align: center;
}

.edcv3-gate-trust__headline {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--v3-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edcv3-gate-trust__faces {
  display: flex;
  align-items: center;
  gap: -0.75rem;
}

.edcv3-gate-trust__face {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--v3-white);
  overflow: hidden;
  margin-left: -0.75rem;
  box-shadow: var(--v3-shadow-sm);
}

.edcv3-gate-trust__face:first-child { margin-left: 0; }

.edcv3-gate-trust__face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edcv3-gate-trust__quote {
  max-width: 32rem;
  font-family: var(--v3-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--v3-ink-soft);
  line-height: 1.65;
}

.edcv3-gate-trust__attr {
  font-size: 0.85rem;
  color: var(--v3-muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   PATIENT HOMEPAGE — homepage_v3_patients.php
   ═══════════════════════════════════════════════════════════════ */

/* ── Patient Hero ──────────────────────────────────────────── */
.edcv3p-hero {
  position: relative;
  overflow: hidden;
  background: var(--v3-ink);
  min-height: 90svh;
  display: flex;
  align-items: center;
}

.edcv3p-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.edcv3p-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0.45;
}

.edcv3p-hero__grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(12,10,30,0.95) 0%, rgba(12,10,30,0.6) 55%, rgba(12,10,30,0.3) 100%);
  z-index: 1;
}

.edcv3p-hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(5rem, 10vw, 8rem) 0;
}

@media (max-width: 820px) {
  .edcv3p-hero__content { grid-template-columns: 1fr; }
}

.edcv3p-hero__kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.edcv3p-hero__kicker-line {
  width: 28px;
  height: 2px;
  background: var(--v3-patient);
  border-radius: 2px;
}

.edcv3p-hero__kicker-text {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v3-patient);
}

.edcv3p-hero__h1 {
  font-family: var(--v3-serif);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 1.25rem;
}

.edcv3p-hero__h1 em {
  font-style: italic;
  color: #fdba74;
}

.edcv3p-hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 34rem;
  margin: 0 0 2.25rem;
}

/* Patient search card */
.edcv3p-search {
  background: var(--v3-white);
  border-radius: var(--v3-radius-lg);
  padding: 2rem;
  box-shadow: var(--v3-shadow-xl);
}

.edcv3p-search__title {
  font-family: var(--v3-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--v3-ink);
  margin: 0 0 1.5rem;
}

.edcv3p-search__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edcv3p-search__field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--v3-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.edcv3p-search__input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border-radius: var(--v3-radius-sm);
  border: 1.5px solid var(--v3-border);
  background: var(--v3-warm);
  color: var(--v3-ink);
  font-size: 0.95rem;
  font-family: var(--v3-sans);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.edcv3p-search__input:focus {
  border-color: var(--v3-patient);
  box-shadow: 0 0 0 3px var(--v3-patient-glow);
}

.edcv3p-search__btn {
  width: 100%;
  min-height: 52px;
  border-radius: var(--v3-radius-sm);
  background: var(--v3-patient);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--v3-sans);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.edcv3p-search__btn:hover { background: #ea580c; transform: translateY(-1px); }

.edcv3p-search__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.edcv3p-search__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--v3-patient-pale);
  color: #9a3412;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
  border: 1px solid rgba(249,115,22,0.15);
}

.edcv3p-search__pill:hover { background: #fed7aa; }

/* ── Patient Services ──────────────────────────────────────── */
.edcv3p-services {
  background: var(--v3-white);
}

.edcv3p-services__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.edcv3p-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) { .edcv3p-services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .edcv3p-services__grid { grid-template-columns: 1fr; } }

.edcv3p-service {
  border-radius: var(--v3-radius);
  padding: 1.5rem;
  border: 1.5px solid var(--v3-border);
  background: var(--v3-warm);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.edcv3p-service:hover {
  transform: translateY(-4px);
  box-shadow: var(--v3-shadow-lg);
  border-color: var(--v3-patient);
}

.edcv3p-service__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--v3-patient-pale);
  border: 1px solid rgba(249,115,22,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.edcv3p-service__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--v3-ink);
}

.edcv3p-service__desc {
  font-size: 0.88rem;
  color: var(--v3-muted);
  line-height: 1.55;
}

/* ── Patient How it works ──────────────────────────────────── */
.edcv3p-hiw {
  background: var(--v3-warm);
}

.edcv3p-hiw__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

@media (max-width: 768px) { .edcv3p-hiw__grid { grid-template-columns: 1fr; } }

.edcv3p-hiw__img-wrap {
  position: relative;
  border-radius: var(--v3-radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--v3-shadow-xl);
}

.edcv3p-hiw__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edcv3p-hiw__badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--v3-white);
  border-radius: var(--v3-radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--v3-shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.edcv3p-hiw__badge-icon {
  font-size: 1.5rem;
}

.edcv3p-hiw__badge-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--v3-ink);
  line-height: 1.3;
}

.edcv3p-hiw__badge-sub {
  font-size: 0.75rem;
  color: var(--v3-muted);
  font-weight: 400;
}

.edcv3p-hiw__steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.edcv3p-step {
  display: flex;
  gap: 1.25rem;
}

.edcv3p-step__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--v3-patient-pale);
  border: 1.5px solid rgba(249,115,22,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--v3-patient);
}

.edcv3p-step__body {}

.edcv3p-step__title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--v3-ink);
  margin: 0 0 0.35rem;
}

.edcv3p-step__desc {
  font-size: 0.9rem;
  color: var(--v3-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Patient testimonials ──────────────────────────────────── */
.edcv3p-reviews {
  background: var(--v3-white);
}

.edcv3p-reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) { .edcv3p-reviews__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .edcv3p-reviews__grid { grid-template-columns: 1fr; } }

.edcv3p-review {
  background: var(--v3-warm);
  border: 1px solid var(--v3-border);
  border-radius: var(--v3-radius);
  padding: 1.5rem;
}

.edcv3p-review__stars {
  color: #f59e0b;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.edcv3p-review__quote {
  font-size: 0.92rem;
  color: var(--v3-ink-soft);
  line-height: 1.65;
  margin: 0 0 1.25rem;
  font-style: italic;
}

.edcv3p-review__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.edcv3p-review__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.edcv3p-review__avatar img { width: 100%; height: 100%; object-fit: cover; }

.edcv3p-review__name { font-size: 0.85rem; font-weight: 600; color: var(--v3-ink); }
.edcv3p-review__city { font-size: 0.78rem; color: var(--v3-muted); }

/* ── Patient CTA strip ─────────────────────────────────────── */
.edcv3p-cta {
  background: linear-gradient(135deg, #7c2d12 0%, #c2410c 50%, #ea580c 100%);
  position: relative;
  overflow: hidden;
}

.edcv3p-cta__bg-shape {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1606811971618-4486d14f3f99?auto=format&fit=crop&w=1200&q=60');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}

.edcv3p-cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.edcv3p-cta__h2 {
  font-family: var(--v3-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin: 0;
  max-width: 36rem;
}

.edcv3p-cta__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 28rem;
  line-height: 1.65;
  margin: 0;
}

/* ── Patient FAQ ───────────────────────────────────────────── */
.edcv3p-faq {
  background: var(--v3-warm);
}

.edcv3p-faq__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 768px) { .edcv3p-faq__grid { grid-template-columns: 1fr; } }

.edcv3p-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.edcv3p-faq__item {
  border-radius: var(--v3-radius-sm);
  border: 1px solid var(--v3-border);
  background: var(--v3-white);
  overflow: hidden;
  transition: border-color 0.2s;
}

.edcv3p-faq__item[open] {
  border-color: rgba(249,115,22,0.3);
}

.edcv3p-faq__q {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--v3-ink);
  list-style: none;
  min-height: 52px;
  user-select: none;
}

.edcv3p-faq__q::-webkit-details-marker { display: none; }

.edcv3p-faq__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--v3-muted);
  transition: transform 0.25s ease;
}

.edcv3p-faq__item[open] .edcv3p-faq__chevron { transform: rotate(180deg); color: var(--v3-patient); }

.edcv3p-faq__a {
  padding: 0 1.25rem 1rem;
  font-size: 0.9rem;
  color: var(--v3-muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════
   DENTIST HOMEPAGE — homepage_v3_dentists.php
   ═══════════════════════════════════════════════════════════════ */

/* ── Dentist Hero ──────────────────────────────────────────── */
.edcv3d-hero {
  position: relative;
  overflow: hidden;
  background: var(--v3-ink);
  min-height: 90svh;
  display: flex;
  align-items: center;
}

.edcv3d-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.edcv3d-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.40;
}

.edcv3d-hero__grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(3,20,40,0.96) 0%, rgba(3,20,40,0.65) 55%, rgba(3,20,40,0.25) 100%);
  z-index: 1;
}

.edcv3d-hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(5rem, 10vw, 8rem) 0;
  max-width: 52rem;
}

.edcv3d-hero__kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.edcv3d-hero__kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(3,105,161,0.25);
  border: 1px solid rgba(56,189,248,0.3);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #7dd3fc;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edcv3d-hero__h1 {
  font-family: var(--v3-serif);
  font-size: clamp(2.5rem, 5.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 1.25rem;
}

.edcv3d-hero__h1 em {
  font-style: italic;
  color: #7dd3fc;
}

.edcv3d-hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 36rem;
  margin: 0 0 2.5rem;
}

.edcv3d-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.edcv3d-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
  font-weight: 500;
}

.edcv3d-hero__pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
}

/* ── Dentist Value props ───────────────────────────────────── */
.edcv3d-props {
  background: var(--v3-white);
}

.edcv3d-props__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) { .edcv3d-props__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .edcv3d-props__grid { grid-template-columns: 1fr; } }

.edcv3d-prop {
  border-radius: var(--v3-radius);
  padding: 1.75rem 1.5rem;
  border: 1.5px solid var(--v3-border);
  background: var(--v3-warm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.edcv3d-prop:hover {
  transform: translateY(-4px);
  border-color: rgba(3,105,161,0.3);
  box-shadow: 0 12px 32px rgba(3,105,161,0.08);
}

.edcv3d-prop__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--v3-dentist-pale);
  border: 1px solid rgba(3,105,161,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.edcv3d-prop__title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--v3-ink);
  margin: 0 0 0.5rem;
}

.edcv3d-prop__desc {
  font-size: 0.9rem;
  color: var(--v3-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Dentist Photo + text split ────────────────────────────── */
.edcv3d-feature {
  background: var(--v3-warm);
}

.edcv3d-feature__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

@media (max-width: 768px) { .edcv3d-feature__inner { grid-template-columns: 1fr; } }

.edcv3d-feature--reverse .edcv3d-feature__photo { order: 2; }
.edcv3d-feature--reverse .edcv3d-feature__copy  { order: 1; }

@media (max-width: 768px) {
  .edcv3d-feature--reverse .edcv3d-feature__photo,
  .edcv3d-feature--reverse .edcv3d-feature__copy { order: unset; }
}

.edcv3d-feature__photo {
  border-radius: var(--v3-radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--v3-shadow-xl);
}

.edcv3d-feature__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edcv3d-feature__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.edcv3d-feature__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--v3-dentist-pale);
  border: 1px solid rgba(3,105,161,0.15);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--v3-dentist);
}

/* ── Dentist How it works ──────────────────────────────────── */
.edcv3d-hiw {
  background: var(--v3-white);
}

.edcv3d-hiw__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

@media (max-width: 900px) { .edcv3d-hiw__steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .edcv3d-hiw__steps { grid-template-columns: 1fr; } }

.edcv3d-hiw__steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--v3-border) 15%, var(--v3-border) 85%, transparent);
  z-index: 0;
}

@media (max-width: 900px) { .edcv3d-hiw__steps::before { display: none; } }

.edcv3d-step {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.edcv3d-step__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--v3-dentist);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(3,105,161,0.35);
  flex-shrink: 0;
}

.edcv3d-step__title { font-weight: 700; font-size: 0.95rem; color: var(--v3-ink); margin: 0; }
.edcv3d-step__desc  { font-size: 0.85rem; color: var(--v3-muted); line-height: 1.55; margin: 0; }

/* ── Dentist community preview ─────────────────────────────── */
.edcv3d-community {
  background: #0a1628;
  position: relative;
  overflow: hidden;
}

.edcv3d-community__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1582213782179-e0d53f98f2ca?auto=format&fit=crop&w=1400&q=70');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.edcv3d-community::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.7) 0%, rgba(10,22,40,0.4) 100%);
  z-index: 0;
  pointer-events: none;
}

.edcv3d-community__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

@media (max-width: 768px) { .edcv3d-community__inner { grid-template-columns: 1fr; } }

.edcv3d-community__posts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.edcv3d-community__post {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--v3-radius);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
}

.edcv3d-community__post-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.edcv3d-community__post-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.edcv3d-community__post-name { font-size: 0.88rem; font-weight: 600; color: #fff; }
.edcv3d-community__post-spec { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

.edcv3d-community__post-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  margin: 0;
}

.edcv3d-community__post-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(3,105,161,0.3);
  border: 1px solid rgba(56,189,248,0.2);
  font-size: 0.72rem;
  font-weight: 600;
  color: #7dd3fc;
  margin-top: 0.75rem;
}

/* ── Dentist join CTA ──────────────────────────────────────── */
.edcv3d-join {
  background: linear-gradient(135deg, #0c2340 0%, #075985 50%, #0369a1 100%);
  position: relative;
  overflow: hidden;
}

.edcv3d-join__bg {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url('https://images.unsplash.com/photo-1612349317150-e413f6a5b16d?auto=format&fit=crop&w=1200&q=60');
  background-size: cover;
  background-position: center top;
}

.edcv3d-join .edcv3-btn--white {
  background: #fff;
  color: #0369a1;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.edcv3d-join .edcv3-btn--white:hover {
  background: #f0f9ff;
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

.edcv3d-join .edcv3-btn--ghost-white {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.edcv3d-join .edcv3-btn--ghost-white:hover {
  background: rgba(255,255,255,0.22);
  border-color: #fff;
}

.edcv3d-join__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(3rem, 7vw, 5rem) 0;
}

@media (max-width: 640px) { .edcv3d-join__inner { grid-template-columns: 1fr; } }

.edcv3d-join__h2 {
  font-family: var(--v3-serif);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.edcv3d-join__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin: 0;
  max-width: 36rem;
}

.edcv3d-join__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
  flex-shrink: 0;
}

@media (max-width: 640px) { .edcv3d-join__actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; } }

/* ══════════════════════════════════════════════════════════════
   SHARED BREADCRUMB NAV
   ══════════════════════════════════════════════════════════════ */
.edcv3-breadnav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--v3-border);
}

.edcv3-breadnav__inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 48px;
  font-size: 0.85rem;
  color: var(--v3-muted);
}

.edcv3-breadnav__link {
  color: var(--v3-teal);
  text-decoration: none;
  font-weight: 500;
}

.edcv3-breadnav__link:hover { text-decoration: underline; }
.edcv3-breadnav__sep { color: var(--v3-border); }
.edcv3-breadnav__current { color: var(--v3-ink-soft); font-weight: 600; }

.edcv3-breadnav--patient .edcv3-breadnav__current { color: var(--v3-patient); }
.edcv3-breadnav--dentist .edcv3-breadnav__current { color: var(--v3-dentist); }

/* ══════════════════════════════════════════════════════════════
   DARK THEME OVERRIDES
   ══════════════════════════════════════════════════════════════ */
html[data-theme="dark"] .edcv3-page {
  --v3-warm: #0a0f1e;
  --v3-white: #111827;
  --v3-border: rgba(255,255,255,0.1);
  --v3-ink: #f1f5f9;
  --v3-ink-soft: #e2e8f0;
  --v3-muted: #94a3b8;
  --v3-teal-pale: rgba(13,148,136,0.15);
  --v3-patient-pale: rgba(249,115,22,0.12);
  --v3-dentist-pale: rgba(3,105,161,0.15);
}

html[data-theme="dark"] .edcv3-card {
  background: #111827;
  border-color: rgba(255,255,255,0.08);
}

html[data-theme="dark"] .edcv3p-search {
  background: #111827;
}

html[data-theme="dark"] .edcv3p-search__input {
  background: #1e293b;
  border-color: rgba(255,255,255,0.12);
  color: #f1f5f9;
}

html[data-theme="dark"] .edcv3-breadnav {
  background: rgba(10,15,30,0.92);
  border-bottom-color: rgba(255,255,255,0.08);
}

html[data-theme="dark"] .edcv3-gate-stats {
  background: #111827;
}

html[data-theme="dark"] .edcv3p-service,
html[data-theme="dark"] .edcv3d-prop {
  background: #1e293b;
  border-color: rgba(255,255,255,0.08);
}

html[data-theme="dark"] .edcv3p-review {
  background: #1e293b;
  border-color: rgba(255,255,255,0.08);
}

html[data-theme="dark"] .edcv3p-faq__item { background: #1e293b; border-color: rgba(255,255,255,0.08); }

html[data-theme="dark"] .edcv3d-hiw { background: #111827; }
html[data-theme="dark"] .edcv3d-props { background: #111827; }
html[data-theme="dark"] .edcv3p-reviews { background: #111827; }
html[data-theme="dark"] .edcv3-gate-trust { background: #111827; }

/* Hero uses var(--v3-ink) which becomes #f1f5f9 in dark mode — pin it dark */
html[data-theme="dark"] .edcv3d-hero { background: #031428; }

/* ══════════════════════════════════════════════════════════════
   LIGHT THEME OVERRIDES (explicit data-theme="light")
   ══════════════════════════════════════════════════════════════ */
/* Community and join-CTA are intentional dark accent sections — keep them dark in light mode */
html[data-theme="light"] .edcv3d-community { background: #0a1628; }
html[data-theme="light"] .edcv3d-join {
  background: linear-gradient(135deg, #0c2340 0%, #075985 50%, #0369a1 100%);
}

/* ══════════════════════════════════════════════════════════════
   DATA STORYTELLING UTILITIES
   ══════════════════════════════════════════════════════════════ */
/* Growth chip — green ▲ +N this month */
.edcv3-growth-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(22,163,74,0.10);
  border: 1px solid rgba(22,163,74,0.18);
  color: #16a34a;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 0.3rem;
  white-space: nowrap;
}
html[data-theme="dark"] .edcv3-growth-chip {
  background: rgba(22,163,74,0.18);
  border-color: rgba(22,163,74,0.3);
  color: #4ade80;
}

/* Monthly top badge — amber crown */
.edcv3-monthly-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(217,119,6,0.10);
  border: 1px solid rgba(217,119,6,0.22);
  color: #b45309;
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
html[data-theme="dark"] .edcv3-monthly-badge {
  background: rgba(251,191,36,0.15);
  border-color: rgba(251,191,36,0.28);
  color: #fbbf24;
}

/* Specialty activity badge */
.edcv3d-spec-badge {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(3,105,161,0.10);
  border: 1px solid rgba(3,105,161,0.18);
  color: var(--v3-dentist);
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
}
html[data-theme="dark"] .edcv3d-spec-badge {
  background: rgba(56,189,248,0.12);
  border-color: rgba(56,189,248,0.22);
  color: #7dd3fc;
}

/* Specialty showcase chip */
.edcv3d-spec-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--v3-radius);
  background: var(--v3-white);
  border: 1px solid var(--v3-border);
  text-decoration: none;
  min-width: 130px;
  min-height: 52px;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  text-align: center;
}
.edcv3d-spec-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(3,105,161,0.3);
  box-shadow: var(--v3-shadow);
}
.edcv3d-spec-chip__icon { font-size: 1.5rem; line-height: 1; }
.edcv3d-spec-chip__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--v3-ink);
  line-height: 1.2;
}
html[data-theme="dark"] .edcv3d-spec-chip {
  background: #1e293b;
  border-color: rgba(255,255,255,0.08);
}
html[data-theme="dark"] .edcv3d-spec-chip__label { color: var(--v3-ink); }

/* Contributor card */
.edcv3d-contributor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  border-radius: var(--v3-radius);
  background: var(--v3-white);
  border: 1px solid var(--v3-border);
  text-align: center;
  min-height: 150px;
}
html[data-theme="dark"] .edcv3d-contributor {
  background: #1e293b;
  border-color: rgba(255,255,255,0.08);
}
.edcv3d-contributor__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}
.edcv3d-contributor__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.edcv3d-contributor__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--v3-ink);
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.edcv3d-contributor__spec {
  font-size: 0.78rem;
  color: var(--v3-muted);
  line-height: 1.3;
}
.edcv3d-contributor__cred {
  font-size: 0.75rem;
  color: var(--v3-dentist);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   RTL OVERRIDES
   ══════════════════════════════════════════════════════════════ */
[dir="rtl"] .edcv3-eyebrow::before { display: none; }
[dir="rtl"] .edcv3-eyebrow::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
[dir="rtl"] .edcv3p-hero__kicker-line,
[dir="rtl"] .edcv3d-hero__kicker-line { transform: scaleX(-1); }
