/* Frontier Diagnostic — Bootstrap 5 companion styles */
:root {
  --fd-primary: #bd1a8a;
  --fd-primary-dark: #85145f;
  --fd-primary-light: #fdf4f9;
  --fd-text: #374151;
  --fd-heading: #111827;
  --bs-primary: #bd1a8a;
  --bs-primary-rgb: 189, 26, 138;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--fd-text);
}

/* Global readable typography in content area */
.site-content h1,
.site-content h2,
.site-content h3,
.site-content h4,
.site-content h5 {
  color: var(--fd-heading);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}
.site-content h1 { font-size: clamp(2rem, 2.6vw, 2.5rem); }
.site-content h2 { font-size: clamp(1.65rem, 2.1vw, 2rem); }
.site-content h3 { font-size: clamp(1.35rem, 1.75vw, 1.6rem); }
.site-content h4 { font-size: clamp(1.15rem, 1.35vw, 1.3rem); }
.site-content h5 { font-size: clamp(1rem, 1.15vw, 1.15rem); }
.site-content p {
  color: var(--fd-text);
  line-height: 1.72;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
}

/* Match previous max content width */
.site .container {
  max-width: 80rem;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Top bar */
.fd-top-bar {
  background: var(--fd-primary);
  transition: transform 0.3s ease;
}
.fd-top-bar.top-bar-hidden {
  transform: translateY(-100%);
}

.top-left-nav,
.top-left-nav > li {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.top-left-nav > li:not(:last-child)::after {
  content: "|";
  margin: 0 0.75rem;
  color: rgba(255,255,255,0.4);
}
.top-left-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.875rem;
}
.top-left-nav a:hover { color: #fff; }

.text-white-80 { color: rgba(255,255,255,0.8) !important; }
.text-white-90 { color: rgba(255,255,255,0.9) !important; }
a.text-white-80:hover { color: #fff !important; }

/* Header */
#masthead {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: visible;
}
#site-navigation.main-navigation {
  overflow: visible;
}

.custom-logo-link img,
#masthead .site-title img {
  max-height: 4rem;
}
@media (min-width: 768px) {
  .custom-logo-link img { max-height: 5rem; }
}

/* Nav wrapper — desktop pill */
.nav-wrapper {
  display: none;
  align-items: center;
  gap: 0.25rem;
  background: #fff;
  border-radius: 9999px;
  padding: 0.375rem 0.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08), 0 4px 24px rgba(0,0,0,0.04);
  overflow: visible;
}
@media (min-width: 992px) {
  .nav-wrapper { display: flex; }
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
}
.nav-menu > li > a::after {
  content: "";
  position: absolute;
  bottom: 0.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--fd-primary), #ec4899);
  transition: width 0.2s;
}
.nav-menu > li:hover > a::after,
.nav-menu > .current-menu-item > a::after,
.nav-menu > .current_page_item > a::after {
  width: calc(100% - 2rem);
}
.nav-menu > li:hover > a,
.nav-menu > .current-menu-item > a,
.nav-menu > .current_page_item > a {
  background: rgba(253,244,249,0.5);
  color: var(--fd-primary);
}

/* First-level dropdown only — avoid applying top/left to nested .sub-menu */
.nav-menu > li > .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  z-index: 50;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
/* Deeper levels: fly out to the right */
@media (min-width: 992px) {
  .nav-menu .sub-menu li {
    position: relative;
  }
  .nav-menu .sub-menu .sub-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 0.125rem;
    min-width: 260px;
    z-index: 60;
    list-style: none;
    margin-top: 0;
    padding: 0.25rem 0;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  }
  .nav-menu .sub-menu li:hover > .sub-menu {
    display: block;
  }
  /* Invisible bridge so pointer can reach the flyout without closing — use ::before (chevron uses bg image, not ::after) */
  .nav-menu .sub-menu .menu-item-has-children > a::before {
    content: "";
    position: absolute;
    top: 0;
    right: -0.375rem;
    width: 0.5rem;
    height: 100%;
    z-index: 1;
  }
}
.nav-menu > li > a::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -1rem;
  height: 1rem;
}
.nav-menu > li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #6b7280;
  text-decoration: none;
}
.nav-menu .sub-menu .menu-item-has-children > a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-right: 2rem;
}
@media (min-width: 992px) {
  .nav-menu .sub-menu .menu-item-has-children > a {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 0.65rem 0.65rem;
    background-position: right 0.75rem center;
  }
}
/* Must not use shorthand `background:` or the chevron image is cleared on hover */
.nav-menu .sub-menu a:hover {
  background-color: rgba(253,244,249,0.3);
  color: var(--fd-primary);
}
@media (min-width: 992px) {
  .nav-menu .sub-menu .menu-item-has-children > a:hover {
    background-color: rgba(253,244,249,0.3);
  }
}

