/* ============================================
   Diamed Centre Multispecialty Hospital
   Shared stylesheet
   ============================================ */

:root {
  --primary: #6E5AA8;
  --primary-rgb: 110, 90, 168;
  --primary-dark: #5B4B92;
  --primary-light: #EEEAF8;
  --accent: #7D5570;
  --accent-light: #F5E9EE;
  --secondary: #1E7F72;
  --secondary-dark: #1B7268;
  --secondary-light: #E1F3F0;
  --gold: #B8863A;
  --gold-dark: #9C7133;
  --gold-light: #FBF1DE;
  --text-dark: #33333A;
  --text-body: #4A4A4D;
  --text-muted: #767679;
  --bg-light: #FBFAFE;
  --white: #ffffff;
  --border: #E7E4F0;
  --surface-page: #ffffff;
  --surface-card: #ffffff;
  --band-1: #5B4B92;
  --band-2: #7D5570;
  --gradient-brand: linear-gradient(120deg, var(--primary) 0%, #8571C4 45%, var(--secondary) 100%);
  --gradient-warm: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
  --radius: 10px;
  --shadow: 0 2px 10px rgba(74, 61, 116, 0.08);
  --shadow-lg: 0 8px 28px rgba(74, 61, 116, 0.13);
  --dur: 0.35s;
  font-size: 16px;
}

:root[data-theme="dark"] {
  --primary: #A493E0;
  --primary-rgb: 164, 147, 224;
  --primary-light: #2C2740;
  --accent: #C98CA8;
  --accent-light: #34222B;
  --secondary: #4FC4B3;
  --secondary-dark: #2E9686;
  --secondary-light: #16332F;
  --gold: #E0AD5F;
  --gold-dark: #C08A3E;
  --gold-light: #3A2C15;
  --text-dark: #F1EEFA;
  --text-body: #CFC9DE;
  --text-muted: #948FA8;
  --bg-light: #1C1926;
  --border: #37324A;
  --surface-page: #15131D;
  --surface-card: #201C2C;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text-body);
  background: var(--surface-page);
  line-height: 1.65;
  transition: background var(--dur) ease, color var(--dur) ease;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h1 { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.32rem; font-weight: 700; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Wider fluid container (~80% of viewport) for grid-heavy pages */
.container-80 {
  width: 80%;
  max-width: 1600px;
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.eyebrow {
  display: inline-block;
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 1.02rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(110, 90, 168, 0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(110, 90, 168, 0.36);
}

.btn-pulse {
  animation: btn-pulse-ring 2.6s ease-out infinite;
}

.btn-pulse:hover {
  animation: none;
}

@keyframes btn-pulse-ring {
  0% { box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.28), 0 0 0 0 rgba(var(--primary-rgb), 0.45); }
  70% { box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.28), 0 0 0 10px rgba(var(--primary-rgb), 0); }
  100% { box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.28), 0 0 0 0 rgba(var(--primary-rgb), 0); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-pulse {
    animation: none;
  }
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--surface-card);
  border-color: var(--border);
  color: var(--text-dark);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: #613F57;
}

.btn-block {
  width: 100%;
}

/* ---------- Top bar ---------- */

.topbar {
  background: var(--gradient-brand);
  color: #DCD5F0;
  font-size: 0.82rem;
}

.topbar .container,
.topbar .container-wide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 20px;
}

.topbar a:hover {
  color: var(--white);
}

/* ---------- Header / nav ---------- */

header.site-header {
  background: var(--surface-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-dark);
  flex-shrink: 0;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.logo-text small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.logo-tagline {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-left: 1px solid var(--border);
  padding-left: 12px;
  line-height: 1.3;
  max-width: 90px;
}

nav.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

nav.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 40px;
}

nav.main-nav a {
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--text-body);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--white) 100%);
  padding: 64px 0 56px;
  overflow: hidden;
}

.hero.hero-white {
  background: var(--white);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(110, 90, 168, 0.22) 0%, rgba(110, 90, 168, 0) 70%);
  top: -140px;
  right: -80px;
}

.hero::after {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(30, 127, 114, 0.16) 0%, rgba(30, 127, 114, 0) 70%);
  bottom: -160px;
  left: -60px;
}

.hero .container-80 {
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .hero {
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--surface-page) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.hero-intro {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 18px;
}

.hero h1 {
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-visual {
  background: var(--surface-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 28px;
}

.hero-visual-image {
  background: var(--primary);
  border-radius: 12px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-media {
  width: 100%;
}

.hero-video-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--text-dark) url("images/gallery/building-1.jpg") center/cover no-repeat;
  aspect-ratio: 16 / 9;
}

.testimonial-video-wrap {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--text-dark);
  aspect-ratio: 16 / 9;
}

.testimonial-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.hero-video-mute-toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 16, 30, 0.55);
  color: var(--white);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(2px);
  transition: background 0.15s ease, transform 0.15s ease;
}

.hero-video-mute-toggle:hover {
  background: rgba(20, 16, 30, 0.8);
  transform: scale(1.06);
}

.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero-stat {
  text-align: center;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 14px 8px;
}

.hero-stat strong {
  display: block;
  font-size: 1.4rem;
  color: var(--primary);
}

.hero-stat span {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ---------- Page header (sub-pages) ---------- */

.page-header {
  background: var(--gradient-brand);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 10px;
}

.page-header p {
  color: #DCD5F0;
  max-width: 560px;
  margin: 0 auto;
}

.breadcrumb {
  margin-top: 14px;
  font-size: 0.82rem;
  color: #C7BEE3;
}

.breadcrumb a {
  color: #EFEAF9;
  font-weight: 600;
}

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
  transform: translateY(-6px);
}

.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  transition: transform 0.25s ease;
}

