:root {
  --charcoal: #0F2A4D;
  --charcoal-soft: #1A3C68;
  --charcoal-deep: #081A33;
  --sand: #ffffff;
  --sand-dark: #cfe3df;
  --blue: #2B5BAA;
  --blue-dark: #1A9A8A;
  --green: #3DBF4A;
  --green-light: #7ED957;
  --surface: #ffffff;
  --text: #15171a;
  --muted: #6b6f75;
  --border: #d7e8e3;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 10px 24px rgba(0, 0, 0, 0.16);
  --shadow-3d: 0 5px 0 var(--blue-dark), 0 10px 18px rgba(0, 0, 0, 0.3);
  --shadow-3d-hover: 0 7px 0 var(--blue-dark), 0 14px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body:not(.admin-theme) img,
body:not(.admin-theme) video {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--text);
  background: var(--sand);
  line-height: 1.6;
}

/* Distinct lower-section background tint per page, rotating through the brand's 3 colors only */
body.page-treatments { background: #EAF0FA; }
body.page-doctors { background: #E7F7F4; }
body.page-gallery { background: #e1f8e7; }
body.page-blog { background: #E7F7F4; }
body.page-faq { background: #EAF0FA; }
body.page-book { background: #EDFBEE; }
body.page-consultation { background: #EAF0FA; }
body.page-contact { background: #E7F7F4; }
body.page-testimonials { background: #EDFBEE; }
body.page-about { background: #E7F7F4; }
body.page-legal { background: #EAF0FA; }
body.page-home { background: #EAF0FA; }
body.page-blog-detail { background: #EAF0FA; }

.legal-content h2 { color: var(--charcoal); margin-top: 32px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text); line-height: 1.7; }
.legal-content ul { padding-left: 20px; }
.legal-updated { color: var(--muted); font-size: 0.85rem; margin-bottom: 28px; }

.consent-field { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; }
.consent-field input[type="checkbox"] { margin-top: 3px; width: 17px; height: 17px; flex-shrink: 0; }
.consent-field span { font-size: 0.92rem; color: var(--text); font-weight: 400; }
.consent-field a { color: var(--blue-dark); font-weight: 600; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* --- Header / nav (hamburger-only, slides from the right at every size) --- */
.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-bottom: 3px solid #3DBF4A;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  height: 76px;
  width: auto;
  display: block;
  transition: opacity .15s;
}
.brand:hover .brand-logo { opacity: 0.85; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  transition: background .15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 71;
}
.nav-toggle:hover { background: rgba(43, 91, 170, 0.08); }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 65;
}
.nav-overlay.open { display: block; }

#nav-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: 260px;
  max-width: 85vw;
  background:
    radial-gradient(circle at 100% 0%, rgba(43, 91, 170, 0.35) 0%, transparent 55%),
    linear-gradient(165deg, rgba(38, 42, 47, 0.72) 0%, rgba(15, 16, 18, 0.82) 100%);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 24px 18px;
  gap: 2px;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
  transform: translateX(110%);
  transition: transform .3s ease;
  z-index: 70;
  overflow-y: auto;
  visibility: hidden;
}
#nav-menu.open { transform: translateX(0); visibility: visible; }

#nav-menu a {
  color: #8cd9cb;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 10px;
  margin: 1px 0;
  border-radius: 10px;
  text-align: center;
  border-right: 3px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#nav-menu a:hover {
  color: #fff;
  background: rgba(43, 91, 170, 0.28);
  box-shadow: 0 3px 0 rgba(26, 154, 138, 0.5);
  transform: translateY(-1px);
}
#nav-menu a:active { transform: translateY(1px); box-shadow: none; }

.float-stack {
  transition: opacity .2s, transform .2s;
}
.float-stack.hide-floats {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

/* --- Hero --- */
.hero, .page-hero {
  padding: 80px 20px 56px;
  text-align: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(61, 191, 74, 0.45) 0%, transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(26, 154, 138, 0.3) 0%, transparent 40%),
    linear-gradient(160deg, #EAFBEF 0%, #DCF5E3 100%);
  color: var(--charcoal);
  position: relative;
}

.page-hero { padding: 56px 20px 48px; margin-bottom: 0; }
.page-hero h1 { color: var(--charcoal); font-size: 2.25rem; margin: 0 0 12px; letter-spacing: -0.02em; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; }
.page-hero .checklist { text-align: left; max-width: 420px; margin: 20px auto 0; }
.page-hero .checklist li { color: var(--text); }

.eyebrow {
  display: inline-block;
  color: #fff;
  background: var(--blue);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 560px; margin: 0 auto; }

/* --- Split hero: text left, real photo right (premium "One Medical" layout) --- */
.hero-split { text-align: left; padding: 72px 20px; }
.hero-split-inner {
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}
.hero-copy { flex: 1 1 440px; min-width: 0; }
.hero-copy h1 { font-size: 3.1rem; }
.hero-copy .lead { margin: 0; max-width: 480px; }
.hero-media { flex: 1 1 420px; min-width: 280px; }
.hero-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.08) inset;
  display: block;
}
.hero-cta-row { align-items: center; justify-content: flex-start; }
.hero-secondary-link {
  color: #a8dcd3;
  font-weight: 700;
  border-bottom: none;
  font-size: 0.95rem;
}
.hero-secondary-link:hover { color: #fff; }
.cta-banner-link { color: #fff; }
.cta-banner-link:hover { color: var(--sand); }

@media (max-width: 860px) {
  .hero-split-inner { flex-direction: column-reverse; gap: 32px; }
  .hero-copy, .hero-media { text-align: center; }
  .hero-copy h1 { font-size: 2.1rem; }
  .hero-cta-row { justify-content: center; }
  .hero-media img { height: 260px; }
}

/* --- Book Appointment split layout --- */
.book-split {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}
.book-form-col { flex: 1 1 420px; min-width: 0; margin: 0 auto; }
.book-media { flex: 1 1 360px; min-width: 260px; position: sticky; top: 100px; }
.book-media img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 24px 56px rgba(0,0,0,0.14);
  display: block;
}
@media (max-width: 860px) {
  .book-split { flex-direction: column; }
  .book-media { position: static; order: -1; }
  .book-media img { height: 220px; }
}

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 28px 0; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform .12s, box-shadow .12s, background .15s;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-3d);
}
.btn-primary:hover { background: var(--green-light); transform: translateY(-2px); box-shadow: var(--shadow-3d-hover); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--blue-dark); }

.btn-outline {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: var(--shadow-3d);
}
.btn-outline:hover { background: var(--green-light); border-color: var(--green-light); transform: translateY(-2px); }
.btn-outline:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--blue-dark); }

.badges {
  list-style: none;
  display: flex;
  gap: 28px;
  justify-content: center;
  padding: 0;
  margin-top: 28px;
  flex-wrap: wrap;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}
.badges li::before { content: "\2713  "; color: var(--green); }

/* --- Stats bar --- */
.stats-bar {
  background: var(--blue);
  color: #fff;
  padding: 32px 20px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  text-align: center;
}
.stats-grid .stat-num { font-size: 2rem; font-weight: 800; color: #fff; }
.stats-grid .stat-label { font-size: 0.85rem; opacity: 0.92; margin-top: 4px; font-weight: 600; }

/* --- Sections / layout --- */
.section { padding: 48px 20px; }
.section-light-blue { background: #eaf2fb; }
.map-feature {
  position: relative;
  width: 100%;
  height: 440px;
  margin: 0 0 20px;
  overflow: hidden;
}
.map-feature iframe { display: block; filter: saturate(0.9); }
.map-card {
  position: absolute;
  top: 28px;
  left: 28px;
  max-width: 320px;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 14px 34px rgba(15, 42, 77, 0.22);
}
.map-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3DBF4A, #2B5BAA);
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.map-card h3 { margin: 0 0 8px; color: var(--charcoal); }
.map-card p { margin: 0 0 6px; color: var(--text); font-size: 0.92rem; }
.map-card-phone { color: var(--blue-dark) !important; font-weight: 600; }
.map-card .btn { margin-top: 12px; display: inline-block; font-size: 0.88rem; padding: 10px 18px; }
@media (max-width: 720px) {
  .map-feature { height: auto; overflow: visible; margin-bottom: 0; }
  .map-feature iframe { height: 260px; }
  .map-card {
    position: static;
    max-width: none;
    margin: 0 16px;
    border-radius: 0 0 16px 16px;
    box-shadow: var(--shadow);
  }
}
.section h2 { color: var(--charcoal); font-size: 1.85rem; letter-spacing: -0.01em; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.muted { color: var(--muted); }
.narrow { max-width: 560px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.pull-quote {
  margin: 28px 0 0;
  padding: 20px 24px;
  border-left: 4px solid var(--teal, #1A9A8A);
  background: var(--surface);
  border-radius: 0 14px 14px 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--charcoal);
}
.pull-quote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 600;
  color: var(--muted, #667);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 4px 0 var(--border), var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}

.card h3 { margin-top: 8px; color: var(--charcoal); }

.card-link {
  display: block;
  color: var(--text);
  text-decoration: none;
}
.card-link:hover, .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 0 var(--blue), var(--shadow-hover);
  border-color: var(--blue);
}

.icon-badge {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(61, 191, 74, 0.14);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 12px;
}

.gallery-card { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--charcoal); font-weight: 600; border-radius: 14px; }

.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--charcoal); }
.faq-item p { margin: 10px 0 0; color: var(--muted); }
.step {
  display: inline-block;
  width: 34px; height: 34px;
  line-height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.checklist { list-style: none; padding: 0; }
.checklist li { padding: 7px 0; font-weight: 500; }
.checklist li::before { content: "\2713 "; color: var(--green); font-weight: 700; }

.link { color: var(--blue-dark); font-weight: 700; text-decoration: none; }
.link:hover { color: var(--charcoal); text-decoration: underline; }

.cta-banner {
  text-align: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(61, 191, 74, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(26, 154, 138, 0.14) 0%, transparent 45%),
    var(--charcoal);
  color: var(--sand);
  border-radius: 20px;
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--sand); }
.cta-banner p { color: #bdbfc2; }

/* --- Blog --- */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  text-align: left;
  box-shadow: 0 4px 0 var(--border), var(--shadow);
  transition: transform .15s, box-shadow .15s;
  display: block;
  color: var(--text);
  text-decoration: none;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 0 var(--blue), var(--shadow-hover); border-color: var(--blue); }
.blog-card .blog-date { color: var(--blue-dark); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.blog-card h3 { color: var(--charcoal); margin: 8px 0; }
.blog-card p { color: var(--muted); font-weight: 400; margin: 0; }
.blog-post { max-width: 680px; margin: 0 auto; }
.blog-post .blog-date { color: var(--blue-dark); font-weight: 700; font-size: 0.85rem; }
.blog-post .blog-body { margin-top: 20px; white-space: pre-line; }

/* --- Forms --- */
form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.9rem; color: var(--charcoal); }
form input, form textarea, form select {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}
form input:focus, form textarea:focus, form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43, 91, 170, 0.15); }

.hp-field { position: absolute; left: -9999px; top: -9999px; }

.flash-wrap { margin-top: 16px; }
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 8px; font-weight: 600; }
.flash-success { background: #e4f3ea; color: #157347; border: 1px solid #157347; }
.flash-error { background: #fdeceb; color: #b8432a; border: 1px solid #e8907f; }

.slot-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--charcoal); }
.slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.slot-btn {
  padding: 9px 14px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color .15s, background .15s;
}
.slot-btn:hover { border-color: var(--blue); }
.slot-btn.selected { background: var(--blue); color: #fff; border-color: var(--blue); }

/* --- Floating action buttons (WhatsApp / Gmail) --- */
.float-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 60;
}
.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 5px 0 rgba(0,0,0,0.25), 0 8px 18px rgba(0,0,0,0.3);
  transition: transform .12s, box-shadow .12s;
}
.float-btn svg { width: 28px; height: 28px; }
.whatsapp-float { background: #25d366; box-shadow: 0 5px 0 #159a47, 0 8px 18px rgba(0,0,0,0.3); }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); }
.whatsapp-float:active { transform: translateY(2px); box-shadow: 0 2px 0 #159a47; }
.gmail-float { background: #ffffff; box-shadow: 0 5px 0 #d0d0d0, 0 8px 18px rgba(0,0,0,0.3); }
.gmail-float:hover { transform: translateY(-3px) scale(1.05); }
.gmail-float:active { transform: translateY(2px); box-shadow: 0 2px 0 #d0d0d0; }
.gmail-float svg { width: 30px; height: 24px; }

/* --- Admin --- */
.admin-filters { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-filters .active { text-decoration: underline; font-weight: 700; color: var(--charcoal); }

.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.admin-table th, .admin-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.admin-table th { color: #fff; font-weight: 700; background: var(--charcoal); }

.status-pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
}
.status-pending { background: #fff3cd; color: #946c00; }
.status-confirmed { background: #e4f3ea; color: #157347; }
.status-cancelled { background: #fdeceb; color: #b8432a; }

.admin-actions select { padding: 6px 8px; border-radius: 6px; border: 1px solid var(--border); }

.admin-wrap { padding: 32px 0; }

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.admin-topbar-label { color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.admin-topbar-label strong { color: var(--charcoal); }

.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.admin-subnav a { color: var(--charcoal); text-decoration: none; font-weight: 700; font-size: 0.9rem; }
.admin-subnav a:hover { color: var(--blue-dark); }

.admin-logout-btn {
  background: #fff;
  color: #b8432a;
  border: 1.5px solid #e8907f;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(184, 67, 42, 0.12);
  transition: background .15s, color .15s, transform .12s;
}
.admin-logout-btn:hover { background: #b8432a; color: #fff; transform: translateY(-1px); }
.admin-logout-btn:active { transform: translateY(0); }

.admin-list-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

.inline-form { display: inline; margin-left: 10px; }
.link-btn {
  background: none;
  border: none;
  color: #b8432a;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  text-decoration: underline;
  font-family: inherit;
}

.site-footer {
  margin-top: 48px;
  padding: 28px 20px;
  background: linear-gradient(100deg, var(--blue) 0%, var(--blue-dark) 55%, var(--green) 100%);
  color: #eaf7f2;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer a { color: #ffffff; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }

/* --- Responsive --- */
@media (max-width: 500px) {
  .brand-logo { height: 54px; }
  .hero h1 { font-size: 1.8rem; }
  .btn { padding: 12px 20px; font-size: 0.92rem; }
  .float-btn { width: 50px; height: 50px; }
  .float-stack { right: 14px; bottom: 14px; }
  .hero { padding: 48px 16px 36px; }
  .section { padding: 36px 16px; }
  .cta-banner { padding: 36px 18px; }
}

/* --- Admin panel theme: light green + blue + bright white (scoped to admin pages only) --- */
body.admin-theme {
  background: linear-gradient(160deg, #eafaf3 0%, #eaf2ff 100%);
  min-height: 100vh;
}
body.admin-theme .site-header {
  background: #ffffff;
  border-bottom: 3px solid #3DBF4A;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.admin-theme .admin-wrap { padding-top: 28px; }

body.admin-theme .admin-subnav {
  background: linear-gradient(90deg, #3DBF4A, #2B5BAA);
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 28px;
  box-shadow: 0 6px 18px rgba(61, 191, 74, 0.25);
}
body.admin-theme .admin-subnav a {
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 700;
}
body.admin-theme .admin-subnav a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

body.admin-theme h1, body.admin-theme h2 {
  color: #0f2e42;
  border-left: 5px solid #1A9A8A;
  padding-left: 12px;
}
body.admin-theme h3 { color: #1A9A8A; }

body.admin-theme .card,
body.admin-theme .admin-table {
  background: #ffffff;
  border: 1px solid #c7ecda;
  border-top: 4px solid #3DBF4A;
  box-shadow: 0 6px 18px rgba(23, 52, 95, 0.1);
}
body.admin-theme .card:hover {
  border-color: #3DBF4A;
  box-shadow: 0 10px 24px rgba(61, 191, 74, 0.22);
  transform: translateY(-3px);
}
body.admin-theme .admin-table th {
  background: linear-gradient(90deg, #3DBF4A, #2B5BAA);
  color: #fff;
}
body.admin-theme .admin-table { border-top: none; }
body.admin-theme .admin-table tr:nth-child(even) { background: #eaf7f1; }
body.admin-theme .admin-table tr:hover { background: #d9f0e6; }

body.admin-theme .btn-primary,
body.admin-theme .admin-entity-new-btn,
body.admin-theme a.btn.btn-primary {
  background: linear-gradient(135deg, #3DBF4A, #2B5BAA);
  box-shadow: 0 5px 0 #1A9A8A, 0 10px 18px rgba(61, 191, 74, 0.25);
}
body.admin-theme .btn-primary:hover {
  background: linear-gradient(135deg, #34a540, #1A9A8A);
}

body.admin-theme .link { color: #1A9A8A; }
body.admin-theme .link:hover { color: #0f2e42; }

body.admin-theme .status-pending { background: #fff3cd; color: #946c00; }
body.admin-theme .status-confirmed { background: #e3f9ee; color: #148a5c; }
body.admin-theme .status-cancelled { background: #fdeceb; color: #b8432a; }

body.admin-theme .admin-logout-btn {
  background: #ffe9e6;
  color: #c0392b !important;
  border: 1px solid #f3c4bb;
}
body.admin-theme .admin-logout-btn:hover { background: #c0392b; color: #fff !important; }

body.admin-theme form input:focus,
body.admin-theme form textarea:focus,
body.admin-theme form select:focus {
  border-color: #1A9A8A;
  box-shadow: 0 0 0 3px rgba(26, 154, 138, 0.18);
}

body.admin-theme .site-footer { display: none; }
body.admin-theme .nav-toggle { display: none; }
body.admin-theme #nav-menu { display: none !important; }
body.admin-theme .nav-overlay { display: none !important; }
body.admin-theme .float-stack { display: none !important; }

.admin-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}
.admin-image-preview {
  display: block;
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

/* --- Public-facing photos for treatments & gallery --- */
.treatment-card-img, .gallery-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
  display: block;
}
.treatment-card { padding: 0; overflow: hidden; }

.doctor-card { padding: 0; overflow: hidden; text-align: center; max-width: 320px; margin: 0 auto; }
.doctor-card-img { width: 100%; aspect-ratio: 3 / 4; height: auto; object-fit: cover; object-position: top center; display: block; }
.doctor-card-body { padding: 20px; }
.treatment-card-body { padding: 16px; }

.condition-list-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.available-badge {
  background: var(--teal, #1A9A8A);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.condition-category-tag {
  display: inline-block;
  background: #e4f3ec;
  color: var(--teal, #1A9A8A);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.condition-card-title { margin: 2px 0 6px; font-size: 1.05rem; }
.condition-card-excerpt { font-size: 0.88rem; margin-bottom: 10px; }
.condition-view-link { font-size: 0.85rem; font-weight: 600; }
.breadcrumb { font-size: 0.85rem; display: flex; gap: 6px; align-items: center; color: var(--muted, #667); }
.gallery-card {
  padding: 0;
  overflow: hidden;
  aspect-ratio: auto;
  background: var(--surface);
  display: block;
}
.gallery-card figcaption {
  padding: 12px 14px;
  font-weight: 600;
  color: var(--charcoal);
}
.treatment-hero-img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