/* Mobile nav */
@media (max-width: 991.98px) {
  .nav-wrapper {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    border-radius: 0;
    padding: 5rem 1.5rem 1.5rem;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .main-navigation.active .nav-wrapper {
    display: flex;
    transform: translateX(0);
  }
  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0.25rem;
  }
  .nav-menu > li { width: 100%; }
  .nav-menu > li > a {
    justify-content: space-between;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  .nav-menu > li > a::after,
  .nav-menu > li > a::before { display: none; }
  .nav-menu .sub-menu {
    display: none;
    position: static;
    margin-top: 0.25rem;
    border: 0;
    box-shadow: none;
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 0.25rem 0;
  }
  .menu-item-has-children.open > .sub-menu { display: block; }
  .nav-menu .sub-menu a { padding: 0.625rem 1.5rem; }
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ----- Universal buttons -----
   Base: .fd-btn
   Variants: .fd-btn--dark (primary on light bg) | .fd-btn--light (on dark/hero) | .fd-btn--outline (secondary)
   Sizes: .fd-btn--lg | .fd-btn--sm (optional)
   Filter chips: .fd-btn--tab
   ----- */
.fd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  min-height: 2.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 0.75rem;
  border: 2px solid transparent;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

button.fd-btn {
  -webkit-appearance: none;
  appearance: none;
}

.fd-btn:disabled,
.fd-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Dark — primary CTAs on light backgrounds */
.fd-btn--dark {
  background: linear-gradient(90deg, var(--fd-primary), var(--fd-primary-dark));
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(189, 26, 138, 0.35);
}

.fd-btn--dark:hover,
.fd-btn--dark:focus-visible {
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(189, 26, 138, 0.45);
  transform: translateY(-1px);
}

/* Light — CTAs on dark backdrops (hero, tinted sections) */
.fd-btn--light {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--fd-primary-dark) !important;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
}

.fd-btn--light:hover,
.fd-btn--light:focus-visible {
  background: #fff;
  color: #6b0f4a !important;
  border-color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
}

/* Outline — secondary / back links on light backgrounds (same size as dark) */
.fd-btn--outline {
  background: #fff;
  color: var(--fd-primary) !important;
  border-color: var(--fd-primary);
  box-shadow: none;
}

.fd-btn--outline:hover,
.fd-btn--outline:focus-visible {
  background: var(--fd-primary-light);
  color: var(--fd-primary) !important;
  transform: none;
  box-shadow: none;
}

.fd-btn--lg {
  padding: 0.85rem 2rem;
  min-height: 3.125rem;
  font-size: 1.0625rem;
}

.fd-btn--sm {
  padding: 0.4rem 1rem;
  min-height: 2.25rem;
  font-size: 0.8125rem;
}

.fd-btn--tab {
  margin: 0.35rem;
  white-space: normal;
}

.fd-btn:focus-visible {
  outline: 2px solid var(--fd-primary);
  outline-offset: 2px;
}

.fd-btn--light:focus-visible {
  outline-color: #fff;
}

.fd-btn--dark:focus-visible {
  outline-color: rgba(255, 255, 255, 0.85);
}

@media (prefers-reduced-motion: reduce) {
  .fd-btn--dark:hover,
  .fd-btn--dark:focus-visible,
  .fd-btn--light:hover,
  .fd-btn--light:focus-visible {
    transform: none;
  }
}

/* Page header — gradient + soft orbs + subtle motion (restored effect) */
.page-header-block {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 3rem 0;
  background-color: #85145f;
  background-image:
    radial-gradient(ellipse 85% 70% at 0% -20%, rgba(255, 255, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 75% 65% at 100% 110%, rgba(244, 114, 182, 0.35), transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(255, 255, 255, 0.08), transparent 45%),
    linear-gradient(
      135deg,
      var(--fd-primary) 0%,
      #a51878 28%,
      #8b1468 52%,
      var(--fd-primary-dark) 78%,
      #6b0f4a 100%
    );
}
@media (min-width: 992px) {
  .page-header-block { padding: 4rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .page-header-block::before,
  .page-header-block::after {
    animation: none;
  }
}

/* Extra soft “orb” blur layer (visible glow in corners) */
.page-header-block::before {
  content: "";
  position: absolute;
  width: clamp(16rem, 45vw, 28rem);
  height: clamp(16rem, 45vw, 28rem);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  filter: blur(72px);
  top: -18%;
  left: -12%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  animation: fd-page-header-orb-a 12s ease-in-out infinite;
}

.page-header-block::after {
  content: "";
  position: absolute;
  width: clamp(18rem, 52vw, 34rem);
  height: clamp(18rem, 52vw, 34rem);
  border-radius: 50%;
  background: rgba(244, 114, 182, 0.45);
  filter: blur(80px);
  bottom: -22%;
  right: -14%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
  animation: fd-page-header-orb-b 14s ease-in-out infinite;
}

@keyframes fd-page-header-orb-a {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.85; }
  50% { transform: translate(4%, 6%) scale(1.08); opacity: 0.95; }
}

@keyframes fd-page-header-orb-b {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.75; }
  50% { transform: translate(-5%, -4%) scale(1.1); opacity: 0.88; }
}

.page-header-block__inner {
  position: relative;
  z-index: 1;
}

.page-header-block .breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.page-header-block .breadcrumb a:hover { color: #fff; }
.page-header-block .entry-title {
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}

/* Hero */
.fd-hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
@media (min-width: 992px) {
  .fd-hero { height: 550px; }
}
.fd-hero .fd-hero-title {
  font-size: clamp(2rem, 5.2vw, 4rem) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.02em;
}
.fd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(189,26,138,0.7), rgba(133,20,95,0.6));
}