.card:hover .icon-tile {
  transform: scale(1.08) rotate(-4deg);
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.mv-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 36px 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.mv-card .icon-tile {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 20px;
}

.mv-card h3 {
  position: relative;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.mv-card p {
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 420px;
}

.mv-watermark {
  position: absolute;
  right: -10px;
  bottom: -22px;
  font-size: 8rem;
  pointer-events: none;
  opacity: 0.06;
}

.mv-card.accent-purple { background: linear-gradient(160deg, var(--primary-light) 0%, var(--surface-card) 55%); }
.mv-card.accent-purple .icon-tile { background: var(--primary); }
.mv-card.accent-purple .mv-watermark { color: var(--primary); }

.mv-card.accent-teal { background: linear-gradient(160deg, var(--secondary-light) 0%, var(--surface-card) 55%); }
.mv-card.accent-teal .icon-tile { background: var(--secondary); }
.mv-card.accent-teal .mv-watermark { color: var(--secondary); }

/* Alternate icon-tile / avatar accent color across repeating grid cards
   so purple isn't the only color in a row of feature or value cards. */
.grid > *:nth-child(3n+2) .icon-tile,
.grid > *:nth-child(3n+2) .testimonial-avatar {
  background: var(--secondary-light);
  color: var(--secondary-dark);
}

.grid > *:nth-child(3n+3) .icon-tile,
.grid > *:nth-child(3n+3) .testimonial-avatar {
  background: var(--gold-light);
  color: var(--gold-dark);
}

.grid > *:nth-child(3n+2) .doctor-photo {
  background: var(--secondary-light);
  color: var(--secondary-dark);
}

.grid > *:nth-child(3n+3) .doctor-photo {
  background: var(--gold-light);
  color: var(--gold-dark);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
}

.card-link i {
  transition: transform 0.2s ease;
}

.card-link:hover i {
  transform: translateX(3px);
}

/* ---------- Doctor card ---------- */

.doctor-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
}

.doctor-photo {
  height: 160px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 700;
  overflow: hidden;
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-info {
  padding: 20px;
}

.doctor-info h3 {
  margin-bottom: 4px;
}

.doctor-specialty {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.doctor-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.doctor-meta div {
  margin-bottom: 4px;
}

/* ---------- Stats band ---------- */

.stats-bento-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.stats-bento {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: repeat(3, auto);
  gap: 16px;
}

.stat-bento-hero {
  position: relative;
  grid-row: 1 / 4;
  overflow: hidden;
  background: var(--gradient-brand);
  color: var(--white);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-bento-watermark {
  position: absolute;
  right: -18px;
  bottom: -24px;
  font-size: 11rem;
  color: rgba(255, 255, 255, 0.08);
  transform: rotate(-8deg);
  pointer-events: none;
}

.stat-bento-icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.stat-bento-hero strong {
  position: relative;
  display: block;
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}

.stat-bento-hero > span {
  position: relative;
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-bento-hero p {
  position: relative;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 320px;
  margin: 0;
  line-height: 1.5;
}

.stat-bento-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stat-bento-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.stat-bento-icon-sm {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.stat-bento-icon-sm.accent-purple { background: var(--primary-light); color: var(--primary); }
.stat-bento-icon-sm.accent-teal { background: var(--secondary-light); color: var(--secondary-dark); }
.stat-bento-icon-sm.accent-gold { background: var(--gold-light); color: var(--gold-dark); }

.stat-bento-item strong {
  display: block;
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-bento-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

@media (max-width: 900px) {
  .stats-bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .stat-bento-hero {
    grid-row: auto;
  }
  .stat-bento-watermark { font-size: 8rem; }
}

/* ---------- Testimonials ---------- */

.testimonial-card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 26px 26px;
  box-shadow: var(--shadow);
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  right: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--primary-light);
  z-index: 0;
}

.testimonial-card > * {
  position: relative;
  z-index: 1;
}

.testimonial-stars {
  color: #e0a527;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.testimonial-author strong {
  display: block;
  font-size: 0.88rem;
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- Photo collage (Gallery page) ---------- */

.photo-collage {
  column-count: 4;
  column-gap: 14px;
}

.collage-item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collage-item:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-lg);
}

.collage-item img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .photo-collage { column-count: 3; }
}

@media (max-width: 640px) {
  .photo-collage { column-count: 2; column-gap: 10px; }
  .collage-item { margin-bottom: 10px; }
}

/* ---------- Visit process (illustrated steps) ---------- */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step-number {
  position: absolute;
  top: -6px;
  right: calc(50% - 54px);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step-art {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
}

.process-step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.process-connector {
  position: absolute;
  top: 44px;
  left: calc(12.5% + 44px);
  right: calc(12.5% + 44px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0, var(--border) 6px, transparent 6px, transparent 12px);
  z-index: 0;
}

@media (max-width: 900px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .process-connector { display: none; }
}

@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
}

.process-step:nth-child(4n+1) .ps-bg { fill: var(--primary-light); }
.process-step:nth-child(4n+1) .ps-icon { fill: none; stroke: var(--primary); }
.process-step:nth-child(4n+2) .ps-bg { fill: var(--secondary-light); }
.process-step:nth-child(4n+2) .ps-icon { fill: none; stroke: var(--secondary-dark); }
.process-step:nth-child(4n+3) .ps-bg { fill: var(--gold-light); }
.process-step:nth-child(4n+3) .ps-icon { fill: none; stroke: var(--gold-dark); }
.process-step:nth-child(4n+4) .ps-bg { fill: var(--accent-light); }
.process-step:nth-child(4n+4) .ps-icon { fill: none; stroke: var(--accent); }

/* ---------- Visit us / map section ---------- */

.visit-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.visit-panel-info {
  background: var(--surface-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.visit-panel-info h2 {
  margin-bottom: 10px;
}

.visit-panel-info p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.visit-detail-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.visit-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
}

.visit-detail-item i {
  color: var(--primary);
  width: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

.visit-detail-item strong {
  display: block;
  font-size: 0.86rem;
}

.visit-detail-item span {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.visit-panel-map {
  min-height: 340px;
}

.visit-panel-map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
}

@media (max-width: 900px) {
  .visit-panel { grid-template-columns: 1fr; }
  .visit-panel-info { padding: 32px 28px; }
  .visit-panel-map iframe { min-height: 280px; }
}

/* ---------- Section dividers ---------- */

.section-divider {
  display: block;
  width: 100%;
  height: 60px;
  margin-bottom: -1px;
  color: var(--bg-light);
}

.section-divider--flip {
  transform: rotate(180deg);
}

@media (max-width: 720px) {
  .section-divider { height: 32px; }
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  background: var(--gradient-warm);
  color: var(--white);
  border-radius: 20px;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 70%);
  top: -140px;
  right: -60px;
  pointer-events: none;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 6px;
}

.cta-band p {
  color: var(--accent-light);
}

/* ---------- Forms ---------- */

.form-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group .required {
  color: var(--accent);
}

input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--surface-card);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.form-success {
  display: none;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.form-success.show {
  display: block;
}

.form-error {
  color: #b3261e;
  font-size: 0.78rem;
  margin-top: 4px;
  display: none;
}

/* ---------- Info list (contact page) ---------- */

.info-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.info-item {
  display: flex;
  gap: 16px;
}

.info-item .icon-tile {
  margin-bottom: 0;
  flex-shrink: 0;
}

.info-item h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.info-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.map-placeholder {
  height: 320px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border: 1px solid var(--border);
}

/* ---------- Values / accreditation ---------- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 28px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.value-card .icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.value-card.accent-purple { background: linear-gradient(160deg, var(--primary-light) 0%, var(--surface-card) 55%); }
.value-card.accent-purple .icon-tile { background: var(--primary); }
.value-card.accent-purple .dna-letter { color: var(--primary); }

.value-card.accent-teal { background: linear-gradient(160deg, var(--secondary-light) 0%, var(--surface-card) 55%); }
.value-card.accent-teal .icon-tile { background: var(--secondary); }
.value-card.accent-teal .dna-letter { color: var(--secondary-dark); }

.value-card.accent-gold { background: linear-gradient(160deg, var(--gold-light) 0%, var(--surface-card) 55%); }
.value-card.accent-gold .icon-tile { background: var(--gold); }
.value-card.accent-gold .dna-letter { color: var(--gold-dark); }

.value-card.accent-rose { background: linear-gradient(160deg, var(--accent-light) 0%, var(--surface-card) 55%); }
.value-card.accent-rose .icon-tile { background: var(--accent); }
.value-card.accent-rose .dna-letter { color: var(--accent); }

.value-grid.in-view .dna-letter {
  animation: dna-hop 0.9s ease;
  animation-iteration-count: 3;
}

.value-grid.in-view .value-card:nth-child(1) .dna-letter { animation-delay: 0s; }
.value-grid.in-view .value-card:nth-child(2) .dna-letter { animation-delay: 0.12s; }
.value-grid.in-view .value-card:nth-child(3) .dna-letter { animation-delay: 0.24s; }
.value-grid.in-view .value-card:nth-child(4) .dna-letter { animation-delay: 0.36s; }
.value-grid.in-view .value-card:nth-child(5) .dna-letter { animation-delay: 0.48s; }
.value-grid.in-view .value-card:nth-child(6) .dna-letter { animation-delay: 0.6s; }

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

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

.dna-caption strong {
  color: var(--primary);
  letter-spacing: 0.06em;
}

.core-values-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.core-value-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px 10px 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.core-value-chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.core-value-chip .icon-tile {
  width: 36px;
  height: 36px;
  margin-bottom: 0;
  font-size: 1rem;
  border-radius: 11px;
  color: #fff;
}

.core-value-chip.accent-purple .icon-tile { background: var(--primary); }
.core-value-chip.accent-teal .icon-tile { background: var(--secondary); }
.core-value-chip.accent-gold .icon-tile { background: var(--gold); }
.core-value-chip.accent-rose .icon-tile { background: var(--accent); }

.core-value-chip span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
}

.dna-letter {
  display: inline-block;
  font-size: 1.15em;
  font-weight: 800;
}

.core-value-chip.accent-purple .dna-letter { color: var(--primary); }
.core-value-chip.accent-teal .dna-letter { color: var(--secondary-dark); }
.core-value-chip.accent-gold .dna-letter { color: var(--gold-dark); }
.core-value-chip.accent-rose .dna-letter { color: var(--accent); }

@keyframes dna-hop {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-7px); }
  55% { transform: translateY(0); }
  75% { transform: translateY(-3px); }
}

.core-values-row.in-view .dna-letter {
  animation: dna-hop 0.9s ease;
  animation-iteration-count: 3;
}

.core-values-row.in-view .core-value-chip:nth-child(1) .dna-letter { animation-delay: 0s; }
.core-values-row.in-view .core-value-chip:nth-child(2) .dna-letter { animation-delay: 0.12s; }
.core-values-row.in-view .core-value-chip:nth-child(3) .dna-letter { animation-delay: 0.24s; }
.core-values-row.in-view .core-value-chip:nth-child(4) .dna-letter { animation-delay: 0.36s; }
.core-values-row.in-view .core-value-chip:nth-child(5) .dna-letter { animation-delay: 0.48s; }
.core-values-row.in-view .core-value-chip:nth-child(6) .dna-letter { animation-delay: 0.6s; }

@media (max-width: 720px) {
  .mv-grid { grid-template-columns: 1fr; }
  .core-values-row { gap: 10px; }
  .core-value-chip { padding: 8px 14px 8px 8px; }
  .core-value-chip span { font-size: 0.8rem; }
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.badge-pill {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ---------- Coming soon / pharmacy preview ---------- */

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.coming-soon-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6EE7A8;
  box-shadow: 0 0 0 rgba(110, 231, 168, 0.6);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(110, 231, 168, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(110, 231, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 231, 168, 0); }
}

.preview-card {
  position: relative;
  opacity: 0.62;
  cursor: not-allowed;
  filter: grayscale(25%);
  user-select: none;
}

.preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.preview-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--text-dark);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  z-index: 2;
}

.pharmacy-hero {
  background: var(--gradient-brand);
  color: var(--white);
  padding: 72px 0 64px;
  text-align: center;
}

.pharmacy-hero .eyebrow-badges {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.pharmacy-hero h1 {
  color: var(--white);
  max-width: 780px;
  margin: 0 auto 16px;
}

.pharmacy-hero p.lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 0 auto 28px;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.waitlist-form input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-size: 0.92rem;
}

.waitlist-form button {
  border-radius: 999px;
  white-space: nowrap;
}

.waitlist-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 12px;
}

