/* Custom styles — Tailwind handles layout via CDN config in index.html */

:root {
  --blue-deep: #0a3366;
  --blue-mid: #0f4c8c;
  --blue: #1877d2;
  --blue-bright: #6eb5ff;
  --blue-soft: #d6e8fa;
  --teal-deep: var(--blue-deep);
  --teal-mid: var(--blue-mid);
  --emerald: var(--blue);
  --emerald-soft: var(--blue-soft);
  --gold: #e8942d;
  --gold-light: #f5b84a;
  --cream: #f4f1ea;
  --sage: #e6edf5;
  --ink: #1a2a3e;
  --muted: #5c6673;
  --forest: var(--blue-deep);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

body.custom-cursor-active {
  cursor: none;
}

body.custom-cursor-active a,
body.custom-cursor-active button,
body.custom-cursor-active [role="button"],
body.custom-cursor-active input,
body.custom-cursor-active textarea,
body.custom-cursor-active select,
body.custom-cursor-active .dept-modal-scroll,
body.custom-cursor-active .staff-category-tab,
body.custom-cursor-active .doctor-card,
body.custom-cursor-active .dept-gallery img {
  cursor: none;
}

/* Custom scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--emerald) var(--teal-deep);
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, var(--teal-deep) 0%, var(--blue-deep) 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--emerald) 0%, var(--gold) 100%);
  border-radius: 100px;
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.25);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #34d399 0%, var(--gold-light, #e8c547) 100%);
  background-clip: padding-box;
}

::-webkit-scrollbar-corner {
  background: var(--teal-deep);
}

/* Hospital cursor */
.hospital-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10050;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  transition: opacity 0.25s ease;
}

body.custom-cursor-active .hospital-cursor {
  opacity: 1;
}

body.custom-cursor-suspended.custom-cursor-active {
  cursor: auto;
}

body.custom-cursor-suspended.custom-cursor-active .hospital-cursor {
  opacity: 0;
  visibility: hidden;
}

body.custom-cursor-suspended.custom-cursor-active a,
body.custom-cursor-suspended.custom-cursor-active button,
body.custom-cursor-suspended.custom-cursor-active [role="button"],
body.custom-cursor-suspended.custom-cursor-active input,
body.custom-cursor-suspended.custom-cursor-active textarea,
body.custom-cursor-suspended.custom-cursor-active select,
body.custom-cursor-suspended.custom-cursor-active video {
  cursor: auto;
}

body.custom-cursor-suspended.custom-cursor-active .media-modal video {
  cursor: pointer;
}

.cursor-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 2px solid rgba(24, 119, 210, 0.55);
  border-radius: 50%;
  transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.cursor-cross {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  color: var(--emerald);
  transition: transform 0.2s ease, color 0.2s ease;
}

.cursor-cross svg {
  width: 100%;
  height: 100%;
}

.hospital-cursor.is-hover .cursor-ring {
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-color: var(--gold);
  background: rgba(24, 119, 210, 0.12);
}

.hospital-cursor.is-hover .cursor-cross {
  transform: scale(1.15);
  color: var(--gold);
}

.hospital-cursor.is-click .cursor-ring {
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-color: #fff;
  background: rgba(24, 119, 210, 0.35);
}

/* Institutional badge */
.facility-badge {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(13, 60, 110, 0.55);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.facility-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.85rem;
  background: rgba(24, 119, 210, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--emerald);
}

.facility-badge-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.facility-badge-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.55rem 1rem 0.6rem;
  gap: 0.15rem;
}

.facility-badge-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.3;
}

.facility-badge-meta {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.3;
}

@media (min-width: 640px) {
  .facility-badge-title { font-size: 0.78rem; }
  .facility-badge-meta { font-size: 0.72rem; }
}

.font-display {
  font-family: 'Playfair Display', Georgia, serif;
}

.text-gradient {
  background: linear-gradient(90deg, var(--emerald), var(--teal-deep), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 40px rgba(13, 60, 110, 0.08);
}

.section-padding {
  padding: 4rem 1rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 6rem 1.5rem;
  }
}

/* Loading screen */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--teal-deep);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-glow {
  animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(24, 119, 210, 0.3)); }
  50% { filter: drop-shadow(0 0 40px rgba(24, 119, 210, 0.7)); }
}

.ecg-line {
  stroke-dasharray: 1000;
  animation: ecgDraw 2.5s linear infinite;
}

@keyframes ecgDraw {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

.progress-bar-fill {
  transition: width 0.3s ease;
}

/* Navbar */
#navbar {
  transition: padding 0.5s;
}

.nav-shell {
  background: rgba(10, 51, 104, 0.45);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: background 0.5s, border-color 0.5s, box-shadow 0.5s;
}

#navbar.scrolled .nav-shell {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(13, 60, 110, 0.08);
  box-shadow: 0 4px 24px rgba(13, 60, 110, 0.1);
}

.nav-pill {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}

.nav-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

#navbar.scrolled .nav-pill {
  color: var(--teal-mid);
}

#navbar.scrolled .nav-pill:hover {
  background: var(--sage);
  color: var(--teal-deep);
}

.nav-cta {
  padding: 0.55rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal-deep);
  background: #fff;
  border-radius: 999px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

#navbar.scrolled .nav-cta {
  background: var(--emerald);
  color: #fff;
}

.nav-emergency-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f87171;
  animation: pulseDot 2s ease-in-out infinite;
}

#navbar.scrolled .nav-emergency {
  color: #dc2626;
}

.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

#navbar.scrolled .nav-brand-sub,
#navbar.scrolled .nav-brand-title {
  color: var(--teal-deep) !important;
}

#navbar.scrolled .nav-brand-sub {
  opacity: 0.65;
}

#navbar.scrolled .menu-btn {
  color: var(--teal-deep);
}

/* Section system */
.section-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.section-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(24, 119, 210, 0.25);
  padding-top: 0.15rem;
}

.section-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--teal-deep);
  line-height: 1.15;
}

/* Hero section */
.hero-section {
  background: var(--teal-deep);
}

.hero-overlay-main {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 51, 104, 0.92) 0%, rgba(10, 51, 104, 0.72) 45%, rgba(10, 51, 104, 0.35) 100%),
    linear-gradient(to top, rgba(10, 51, 104, 0.85) 0%, transparent 50%);
}

.hero-overlay-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 20%, transparent 0%, rgba(10, 51, 104, 0.4) 100%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.hero-title-accent {
  color: transparent;
  background: linear-gradient(120deg, var(--blue-bright) 0%, #fff 45%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-subtext {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #fff;
  max-width: 34rem;
  line-height: 1.7;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 6px;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.btn-primary {
  background: var(--emerald);
  color: #fff;
  box-shadow: 0 8px 24px rgba(24, 119, 210, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(24, 119, 210, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #fff;
}

.hero-feature-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
}

.hero-info-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(10, 51, 104, 0.12);
}

.hero-info-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(10, 51, 104, 0.08);
}

.hero-info-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-mid);
}

.hero-info-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulseDot 2s ease-in-out infinite;
}

.hero-info-list {
  padding: 0.5rem 0;
}