/* Badges */
.fd-badge,
.section-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: #fbe8f3;
  color: #a01573;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fd-heading);
  margin-bottom: 0.5rem;
}
@media (min-width: 992px) {
  .section-title { font-size: 2.25rem; }
}

.page-header-block .breadcrumb .text-white-muted {
  color: rgba(255, 255, 255, 0.8);
}
.page-header-block .breadcrumb .text-white-muted:hover {
  color: #fff;
}
.page-header-block .breadcrumb .text-white-sep {
  color: rgba(255, 255, 255, 0.5);
}

.fd-icon-box-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(253, 244, 249, 0.9);
  color: var(--fd-primary);
  flex-shrink: 0;
}

.fd-dept-section-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.9), rgba(88, 28, 70, 0.85));
}

.fd-glass-panel {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.fd-glass-panel:hover {
  background: rgba(255, 255, 255, 0.15);
}

.fd-icon-gradient {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--fd-primary), var(--fd-primary-dark));
  color: #fff;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(189, 26, 138, 0.3);
}

.ratio-3x4 {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  width: 100%;
}
.ratio-3x4 > img,
.ratio-3x4 > picture,
.ratio-3x4 > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ratio-3x4 > picture {
  display: block;
  margin: 0;
}
.ratio-3x4 > .d-flex {
  position: absolute;
  inset: 0;
}

/* Single doctor profile — compact photo + matching action buttons */
.doctor-profile-photo {
  max-width: 17.5rem; /* ~280px — keeps portrait from dominating */
  width: 100%;
}

@media (min-width: 992px) {
  .doctor-profile-photo {
    max-width: 19rem; /* ~304px in sidebar column */
  }
}

.doctor-profile-photo-ratio {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  width: 100%;
}

.doctor-profile-photo-ratio > img,
.doctor-profile-photo-ratio > picture,
.doctor-profile-photo-ratio > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-profile-photo-ratio > .d-flex {
  position: absolute;
  inset: 0;
}