.architecture-note {
  background: var(--bg-light);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.architecture-note i {
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}

/* ---------- Pharmacy shop: catalog, cart, checkout, orders ---------- */

.shop-toolbar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.drug-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.rx-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(231, 111, 81, 0.12);
  color: #C1440E;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(231, 111, 81, 0.3);
}

[data-theme="dark"] .rx-badge {
  background: rgba(231, 111, 81, 0.18);
  color: #FF9B73;
}

.drug-category {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  margin-top: 2px;
}

.stock-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stock-badge.ok { color: #3B6D11; }
.stock-badge.ok::before { background: #6BB05A; }

.stock-badge.low { color: #B5760A; }
.stock-badge.low::before { background: #E7A93F; }

.stock-badge.out { color: #C1440E; }
.stock-badge.out::before { background: #E76F51; }

.drug-card.out-of-stock {
  opacity: 0.75;
}

.drug-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin: 10px 0 14px;
}

.drug-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.qty-stepper button {
  width: 30px;
  height: 30px;
  border: none;
  background: var(--bg-light);
  color: var(--text-dark);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.qty-stepper button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-stepper span {
  width: 30px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.drug-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

/* Floating cart button */

.cart-fab {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.cart-fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

/* Cart drawer */

.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 30, 0.45);
  z-index: 1000;
}

.cart-overlay.open {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  left: -420px;
  width: 400px;
  max-width: 88vw;
  height: 100%;
  background: var(--surface-card);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.2);
  transition: left 0.25s ease;
}

.cart-drawer.open {
  left: 0;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}

.cart-drawer-header h3 {
  margin: 0;
}

.cart-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-light);
  cursor: pointer;
  color: var(--text-dark);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}

.cart-line {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-line:last-child {
  border-bottom: none;
}

.cart-line-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-line-info {
  flex: 1;
  min-width: 0;
}

.cart-line-info .name {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.cart-line-info .price {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-line-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
}

.cart-line-remove:hover {
  color: #C1440E;
}

.cart-drawer-footer {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--border);
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.cart-empty-state {
  text-align: center;
  padding: 40px 10px;
  color: var(--text-muted);
}

/* Checkout */

.order-summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.88rem;
}

.order-summary-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.order-summary-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.order-summary-table tr:last-child td {
  border-bottom: none;
}

.order-total-row td {
  font-weight: 700;
  font-size: 1rem;
  padding-top: 14px;
}

.delivery-method-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.delivery-option {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  text-align: center;
}

.delivery-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.delivery-option i {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.delivery-option h4 {
  margin: 0 0 2px;
  font-size: 0.9rem;
}

.delivery-option p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.prescription-gate {
  background: rgba(231, 111, 81, 0.08);
  border: 1px solid rgba(231, 111, 81, 0.3);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}

.prescription-gate h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #C1440E;
}

[data-theme="dark"] .prescription-gate h4 {
  color: #FF9B73;
}

.prescription-gate p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.prescription-upload {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  background: var(--surface-card);
}

.prescription-upload input[type="file"] {
  margin: 0 auto;
}

.prescription-filename {
  font-size: 0.82rem;
  color: var(--primary);
  margin-top: 8px;
  font-weight: 600;
}

/* Order status pills (extends .status-pill) */

.status-pill.pending {
  background: rgba(231, 111, 81, 0.14);
  color: #C1440E;
}

.status-pill.processing {
  background: rgba(91, 124, 250, 0.14);
  color: #3D4FC7;
}

.status-pill.ready {
  background: rgba(107, 176, 90, 0.16);
  color: #3B6D11;
}

.status-pill.completed {
  background: var(--bg-success, #EAF3DE);
  color: #3B6D11;
}

.status-pill.cancelled {
  background: var(--bg-light);
  color: var(--text-muted);
}

.admin-row.catalog-row {
  grid-template-columns: 1.3fr 1fr 90px 130px 70px 100px 170px;
}

.low-stock-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(231, 169, 63, 0.14);
  border: 1px solid rgba(231, 169, 63, 0.4);
  color: #B5760A;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

[data-theme="dark"] .low-stock-banner {
  color: #E7A93F;
}

.admin-row.order-row {
  grid-template-columns: 1fr 1fr 90px 110px 160px 140px;
}

.admin-row.staff-row {
  grid-template-columns: 1fr 1.2fr 130px 110px 190px;
}

.auth-toggle {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-toggle button {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
}

.current-staff-badge {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.current-staff-badge strong {
  color: var(--text-dark);
}

.order-detail-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.order-detail-card strong {
  display: block;
  margin-bottom: 4px;
}

.prescription-preview-img {
  max-width: 220px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-top: 10px;
  display: block;
}

@media (max-width: 720px) {
  .cart-drawer { width: 100%; max-width: 100%; left: -100%; }
  .delivery-method-options { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .admin-row.catalog-row,
  .admin-row.order-row,
  .admin-row.staff-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Timeline ---------- */

.timeline {
  border-left: 2px solid var(--border);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
}

.timeline-item strong {
  color: var(--primary);
  font-size: 0.85rem;
}

/* ---------- Footer ---------- */

footer.site-footer {
  position: relative;
  background: linear-gradient(180deg, #2B2440 0%, #241E38 100%);
  color: #C3BAD9;
  padding: 56px 0 0;
  overflow: hidden;
}

footer.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--gold) 100%);
  opacity: 0.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-grid ul li {
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.footer-grid ul a:hover {
  color: var(--white);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer-about p {
  font-size: 0.87rem;
  color: #A79FBB;
  margin-bottom: 18px;
}

.social-row {
  display: flex;
  gap: 10px;
}

.social-row a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.8rem;
  color: #8F87A3;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }

/* ---------- Responsive ---------- */

/* Laptop / narrow desktop: tighten the wide header before anything reflows */
@media (max-width: 1300px) {
  .container-wide { padding: 0 24px; }
  .container-80 { width: 90%; }
  nav.main-nav > ul { gap: 26px; }
  .nav-wrap { gap: 24px; }
}

/* Tablet */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .wizard-step-indicator span.label { font-size: 0.68rem; }
  .article-body, .article-header, .article-cover { max-width: 100%; }
  .blog-layout { grid-template-columns: 1fr; }
  .ad-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .ad-sidebar .ad-card { flex: 1 1 220px; }
}

/* Mobile nav switches on at this breakpoint */
@media (max-width: 720px) {
  .container, .container-wide { padding: 0 20px; }
  .container-80 { width: 100%; padding: 0 20px; }
  .section { padding: 52px 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.15rem; }
  nav.main-nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions { gap: 10px; }
  .nav-actions .btn-secondary { display: none; }
  .nav-wrap { gap: 12px; }
  .logo-text small { display: none; }
  .logo-tagline { display: none; }
  .logo-img { height: 32px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 32px 24px; }
  .stat-bento-item { padding: 16px 18px; }
  .stat-bento-hero { padding: 28px 24px; }
  .page-header { padding: 40px 0; }
  .hero { padding: 40px 0 40px; }
  .hero-visual { padding: 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .hero-trust { flex-direction: column; gap: 10px; }
  .topbar-item { margin-right: 0; }
  .topbar .container, .topbar .container-wide { justify-content: center; text-align: center; }
  .trust-strip { gap: 18px; }
  .wizard-progress { gap: 4px; }
  .wizard-connector { margin: 0 -2px 22px; }
  .wizard-step-indicator span.label { display: none; }
  .wizard-nav { flex-wrap: wrap; gap: 10px; }
  .wizard-nav .btn { flex: 1; min-width: 120px; }
  .filter-bar, .job-filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar select, .job-filter-bar select, .search-bar { max-width: 100%; width: 100%; }
  .job-card { flex-direction: column; align-items: stretch; text-align: left; }
  .job-card .btn { width: 100%; text-align: center; }
  .admin-topbar { flex-direction: column; align-items: stretch; }
  .admin-topbar .btn { width: 100%; text-align: center; }
  .newsletter-row { flex-direction: column; }
  .newsletter-row button { padding: 12px; }
  .modal-box { padding: 20px; }
  .wa-widget { right: 14px; bottom: 14px; }
  .back-to-top { right: 14px; bottom: 84px; width: 40px; height: 40px; }
  .wa-button { width: 52px; height: 52px; font-size: 1.4rem; }
}

nav.main-nav.open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface-card);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  max-height: calc(100vh - 100%);
  overflow-y: auto;
}

nav.main-nav.open > ul {
  flex-direction: column;
  gap: 4px;
}

nav.main-nav.open a {
  display: block;
  padding: 10px 0;
}

/* Small phones */
@media (max-width: 480px) {
  .container, .container-wide { padding: 0 16px; }
  .container-80 { padding: 0 16px; }
  .section { padding: 40px 0; }
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.4rem; }
  .logo { font-size: 1.1rem; }
  .logo-mark { width: 36px; height: 36px; font-size: 1.05rem; }
  .topbar { font-size: 0.72rem; }
  .topbar-item { gap: 4px; }
  .btn { padding: 11px 18px; font-size: 0.9rem; }
  .hero-badge { font-size: 0.72rem; padding: 6px 10px; }
  .hero-visual-image { height: 160px; font-size: 2.2rem; }
  .hero-stat-row { gap: 8px; }
  .hero-stat { padding: 10px 6px; }
  .hero-stat strong { font-size: 1.15rem; }
  .stat-bento-hero strong { font-size: 2.6rem; }
  .stat-bento-item strong { font-size: 1.4rem; }
  .stat-bento-icon-sm { width: 44px; height: 44px; font-size: 1.1rem; }
  .stat-bento-watermark { font-size: 6.5rem; }
  .card { padding: 20px; }
  .form-card { padding: 20px; }
  .doctor-photo, .blog-card-cover, .gallery-image { height: 120px; font-size: 1.8rem; }
  .article-cover { height: 160px; font-size: 2.2rem; }
  .job-meta { flex-direction: column; gap: 6px; align-items: flex-start; }
  .admin-notice { font-size: 0.78rem; }
  .review-row { flex-direction: column; gap: 2px; align-items: flex-start; }
}

/* ---------- WhatsApp chat widget ---------- */

.wa-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.wa-button {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.wa-button:hover {
  background: #1FBE5A;
}

.wa-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.wa-panel {
  display: none;
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 300px;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.wa-panel.open {
  display: block;
}

.wa-panel-header {
  background: #075E54;
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-panel-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: #075E54;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.wa-panel-header div strong {
  display: block;
  font-size: 0.9rem;
}

.wa-panel-header div span {
  font-size: 0.75rem;
  color: #cfe9e4;
}

.wa-panel-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
}

.wa-panel-body {
  background: #E5DDD5;
  padding: 14px 16px;
}

.wa-bubble {
  background: #ffffff;
  border-radius: 0 10px 10px 10px;
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--text-dark);
  max-width: 90%;
  margin-bottom: 12px;
}

.wa-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-option {
  display: block;
  background: #ffffff;
  border: 1px solid #d7d0c8;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.83rem;
  font-weight: 600;
  color: #075E54;
  text-align: left;
}

.wa-option:hover {
  background: #f4f2ee;
}

.wa-panel-footer {
  padding: 10px 16px;
  background: #ffffff;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 480px) {
  .wa-panel {
    width: calc(100vw - 44px);
  }
}

/* ---------- Theme toggle ---------- */

.theme-toggle,
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-card);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
}

.theme-toggle:hover,
.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: inline; }

/* ---------- Dropdown nav ---------- */

.has-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  max-width: calc(100vw - 32px);
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  margin-top: 10px;
  z-index: 50;
}

/* Invisible bridge over the gap between the trigger and the menu so the
   mouse never leaves the hoverable area while moving down into it. */
.dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
  background: transparent;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-body);
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

@media (max-width: 720px) {
  .dropdown-menu {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 14px;
    margin-top: 4px;
  }
  .has-dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* ---------- Services mega menu ---------- */

.card, .value-item, .value-card {
  scroll-margin-top: 120px;
}

.has-megamenu {
  position: static;
}

.megamenu {
  left: 0;
  right: 0;
  margin: 10px auto 0;
  width: calc(100% - 80px);
  max-width: 1360px;
  padding: 32px 40px 8px;
  flex-direction: column;
}

.has-dropdown:hover .megamenu,
.has-dropdown.open .megamenu {
  display: flex;
}

.megamenu-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.megamenu-heading h4 {
  font-size: 1rem;
  margin: 0;
}

.megamenu-heading span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.megamenu-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 250px;
  gap: 8px 32px;
}

.megamenu-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
}

.megamenu-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 10px;
  margin-bottom: 10px;
}