.hero-info-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(10, 51, 104, 0.06);
}

.hero-info-list li:last-child {
  border-bottom: none;
}

.hero-info-key {
  font-size: 0.8125rem;
  color: var(--muted);
}

.hero-info-val {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-deep);
}

.hero-info-link {
  color: var(--blue);
  text-decoration: none;
}

.hero-info-link:hover {
  color: var(--blue-mid);
}

.hero-info-ecg {
  padding: 0.75rem 1.25rem 1rem;
  color: rgba(24, 119, 210, 0.4);
}

.hero-info-ecg svg {
  width: 100%;
  height: 36px;
}

.hero-info-ecg path {
  stroke-dasharray: 400;
  animation: ecgDraw 3s linear infinite;
}

.hero-stats-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 12;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid rgba(13, 60, 110, 0.08);
  backdrop-filter: blur(12px);
}

.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .hero-stats-inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  padding: 1.25rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(13, 60, 110, 0.08);
  transition: background 0.3s;
}

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

.stat-item:hover {
  background: var(--sage);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--teal-deep);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 7.5rem;
  right: 1.5rem;
  z-index: 14;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .scroll-indicator {
    display: flex;
  }
}

.scroll-indicator-text {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  writing-mode: vertical-rl;
}

.scroll-indicator-line {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.scroll-indicator-line .scroll-dot {
  position: absolute;
  top: 0;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
}

/* About */
.about-section {
  background: #fff;
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.about-visual {
  position: relative;
  min-height: 420px;
}

.about-image-main {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(10, 51, 104, 0.12);
}

.about-image-main img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.about-image-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -0.5rem;
  width: 45%;
  border: 4px solid #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(10, 51, 104, 0.15);
}

.about-image-accent img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.about-years-badge {
  position: absolute;
  top: 1.5rem;
  left: -1rem;
  background: var(--teal-deep);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(10, 51, 104, 0.25);
}

.about-years-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.about-years-text {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  margin-top: 0.25rem;
  display: block;
  color: rgba(255, 255, 255, 0.7);
}

.about-lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 2rem;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.about-value-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--cream);
  border-radius: 4px;
  border-left: 3px solid var(--emerald);
  transition: transform 0.3s;
}

.about-value-card:hover {
  transform: translateX(4px);
}

.about-value-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(24, 119, 210, 0.35);
  line-height: 1;
}

.about-value-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 0.35rem;
}

.about-value-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal-deep);
  border-bottom: 2px solid var(--emerald);
  padding-bottom: 0.15rem;
  transition: gap 0.25s, color 0.25s;
}

.about-link:hover {
  color: var(--emerald);
  gap: 0.75rem;
}

/* Services bento */
.services-section {
  background: var(--cream);
}

.services-intro {
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  margin: -1rem 0 1.5rem;
}

.services-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.services-search-wrap {
  flex: 1 1 18rem;
  max-width: 28rem;
}

.dept-search-count {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

.services-empty {
  grid-column: 1 / -1;
  padding: 3rem 1.5rem;
  text-align: center;
  border: 1px dashed rgba(10, 51, 104, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
}

.services-empty p {
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 0.35rem;
}

.services-empty span {
  font-size: 0.875rem;
  color: var(--muted);
}

.services-bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .services-bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-bento {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(220px, auto);
  }
}

.service-bento-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  min-height: 220px;
}

.service-bento-card.featured {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .service-bento-card.featured {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 460px;
  }
}

.service-bento-bg {
  position: absolute;
  inset: 0;
}

.service-bento-bg img,
.service-bento-bg-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #eef2f6;
  transition: transform 0.7s ease;
}

.service-bento-bg .staff-photo-placeholder {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.service-bento-card:hover .service-bento-bg img,
.service-bento-card:hover .service-bento-bg-img {
  transform: scale(1.02);
}

.service-bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 51, 104, 0.92) 0%, rgba(10, 51, 104, 0.2) 60%, transparent 100%);
}

.service-bento-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.service-bento-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--emerald);
  margin-bottom: 0.35rem;
}

.service-bento-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.35rem;
}

.service-bento-card.featured .service-bento-title {
  font-size: 1.75rem;
}

.service-bento-desc {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 28rem;
}

.service-visit-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  position: relative;
  z-index: 2;
  width: fit-content;
}

.service-visit-more:hover {
  background: var(--emerald);
  border-color: var(--emerald);
  transform: translateX(3px);
}

.service-visit-more svg {
  width: 0.9rem;
  height: 0.9rem;
}

/* Department detail modal */
.dept-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.dept-modal.open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.dept-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 51, 104, 0.65);
  backdrop-filter: blur(4px);
}

.dept-modal-panel {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  background: var(--cream);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -8px 40px rgba(10, 51, 104, 0.25);
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

@media (min-width: 640px) {
  .dept-modal {
    align-items: center;
    padding: 1.5rem;
  }

  .dept-modal-panel {
    border-radius: 12px;
    max-height: 88vh;
    transform: translateY(24px) scale(0.97);
  }

  .dept-modal.open .dept-modal-panel {
    transform: translateY(0) scale(1);
  }
}

.dept-modal.open .dept-modal-panel {
  transform: translateY(0);
}

.dept-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 10;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: #fff;
  background: rgba(10, 51, 104, 0.55);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.dept-modal-close:hover {
  background: var(--emerald);
  transform: scale(1.08);
}

.dept-modal-scroll {
  max-height: 92vh;
  overflow-y: auto;
}

@media (min-width: 640px) {
  .dept-modal-scroll {
    max-height: 88vh;
  }
}

.dept-modal-hero {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: #eef2f6;
}

.dept-modal-hero img,
.dept-modal-hero-img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  object-position: center top;
  background: #eef2f6;
}

.dept-modal-hero .staff-photo-placeholder {
  width: 100%;
  height: 260px;
  border: none;
  border-radius: 0;
}

.dept-gallery-placeholder {
  min-height: 160px;
  border-radius: 12px;
}

.dept-modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 51, 104, 0.92) 0%, rgba(10, 51, 104, 0.35) 55%, transparent 100%);
}

.dept-modal-hero-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.75rem 1.5rem 1.5rem;
  color: #fff;
}

.dept-modal-hero-text h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.dept-modal-hero-text p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36rem;
  line-height: 1.55;
}

.dept-modal-body {
  padding: 1.75rem 1.5rem 2rem;
}

.dept-modal-section {
  margin-bottom: 2rem;
}

.dept-modal-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 0.85rem;
}

.dept-modal-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(10, 51, 104, 0.82);
}

.dept-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

@media (max-width: 639px) {
  .dept-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

.dept-gallery img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  object-position: center center;
  background: #eef2f6;
  border-radius: 6px;
}

.dept-highlights {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.dept-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: rgba(10, 51, 104, 0.85);
}

.highlight-dot {
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--emerald);
}

.doctors-grid {
  display: grid;
  gap: 1.25rem;
}

/* Staff categories — doctors & nurses */
.dept-staff-section {
  background: linear-gradient(180deg, rgba(232, 239, 233, 0.5) 0%, transparent 100%);
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding: 1.5rem;
  border-radius: 8px;
}