/* Imaging / Laboratory image cards — pill labels only (no full-image overlay) */
.fd-imaging-feature {
  height: 410px;
  border-radius: 1rem;
}
@media (max-width: 750px) {
  .fd-imaging-feature {
    height: auto;
    min-height: 260px;
  }
}
.fd-imaging-feature > .position-absolute.bottom-0,
.fd-imaging-thumb > .position-absolute {
  z-index: 2;
}

/* “Online Services”–style pill — beats .site-content heading colours on image cards */
.fd-overlay-text-pill {
  display: inline-block;
  max-width: 100%;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff !important;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}
.fd-overlay-text-pill--feature {
  padding: 0.55rem 1.35rem;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  border-color: rgba(255, 255, 255, 0.55);
}
/* Single pill: title + subtitle (large feature cards) */
.fd-overlay-text-pill--stacked {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 1rem;
  text-align: left;
  font-size: inherit;
  font-weight: inherit;
}
.fd-overlay-text-pill--stacked.fd-overlay-text-pill--feature {
  padding: 0.65rem 1.35rem;
}
.fd-overlay-text-pill__title {
  display: block;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff !important;
}
.fd-overlay-text-pill__subtitle {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.94) !important;
}
.fd-overlay-text-pill--compact {
  padding: 0.32rem 0.75rem;
  font-size: 0.78rem;
}
@media (min-width: 576px) {
  .fd-overlay-text-pill--compact {
    font-size: 0.82rem;
    padding: 0.35rem 0.85rem;
  }
}

.site-content .fd-imaging-thumb h4 {
  margin-bottom: 0;
  color: #fff;
}

.fd-imaging-feature:focus-visible,
.fd-imaging-thumb:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.bg-light-pink {
  background: #fdf4f9 !important;
}

.fd-post-card__media {
  aspect-ratio: 16 / 10;
}

.fd-post-card__media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08), transparent);
  opacity: 0.75;
  pointer-events: none;
}

.fd-post-card__badge {
  background: rgba(189, 26, 138, 0.9);
  color: #fff;
  font-weight: 600;
}

.fd-post-tag {
  background: rgba(189, 26, 138, 0.12);
  color: var(--fd-primary);
  border: 1px solid rgba(189, 26, 138, 0.18);
  font-weight: 600;
}
.fd-post-tag:hover,
.fd-post-tag:focus-visible {
  background: rgba(189, 26, 138, 0.18);
  color: var(--fd-primary);
}

/* Blog — single post layout */
.fd-single-post__thumb {
  max-height: 480px;
}
.fd-single-post__thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
}
@media (min-width: 992px) {
  .fd-single-post__thumb,
  .fd-single-post__thumb-img {
    max-height: 520px;
  }
}

/* Gutenberg content alignment inside posts/pages */
.entry-content > * {
  max-width: 100%;
}
.entry-content .wp-block-image img {
  height: auto;
}
.entry-content .wp-block-image figure,
.entry-content figure.wp-block-image {
  margin: 1.25rem 0;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #f3e8f4;
  background: #fff;
}
.entry-content .wp-block-image figcaption,
.entry-content figure.wp-block-image figcaption,
.entry-content .wp-caption-text {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #6b7280;
  text-align: center;
  padding: 0.65rem 0.9rem;
  background: #f9fafb;
  border-top: 1px solid #f3e8f4;
}
.entry-content .wp-block-image figcaption a,
.entry-content .wp-caption-text a {
  color: var(--fd-primary);
  text-decoration: none;
  font-weight: 600;
}
.entry-content .wp-block-image figcaption a:hover,
.entry-content .wp-caption-text a:hover {
  text-decoration: underline;
}
.entry-content .wp-block-image img,
.entry-content .wp-caption img {
  border-radius: 0;
  display: block;
}
.entry-content .wp-block-image.aligncenter {
  text-align: center;
}
.entry-content .alignwide {
  width: 100%;
}
.entry-content .alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.text-primary-fd {
  color: var(--fd-primary) !important;
}

.border-primary-soft {
  border-color: #fce7f3 !important;
}