.megamenu-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.megamenu-col a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--text-body);
}

.megamenu-col a i {
  width: 16px;
  text-align: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.megamenu-col.accent-purple .megamenu-label { color: var(--primary); }
.megamenu-col.accent-purple a i { color: var(--primary); }
.megamenu-col.accent-purple a:hover { background: var(--primary-light); color: var(--primary); }

.megamenu-col.accent-teal .megamenu-label { color: var(--secondary-dark); }
.megamenu-col.accent-teal a i { color: var(--secondary-dark); }
.megamenu-col.accent-teal a:hover { background: var(--secondary-light); color: var(--secondary-dark); }

.megamenu-col.accent-gold .megamenu-label { color: var(--gold-dark); }
.megamenu-col.accent-gold a i { color: var(--gold-dark); }
.megamenu-col.accent-gold a:hover { background: var(--gold-light); color: var(--gold-dark); }

.megamenu-viewall {
  margin-top: 6px;
  font-weight: 600;
  color: var(--gold-dark) !important;
}

.megamenu-promo {
  border-left: 1px solid var(--border);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.megamenu-promo-art {
  width: 100%;
  height: auto;
  margin-bottom: 14px;
}

.megamenu-promo-art .mm-bg { fill: var(--primary-light); }
.megamenu-promo-art .mm-circle { fill: var(--primary); }
.megamenu-promo-art .mm-cross { fill: var(--white); }
.megamenu-promo-art .mm-line { stroke: var(--secondary-dark); }
.megamenu-promo-art .mm-dot-gold { fill: var(--gold); }
.megamenu-promo-art .mm-dot-teal { fill: var(--secondary); }

.megamenu-promo h4 {
  font-size: 0.95rem;
  margin: 0 0 6px;
}

.megamenu-promo p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 14px;
}

.megamenu-promo .btn {
  padding: 9px 18px;
  font-size: 0.82rem;
  width: 100%;
  justify-content: center;
}

.megamenu-footer {
  margin-top: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.megamenu-footer i {
  color: var(--primary);
  margin-right: 6px;
}

.megamenu-footer .btn {
  padding: 9px 20px;
  font-size: 0.82rem;
}

@media (max-width: 1100px) {
  .megamenu-columns {
    grid-template-columns: repeat(2, 1fr) 220px;
  }
}

@media (max-width: 900px) {
  .megamenu {
    width: calc(100% - 40px);
  }
  .megamenu-columns {
    grid-template-columns: repeat(2, 1fr);
  }
  .megamenu-promo {
    grid-column: 1 / 3;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 18px;
    margin-top: 8px;
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  .megamenu-promo-art {
    width: 90px;
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .megamenu-promo .btn {
    width: auto;
  }
  .megamenu-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .megamenu {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 14px;
    margin-top: 4px;
    width: auto;
  }
  .has-dropdown:hover .megamenu,
  .has-dropdown.open .megamenu {
    display: block;
  }
  .megamenu-heading { display: none; }
  .megamenu-columns { display: block; }
  .megamenu-col { margin-bottom: 6px; }
  .megamenu-promo {
    border: none;
    border-top: 1px solid var(--border);
    padding: 14px 0 0;
    margin-top: 10px;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  .megamenu-promo-art {
    width: 70px;
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .megamenu-promo .btn {
    width: auto;
  }
  .megamenu-footer {
    flex-direction: column;
    align-items: flex-start;
    border-top: none;
  }
}

/* ---------- WordPress-style admin shell (admin.html only) ---------- */

.wp-admin-page {
  background: #f0f0f1;
}
[data-theme="dark"].wp-admin-page {
  background: #101014;
}

.wp-admin-page header.site-header {
  height: 46px;
  background: #1d2327;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 200;
}
.wp-admin-page header.site-header .container-wide {
  height: 46px;
}
.wp-admin-page header.site-header .logo-tagline {
  color: #a7aaad;
}
.wp-admin-page header.site-header .logo-img {
  height: 22px;
  filter: brightness(0) invert(1);
}
.wp-admin-page header.site-header .nav-actions a,
.wp-admin-page header.site-header .nav-actions button {
  color: #ccd0d4;
  border-color: rgba(255,255,255,0.18);
  background: transparent;
}
.wp-admin-page header.site-header .nav-actions a:hover,
.wp-admin-page header.site-header .nav-actions button:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.wp-admin-page header.site-header .theme-toggle {
  color: #ccd0d4;
}
.wp-admin-page .current-staff-badge {
  color: #ccd0d4;
  font-size: 0.82rem;
}
.wp-admin-page .current-staff-badge strong {
  color: #fff;
}

.wp-admin-shell {
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - 46px);
}

#login-view:not([hidden]) ~ .wp-admin-shell {
  display: none;
}

.wp-sidebar {
  width: 210px;
  flex-shrink: 0;
  background: #1d2327;
  min-height: calc(100vh - 46px);
  padding: 14px 0 40px;
  position: sticky;
  top: 46px;
}
.admin-section-tab.wp-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 18px;
  color: #ccd0d4;
  font-size: 0.85rem;
  font-weight: 400;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 0;
  cursor: pointer;
  text-align: left;
}
.admin-section-tab.wp-sidebar-item i {
  width: 16px;
  text-align: center;
  font-size: 0.92rem;
  flex-shrink: 0;
}
.admin-section-tab.wp-sidebar-item:hover {
  background: #2c3338;
  color: #fff;
}
.admin-section-tab.wp-sidebar-item.active {
  background: var(--primary);
  color: #fff;
  border-left-color: rgba(255,255,255,0.8);
}
.wp-sidebar-label {
  padding: 16px 18px 6px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6c7378;
}

.wp-content {
  flex: 1;
  min-width: 0;
  padding: 26px 28px 60px;
}

@media (max-width: 900px) {
  .wp-admin-shell { flex-direction: column; }
  .wp-sidebar {
    width: 100%;
    min-height: 0;
    position: static;
    display: flex;
    overflow-x: auto;
    padding: 4px 6px;
  }
  .admin-section-tab.wp-sidebar-item {
    width: auto;
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  .admin-section-tab.wp-sidebar-item.active {
    border-left-color: transparent;
    border-bottom-color: rgba(255,255,255,0.8);
  }
  .wp-sidebar-label { display: none; }
  .wp-content { padding: 18px 16px 40px; }
}

/* Dashboard (home) widgets */

.wp-dash-header { margin-bottom: 20px; }
.wp-dash-header h1 { margin: 0 0 4px; font-size: 1.5rem; }

.wp-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.wp-stat-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}
.wp-stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.wp-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.wp-stat-card.alert .wp-stat-icon {
  background: #FDEBD0;
  color: #B5760A;
}
.wp-stat-number { font-size: 1.4rem; font-weight: 700; line-height: 1.1; }
.wp-stat-label { font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; }

.wp-widget-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .wp-widget-grid { grid-template-columns: 1fr; }
}

.wp-widget-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}
.wp-widget-card h3 {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.wp-widget-card-body { padding: 6px 16px 14px; }
.wp-widget-card-body .empty-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 12px 0;
}
.wp-quick-list { list-style: none; padding: 0; margin: 0; }
.wp-quick-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
}
.wp-quick-list li:last-child { border-bottom: none; }
.wp-quick-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 0 4px; }