.staff-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.staff-section-sub {
  font-size: 0.875rem;
  color: rgba(10, 51, 104, 0.62);
  margin-top: 0.25rem;
  max-width: 28rem;
  line-height: 1.55;
}

.dept-staff-search-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.dept-staff-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  width: 1.1rem;
  height: 1.1rem;
  transform: translateY(-50%);
  color: rgba(10, 51, 104, 0.45);
  pointer-events: none;
}

.dept-staff-search {
  width: 100%;
  padding: 0.75rem 0.9rem 0.75rem 2.5rem;
  border: 1px solid rgba(10, 51, 104, 0.12);
  border-radius: 10px;
  background: #fff;
  font-size: 0.9375rem;
  color: var(--ink);
}

.dept-staff-search:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 51, 104, 0.08);
}

.dept-staff-search-empty {
  padding: 1rem 0 0.25rem;
  font-size: 0.875rem;
  color: rgba(10, 51, 104, 0.55);
}

.staff-summary {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.staff-summary-item {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.staff-summary-doctors {
  background: rgba(13, 60, 110, 0.1);
  color: var(--teal-deep);
}

.staff-summary-nurses {
  background: rgba(24, 119, 210, 0.15);
  color: #047857;
}

.staff-category-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid rgba(10, 51, 104, 0.08);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}

.staff-category-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(10, 51, 104, 0.55);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.staff-category-tab svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.staff-category-tab.active {
  background: var(--teal-deep);
  color: #fff;
  box-shadow: 0 4px 14px rgba(10, 61, 61, 0.25);
}

.staff-category-tab:not(.active):hover {
  background: rgba(10, 51, 104, 0.06);
  color: var(--teal-deep);
}

.staff-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.staff-category-tab:not(.active) .staff-tab-count {
  background: rgba(10, 51, 104, 0.08);
  color: var(--teal-deep);
}

.staff-category-panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.staff-category-panel.active {
  display: grid;
}

.staff-empty {
  font-size: 0.875rem;
  color: rgba(10, 51, 104, 0.55);
  padding: 1rem 0;
}

.doctor-photo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  height: 148px;
  border-radius: 14px;
  overflow: visible;
  background: transparent;
  border: none;
}

.doctor-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--gold-light) 100%);
  z-index: 0;
}

.doctor-card {
  background: #fff;
  border: 1px solid rgba(10, 51, 104, 0.08);
  border-radius: 16px;
  padding: 1.35rem;
  box-shadow: 0 4px 20px rgba(10, 51, 104, 0.05);
  transition: box-shadow 0.3s, transform 0.3s;
}

.doctor-card:hover {
  box-shadow: 0 12px 36px rgba(10, 51, 104, 0.1);
  transform: translateY(-2px);
}

.doctor-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: contain;
  object-position: center center;
  border: 3px solid #fff;
  flex-shrink: 0;
  background: #eef2f6;
  box-shadow: 0 6px 20px rgba(10, 51, 104, 0.1);
}

.staff-photo-placeholder {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  border: 3px solid #fff;
  background: linear-gradient(145deg, rgba(10, 51, 104, 0.08), rgba(10, 51, 104, 0.16));
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(10, 51, 104, 0.1);
}

.staff-photo-initials {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue);
}

.staff-category-badge {
  position: absolute;
  bottom: -0.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(10, 51, 104, 0.15);
  z-index: 2;
}

.staff-badge-doctor {
  background: var(--teal-deep);
  color: #fff;
}

.staff-badge-nurse {
  background: var(--emerald);
  color: #fff;
}

.doctor-card-top {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 479px) {
  .doctor-card-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.doctor-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 0.15rem;
}

.doctor-role {
  font-size: 0.8125rem;
  color: var(--emerald);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.doctor-rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.doctor-rating-val {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--forest);
}

.doctor-review-count {
  font-size: 0.75rem;
  color: rgba(10, 51, 104, 0.55);
}

.doctor-bio {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(10, 51, 104, 0.72);
}

.star {
  font-size: 0.95rem;
  line-height: 1;
}

.star-filled {
  color: #e8a317;
}

.star-empty {
  color: rgba(10, 51, 104, 0.2);
}

.star-interactive {
  cursor: pointer;
  transition: transform 0.15s, color 0.15s;
}

.star-interactive:hover {
  transform: scale(1.15);
}

.doctor-reviews {
  border-top: 1px solid rgba(10, 51, 104, 0.08);
  padding-top: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.doctor-reviews h5,
.doctor-comment-form h5 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 0.75rem;
}

.doctor-review {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(10, 51, 104, 0.06);
}

.doctor-review:last-child {
  border-bottom: none;
}

.doctor-review-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.doctor-review-head strong {
  font-size: 0.875rem;
  color: var(--forest);
}

.doctor-review-stars .star {
  font-size: 0.8rem;
}

.doctor-review p {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(10, 51, 104, 0.78);
  margin-bottom: 0.25rem;
}

.doctor-review time {
  font-size: 0.7rem;
  color: rgba(10, 51, 104, 0.45);
}

.doctor-comment-form {
  border-top: 1px solid rgba(10, 51, 104, 0.08);
  padding-top: 1rem;
}

.doctor-comment-form .form-group {
  margin-bottom: 0.85rem;
}

.rating-input {
  display: flex;
  gap: 0.15rem;
}

.rating-input .star-interactive {
  font-size: 1.35rem;
}

.dept-modal-actions {
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.dept-schedule-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

/* Why strip */
.why-section {
  background: var(--sage);
}

.why-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .why-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .why-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.why-tile {
  background: #fff;
  border-radius: 6px;
  padding: 1.5rem;
  border: 1px solid rgba(13, 60, 110, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.why-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10, 51, 104, 0.08);
}

.why-tile-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--emerald-soft);
  border-radius: 6px;
  color: var(--emerald);
  margin-bottom: 1rem;
}

.why-tile h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 0.5rem;
}

.why-tile p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

.why-tile-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Testimonials & comments swipe carousel */
.testimonials-section {
  background: #fff;
}

.comments-carousel {
  position: relative;
  max-width: 42rem;
  margin: 0 auto;
}

.testimonials-dual.comments-carousel {
  max-width: 56rem;
}

.comments-dual-viewport {
  overflow: hidden;
  width: 100%;
  background: var(--cream);
  border-radius: 10px;
  border: 1px solid rgba(10, 51, 104, 0.08);
  padding: 0.25rem 0;
}

.comments-dual-track {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  will-change: transform;
}

.comments-dual-item {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .comments-dual-item {
    flex: 0 0 calc(50% - 0.5rem);
    min-width: calc(50% - 0.5rem);
  }
}

.comments-dual-item .testimonial-card {
  height: 100%;
  margin: 0;
}

@media (max-width: 639px) {
  .comments-dual-item .testimonial-quote {
    font-size: 0.8125rem;
  }

  .comments-dual-item .testimonial-card {
    padding: 1.25rem;
  }
}

.comments-slideshow {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  width: 100%;
  background: var(--cream);
  border-radius: 10px;
  border: 1px solid rgba(10, 51, 104, 0.08);
}