/* Doctor grid card (see includes/card-doctor.php + frontier_diagnostic_doctor_card()) */
/* Doctor grid card — compact centered portrait (all instances) */
.fd-doctor-card__media-wrap {
  display: flex;
  justify-content: center;
}
.fd-doctor-card__photo {
  width: 100%;
  max-width: 10.5rem;
  flex-shrink: 0;
}
.fd-doctor-card__placeholder i {
  font-size: 2.25rem;
}
.fd-doctor-card__photo .fd-doctor-card__dept-badge {
  margin: 0.45rem !important;
  font-size: 0.7rem;
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
  padding-left: 0.65rem !important;
  padding-right: 0.65rem !important;
}

.fd-doctor-card__dept-badge {
  background: rgba(189, 26, 138, 0.9);
  color: #fff;
  font-weight: 600;
}
.fd-doctor-card__clock {
  font-size: 0.65rem;
  flex-shrink: 0;
}
.fd-doctor-card--linked:focus-visible {
  outline: 2px solid var(--fd-primary);
  outline-offset: 2px;
}

.team-member-card .fd-doctor-card__hover-actions {
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.25s, transform 0.25s;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  padding-top: 2rem !important;
  z-index: 2;
}
.team-member-card:hover .fd-doctor-card__hover-actions {
  opacity: 1;
  transform: translateY(0);
}

.fd-archive-dept-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.5), transparent);
  pointer-events: none;
}

.fd-archive-dept-card-plain {
  background: linear-gradient(135deg, #f1f5f9 0%, rgba(253, 244, 249, 0.5) 50%, #e2e8f0 100%);
}

/* Department intro */
.department-intro-content {
  font-family: inherit;
  color: var(--fd-text);
  font-size: 1.0625rem;
  line-height: 1.65;
}
.department-intro-content p,
.department-intro-content li { font-family: inherit !important; }
.department-intro-content p:first-of-type {
  font-size: 1.1875rem;
  font-weight: 600;
  color: #111827;
}
@media (min-width: 992px) {
  .department-intro-content p:first-of-type { font-size: 1.25rem; }
}
.department-intro-content a { color: var(--fd-primary); font-weight: 500; }
.department-intro-content p:empty { display: none; }

/* Contact Form 7 */
.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
}
/* Looser default; contact page uses .fd-contact-form for tighter spacing */
.wpcf7 p { margin-top: 0; margin-bottom: 0.65rem; }
.wpcf7 label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--fd-text);
  background-color: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wpcf7 select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #9ca3af;
  opacity: 1;
}
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  border-color: var(--fd-primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(189, 26, 138, 0.2);
}
.wpcf7 input.wpcf7-not-valid,
.wpcf7 select.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.wpcf7 textarea { min-height: 120px; resize: vertical; }
.wpcf7 input[type="file"] {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--fd-text);
}
.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.15rem 0.5rem 0 0;
  flex-shrink: 0;
  accent-color: var(--fd-primary);
  vertical-align: top;
}
.wpcf7 .wpcf7-list-item {
  margin: 0 0 0.5rem;
}
.wpcf7 .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  font-weight: 500;
  color: var(--fd-text);
  gap: 0;
  cursor: pointer;
}
.wpcf7 .wpcf7-acceptance .wpcf7-list-item label {
  font-size: 0.875rem;
  line-height: 1.5;
}
/* Match universal .fd-btn.fd-btn--dark */
.wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  min-height: 2.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 0.75rem;
  border: 2px solid transparent;
  box-sizing: border-box;
  cursor: pointer;
  background: linear-gradient(90deg, var(--fd-primary), var(--fd-primary-dark));
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(189, 26, 138, 0.35);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.wpcf7 input[type="submit"]:hover {
  box-shadow: 0 6px 20px rgba(189, 26, 138, 0.45);
  transform: translateY(-1px);
}
.wpcf7 input[type="submit"]:focus-visible {
  outline: 2px solid var(--fd-primary);
  outline-offset: 2px;
}
.wpcf7 input[type="submit"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.wpcf7 .ajax-loader {
  display: inline-block;
  margin: 0 0 0 0.75rem;
  vertical-align: middle;
}
.wpcf7 .wpcf7-not-valid-tip {
  color: #dc2626;
  font-size: 0.8125rem;
  margin-top: 0.35rem;
  display: block;
}
.wpcf7 .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  border: 1px solid transparent;
}
.wpcf7 form.sent .wpcf7-response-output {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}
/* Contact page: compact layout — beats CF7 + WP paragraph margins (load order + specificity) */
.fd-contact-form .wpcf7 form.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.fd-contact-form .wpcf7 form.wpcf7-form p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.fd-contact-form .wpcf7 form.wpcf7-form p:has(.wpcf7-submit) {
  margin-top: 0.35rem !important;
}
.fd-contact-form .wpcf7 label {
  font-size: 0.875rem;
  font-weight: 600;
}
.fd-contact-form .wpcf7 .wpcf7-form-control-wrap {
  margin-top: 0.2rem;
}
.fd-contact-form .wpcf7 input[type="text"],
.fd-contact-form .wpcf7 input[type="email"],
.fd-contact-form .wpcf7 input[type="url"],
.fd-contact-form .wpcf7 input[type="number"],
.fd-contact-form .wpcf7 input[type="date"],
.fd-contact-form .wpcf7 input[type="tel"],
.fd-contact-form .wpcf7 select,
.fd-contact-form .wpcf7 textarea {
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  border-radius: 0.625rem !important;
  line-height: 1.5 !important;
  min-height: 2.875rem;
  box-sizing: border-box;
}
.fd-contact-form .wpcf7 select {
  padding-right: 2.5rem !important;
  background-position: right 0.75rem center;
}
/* Textarea: taller than single-line fields; min-height 0 overrides shared min-height */
.fd-contact-form .wpcf7 textarea {
  min-height: 0 !important;
  height: 8.5rem !important;
  max-height: 18rem;
  resize: vertical;
}
.fd-contact-form .wpcf7 input[type="submit"] {
  padding: 0.65rem 1.5rem !important;
  min-height: 2.85rem !important;
  font-size: 0.9375rem !important;
  border-radius: 0.625rem !important;
}