/* Slightly more list-table-like rows in the admin */
.admin-row:not(.head):hover {
  background: rgba(0,0,0,0.02);
}
[data-theme="dark"] .admin-row:not(.head):hover {
  background: rgba(255,255,255,0.03);
}

/* ---------- Header scrolled state ---------- */

header.site-header.scrolled {
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-card);
  border: 1px solid var(--border);
  color: var(--primary);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.back-to-top.show {
  display: flex;
}

/* ---------- Stat counters ---------- */

.counter {
  font-variant-numeric: tabular-nums;
}

/* ---------- Testimonial carousel ---------- */

.carousel {
  position: relative;
}

.carousel-track {
  overflow: hidden;
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  padding: 2px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
}

.carousel-dot.active {
  background: var(--primary);
  width: 22px;
  border-radius: 999px;
}

/* ---------- FAQ accordion ---------- */

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--surface-card);
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--primary-light);
}

.faq-item.open {
  border-color: var(--primary-light);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
}

.faq-question i {
  color: var(--primary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer p {
  padding: 0 18px 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.faq-category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.faq-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-card);
  color: var(--text-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.faq-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ---------- Multi-step wizard ---------- */

.wizard-progress {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}

.wizard-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  text-align: center;
}

.wizard-step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-card);
  border: 2px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.wizard-step-indicator.active .wizard-step-circle {
  border-color: var(--primary);
  color: var(--primary);
}

.wizard-step-indicator.done .wizard-step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.wizard-step-indicator span.label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.wizard-step-indicator.active span.label {
  color: var(--primary);
}

.wizard-connector {
  height: 2px;
  background: var(--border);
  flex: 1;
  margin: 0 -8px 22px;
}

.wizard-panel {
  display: none;
}

.wizard-panel.active {
  display: block;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.review-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.review-row span:first-child {
  color: var(--text-muted);
}

.review-row span:last-child {
  font-weight: 600;
  color: var(--text-dark);
}

/* ---------- Newsletter ---------- */

.newsletter-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.newsletter-row input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.newsletter-row input::placeholder {
  color: #9a91af;
}

.newsletter-row button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  flex-shrink: 0;
}

/* ---------- Trust strip ---------- */

/* ---------- Auto-scrolling photo gallery (About page) ---------- */

.scroll-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scroll-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.scroll-row-track {
  display: flex;
  gap: 14px;
  width: max-content;
}

.scroll-row-track.scroll-left {
  animation: scroll-row-left 42s linear infinite;
}

.scroll-row-track.scroll-right {
  animation: scroll-row-right 42s linear infinite;
}

@keyframes scroll-row-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes scroll-row-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.scroll-row:hover .scroll-row-track {
  animation-play-state: paused;
}

.scroll-item {
  flex-shrink: 0;
  width: 260px;
  height: 170px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease, z-index 0s;
  position: relative;
  z-index: 1;
}

.scroll-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.scroll-item:hover {
  transform: scale(1.18);
  box-shadow: var(--shadow-lg);
  z-index: 5;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-row-track { animation: none; }
}

@media (max-width: 720px) {
  .scroll-item { width: 190px; height: 130px; }
  .scroll-item:hover { transform: scale(1.1); }
}

/* ---------- Vertical scrolling photo gallery (Gallery page) ---------- */

.scroll-gallery-vertical {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  height: 640px;
}

.scroll-col {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.scroll-col-track {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: max-content;
}

.scroll-col-track.scroll-up {
  animation: scroll-col-up 75s linear infinite;
}

.scroll-col-track.scroll-down {
  animation: scroll-col-down 75s linear infinite;
}

@keyframes scroll-col-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@keyframes scroll-col-down {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}

.scroll-col:hover .scroll-col-track {
  animation-play-state: paused;
}

.scroll-col .scroll-item {
  width: 100%;
  height: 210px;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-col-track { animation: none; }
}

@media (max-width: 900px) {
  .scroll-gallery-vertical { grid-template-columns: repeat(3, 1fr); height: 560px; }
  .scroll-col .scroll-item { height: 170px; }
}

@media (max-width: 620px) {
  .scroll-gallery-vertical { grid-template-columns: repeat(2, 1fr); height: 480px; }
  .scroll-col .scroll-item { height: 150px; }
}

.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  padding: 20px 0;
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: logo-marquee-scroll 28s linear infinite;
}

.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}