.doctor-reviews-carousel .comments-slideshow {
  min-height: 150px;
  background: #fff;
  border: none;
  border-radius: 6px;
}

.comment-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateX(100%);
  transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
  z-index: 0;
  opacity: 1;
  visibility: visible;
}

.comment-slide.active {
  transform: translateX(0);
  z-index: 2;
}

.comment-slide.exit-left {
  transform: translateX(-100%);
  z-index: 1;
}

.comment-slide-inner,
.comment-slide .testimonial-card {
  width: 100%;
  max-width: 100%;
}

.comments-flow-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald);
  white-space: nowrap;
}

.comments-auto-progress {
  height: 3px;
  margin-top: 0.75rem;
  background: rgba(10, 51, 104, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.comments-auto-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  border-radius: 999px;
}

.testimonials-carousel .comments-auto-progress {
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
}

.comment-slide-inner {
  width: 100%;
}

.testimonials-carousel .comment-slide {
  align-items: center;
  justify-content: center;
}

.testimonials-carousel .testimonial-card {
  width: 100%;
  margin: 0;
}

.comments-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.comments-nav {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(10, 51, 104, 0.12);
  border-radius: 50%;
  background: var(--cream);
  color: var(--teal-deep);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  flex-shrink: 0;
}

.comments-nav:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: #fff;
  transform: scale(1.06);
}

.comments-nav svg {
  width: 1.1rem;
  height: 1.1rem;
}

.comments-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.comment-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(10, 51, 104, 0.2);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, width 0.25s;
}

.comment-dot.active {
  background: var(--emerald);
  transform: scale(1.2);
}

.comment-dot:hover {
  background: var(--teal-deep);
}

.doctor-reviews-carousel {
  margin-top: 0.5rem;
  max-width: none;
}

.doctor-reviews-carousel .comments-carousel-controls {
  margin-top: 0.75rem;
  gap: 0.65rem;
}

.doctor-reviews-carousel .comments-nav {
  width: 1.85rem;
  height: 1.85rem;
}

.doctor-reviews-carousel .comment-slide-inner {
  padding: 0.25rem 0;
}

.testimonials-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--cream);
  border-radius: 6px;
  padding: 1.75rem;
  border: 1px solid rgba(13, 60, 110, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10, 51, 104, 0.08);
}

.testimonial-stars {
  display: flex;
  gap: 0.15rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.testimonial-quote {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink);
  flex: 1;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(13, 60, 110, 0.08);
}

.testimonial-author img,
.testimonial-author-photo {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-author .staff-photo-placeholder {
  border-radius: 50%;
  border-width: 2px;
}

.testimonial-author .staff-photo-initials {
  font-size: 0.85rem;
}

.testimonial-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--teal-deep);
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Emergency */
.emergency-section {
  padding: 2rem 0 0;
  background: var(--cream);
}

.emergency-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #b91c1c 100%);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(127, 29, 29, 0.25);
}

@media (min-width: 768px) {
  .emergency-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 3rem;
  }
}

.emergency-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.emergency-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.emergency-desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 28rem;
}

.emergency-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 1rem;
}

.emergency-live-dot {
  background: #fff;
}

.emergency-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  background: #fff;
  color: #991b1b;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
  white-space: nowrap;
  transition: transform 0.25s, box-shadow 0.25s;
  flex-shrink: 0;
}

.emergency-call-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Specialists directory */
.specialists-section {
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(24, 119, 210, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 20%, rgba(232, 148, 45, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  overflow: hidden;
}

.specialists-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(10, 51, 102, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
}

.specialists-section > .max-w-7xl {
  position: relative;
  z-index: 1;
}

.specialists-intro {
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  margin: -1rem 0 2rem;
}

.testimonials-intro {
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  margin: -1rem 0 2.5rem;
}

/* Specialist swipe carousel (hero-style) */
.specialist-carousel-wrap.mode-swipe .specialist-swipe-view {
  display: grid;
  gap: 1.25rem;
}

.specialist-carousel-wrap.mode-list .specialist-swipe-view {
  display: none;
}

.specialist-carousel-wrap.mode-list .specialist-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.specialist-carousel-wrap.mode-swipe .specialist-list {
  display: none;
}

@media (min-width: 900px) {
  .specialist-carousel-wrap.mode-swipe .specialist-swipe-view {
    grid-template-columns: 1.35fr 1fr;
    align-items: stretch;
  }
}

.specialist-list-item {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.35rem 1.35rem 1.35rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(10, 51, 104, 0.08);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(10, 51, 104, 0.04);
  transition: box-shadow 0.35s, transform 0.35s;
  overflow: hidden;
}

.specialist-list-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--gold) 100%);
  border-radius: 16px 0 0 16px;
}

.specialist-list-item:hover {
  box-shadow: 0 14px 40px rgba(10, 51, 104, 0.1);
  transform: translateY(-3px);
}

.specialist-list-photo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  height: 148px;
  border-radius: 14px;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
}

.specialist-list-photo-ring {
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--gold-light) 50%, var(--emerald) 100%);
  opacity: 0.85;
  z-index: 0;
}

.specialist-list-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: contain;
  object-position: center center;
  border: 3px solid #fff;
  background: #eef2f6;
  box-shadow: 0 8px 24px rgba(10, 51, 104, 0.12);
}

.specialist-list-dept-chip {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}

.specialist-list-schedule-hint {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.specialist-list-body {
  flex: 1;
  min-width: 12rem;
}

.specialist-list-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 0.15rem;
}

.specialist-list-role {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: 0.15rem;
}

.specialist-list-dept {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.specialist-list-schedule .specialist-schedule-table {
  font-size: 0.75rem;
}

.specialist-list-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  margin-left: auto;
}

.specialist-book-btn-list {
  padding: 0.55rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: var(--teal-deep);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  white-space: nowrap;
}

.specialist-book-btn-list:hover {
  background: var(--emerald);
  transform: translateY(-1px);
}

@media (max-width: 639px) {
  .specialist-list-item {
    flex-direction: column;
  }

  .specialist-list-aside {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin-left: 0;
  }
}

.specialist-carousel-wrap {
  display: block;
}

.specialist-swipe-view {
  display: grid;
  gap: 1.25rem;
}

.specialist-carousel {
  position: relative;
  min-height: 480px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--teal-deep);
  touch-action: pan-y;
  box-shadow:
    0 24px 60px rgba(10, 51, 104, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.specialist-carousel.is-empty {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border: 1px dashed rgba(10, 51, 104, 0.15);
}

.specialist-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.specialist-slide {
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #071f3d 0%, #0a3368 35%, #145a8a 70%, #1a6b5c 100%);
  overflow: hidden;
}

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

.specialist-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: specialistOrbFloat 12s ease-in-out infinite;
}

.specialist-orb-1 {
  width: 280px;
  height: 280px;
  background: var(--blue-bright);
  top: -80px;
  right: -60px;
}

.specialist-orb-2 {
  width: 220px;
  height: 220px;
  background: var(--gold);
  bottom: -40px;
  left: -50px;
  animation-delay: -4s;
}