/* Contact page — hero / visual */
.fd-contact-visual {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 40px -12px rgba(15, 23, 42, 0.15), 0 4px 12px rgba(189, 26, 138, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
}
.fd-contact-visual__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(22rem, 55vh);
  object-fit: cover;
  object-position: center;
}

/* Contact page — Contact Information card (right column) */
.fd-contact-info {
  position: relative;
  padding: 1.5rem 1.5rem 1.25rem;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 28px -8px rgba(189, 26, 138, 0.12);
  overflow: hidden;
}
.fd-contact-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fd-primary), #ec4899);
  opacity: 0.92;
}
.fd-contact-info__title {
  margin: 0 0 1.25rem;
  padding-top: 0.2rem;
  letter-spacing: -0.02em;
}
.fd-contact-info__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.fd-contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f3f4f6;
}
.fd-contact-info__item:first-child {
  padding-top: 0;
}
.fd-contact-info__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.fd-contact-info__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  color: var(--fd-primary);
  background: rgba(253, 244, 249, 0.9);
  border: 1px solid rgba(189, 26, 138, 0.12);
}
.fd-contact-info__text {
  flex: 1;
  min-width: 0;
}
.fd-contact-info__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.3rem;
}
.fd-contact-info__value {
  color: var(--fd-text);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.fd-contact-info__link {
  display: inline-block;
  max-width: 100%;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fd-text);
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.15s ease;
}
.fd-contact-info__link:hover {
  color: var(--fd-primary);
}
.fd-contact-info__note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.4;
}

/* Contact page — Department Contacts cards */
.fd-contact-dept-section {
  background: linear-gradient(165deg, #f8fafc 0%, #fdf4f9 45%, #f1f5f9 100%);
  border: 1px solid rgba(189, 26, 138, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.fd-contact-dept-section__title {
  letter-spacing: -0.02em;
}
.fd-dept-contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.125rem;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 28px -8px rgba(189, 26, 138, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.fd-dept-contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fd-primary), #ec4899);
  opacity: 0.9;
}
.fd-dept-contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(189, 26, 138, 0.2);
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.05),
    0 18px 36px -10px rgba(189, 26, 138, 0.18);
}
.fd-dept-contact-card__title {
  margin: 0 0 1rem;
  padding-top: 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fd-heading);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.fd-dept-contact-card__lines {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.fd-dept-contact-card__line {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.15s ease;
}
.fd-dept-contact-card__line:hover {
  color: var(--fd-primary);
}
.fd-dept-contact-card__line--email {
  word-break: break-word;
}
.fd-dept-contact-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  margin-top: 0.05rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  color: var(--fd-primary);
  background: rgba(253, 244, 249, 0.85);
  border: 1px solid rgba(189, 26, 138, 0.12);
}