@keyframes logo-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 22px 14px 14px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.logo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.logo-card-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: -0.02em;
  color: var(--white);
  flex-shrink: 0;
}

.logo-card span {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
  white-space: nowrap;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.partner-grid .logo-card {
  justify-content: center;
}

@media (max-width: 720px) {
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .partner-grid { grid-template-columns: 1fr; }
}

.logo-card-logo {
  height: 32px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-card:nth-child(5n+1) .logo-card-badge { background: var(--primary); }
.logo-card:nth-child(5n+2) .logo-card-badge { background: var(--secondary-dark); }
.logo-card:nth-child(5n+3) .logo-card-badge { background: var(--gold-dark); }
.logo-card:nth-child(5n+4) .logo-card-badge { background: var(--accent); }
.logo-card:nth-child(5n+5) .logo-card-badge { background: var(--primary-dark); }

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; }
}

/* ---------- Search bar ---------- */

.search-bar {
  position: relative;
  max-width: 360px;
}

.search-bar i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-bar input {
  padding-left: 38px;
}

/* ---------- Filter bars (doctors, careers) ---------- */

.filter-bar,
.job-filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-bar label,
.job-filter-bar label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  flex-shrink: 0;
}

.filter-bar select,
.job-filter-bar select {
  max-width: 260px;
}