.specialist-orb-3 {
  width: 160px;
  height: 160px;
  background: #4dd4ac;
  top: 40%;
  left: 55%;
  animation-delay: -8s;
}

@keyframes specialistOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.08); }
}

.specialist-slide-showcase {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.5rem 7.5rem;
  animation: specialistShowcaseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.specialist-slide.active .specialist-slide-showcase {
  animation: specialistShowcaseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes specialistShowcaseIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.specialist-slide-frame {
  position: relative;
  padding: 6px;
}

.specialist-slide-ring {
  position: absolute;
  inset: -8px;
  border-radius: 24px;
  background: conic-gradient(from 210deg, var(--gold-light), var(--blue-bright), #fff, var(--gold-light));
  opacity: 0.75;
  animation: specialistRingSpin 10s linear infinite;
}

@keyframes specialistRingSpin {
  to { transform: rotate(360deg); }
}

.specialist-slide-portrait {
  position: relative;
  z-index: 1;
  width: min(280px, 72vw);
  height: min(380px, 58vh);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2f6;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
  border: 4px solid rgba(255, 255, 255, 0.95);
}

.specialist-slide-photo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
  transform: none !important;
  animation: none !important;
}

.specialist-slide-dept-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.4rem 1rem;
  border-radius: 999px;
}

.specialist-slide.active {
  transform: translateX(0);
  z-index: 2;
}

.specialist-slide.exit-left {
  transform: translateX(-100%);
  z-index: 1;
}

.specialist-carousel-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(7, 31, 61, 0.95) 0%,
    rgba(10, 51, 104, 0.4) 38%,
    transparent 62%
  );
}

.specialist-slide-info {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 5;
  padding: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.specialist-slide-info.visible {
  opacity: 1;
  transform: translateY(0);
}

.specialist-info-glass {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.specialist-info-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.specialist-info-badge.staff-badge-doctor {
  background: rgba(24, 119, 210, 0.35);
  color: #c8e4ff;
}

.specialist-info-badge.staff-badge-nurse {
  background: rgba(77, 212, 172, 0.35);
  color: #d4fff0;
}

.specialist-info-main {
  flex: 1;
  min-width: 10rem;
}

.specialist-info-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.specialist-available-muted {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.65) !important;
}

.specialist-info-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.1rem;
  line-height: 1.2;
}

.specialist-info-role {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.1rem;
}

.specialist-info-dept {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0;
}

.specialist-slide-info .specialist-available-today {
  background: rgba(24, 119, 210, 0.25);
  color: #a8d4ff;
}

.specialist-book-btn-slide {
  width: auto;
  padding: 0.65rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal-deep);
  background: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.specialist-book-btn-slide:hover {
  background: var(--gold-light);
  color: var(--teal-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.specialist-carousel-nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.specialist-carousel-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.06);
}

.specialist-carousel-nav svg {
  width: 1.25rem;
  height: 1.25rem;
}

.specialist-carousel-prev {
  left: 0.85rem;
}

.specialist-carousel-next {
  right: 0.85rem;
}

.specialist-slide-dots {
  position: absolute;
  top: 1rem;
  right: 1rem;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
  max-width: 50%;
  padding: 0.35rem 0.6rem;
  background: rgba(10, 51, 104, 0.45);
  backdrop-filter: blur(6px);
  border-radius: 999px;
}

.specialist-slide-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.specialist-slide-dot.active {
  background: var(--emerald);
  transform: scale(1.25);
}

.specialist-slide-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.specialist-schedule-panel {
  background: #fff;
  border: 1px solid rgba(10, 51, 104, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(10, 51, 104, 0.06);
  position: relative;
  overflow: hidden;
}

.specialist-schedule-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--gold) 50%, var(--emerald) 100%);
}

.specialist-schedule-panel-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.specialist-schedule-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
}

.specialist-schedule-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.specialist-schedule-panel-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 0;
}

.specialist-schedule-bio {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(10, 51, 104, 0.08);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

.specialists-empty-carousel {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}

.specialists-empty-carousel p {
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 0.35rem;
}

.specialists-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 900px) {
  .specialists-toolbar {
    flex-direction: row;
    align-items: stretch;
  }
}

.specialists-search-wrap {
  position: relative;
  flex: 1;
}

.specialists-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.15rem;
  height: 1.15rem;
  color: var(--muted);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .specialist-orb,
  .specialist-slide-ring,
  .specialist-slide-showcase {
    animation: none !important;
  }
}

.specialists-search-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  font-size: 0.9375rem;
  border: 1px solid rgba(10, 51, 104, 0.12);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.specialists-search-input:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(24, 119, 210, 0.15);
}

.specialists-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.specialists-filter-select {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid rgba(10, 51, 104, 0.12);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  min-width: 9rem;
}

.specialists-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.specialists-meta-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.specialist-view-mode {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: rgba(13, 60, 110, 0.08);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.specialist-view-mode.is-list {
  background: rgba(24, 119, 210, 0.12);
  color: #047857;
}

.specialist-count {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal-deep);
}

.specialist-today-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--emerald);
}

/* Grid display (search / filter active) */
.specialists-results.display-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .specialists-results.display-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .specialists-results.display-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Auto display (default — rotates by department) */
.specialists-results.display-auto {
  display: block;
}

.specialists-auto-wrap {
  background: var(--cream);
  border: 1px solid rgba(10, 51, 104, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.specialists-auto-header {
  padding: 1.25rem 1.25rem 0;
  border-bottom: 1px solid rgba(10, 51, 104, 0.06);
}

.specialists-auto-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.specialists-auto-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald);
}

.specialists-auto-hint {
  font-size: 0.75rem;
  color: var(--muted);
}

.specialists-dept-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.specialists-dept-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(10, 51, 104, 0.55);
  background: #fff;
  border: 1px solid rgba(10, 51, 104, 0.1);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.specialists-dept-tab.active {
  background: var(--teal-deep);
  color: #fff;
  border-color: var(--teal-deep);
}

.specialists-dept-tab:not(.active):hover {
  border-color: var(--emerald);
  color: var(--teal-deep);
}

.specialists-auto-progress {
  height: 3px;
  background: rgba(10, 51, 104, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0;
}

.specialists-auto-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  border-radius: 999px;
}

.specialists-auto-dept-title {
  padding: 1.25rem 1.25rem 0.75rem;
}

.specialists-auto-dept-title h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 0.2rem;
}

.specialists-auto-dept-title p {
  font-size: 0.8125rem;
  color: var(--muted);
}

.specialists-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0 1.25rem 1.25rem;
}

.specialist-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid rgba(10, 51, 104, 0.06);
  border-radius: 8px;
  transition: box-shadow 0.25s, transform 0.25s;
}

.specialist-row:hover {
  box-shadow: 0 4px 16px rgba(10, 51, 104, 0.06);
  transform: translateX(3px);
}

.specialist-row-photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.specialist-row-photo {
  width: 64px;
  height: 78px;
  border-radius: 12px;
  object-fit: contain;
  object-position: center center;
  background: #eef2f6;
  border: 2px solid var(--sage);
}

.specialist-row-body {
  flex: 1;
  min-width: 0;
}