/* Testimonials */
.testimonials-slider {
  position: relative;
  overflow: hidden;
  padding: 0 2rem;
}
.testimonials-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease;
}
.testimonial-card {
  flex: 0 0 calc(25% - 1.125rem);
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 1rem;
  padding: 1.5rem;
}
@media (max-width: 1200px) {
  .testimonial-card { flex: 0 0 calc(33.333% - 1rem); }
}
@media (max-width: 1024px) {
  .testimonial-card { flex: 0 0 calc(50% - 0.75rem); }
}
@media (max-width: 768px) {
  .testimonial-card { flex: 0 0 100%; }
}
.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  z-index: 5;
  color: #4b5563;
}
.testimonial-nav:hover { color: var(--fd-primary); }
.testimonial-prev { left: 0; }
.testimonial-next { right: 0; }
.testimonial-dots .dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  padding: 0;
}
.testimonial-dots .dot.active { background: var(--fd-primary); }

/* Testimonials page grid — equal-height cards */
.fd-testimonials-page-grid .testimonial-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.fd-testimonials-page-grid .testimonial-card__body {
  flex-grow: 1;
}
.fd-testimonials-page-grid .testimonial-card__body p:last-child {
  margin-bottom: 0;
}

/* Partners marquee */
.partners-scroll-wrap {
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners-scroll-track {
  display: flex;
  width: max-content;
  animation: fd-partners-scroll 45s linear infinite;
}
.partners-scroll-track:hover { animation-play-state: paused; }
@keyframes fd-partners-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Home — “Founded in 2022” / polyclinic: video block matches text column height */
.fd-home-about-video {
  max-width: 100%;
  min-height: 0;
}
.fd-home-about-video__btn {
  min-height: 14rem;
}
@media (min-width: 992px) {
  .fd-home-about-video__btn {
    min-height: 0;
  }
}
.fd-home-about-video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Meet Our Specialists — filter row: select matches .fd-btn height */
#team-filters .fd-team-filter-select {
  min-height: 2.75rem;
  padding: 0.65rem 2.35rem 0.65rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 0.75rem;
  box-sizing: border-box;
}

/* Team cards filter */
.team-member-card { transition: opacity 0.3s, transform 0.3s; }

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #111827 100%);
  color: #fff;
}
.site-footer .footer-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--fd-primary), #ec4899, var(--fd-primary));
}
.site-footer h2 {
  position: relative;
  padding-bottom: 0.5rem;
}
.site-footer h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 2px;
  background: var(--fd-primary);
}

/* Footer utility classes — replace scattered inline styles */
.text-footer-muted {
  color: #d1d5db;
  text-decoration: none;
}
a.text-footer-muted:hover { color: #f9a8d4; }
.site-footer .text-footer-muted,
.site-footer a.text-footer-muted,
.site-footer p.text-footer-muted {
  color: #e5e7eb !important;
}
.site-footer a.text-footer-muted:hover {
  color: #fbcfe8 !important;
}

/* Social icon circles in footer and top bar */
.fd-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}
.fd-social-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Contact info icon circles in footer */
.fd-footer-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(189, 26, 138, 0.2);
  color: var(--fd-primary);
  flex-shrink: 0;
}

/* Utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ratio-16x10 { aspect-ratio: 16 / 10; }
.ratio-4x3 { aspect-ratio: 4 / 3; }

.fd-gradient-bar {
  width: 5rem;
  height: 4px;
  background: linear-gradient(90deg, var(--fd-primary), #f472b6);
  border-radius: 9999px;
}

/* Welcome message leadership panel */
.fd-leadership-panel {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fff7fc 0%, #fff 100%);
  border: 1px solid #f6d7ea;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(160, 21, 115, 0.08);
}
.fd-leadership-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a01573;
  background: #fdeaf6;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
}
.fd-profile-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #f9deef;
  border-radius: 0.85rem;
  padding: 0.6rem;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}