.doctor-card[hidden],
.job-card[hidden],
.faq-item[hidden] {
  display: none;
}

/* ---------- Doctor modal ---------- */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 30, 0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--surface-card);
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  padding: 28px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
}

/* ---------- Facility gallery ---------- */

.gallery-tile {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-card);
}

.gallery-image {
  height: 140px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.gallery-caption {
  padding: 14px 16px;
}

.gallery-caption h3 {
  font-size: 0.98rem;
  margin-bottom: 3px;
}

.gallery-caption p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- Careers ---------- */

.job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-card);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.job-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.job-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ---------- Blog ---------- */

.blog-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
  transform: translateY(-6px);
}

.blog-card-cover {
  height: 150px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.grid > *:nth-child(3n+2) .blog-card-cover {
  background: var(--secondary-light);
  color: var(--secondary-dark);
}

.grid > *:nth-child(3n+3) .blog-card-cover {
  background: var(--gold-light);
  color: var(--gold-dark);
}

.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-category {
  display: inline-block;
  align-self: flex-start;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.blog-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.blog-card-body p {
  color: var(--text-muted);
  font-size: 0.88rem;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.blog-card-meta .avatar-sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}

.blog-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* ---------- Blog layout with ad sidebar ---------- */

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.ad-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
}

.ad-sidebar-heading {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: -8px;
}

.ad-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ad-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.ad-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.ad-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 12px;
}