.specialist-row-body .specialist-name {
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

.specialist-row-body .specialist-role {
  margin-bottom: 0.15rem;
}

.specialist-row-schedule {
  font-size: 0.75rem;
  color: var(--muted);
}

.specialist-row-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  flex-shrink: 0;
}

.specialist-book-btn-compact {
  width: auto;
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
}

@media (max-width: 559px) {
  .specialist-row {
    flex-wrap: wrap;
  }

  .specialist-row-aside {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding-left: calc(64px + 1rem);
  }
}

.specialists-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .specialists-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .specialists-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.specialist-card {
  background: var(--cream);
  border: 1px solid rgba(10, 51, 104, 0.08);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.3s, transform 0.3s;
}

.specialist-card:hover {
  box-shadow: 0 8px 28px rgba(10, 51, 104, 0.08);
  transform: translateY(-2px);
}

.specialist-card-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.specialist-photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.specialist-photo {
  width: 80px;
  height: 98px;
  border-radius: 12px;
  object-fit: contain;
  object-position: center center;
  background: #eef2f6;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(10, 51, 104, 0.1);
}

.specialist-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 0.15rem;
}

.specialist-role {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: 0.2rem;
}

.specialist-dept {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.specialist-available-today {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #047857;
  background: rgba(24, 119, 210, 0.12);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.specialist-available-later {
  font-size: 0.7rem;
  color: var(--muted);
}

.specialist-schedule-block {
  flex: 1;
}

.specialist-schedule-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 0.5rem;
}

.specialist-schedule-table {
  width: 100%;
  font-size: 0.8125rem;
  border-collapse: collapse;
}

.specialist-schedule-table th,
.specialist-schedule-table td {
  padding: 0.4rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(10, 51, 104, 0.06);
}

.specialist-schedule-table th {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.specialist-schedule-table tr.schedule-today td {
  background: rgba(24, 119, 210, 0.08);
  font-weight: 600;
  color: var(--teal-deep);
}

.schedule-today-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--emerald);
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  margin-left: 0.25rem;
  vertical-align: middle;
}

.specialist-no-schedule {
  font-size: 0.8125rem;
  color: var(--muted);
}

.specialist-book-btn {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal-deep);
  background: #fff;
  border: 1px solid rgba(10, 51, 104, 0.15);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.specialist-book-btn:hover {
  background: var(--teal-deep);
  color: #fff;
  border-color: var(--teal-deep);
}

.specialists-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
}

.specialists-empty svg {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  opacity: 0.45;
}

.specialists-empty p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 0.35rem;
}

.specialists-empty span {
  font-size: 0.875rem;
}

/* Location & map */
.location-section {
  background: var(--sage);
}

.location-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .location-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 2rem;
  }
}

.location-info {
  background: #fff;
  border-radius: 10px;
  padding: 1.75rem;
  border: 1px solid rgba(10, 51, 104, 0.08);
}

.location-info-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 0.75rem;
}

.location-street {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.location-full {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.location-details {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.location-details li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: rgba(10, 51, 104, 0.78);
}

.location-details svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  color: var(--emerald);
}

.location-details a {
  color: inherit;
  text-decoration: none;
}

.location-details a:hover {
  color: var(--emerald);
}

.location-directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--teal-deep);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s;
}

.location-directions-btn:hover {
  background: var(--emerald);
  transform: translateY(-1px);
}

.location-directions-btn svg {
  width: 1rem;
  height: 1rem;
}

.location-map-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(10, 51, 104, 0.08);
  min-height: 320px;
  background: #e8efe9;
}

.location-map-embed {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

.footer-map-wrap {
  height: 160px;
}

.footer-map-embed {
  width: 100%;
  height: 160px;
  border: 0;
  display: block;
}

/* Booking sections */
.booking-section {
  background: #fff;
}

.booking-intro {
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  margin: -1rem 0 2.5rem;
}

.booking-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .booking-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.booking-card {
  background: var(--cream);
  border: 1px solid rgba(13, 60, 110, 0.08);
  border-radius: 8px;
  padding: 1.75rem;
  scroll-margin-top: 6rem;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.booking-card:target {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(24, 119, 210, 0.15);
}

.booking-card-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(13, 60, 110, 0.08);
}

.booking-card-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.booking-card-icon-visitor {
  background: rgba(24, 119, 210, 0.12);
  color: var(--emerald);
}

.booking-card-icon-schedule {
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold);
}

.booking-card-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 0.35rem;
}

.booking-card-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal-deep);
}

.form-optional {
  font-weight: 400;
  color: var(--muted);
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(13, 60, 110, 0.15);
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(24, 119, 210, 0.12);
}

.booking-form input:invalid:not(:placeholder-shown),
.booking-form select:invalid:not(:placeholder-shown),
.booking-form textarea:invalid:not(:placeholder-shown) {
  border-color: #f87171;
}

.booking-form textarea {
  resize: vertical;
  min-height: 80px;
}

.form-submit {
  margin-top: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, opacity 0.25s;
}

.form-submit:hover {
  transform: translateY(-1px);
}

.form-submit-visitor {
  background: var(--emerald);
  box-shadow: 0 6px 20px rgba(24, 119, 210, 0.3);
}

.form-submit-visitor:hover {
  box-shadow: 0 8px 28px rgba(24, 119, 210, 0.4);
}

.form-submit-schedule {
  background: var(--teal-deep);
  box-shadow: 0 6px 20px rgba(10, 51, 104, 0.2);
}

.form-submit-schedule:hover {
  box-shadow: 0 8px 28px rgba(10, 51, 104, 0.3);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--teal-deep);
  background: rgba(24, 119, 210, 0.12);
  border: 1px solid rgba(24, 119, 210, 0.25);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-top: 0.25rem;
}

.form-success.hidden {
  display: none;
}

/* Hero scroll down (home page only) */
.hero-scroll-controls {
  position: absolute;
  bottom: 7.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 14;
}

@media (min-width: 768px) {
  .hero-scroll-controls {
    bottom: 8.5rem;
  }
}

.hero-scroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
  animation: heroScrollBounce 2.5s ease-in-out infinite;
}

.hero-scroll-btn:hover {
  background: rgba(24, 119, 210, 0.25);
  border-color: var(--emerald);
  transform: translateY(2px);
  animation: none;
}

.hero-scroll-btn svg {
  animation: heroScrollArrow 2.5s ease-in-out infinite;
}

.hero-scroll-btn:hover svg {
  animation: none;
}