.fd-profile-image {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 2px solid #fce7f3;
  flex-shrink: 0;
}
.fd-profile-image--large {
  width: 100%;
  height: 100%;
  min-height: 350px;
  max-height: none;
  flex: 1 1 auto;
  border-radius: 1rem;
  object-fit: cover;
}
.fd-profile-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1f2937;
}
.fd-profile-position {
  font-size: 0.85rem;
  font-weight: 600;
  color: #a01573;
  font-style: normal;
}
.fd-profile-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #a01573;
  background: #fdeaf6;
  border: 1px solid #f8cde5;
  border-radius: 9999px;
  padding: 0.25rem 0.55rem;
}
.fd-welcome-message-copy {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  letter-spacing: 0.01em;
  font-style: italic;
}

/* Entry content blocks — unified heading scale matching site-content */
.entry-content { color: var(--fd-text); line-height: 1.72; }
.entry-content h1 { font-size: clamp(1.75rem, 2.2vw, 2rem); font-weight: 700; color: var(--fd-heading); margin-bottom: 1rem; }
.entry-content h2 { font-size: clamp(1.4rem, 1.8vw, 1.6rem); font-weight: 700; color: var(--fd-heading); margin-top: 1.5rem; margin-bottom: 0.75rem; }
.entry-content h3 { font-size: clamp(1.2rem, 1.5vw, 1.35rem); font-weight: 700; color: var(--fd-heading); margin-top: 1.25rem; margin-bottom: 0.6rem; }
.entry-content h4 { font-size: clamp(1.05rem, 1.2vw, 1.15rem); font-weight: 600; color: var(--fd-heading); margin-bottom: 0.5rem; }
.entry-content h5 { font-size: 1rem; font-weight: 600; color: var(--fd-heading); margin-bottom: 0.5rem; }
.entry-content h6 { font-size: 0.9375rem; font-weight: 600; color: var(--fd-heading); margin-bottom: 0.5rem; }
.entry-content p { margin-bottom: 1rem; color: var(--fd-text); }
.entry-content ul, .entry-content ol { padding-left: 1.25rem; margin-bottom: 1rem; }

/* site-content h6 (missing from original definition) */
.site-content h6 { font-size: 0.9375rem; font-weight: 600; color: var(--fd-heading); margin-bottom: 0.5rem; }

/* Ensure Bootstrap .text-primary resolves to brand color */
.text-primary { color: var(--fd-primary) !important; }

/* Video lightbox */
#video-lightbox.fd-lightbox-hidden { display: none !important; }
#video-lightbox:not(.fd-lightbox-hidden) {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Stat section */
.statistics-section {
  background: linear-gradient(90deg, var(--fd-primary), var(--fd-primary-dark));
}

/* Submenu chevron mobile */
.submenu-chevron { margin-left: auto; }

.fd-gallery-tabs {
  justify-content: center;
}
.fd-gallery-tabs .nav-link {
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--fd-primary-dark);
  background-color: transparent;
  color: var(--fd-primary-dark);
}
.fd-gallery-tabs .nav-link:hover,
.fd-gallery-tabs .nav-link:focus {
  background-color: rgba(133, 20, 95, 0.05);
  color: var(--fd-primary-dark);
  border-color: var(--fd-primary-dark);
}
.fd-gallery-tabs .nav-link.active {
  background-color: var(--fd-primary-dark);
  color: #ffffff;
  border-color: var(--fd-primary-dark);
}

.fd-gallery-grid .gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}
.fd-gallery-grid .gallery-item {
  margin: 0 !important;
  width: auto !important;
}
.fd-gallery-grid .gallery-icon {
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 4 / 3;
}
.fd-gallery-grid .gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 991.98px) {
  .fd-gallery-grid .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575.98px) {
  .fd-gallery-grid .gallery {
    grid-template-columns: 1fr;
  }
}

.ambulance-img{
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  border-radius: 10px;
}

.partner-logo {
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.1);
    z-index: 999;
}
.bg-light {
    --bs-bg-opacity: 1;
    background-color: white !important; */
}

.career-cta-heading{
	color: White !important;
	font-size: 30px !important;
}