.ad-card h4 {
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.ad-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.ad-card a.btn {
  width: 100%;
}

.ad-empty-slot {
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 28px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ---------- Blog article ---------- */

.article-header {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-body {
  max-width: 720px;
  margin: 40px auto 0;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-body);
}

.article-body p {
  margin-bottom: 20px;
}

.article-cover {
  max-width: 720px;
  margin: 32px auto 0;
  height: 220px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

/* ---------- Admin ---------- */

.admin-shell {
  min-height: 60vh;
}

.admin-login-card {
  max-width: 380px;
  margin: 0 auto;
}

.admin-notice {
  background: var(--bg-warning, var(--accent-light));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.82rem;
  color: var(--text-body);
  margin-bottom: 24px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.admin-notice i {
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.admin-section-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 4px;
  margin-right: 20px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.admin-section-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.ad-row-preview {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ad-row-preview .admin-row-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.ad-order-controls {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ad-order-controls button {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 22px;
  height: 18px;
  font-size: 0.65rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.ad-order-controls button:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.ad-order-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}

.admin-table-wrap {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr 140px 110px 130px 170px;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.admin-row.waitlist-row {
  grid-template-columns: 1fr 1fr 140px 110px;
}

.admin-row:last-child {
  border-bottom: none;
}

.admin-row.head {
  background: var(--bg-light);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.admin-row-title {
  font-weight: 600;
  color: var(--text-dark);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.status-pill.published {
  background: var(--bg-success, #EAF3DE);
  color: #3B6D11;
}

.status-pill.draft {
  background: var(--bg-light);
  color: var(--text-muted);
}

.admin-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-row-actions button,
.admin-row-actions a {
  font-size: 0.78rem;
  padding: 6px 10px;
  height: auto;
}

@media (max-width: 900px) {
  .admin-row { grid-template-columns: 1fr; gap: 6px; }
  .admin-row.waitlist-row { grid-template-columns: 1fr; }
}

/* ======================================================================
   Alternate homepage layout components (index-alt.html only)
   ====================================================================== */

/* ---------- Floating quick-access bar ---------- */

.quick-access-wrap {
  position: relative;
  z-index: 3;
  margin-top: 8px;
  padding-bottom: 24px;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.quick-access-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  padding: 30px 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  color: var(--text-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-access-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(var(--primary-rgb), 0.22);
}

.quick-access-card h4 {
  font-size: 1.05rem;
  margin: 2px 0 0;
  color: var(--text-dark);
}

.quick-access-card p {
  font-size: 0.85rem;
  margin: 4px 0 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.qa-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
}

.quick-access-card.accent-purple { background: linear-gradient(160deg, var(--primary-light) 0%, var(--surface-card) 60%); }
.quick-access-card.accent-purple .qa-icon { background: var(--primary); }

.quick-access-card.accent-teal { background: linear-gradient(160deg, var(--secondary-light) 0%, var(--surface-card) 60%); }
.quick-access-card.accent-teal .qa-icon { background: var(--secondary); }

.quick-access-card.accent-gold { background: linear-gradient(160deg, var(--gold-light) 0%, var(--surface-card) 60%); }
.quick-access-card.accent-gold .qa-icon { background: var(--gold); }

.quick-access-card.accent-rose { background: linear-gradient(160deg, var(--accent-light) 0%, var(--surface-card) 60%); }
.quick-access-card.accent-rose .qa-icon { background: var(--accent); }

.contact-pill-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-pill:hover {
  transform: translateY(-2px) scale(1.03);
}

.contact-pill i {
  font-size: 1rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.urgent-pill {
  background: linear-gradient(120deg, #C0392B 0%, #E0574A 100%);
}

.whatsapp-pill {
  background: linear-gradient(120deg, #1DA851 0%, #25D366 100%);
}

@media (max-width: 560px) {
  .contact-pill-row { flex-direction: column; align-items: stretch; }
  .contact-pill { justify-content: center; }
}

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

@media (max-width: 560px) {
  .quick-access-wrap { margin-top: 4px; }
  .quick-access-grid { grid-template-columns: 1fr; gap: 16px; }
  .quick-access-card { padding: 24px; }
}

/* ---------- Minimal stats row ---------- */

.stats-minimal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 8px 0;
}

.stats-minimal-item {
  flex: 1;
  min-width: 130px;
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid var(--border);
}

.stats-minimal-item:last-child { border-right: none; }

.stats-minimal-item strong {
  display: block;
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stats-minimal-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 720px) {
  .stats-minimal-item { min-width: 45%; border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
}

/* ---------- Horizontal specialty scroller ---------- */

.specialty-scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.specialty-scroller::-webkit-scrollbar { height: 6px; }
.specialty-scroller::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.specialty-chip {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 148px;
  text-align: center;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.specialty-chip:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.specialty-chip .icon-tile {
  margin: 0 auto 12px;
}

.specialty-chip h4 {
  font-size: 0.88rem;
  margin: 0;
}

/* ---------- Split promo (image + text) ---------- */

.split-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split-promo-media {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.split-promo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.split-promo-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 22px 0 26px;
}

.split-promo-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  list-style: none;
  font-size: 0.95rem;
}

.split-promo-list i {
  color: var(--secondary-dark);
  margin-top: 3px;
}

/* ---------- Layered photo collage ---------- */

.collage-media {
  position: relative;
  height: 440px;
}

.collage-dots {
  position: absolute;
  top: -18px;
  left: -18px;
  width: 90px;
  height: 90px;
  background-image: radial-gradient(var(--primary-light) 2.5px, transparent 2.5px);
  background-size: 14px 14px;
  z-index: 0;
}

.collage-img {
  position: absolute;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.collage-img-main {
  top: 0;
  right: 0;
  width: 78%;
  height: 72%;
  border-radius: 140px 24px 140px 24px;
  z-index: 1;
}

.collage-img-sub {
  bottom: 0;
  left: 0;
  width: 52%;
  height: 46%;
  border-radius: 24px 120px 24px 120px;
  border: 6px solid var(--surface-page);
  z-index: 2;
}

.collage-badge {
  position: absolute;
  bottom: 14px;
  right: 8px;
  z-index: 3;
  background: var(--surface-card);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  text-align: center;
  min-width: 120px;
}

.collage-badge strong {
  display: block;
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.collage-badge span {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

@media (max-width: 900px) {
  .collage-media { height: 360px; margin-bottom: 12px; }
}

@media (max-width: 480px) {
  .collage-media { height: 300px; }
  .collage-badge { padding: 12px 14px; min-width: 100px; }
  .collage-badge strong { font-size: 1.3rem; }
}

@media (max-width: 900px) {
  .split-promo { grid-template-columns: 1fr; }
}

/* ---------- Doctor scroller ---------- */

.doctor-scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x proximity;
}

.doctor-scroller .doctor-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 240px;
}