@keyframes heroScrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes heroScrollArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Back to home — visible outside hero */
.back-to-home {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: #fff;
  background: rgba(10, 51, 104, 0.92);
  border: 1px solid rgba(24, 119, 210, 0.45);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(10, 51, 104, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease, background 0.25s;
}

.back-to-home.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-home:hover {
  background: var(--emerald);
  border-color: var(--emerald);
}

@media (max-width: 640px) {
  .back-to-home {
    right: 0.75rem;
    bottom: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.hero-slide.active {
  transform: translateX(0);
  z-index: 2;
}

.hero-slide.exit-left {
  transform: translateX(-100%);
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.08);
  animation: kenBurns 8s ease-out forwards;
}

.hero-slide.active img {
  animation: kenBurns 8s ease-out forwards;
}

.hero-slide.hero-slide-contain {
  background: var(--teal-deep);
}

.hero-slide.hero-slide-contain img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: none !important;
  animation: none !important;
}

@keyframes kenBurns {
  from { transform: scale(1.08); }
  to { transform: scale(1.18); }
}

.hero-slide-label {
  position: absolute;
  bottom: 8.5rem;
  right: 1.5rem;
  z-index: 15;
  padding: 0.55rem 1rem 0.55rem 0.85rem;
  background: rgba(13, 60, 110, 0.75);
  border-left: 3px solid var(--emerald);
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.hero-slide-label.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide-dots {
  position: absolute;
  bottom: 8.5rem;
  left: 1.5rem;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .hero-slide-label {
    bottom: 9rem;
    right: 2.5rem;
    font-size: 0.78rem;
  }

  .hero-slide-dots {
    bottom: 9rem;
    left: 2.5rem;
  }
}

.hero-bg {
  will-change: transform;
}

.hero-slide-dot {
  width: 2rem;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
  border: none;
  cursor: none;
  padding: 0;
  transition: width 0.35s ease, background 0.35s ease;
}

.hero-slide-dot.active {
  width: 2.75rem;
  background: var(--emerald);
}

.hero-slide-dot:hover {
  background: rgba(255, 255, 255, 0.55);
}

.hero-particle {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(-30px); opacity: 0.8; }
}

.scroll-indicator {
  animation: bounce 2s ease-in-out infinite;
}

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

.scroll-dot {
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

.hero-pill {
  animation: float 6s ease-in-out infinite;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* Stats */
.stat-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
}

.stat-icon {
  transition: background 0.3s, color 0.3s;
}

.stat-card:hover .stat-icon {
  background: rgba(24, 119, 210, 0.2);
  color: var(--emerald);
}

/* Service cards */
.service-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(13, 60, 110, 0.12);
}

.service-card:hover .service-img {
  transform: scale(1.1);
}

.service-card:hover .service-border {
  opacity: 1;
}

.service-img {
  transition: transform 0.7s ease;
}

.service-border {
  opacity: 0;
  transition: opacity 0.3s;
}

/* Why choose us */
.why-card:nth-child(even) {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .why-card:nth-child(even) {
    transform: translateY(1.5rem);
  }
}

.why-card.visible:nth-child(even) {
  transform: translateY(1.5rem);
}

/* Emergency */
.emergency-stripe {
  animation: stripeMove 2s linear infinite;
}

@keyframes stripeMove {
  from { background-position: 0 0; }
  to { background-position: 40px 0; }
}

.pulse-dot {
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.emergency-icon {
  animation: emergencyPulse 1.5s ease-in-out infinite;
}

@keyframes emergencyPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Footer social */
.social-link {
  transition: background 0.3s, transform 0.3s;
}

.social-link:hover {
  background: var(--emerald);
  transform: scale(1.1);
}

/* Community — feedback, news, media */
.testimonials-share-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(24, 119, 210, 0.35);
}

.testimonials-share-link:hover {
  color: var(--blue-mid);
}

.feedback-section {
  background: var(--sage);
}

.feedback-intro,
.news-intro,
.media-intro {
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  margin: -1rem 0 2.5rem;
}

.feedback-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .feedback-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feedback-form-card,
.feedback-list-wrap {
  background: #fff;
  border: 1px solid rgba(10, 51, 104, 0.08);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 8px 28px rgba(10, 51, 104, 0.06);
}

.feedback-form-title,
.feedback-list-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--blue-deep);
  margin-bottom: 1.25rem;
}

.feedback-empty {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.feedback-empty.hidden {
  display: none;
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 32rem;
  overflow-y: auto;
}

.feedback-card {
  padding: 1rem 1.1rem;
  background: var(--cream);
  border: 1px solid rgba(10, 51, 104, 0.08);
  border-radius: 8px;
}

.feedback-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.feedback-card-name {
  display: block;
  font-size: 0.9375rem;
  color: var(--blue-deep);
}

.feedback-card-role {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.feedback-card-stars .star {
  font-size: 0.85rem;
}

.feedback-card-quote {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(10, 51, 104, 0.82);
  margin-bottom: 0.5rem;
}

.feedback-card-date {
  font-size: 0.72rem;
  color: var(--muted);
}

.news-section {
  background: #fff;
}

.news-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.news-card {
  background: #fff;
  border: 1px solid rgba(10, 51, 104, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(10, 51, 104, 0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(10, 51, 104, 0.1);
}

.news-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-card-image img,
.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-image .staff-photo-placeholder,
.news-modal-image .staff-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  border: none;
  border-radius: 0;
}

.news-card-category {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
}

.news-card-body {
  padding: 1.25rem;
}

.news-card-date {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.news-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue-deep);
  line-height: 1.35;
  margin-bottom: 0.55rem;
}

.news-card-excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.news-read-more {
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.news-read-more:hover {
  color: var(--blue-mid);
}

.news-modal,
.media-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.news-modal.open,
.media-modal.open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.news-modal-backdrop,
.media-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 32, 68, 0.72);
  backdrop-filter: blur(4px);
}

.news-modal-panel,
.media-modal-panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.media-modal-panel {
  max-width: 960px;
}

.news-modal-close,
.media-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: #fff;
  background: rgba(10, 51, 104, 0.65);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.news-modal-content {
  padding: 1.5rem;
}

.news-modal-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.news-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--blue-deep);
  margin: 0.5rem 0 0.75rem;
}

.news-modal-body-text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(10, 51, 104, 0.82);
}

.media-section {
  background: var(--cream);
}

.media-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.media-filter-tab {
  padding: 0.55rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-mid);
  background: #fff;
  border: 1px solid rgba(10, 51, 104, 0.12);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.media-filter-tab:hover,
.media-filter-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.media-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .media-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.media-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1.75rem;
}

.media-pagination[hidden] {
  display: none;
}

.media-page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.media-page-btn {
  min-width: 2.5rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-mid);
  background: #fff;
  border: 1px solid rgba(10, 51, 104, 0.12);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.media-page-btn:hover:not(:disabled),
.media-page-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.media-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.media-page-status {
  flex-basis: 100%;
  margin: 0.25rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(10, 51, 104, 0.65);
}

.media-card {
  padding: 0;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(10, 51, 104, 0.08);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.media-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(10, 51, 104, 0.12);
}

.media-card-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.media-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.media-card-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  background: #0a3366;
  transition: transform 0.35s;
}

.media-card:hover .media-card-thumb img,
.media-card:hover .media-card-video-thumb {
  transform: scale(1.05);
}

.media-play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 32, 68, 0.35);
}

.media-play-badge svg {
  width: 3rem;
  height: 3rem;
  color: #fff;
}

.media-card-info {
  padding: 0.85rem 1rem 1rem;
}

.media-card-type {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.media-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blue-deep);
  line-height: 1.35;
}

.media-card-caption {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(10, 51, 104, 0.68);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-empty {
  grid-column: 1 / -1;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--muted);
}

.media-modal-photo img {
  width: 100%;
  display: block;
  max-height: 70vh;
  object-fit: contain;
  background: #000;
}

.media-modal-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

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

.media-modal-video-native {
  padding-top: 0;
  min-height: min(70vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-modal-video-native video {
  width: 100%;
  max-height: 70vh;
  display: block;
  background: #000;
  cursor: pointer;
}

.media-modal-caption {
  padding: 1rem 1.25rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ===== Responsive — all screen sizes ===== */
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img,
video,
iframe {
  max-width: 100%;
}

video,
iframe {
  height: auto;
}

.max-w-7xl,
.max-w-6xl,
.max-w-5xl,
.max-w-4xl {
  width: 100%;
}

#navbar {
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

@media (max-width: 1023px) {
  .nav-pill {
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 639px) {
  .section-padding {
    padding: 3rem 1rem;
  }

  .section-header {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .section-number {
    font-size: 2rem;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .hero-subtext {
    font-size: 0.9375rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    min-height: 2.75rem;
  }

  .hero-features {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-slide-label {
    display: none;
  }

  .hero-slide-dots {
    bottom: 10.5rem;
    left: 1rem;
    flex-direction: row;
    gap: 0.35rem;
  }

  .hero-slide-dot {
    width: 1.5rem;
    height: 3px;
  }

  .hero-slide-dot.active {
    width: 2rem;
  }

  .hero-scroll-controls {
    display: none;
  }

  .media-intro,
  .news-intro,
  .services-intro,
  .specialists-intro,
  .booking-intro,
  .feedback-intro,
  .testimonials-intro {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
  }

  .booking-grid {
    gap: 1rem;
  }

  .booking-card {
    padding: 1.25rem;
  }

  .about-grid {
    gap: 1.5rem;
  }

  .location-grid {
    gap: 1rem;
  }

  .stat-item:nth-child(2n) {
    border-right: none;
  }

  .stat-item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(13, 60, 110, 0.08);
  }

  .stat-item {
    padding: 1rem 0.75rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .about-years-badge {
    transform: scale(0.9);
    transform-origin: bottom right;
  }

  .service-bento-content {
    padding: 1.15rem;
  }

  .service-bento-card {
    min-height: 200px;
  }

  .specialists-filter-select {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    width: auto;
  }

  .specialists-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .specialist-carousel {
    min-height: 320px;
  }

  .specialist-slide-info {
    padding: 1rem 1rem 3rem;
  }

  .specialist-info-name {
    font-size: 1.15rem;
  }

  .specialist-info-avatar {
    width: 56px;
    height: 56px;
  }

  .specialist-carousel-nav {
    width: 2.25rem;
    height: 2.25rem;
  }

  .specialist-carousel-prev {
    left: 0.5rem;
  }

  .specialist-carousel-next {
    right: 0.5rem;
  }

  .specialist-book-btn-slide {
    width: 100%;
    text-align: center;
  }

  .specialist-info-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .specialist-list-item {
    padding: 1rem;
  }

  .booking-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .booking-form input,
  .booking-form select,
  .booking-form textarea {
    font-size: 16px;
  }

  .form-submit {
    width: 100%;
  }

  .emergency-call-btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .emergency-card {
    padding: 1.5rem;
  }

  .testimonials-dual.comments-carousel {
    max-width: 100%;
  }

  .comments-dual-track {
    padding: 0.5rem;
    gap: 0.75rem;
  }

  .comments-carousel-controls,
  .testimonials-controls {
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
  }

  .comments-next {
    margin-left: 0;
  }

  .location-map-embed,
  .footer-map-embed {
    min-height: 220px;
  }

  .location-map-wrap {
    min-height: 220px;
  }

  .location-info {
    padding: 1.25rem;
  }

  .dept-modal-hero img {
    height: 200px;
  }

  .dept-modal-hero-text h2 {
    font-size: 1.35rem;
  }

  .dept-modal-body {
    padding: 1rem 1rem 1.5rem;
  }

  .staff-category-tabs {
    flex-wrap: wrap;
  }

  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .feedback-list {
    max-height: none;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .media-filters {
    justify-content: stretch;
  }

  .media-filter-tab {
    flex: 1 1 calc(33.333% - 0.35rem);
    text-align: center;
    padding: 0.65rem 0.5rem;
  }

  .media-card-info {
    padding: 0.75rem 0.85rem 0.9rem;
  }

  .media-card-caption {
    font-size: 0.75rem;
    -webkit-line-clamp: 3;
  }

  .media-pagination {
    gap: 0.4rem;
  }

  .media-page-btn {
    padding: 0.55rem 0.75rem;
    font-size: 0.75rem;
  }

  .media-page-prev,
  .media-page-next {
    flex: 1 1 calc(50% - 0.25rem);
  }

  .media-page-numbers {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
  }

  .media-page-status {
    order: 4;
    font-size: 0.75rem;
  }

  .media-modal-panel {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 10px;
  }

  .media-modal-close {
    top: 0.35rem;
    right: 0.35rem;
  }

  .media-modal-photo img,
  .media-modal-video-native video {
    max-height: 55vh;
  }

  .media-modal-caption {
    padding: 0.85rem 1rem 1rem;
    font-size: 0.8125rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .nav-shell {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .specialists-filter-select {
    flex: 1 1 100%;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .specialist-carousel {
    min-height: 380px;
  }
}

/* Touch devices — larger tap targets, no hover-only UI */
@media (hover: none) and (pointer: coarse) {
  .nav-pill,
  .nav-cta,
  .menu-btn,
  .comment-dot,
  .specialist-carousel-nav,
  .hero-slide-dot,
  .service-visit-more,
  .form-submit,
  .specialist-book-btn-slide,
  .media-filter-tab,
  .media-page-btn {
    min-height: 44px;
    min-width: 44px;
  }

  .comment-dot,
  .hero-slide-dot {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-slide-dot {
    width: 2rem;
    height: 4px;
    min-height: 44px;
    padding: 20px 0;
    background-clip: content-box;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  body.custom-cursor-active {
    cursor: auto;
  }

  body.custom-cursor-active a,
  body.custom-cursor-active button {
    cursor: pointer;
  }

  .hospital-cursor {
    display: none !important;
  }

  .hero-slide {
    transition: opacity 0.4s ease;
    transform: none !important;
    opacity: 0;
  }

  .hero-slide.active {
    opacity: 1;
  }

  .hero-slide img {
    animation: none !important;
    transform: scale(1.05);
  }

  .hero-slide.hero-slide-contain img {
    transform: none !important;
    animation: none !important;
  }

  .specialist-slide {
    transition: opacity 0.4s ease;
    transform: none !important;
    opacity: 0;
  }

  .specialist-slide.active {
    opacity: 1;
  }

  .specialist-slide img,
  .specialist-slide-photo {
    animation: none !important;
    transform: none !important;
  }

  .comment-slide {
    transition: opacity 0.4s ease;
    transform: none !important;
    opacity: 0;
  }

  .comment-slide.active {
    opacity: 1;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
  }
}
