body {
  background: var(--Background, #eef3f9);
  font-family:
    "SF Pro",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--color-text, #0f172a);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/*Start Drupal admin toolbar*/
#toolbar-bar,
.toolbar-tray {
  position: fixed;
  z-index: 3000; /* navbar se bada */
}

/* Toolbar horizontal ho to navbar niche shift */
body.toolbar-horizontal .navbar.sticky-top {
  top: 80px;
  z-index: 2000;
}

/* Normal navbar case */
body:not(.toolbar-horizontal) .navbar.sticky-top,
.navbar-fixed {
  top: 0;
  z-index: 1500; /* toolbar se chhota */
}
/*End Drupal admin toolbar*/
/* Navbar links */

.navbar-nav .nav-link {
  font-weight: 400; /* medium */
  transition: all 0.2s;
  white-space: nowrap;
}
/* Hover/active state */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  color: #000; /* black */
  font-weight: 600; /* bold on hover/active */
}

.dropdown-menu {
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 6px; /* optional smooth look */
  overflow: hidden;
  z-index: 1080 !important;
  left: 8px !important;
}
/* Har item ke liye normal padding */
.dropdown-item {
  padding: 8px 10px;
  margin: 0;
}

/* First item ke upar thoda space */
.dropdown-item:first-child {
  padding-top: 10px; /* thoda extra gap */
}

/* Last item ke neeche thoda space */
.dropdown-item:last-child {
  padding-bottom: 10px;
}

/* Hover = gray */
.dropdown-item:hover {
  background-color: #e5e5ea;
  font-weight: 600;
}
/* Selected (desktop header dropdowns only — not mobile drawer) */
@media (min-width: 1200px) {
  .header-navigation .dropdown-menu .dropdown-item.active {
    background-color: var(--color-accent) !important;
    color: #fff !important;
    font-weight: 600;
  }
}
/* Custom dropdown */
.dropdown-menu.custom-dropdown {
  min-width: 190px; /* total width */
  border: none;
  border-top-right-radius: 16px; /* only top-right rounded */
  border-radius: 0 16px 0 0; /* other corners square */
  padding: 0.5rem 0;
  overflow: hidden;
}

/* Sab items ke niche line */
.dropdown-menu.custom-dropdown .dropdown-item {
  min-height: 44px; /* row height */
  display: flex; /* to allow gap */
  align-items: center;
  padding: 13px 16px; /* spacing */
  font-size: 15px;
  gap: 10px;
  /*border-bottom: 1px solid rgba(0,0,0,0.1);*/ /* Divider for all items */
}

/* Hover effect */
.dropdown-menu.custom-dropdown.dropdown-item:hover {
  background-color: #f5f5f5;
  font-weight: 600;
}

.dropdown-menu.custom-dropdown li:last-child .dropdown-item {
  border-bottom: none;
}
/* Blur + tint shared by dropdown hover overlay and AJAX loading (below navbar only) */
:root {
  --header-content-overlay-blur: blur(8px);
  --header-content-overlay-tint: rgba(255, 255, 255, 0.45);
  --header-content-overlay-dim: rgba(0, 0, 0, 0.04);
  /* Page shell — flat section backgrounds (cool clinical blue-white) */
  --Background: #eef3f9;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-surface: #ffffff;
  --color-border-subtle: rgba(15, 23, 42, 0.08);
  /* Secondary accent — filters, selection, warm CTAs (primary actions stay blue) */
  --color-accent: #f26a4b;
  --color-accent-rgb: 242, 106, 75;
  --color-accent-light: #f58974;
  --color-accent-dark: #e85a3c;
  --color-accent-darker: #d94f32;
  --color-accent-border: #e5593f;
  --color-accent-gradient: linear-gradient(
    135deg,
    var(--color-accent) 0%,
    var(--color-accent-dark) 100%
  );
  --color-accent-gradient-hover: linear-gradient(
    135deg,
    var(--color-accent-dark) 0%,
    var(--color-accent-darker) 100%
  );
  --color-accent-gradient-pill: linear-gradient(
    165deg,
    var(--color-accent-light) 0%,
    var(--color-accent) 45%,
    var(--color-accent-dark) 100%
  );
  --color-accent-gradient-pill-hover: linear-gradient(
    165deg,
    var(--color-accent) 0%,
    var(--color-accent-dark) 45%,
    var(--color-accent-darker) 100%
  );
  --shadow-accent-sm: 0 1px 3px rgba(var(--color-accent-rgb), 0.45);
  --shadow-accent-md: 0 4px 14px rgba(var(--color-accent-rgb), 0.35);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 40px rgba(15, 23, 42, 0.07);
  --shadow-nav: 0 1px 0 rgba(15, 23, 42, 0.06);
  /* Homepage section separators (gradient hr) */
  --section-divider-edge: rgba(15, 23, 42, 0.1);
  --section-divider-mid: rgba(37, 99, 235, 0.38);
  --radius-card: 20px;
  --radius-control: 12px;
  /* Homepage bands — match header horizontal inset */
  --homepage-inline-padding: clamp(16px, 4vw, 48px);
  /* Listing pages: sidebar → pill filters below this width */
  --listing-sidebar-collapse: 991.98px;
  /* Align Bootstrap .bg-light with section canvas */
  --bs-light-rgb: 238, 243, 249;
}

/* Blur overlay (only content area, not navbar/footer/dropdown).
   Top is synced in dropdown-overlay.js to .header-navigation bottom (toolbar + scroll safe). */
.dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  bottom: 0px; /* footer ki approx height */
  backdrop-filter: var(--header-content-overlay-blur);
  -webkit-backdrop-filter: var(--header-content-overlay-blur);
  background: var(--header-content-overlay-tint);
  z-index: 1020; /* navbar & dropdown ke neeche */
  display: none;
  pointer-events: none; /* clicks pass through */
}

/* AJAX loading: same blur/tint as .dropdown-overlay + slight dim; fixed below navbar, no click blocking */
main::before {
  content: "";
  position: fixed;
  top: 0px;
  left: 0;
  width: 100%;
  bottom: 0;
  z-index: 1020;
  pointer-events: none;
  backdrop-filter: var(--header-content-overlay-blur);
  -webkit-backdrop-filter: var(--header-content-overlay-blur);
  background: var(--header-content-overlay-tint);
  box-shadow: inset 0 0 0 9999px var(--header-content-overlay-dim);
  opacity: 0;
  transition: opacity 0.35s ease;
}

body.ajax-loading main::before {
  opacity: 1;
}
.dropdown-toggle::after {
  display: none !important;
}
.gap-198 {
  gap: 198px;
}

/* Navbar & dropdown above overlay */
.navbar {
  z-index: 1050 !important;
  position: relative;
}

/* Primary nav: frosted bar + depth (reads less “flat Bootstrap”) */
nav.navbar.header-navigation.bg-white {
  background-color: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  border-bottom: 1px solid var(--color-border-subtle);
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 10px 28px -12px rgba(15, 23, 42, 0.12) !important;
}
.dropdown-menu {
  z-index: 1060 !important;
}

/* Desktop: premium nav row (pills, spacing, login) — scoped to .header-navigation */
@media (min-width: 1200px) {
  .header-navigation .navbar-brand {
    margin-right: 0.5rem;
    padding-top: 0;
    padding-bottom: 0;
    flex-shrink: 0;
  }

  .header-navigation .site-title {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.035em;
    color: var(--color-text);
  }

  .header-navigation #navbarNav.collapse.navbar-collapse .navbar-nav {
    gap: 0.2rem;
    align-items: center;
    padding-top: 0 !important;
  }

  .header-navigation .navbar-nav > .nav-item > a.nav-link,
  .header-navigation .navbar-nav > .nav-item > a.nav-link.dropdown-toggle {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    padding: 0.5rem 0.75rem !important;
    border-radius: 10px;
    border: 1px solid transparent;
    transition:
      background 0.18s ease,
      color 0.18s ease,
      border-color 0.18s ease,
      box-shadow 0.18s ease;
  }

  .header-navigation .navbar-nav > .nav-item > a.nav-link:hover,
  .header-navigation .navbar-nav > .nav-item > a.nav-link:focus,
  .header-navigation .navbar-nav > .nav-item.show > a.nav-link.dropdown-toggle,
  .header-navigation .navbar-nav > .nav-item > a.nav-link.dropdown-toggle:hover,
  .header-navigation
    .navbar-nav
    > .nav-item
    > a.nav-link.dropdown-toggle:focus {
    color: var(--color-text);
    background: rgba(15, 23, 42, 0.055);
    border-color: rgba(15, 23, 42, 0.06);
    font-weight: 600;
  }

  .header-navigation .navbar-nav > .nav-item > a.nav-link.active,
  .header-navigation .navbar-nav > .nav-item > a.nav-link.is-active {
    color: var(--color-text);
    font-weight: 600;
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.14);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.08);
  }

  .header-navigation .right-cluster {
    gap: 0.35rem;
  }

  /* Search icon (path-agnostic: link that contains the search icon) */
  .header-navigation
    .right-cluster
    > ul
    > li.nav-item
    > a.nav-link:has(.bi-search) {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border-radius: 10px;
    border: 1px solid transparent;
    color: var(--color-text-muted);
    transition:
      background 0.18s ease,
      color 0.18s ease,
      border-color 0.18s ease;
  }

  .header-navigation
    .right-cluster
    > ul
    > li.nav-item
    > a.nav-link:has(.bi-search):hover,
  .header-navigation
    .right-cluster
    > ul
    > li.nav-item
    > a.nav-link:has(.bi-search):focus {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.08);
    color: var(--color-text);
  }

  /* Login CTA — match hero .btn-primary (flat brand blue) */
  .header-navigation .right-cluster a.signup-btn.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: auto;
    margin-left: 0.15rem;
    padding: 0.5rem 1.15rem !important;
    border: none !important;
    border-radius: var(--radius-control, 12px) !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    color: #fff !important;
    text-decoration: none !important;
    background: #2563eb !important;
    box-shadow: var(--shadow-sm) !important;
    transition:
      background 0.2s ease,
      box-shadow 0.2s ease,
      transform 0.2s ease;
  }

  .header-navigation .right-cluster a.signup-btn.btn-primary:hover {
    background: #1d4ed8 !important;
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-1px);
    color: #fff !important;
  }

  .header-navigation .right-cluster a.signup-btn.btn-primary:active {
    transform: translateY(0);
    background: #1d4ed8 !important;
    box-shadow: var(--shadow-sm) !important;
  }

  .header-navigation .right-cluster a.signup-btn.btn-primary:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.5) !important;
    outline-offset: 3px;
    color: #fff !important;
  }
}
/* Navbar: collapsible submenu behavior whenever row is folded (below xl ≤1199px) */
@media (max-width: 1199.98px) {
  .navbar .dropdown-menu {
    display: none; /* Bootstrap ka default override */
  }
  .navbar .dropdown.show .dropdown-menu {
    display: block; /* jab .show lag jaye tab hi dikhe */
  }
  .navbar .dropdown-menu {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .navbar .dropdown.show .dropdown-menu {
    max-height: 500px; /* jitna bada dropdown ho utna allow kare */
  }
}

@media (max-width: 992px) {
  .about h5 {
    margin-left: 0px !important;
  }
  .about .w-63 {
    width: 100% !important;
  }
}
/* Hover dropdown on desktop only */
@media (min-width: 1200px) {
  .nav-item.dropdown:hover .dropdown-menu {
    display: block;
  }
}
/* Mobile/tablet drawer: submenus expand inline (not desktop floating dropdown) */
@media (max-width: 1199.98px) {
  #navbarNav .nav-item.dropdown {
    position: static;
  }

  #navbarNav .dropdown-menu,
  #navbarNav .dropdown-menu.custom-dropdown,
  #navbarNav .dropdown-menu.show,
  #navbarNav .dropdown-menu[data-bs-popper] {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    inset: auto !important;
    transform: none !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: auto !important;
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 !important;
  }

  #navbarNav .nav-item.dropdown.show > .dropdown-menu,
  #navbarNav .nav-item.dropdown.show > .dropdown-menu.show {
    max-height: 1200px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #navbarNav .dropdown-menu.custom-dropdown .dropdown-item {
    min-height: 0;
    display: block;
    border-radius: 0;
    border-top-right-radius: 0;
    padding: 12px 0 12px 12px !important;
    font-size: 1rem;
    font-weight: 400;
    color: #3a3a3c;
    gap: 0;
  }

  #navbarNav .dropdown-menu.custom-dropdown .dropdown-item:hover {
    background-color: transparent;
    font-weight: 500;
    color: #000;
  }

  /* Drawer links: override Bootstrap .dropdown-item:active (#fff) + Drupal .active trail */
  #navbarNav a.nav-link,
  #navbarNav a.nav-link:visited,
  #navbarNav a.dropdown-item,
  #navbarNav a.dropdown-item:visited,
  #navbarNav a.dropdown-item:hover,
  #navbarNav a.dropdown-item:focus,
  #navbarNav a.dropdown-item:active,
  #navbarNav .dropdown-item.active,
  #navbarNav .dropdown-item.is-active,
  #navbarNav .nav-link.active,
  #navbarNav .nav-link.is-active {
    color: #3a3a3c !important;
  }

  #navbarNav .dropdown-item.active,
  #navbarNav .dropdown-item.is-active,
  #navbarNav .nav-link.active,
  #navbarNav .nav-link.is-active {
    background-color: rgba(37, 99, 235, 0.08) !important;
    font-weight: 600;
  }

  #navbarNav .mobile-header-auth .mobile-login-btn,
  #navbarNav .mobile-header-auth .mobile-login-btn:visited,
  #navbarNav .mobile-header-auth .mobile-login-btn:hover {
    color: #fff !important;
  }
}
@media (min-width: 1200px) {
  .navbar-expand-xl .navbar-nav .nav-link {
    padding-right: 10px !important;
    padding-left: 0 !important;
  }
}
/* Mobile full-width fix */
@media (max-width: 1199.98px) {
  #navbarNav {
    text-align: left;
  }
  #navbarNav .navbar-nav {
    width: 100%;
  }
  #navbarNav .d-flex {
    justify-content: left;
    width: 100%;
  }
}
/*new design css */

/* Footer shell: full-bleed band (background must not use max-width on the section) */
.navbar-wrapper {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: clamp(1rem, 4vw, 2.75rem);
  padding-right: clamp(1rem, 4vw, 2.75rem);
  box-sizing: border-box;
  gap: 114px;
}

/* Inner stack: same max width as rest of site, centered */
section.navbar-wrapper > div {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Site footer — dark “anchor” band (scoped to footer section only) */
section.navbar-wrapper.bg-white {
  margin-top: 0;
  padding-top: 2.75rem !important;
  padding-bottom: 2.25rem !important;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(
    165deg,
    #152238 0%,
    #0f172a 42%,
    #0a0f18 100%
  ) !important;
  color: #e2e8f0 !important;
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.06) inset,
    0 -16px 48px rgba(15, 23, 42, 0.35);
}

section.navbar-wrapper.bg-white.text-dark {
  color: #e2e8f0 !important;
}

section.navbar-wrapper .footer-wrapper {
  width: 100%;
  row-gap: 1.25rem;
  column-gap: 2rem;
  align-items: center;
}

section.navbar-wrapper .site-title {
  color: #f8fafc !important;
  font-weight: 600;
  letter-spacing: -0.03em;
  width: auto;
  max-width: 100%;
}

/* Header logo — same size at every breakpoint */
.header-navigation img.logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: none;
  max-height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

/* Left cluster */
.left-cluster {
  gap: 5px;
}

/* Footer logo — natural SVG size, capped so it stays proportional to 18px title */
section.navbar-wrapper img.logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 36px;
  flex-shrink: 0;
  object-fit: contain;
}

.site-title {
  font-family: "SF Pro", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1c1c1e;
  width: max-content;
  margin-left: 12px !important;
}
/* Center nav */
.center-nav {
  display: flex;
  font-family: "SF Pro", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #5f5f5f;
}

.center-nav .nav-link:hover,
.center-nav .nav-link:focus,
.center-nav .nav-link.active {
  font-weight: 600;
  color: #1c1c1e;
}
/* Right cluster */
.right-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Login button */
.login-btn {
  background-color: #0a84ff;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  height: 32px;
  width: 78px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.login-btn:hover,
.login-btn:focus {
  background-color: #006ae6;
  color: #fff;
}

/* Mobile drawer: Login / Logout — Figma 78×44px, left-aligned, 16px corners, brand #0a84ff */
@media (max-width: 1199.98px) {
  #navbarNav .mobile-header-auth {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #navbarNav .mobile-header-auth .mobile-auth-btn {
    height: 44px;
    min-height: 44px;
    padding: 0 14px !important;
    border-radius: 16px !important;
    font-weight: 600;
    font-size: 15px;
    line-height: 18px;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    --bs-btn-padding-x: 14px;
    --bs-btn-padding-y: 0;
    --bs-btn-border-radius: 16px;
    --bs-btn-font-size: 15px;
    --bs-btn-font-weight: 600;
    --bs-btn-line-height: 18px;
  }

  /* Figma login CTA: fixed 78×44 (phone + tablet) */
  #navbarNav .mobile-header-auth .mobile-auth-btn.mobile-login-btn {
    width: 78px;
    min-width: 78px;
    max-width: 78px;
    padding: 0 !important;
    --bs-btn-padding-x: 0;
  }

  /* One login style on phone + tablet (override Bootstrap .btn-primary pill/gradient) */
  #navbarNav .mobile-header-auth .mobile-login-btn.btn,
  #navbarNav .mobile-header-auth .mobile-login-btn.btn-primary {
    background-color: #0a84ff !important;
    border: 1px solid #0a84ff !important;
    border-color: #0a84ff !important;
    color: #fff !important;
    box-shadow: none !important;
    background-image: none !important;
  }

  #navbarNav .mobile-header-auth .mobile-login-btn:hover,
  #navbarNav .mobile-header-auth .mobile-login-btn:focus,
  #navbarNav .mobile-header-auth .mobile-login-btn:active {
    background-color: #006ae6 !important;
    border-color: #006ae6 !important;
    color: #fff !important;
    box-shadow: none !important;
    background-image: none !important;
  }

  #navbarNav .mobile-header-auth .mobile-auth-btn.btn-outline-primary,
  #navbarNav .mobile-header-auth .mobile-logout-btn {
    background-color: #fff !important;
    color: #0a84ff !important;
    border: 1px solid #0a84ff !important;
    box-shadow: none !important;
    background-image: none !important;
  }

  #navbarNav .mobile-header-auth .mobile-auth-btn.btn-outline-primary:hover,
  #navbarNav .mobile-header-auth .mobile-auth-btn.btn-outline-primary:focus,
  #navbarNav .mobile-header-auth .mobile-auth-btn.btn-outline-primary:active,
  #navbarNav .mobile-header-auth .mobile-logout-btn:hover,
  #navbarNav .mobile-header-auth .mobile-logout-btn:focus,
  #navbarNav .mobile-header-auth .mobile-logout-btn:active {
    background-color: #fff !important;
    color: #006ae6 !important;
    border-color: #006ae6 !important;
    box-shadow: none !important;
  }
}

.form-type-search-api-autocomplete {
  width: -webkit-fill-available;
}
/* Search toggle */
.search-toggle {
  background: none;
  border: none;
  font-size: 1.15rem;
  color: var(--color-text-muted, #64748b);
  cursor: pointer;
  line-height: 1;
  padding: 0.35rem;
  border-radius: 10px;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}
.search-toggle:hover,
.search-toggle:focus,
.search-toggle.active {
  color: var(--color-text, #0f172a);
  background: rgba(15, 23, 42, 0.06);
}

/* 🔹 Mobile adjustments */
@media (max-width: 992px) {
  .navbar-wrapper {
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 0px !important;
  }

  .center-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: 16px;
  }

  .collapse .login-btn {
    margin: 20px 0 0;
  }
}

/* Mobile: hide site title ONLY in header */
@media (max-width: 992px) {
  .header-navigation .site-title {
    display: none;
  }
}

/* Mobile nav left align */
@media (max-width: 992px) {
  .center-nav {
    flex-direction: column;
    align-items: flex-start; /* left aligned */
    gap: 10px;
    margin: 16px 0 0 0; /* logo ke thik niche */
  }

  /* Mobile login button smaller */
  .center-nav .login-btn {
    width: 30%; /*  50% se bhi chhota */
    min-width: 90px; /* optional minimum width */
    margin-top: 12px;
  }
}
/* User Dropdown Box */
.user-dropdown {
  min-width: 100px;
  width: auto;
  left: 0 !important;
  right: auto !important;
  padding: 6px 0;
  border-radius: 18px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
  background: #fff;
}

/* User Dropdown Items */
.user-dropdown-item {
  display: block;
  font-size: 14px;
  padding: 6px 14px;
  color: #1c1c1e;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 0;
}

.user-dropdown-item:hover {
  background-color: #f5f5f7;
  color: #000;
}

/*  Active/Selected state */
.user-dropdown-item.active,
.user-dropdown-item:active {
  background-color: var(--color-accent) !important;
  color: #fff !important; /* White text */
  font-weight: 600;
}

/*End new design css */

.footer-site-name {
  font-weight: 510; /* Medium */
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0;
  color: #000000;
}
.support {
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0;
  color: #6e6e73;
  font-style: Regular;
}
.copyright {
  font-weight: 400; /* Regular */
  font-style: Regular;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0;
  color: #6e6e73; /* White text for contrast */
  margin: 0;
}

section.navbar-wrapper .copyright {
  color: #64748b;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  padding-top: 0.25rem;
}

section.navbar-wrapper .footer-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.25rem;
}

/* Beat Bootstrap .justify-content-md-end on footer menu markup */
section.navbar-wrapper .footer-menu ul.nav {
  justify-content: center !important;
}

.footer-menu-list {
  gap: 26px;
}

.footer-first {
  gap: 212px;
}

section.navbar-wrapper .footer-menu .nav-link {
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #cbd5e1 !important;
  padding: 0.45rem 0.7rem !important;
  border-radius: 10px;
  border: 1px solid transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

section.navbar-wrapper .footer-menu .nav-link:hover,
section.navbar-wrapper .footer-menu .nav-link:focus {
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* Footer nav: desktop row vs. compact grouped sections (mobile / tablet) */
.footer-nav--compact {
  display: none;
}

.footer-nav--desktop {
  display: block;
  width: 100%;
}

.site-footer .footer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0;
}

.site-footer .footer-brand {
  flex-shrink: 0;
}

.site-footer .footer-menu {
  width: 100%;
}

.footer-nav__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  column-gap: 1.5rem;
  width: 100%;
  max-width: 21rem;
  margin: 0 auto;
}

.footer-nav__section {
  min-width: 0;
  text-align: left;
  padding: 0;
}

.footer-nav__section--procedures {
  border-right: 1px solid rgba(248, 250, 252, 0.12);
  padding-right: 1.125rem;
}

.footer-nav__section--site {
  padding-left: 1.125rem;
}

.footer-nav__label {
  margin: 0 0 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1.3;
}

.footer-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-nav__item {
  margin: 0;
}

.footer-nav__link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #cbd5e1;
  text-decoration: none;
  padding: 0.35rem 0;
  border-radius: 8px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.footer-nav__link:hover,
.footer-nav__link:focus {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  margin-left: -0.35rem;
  margin-right: -0.35rem;
  width: calc(100% + 0.7rem);
}

/* Mobile / tablet: centered brand, grouped link sections */
@media (max-width: 1199.98px) {
  section.navbar-wrapper .footer-wrapper > .d-flex:first-of-type {
    justify-content: center;
    width: 100%;
  }

  .footer-menu .footer-nav--desktop,
  .footer-menu .footer-nav--desktop ul.nav {
    display: none !important;
  }

  .footer-menu .footer-nav--compact {
    display: block !important;
    width: 100%;
    max-width: 21rem;
    margin-left: auto;
    margin-right: auto;
  }

  section.navbar-wrapper.site-footer {
    padding-top: 2rem !important;
    padding-bottom: 1.75rem !important;
  }

  .site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    box-sizing: border-box;
  }

  .site-footer .footer-wrapper {
    gap: 0;
    width: 100%;
  }

  .site-footer .footer-brand {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(248, 250, 252, 0.1);
  }

  .site-footer .footer-brand .d-flex,
  .site-footer .footer-brand a.d-flex {
    justify-content: center;
    width: auto;
    max-width: 100%;
  }

  .site-footer .footer-brand .logo {
    flex-shrink: 0;
  }

  .site-footer .footer-brand .site-title {
    text-align: left;
    font-size: 1rem;
    line-height: 1.25;
    margin-left: 0.625rem !important;
  }

  .site-footer .footer-menu {
    display: block !important;
    width: 100%;
    padding-bottom: 0.25rem;
  }

  .footer-nav__grid {
    max-width: 21rem;
    column-gap: 1.5rem;
  }

  .footer-nav__section--procedures {
    padding-right: 1.125rem;
  }

  .footer-nav__section--site {
    padding-left: 1.125rem;
  }

  .footer-nav__link {
    min-height: 2.5rem;
    font-size: 0.9375rem;
  }

  section.navbar-wrapper .footer-wrapper {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem !important;
  }

  section.navbar-wrapper .footer-menu {
    width: 100%;
  }

  section.navbar-wrapper .footer-legal {
    margin-top: 1rem;
    padding-top: 1rem;
  }

  section.navbar-wrapper .copyright {
    margin-top: 0.625rem;
  }
}

/* Phone: balanced two-column block */
@media (max-width: 575.98px) {
  .footer-menu .footer-nav--compact,
  .footer-nav__grid {
    max-width: min(100%, 20.5rem);
  }

  .footer-nav__grid {
    column-gap: 1.25rem;
  }

  .footer-nav__section--procedures {
    padding-right: 1rem;
  }

  .footer-nav__section--site {
    padding-left: 1rem;
  }

  .footer-nav__label {
    margin-bottom: 0.5rem;
    font-size: 0.6875rem;
  }

  .footer-nav__link {
    min-height: 2.375rem;
    font-size: 0.875rem;
  }
}

/* Tablet: slightly wider block, comfortable column spacing */
@media (min-width: 576px) and (max-width: 1199.98px) {
  .footer-menu .footer-nav--compact,
  .footer-nav__grid {
    max-width: 26rem;
  }

  .footer-nav__grid {
    column-gap: 1.75rem;
  }

  .footer-nav__section--procedures {
    padding-right: 1.25rem;
  }

  .footer-nav__section--site {
    padding-left: 1.25rem;
  }

  .footer-nav__label {
    margin-bottom: 0.625rem;
  }

  .footer-nav__link {
    min-height: 2.625rem;
  }

  .site-footer .footer-brand .site-title {
    font-size: 1.0625rem;
  }
}

@media (min-width: 1200px) {
  section.navbar-wrapper .footer-wrapper {
    justify-content: center;
    flex-wrap: wrap;
  }

  section.navbar-wrapper .footer-menu {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
  }

  .site-footer .footer-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 1.25rem;
    column-gap: 2rem;
  }

  .site-footer .footer-brand {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .site-footer .footer-menu {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* Legal row — divider band, centered meta links */
section.navbar-wrapper .footer-legal {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  width: 100%;
  margin: 1.5rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(248, 250, 252, 0.12);
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

section.navbar-wrapper .footer-legal a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

section.navbar-wrapper .footer-legal a:hover,
section.navbar-wrapper .footer-legal a:focus {
  color: #e2e8f0;
}

section.navbar-wrapper .footer-legal__sep {
  color: #475569;
  font-weight: 400;
  font-size: 0.75rem;
  user-select: none;
  line-height: 1;
  padding: 0 0.15rem;
}
/* Footer overlay ke upar */
footer,
section.bg-white {
  position: relative;
  z-index: 1050;
}

/* Hero section */
.hero {
  padding-left: 194px;
}
.eye-container {
  max-width: 320px;
  height: 320px;
  position: relative;
}
/* Main Eye Image */
.eye-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 469px;
  height: auto;
}

/* Responsive (Mobile Adjustments) */
@media (max-width: 768px) {
  .eye-container {
    max-width: 220px;
    height: 220px;
  }
}
/* Explore Procedures (motion only; layout lives with section styles) */
.procedure-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  cursor: pointer;
}
.procedure-card:hover {
  transform: translateY(-4px);
}
/* Video + Surgeons */
.video-card,
.surgeon-card {
  transition: transform 0.3s ease;
  cursor: pointer;
}
.video-card:hover,
.surgeon-card:hover {
  transform: translateY(-5px);
}
/* About Section */
.about {
  background: #f8f9fc;
  padding: 3rem 0;
}
.about h5 {
  margin-left: 200px;
  color: #000;
  text-align: center;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}
.about h5.like-paragraph {
  font-weight: normal;
  font-size: 1rem;
  margin: 1rem 0;
}

/* Footer */
footer .nav {
  flex-wrap: nowrap !important; /* kabhi bhi line break na ho */
  white-space: nowrap; /* text bhi wrap na ho */
  overflow-x: auto; /* agar space kam hua to scroll enable */
  -webkit-overflow-scrolling: touch; /* smooth scroll for mobile */
}
footer .nav-link {
  flex: 0 0 auto; /* har link apni jagah le, squeeze na ho */
}
.card {
  cursor: pointer; /* Pointer effect on hover */
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-5px); /* little lift effect */
}
/* Section divider — gradient hairline + spacing (homepage bands) */
.section-divider {
  border: none;
  height: 2px;
  max-width: min(72rem, calc(100% - 2.5rem));
  margin-block: 10px;
  margin-inline: auto;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--section-divider-edge) 14%,
    var(--section-divider-mid) 50%,
    var(--section-divider-edge) 86%,
    transparent 100%
  );
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  opacity: 1;
}
.play-button {
  width: 74px;
  height: 76px;
}

.video-card {
  flex-shrink: 0;
  width: 300px;
}

.profile-img {
  max-width: 200px;
  border-radius: 10px;
}
.filter-btns {
  text-align: center;
  margin-bottom: 20px;
}
.filter-btns .btn {
  margin: 5px;
  border-radius: 20px;
}
.video-card img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}
.card {
  border-radius: 1rem;
}
.card-header h4 {
  font-size: 1.25rem;
}
input.form-control {
  border-radius: 0.5rem;
}
.btn {
  border-radius: 0.5rem;
}
input.form-control {
  height: 36px; /* box height */
  padding: 6px 10px; /* andar ka spacing kam */
  font-size: 14px; /* text chhota */
}
.breadcrumb {
  background: transparent;
  margin-bottom: 1rem;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "\203A";
  color: #6c757d;
}
.empty-content {
  min-height: 400px; /* apne dropdown ki height ke hisaab se adjust karo */
}

/* Search result container  css*/
/* Wrap the whole form */
#search-api-page-block-form-algolia-search-page {
  width: 100%;
  max-width: 900px; /* optional limit */
  margin: 20px auto; /* center align on page */
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);
}

/* Input field */
#search-api-page-block-form-algolia-search-page input[type="text"] {
  flex: 1;
  font-size: 16px;
  border: none;
  outline: none;
  background: transparent;
  padding: 8px 10px;
  color: #1c1c1e;
  width: -webkit-fill-available;
}

/* Submit button */
#search-api-page-block-form-algolia-search-page input[type="submit"] {
  background-color: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

/* Hover effect */
#search-api-page-block-form-algolia-search-page input[type="submit"]:hover {
  background-color: var(--color-accent-darker);
}
/* New Css */

header {
  background: linear-gradient(90deg, #007bff 60%, #0056b3 100%);
}

footer {
  background-color: #f8f9fa;
  color: #333;
}

/* Mobile Menu Styles */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 44, 44, 0.12);
  z-index: 2000;
  display: none;
  transition: opacity 0.2s;
}
.mobile-menu.active {
  display: block;
  opacity: 1;
}
.mobile-menu-content {
  background: #fff;
  width: 85vw;
  max-width: 340px;
  height: 100vh;
  position: absolute;
  top: 0;
  right: 0;
  box-shadow: -2px 0 16px rgba(0, 0, 0, 0.1);
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 2rem;
  color: #1c1c1e;
}
.mobile-menu .primary-btn {
  margin-bottom: 18px;
}
.mobile-menu .nav-link {
  color: #1c1c1e;
  font-size: 1.08rem;
  padding: 12px 0;
  border-bottom: 1px solid #f2f2f2;
}
.mobile-menu .nav-link:last-child {
  border-bottom: none;
}
@media (min-width: 768px) {
  .mobile-menu,
  #mobileMenuBtn {
    display: none !important;
  }
}

.bg-fff {
  background: #ffffff;
}
.color-1C1C1E {
  color: #1c1c1e;
}
.color-5F5F5F {
  color: #5f5f5f;
}
.fs-18 {
  font-size: 18px;
}
.fs-16 {
  font-size: 16px;
}
.fs-14 {
  font-size: 14px;
}
.primary-btn {
  background: #0a84ff;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  text-align: center;
  color: #ffffff;
  padding: 8px 16px;
  text-decoration: none;
}
.primary-btn:hover {
  background: #ffffff !important;
  color: #000000;
  text-decoration: none;
  border: 1px solid #000000;
}
.gap-1-5 {
  gap: 1.5rem;
}
.w-63 {
  width: 63%;
}
.color-5F5F5F {
  color: #5f5f5f;
}
.footer-logo {
  height: 32px;
  width: 32px;
  margin-right: 8px;
}
.footer-supported {
  color: #5f5f5f;
  font-size: 0.98rem;
}
.footer-foundation-logo {
  height: 38px;
}
.footer-copyright {
  color: #5f5f5f;
  font-size: 0.98rem;
}
.custom-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-subtle);
}
.header-navigation .nav-item .nav-link:hover {
  color: #000;
  font-weight: 500;
}
/* Dropdown Menu Styles for Header Navigation */
.header-navigation .dropdown {
  position: relative;
}

.header-navigation .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 8px;
  margin-top: 0.4rem;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-subtle);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  z-index: 1000;
}
.header-navigation .dropdown-toggle::after {
  display: none;
}

/* Hamburgers-only range: Bootstrap’s default boxed toggler was hidden only in ≤1024px
   overrides below, so 1025px– xl showed an inconsistent gray border */
@media (max-width: 1199.98px) {
  /* Nudge search + hamburger slightly toward the right edge */
  .header-navigation .header-width > .d-xl-none {
    margin-right: -20px;
  }

  .header-navigation .navbar-toggler {
    border: none !important;
    box-shadow: none;
  }

  .header-navigation .navbar-toggler:focus-visible {
    box-shadow:
      0 0 0 2px rgba(37, 99, 235, 0.35),
      0 0 0 4px rgba(255, 255, 255, 0.9);
  }

  .header-navigation .navbar-toggler:focus:not(:focus-visible) {
    box-shadow: none;
  }

  /* Mobile header search icon — match navbar-toggler stroke (not default nav-link black) */
  .header-navigation .d-xl-none > a.nav-link:has(.bi-search) {
    color: rgba(var(--bs-emphasis-color-rgb), 0.75);
  }

  .header-navigation .d-xl-none > a.nav-link:has(.bi-search):hover,
  .header-navigation .d-xl-none > a.nav-link:has(.bi-search):focus {
    color: rgba(var(--bs-emphasis-color-rgb), 0.75);
  }
}

/* .header-navigation .dropdown:hover .dropdown-menu {
  display: block;
} */
/* Desktop dropdown panel (floating) — xl+ only; drawer uses inline accordion ≤1199px */
@media (min-width: 1200px) {
  .header-navigation .nav-item.dropdown.show .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  .header-navigation .nav-item.dropdown.show:hover .dropdown-menu {
    display: block !important;
  }

  .header-navigation .dropdown-menu a {
    display: block;
    padding: 0.55rem 1.1rem;
    margin: 0;
    border-radius: 0;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition:
      background 0.15s ease,
      color 0.15s ease;
  }

  .header-navigation .dropdown-menu a:hover {
    background: rgba(15, 23, 42, 0.06);
    color: var(--color-text);
  }
}

.header-navigation .dropdown-menu li {
  list-style: none;
}

.dropdown-menu.show {
  display: block !important;
}

/* Dropdown Overlay Styles */
#dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(241, 245, 249, 0.72);
  z-index: 900;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
#dropdown-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
/* Search Dropdown Styles */
.search-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  /* min-width: 1396px; */
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 18px 24px 18px 24px;
  z-index: 1001;
}
.search-dropdownmenu:hover .search-dropdown-menu,
.search-dropdownmenu:focus-within .search-dropdown-menu {
  display: flex;
  width: 100%;
  background: #ffffff;
  box-shadow: none;
}
.search-dropdown-content {
  color: #5f5f5f;
  font-size: 1rem;
  padding-left: 4rem;
}
.search-title {
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.search-quick-links {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #888;
}
.search-links {
  padding-left: 0;
  margin-bottom: 0;
}
.search-links li {
  list-style: none;
  margin-bottom: 6px;
}
.search-links a {
  color: #5f5f5f;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.15s;
}
.search-links a:hover {
  color: #007bff;
}
.site-branding--bg-white {
  margin-block-end: unset !important;
}
/* Main page custom styles extracted from inline styles */
/* Homepage: shared left edge (hero, carousels, explore procedures) */
main#content .hero-section > .container,
main#content .popular-videos-section > .container,
main#content .explore-procedures-section > .container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--homepage-inline-padding);
  padding-right: var(--homepage-inline-padding);
  box-sizing: border-box;
}

.hero-section .hero-section__inner {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100%;
  justify-content: space-between !important;
}

.hero-section {
  background: var(--Background, #f2f2f7);
  padding: 4rem 0;
  min-height: 380px;
}
.hero-section h1 {
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  font-style: normal;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 32px;
  max-width: 26rem;
  width: 100%;
}
.hero-section h3 {
  font-size: 20px;
  font-style: normal;
  font-weight: 510;
  line-height: normal;
  margin-bottom: 32px;
}
.hero-section .eye img {
  width: 400px;
  height: 356px;
}
.gap-62 {
  gap: 62px;
}
.main-content {
  min-height: 100vh;
}
.eye {
  margin-left: auto;
}

/* Explore Procedures Section Styles */
.explore-procedures-section {
  background: var(--Background, #f2f2f7);
}
.explore-procedures-section .container > h4,
.popular-videos-section:not(.about) .container > h4 {
  font-size: clamp(1.25rem, 2.2vw, 1.45rem);
  color: var(--color-text);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
}
.explore-procedures-section .container > h4 {
  text-align: center;
}
.explore-procedures-section .procedure-sec {
  margin-left: auto;
  margin-right: auto;
}
.popular-videos-section:not(.about) .container > h4 {
  text-align: left;
}
.about .container > h4 {
  text-align: center;
  margin-left: 0;
  width: 100%;
}
.procedure-card {
  background: var(--color-surface);
  border-radius: var(--radius-card, 20px);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
  max-width: 270px;
  max-height: 240px;
}
.procedure-card:hover {
  box-shadow: var(--shadow-md);
}
.procedure-card span {
  font-size: 16px;
}
/* .procedure-card img {
} */
.explore-procedures-section span {
  font-size: 1.05rem;
  color: var(--color-text);
  font-weight: 500;
}
.hero-section p {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}
.hero-section .btn-primary {
  background: #2563eb;
  border: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-control, 12px);
  padding: 0.65rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.hero-section .btn-primary:hover {
  background: #1d4ed8;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
/* .hero-section img {
  max-width: 320px;
  width: 100%;
} */
/* Most Popular Videos Section Styles */
.popular-videos-section {
  background: var(--Background, #f2f2f7);
  overflow: visible;
}
.popular-videos-section h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  color: var(--color-text);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-left: 0;
}
.video-card {
  background: var(--color-surface);
  border-radius: var(--radius-card, 20px);
  box-shadow: var(--shadow-sm);
  padding: 0;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid var(--color-border-subtle);
  padding: 18px;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.surgeon-card {
  max-width: fit-content;
  max-height: 85vh;
  cursor: pointer;
}
.surgeon-card .video-authors {
  text-align: center;
  color: #1c1c1e;
  font-size: 15px;
  font-weight: 600;
}
.video-thumb {
  border-radius: 22.4px;
  min-height: 180px;
}
.play-icon {
  width: 60px;
  height: 60px;
}

.video-authors {
  color: #5f5f5f;
  font-size: 0.95rem;
  margin-top: 2px;
  justify-content: left;
  display: flex;
}
.carousel-arrow {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.carousel-arrow:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: var(--shadow-md);
}

.procedure-sec {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  place-items: center;
  width: max-content;
  max-width: 100%;
  gap: 1rem;
}

/* Three procedure cards (~270px each) need ~840px; collapse before clipping */
@media (max-width: 991.98px) {
  .procedure-sec {
    grid-template-columns: repeat(2, 1fr);
    width: max-content;
  }
}

.footer-supported-by {
  display: flex;
  flex-direction: column;
}
@media (max-width: 700px) {
  .hero-section .container {
    padding-left: var(--homepage-inline-padding);
    padding-right: var(--homepage-inline-padding);
  }
  .hero-section h1 {
    max-width: 25rem;
  }
  /* Mobile drawer: unified full-viewport rules at ≤1199.98px (no legacy slide-in / absolute) */
  .hero-text {
    width: 100%;
    padding-left: 0;
    text-align: left !important;
  }
  .header-width {
    width: 100%;
    padding: 0 1rem;
  }
  .footer-supported-by {
    display: block;
    flex-direction: column;
    padding-left: 1.2rem;
  }
  .hero-section .ms-5 {
    margin-left: 0rem !important;
  }
  .hero-section .me-5 {
    margin-right: 0rem !important;
  }
  .hero-section .btn-primary {
    background: #007bff;
    font-weight: 500;
    font-size: 15px;
    border-radius: 16px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .video-card {
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 2px 8px rgba(60, 60, 60, 0.04);
    padding: 0;
    width: 100%;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 4px solid #f7f8fb;
    padding: 0px;
    cursor: pointer;
  }
  .row.row-cols-2 {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-left: 1rem;
  }

  .row.row-cols-2 > .surgeon-card {
    /* max-width: 40% !important; */
    scroll-snap-align: start;
    margin-right: 0px;
  }

  /* Optional: style scrollbar or hide it */
  .row.row-cols-2::-webkit-scrollbar {
    display: none;
  }
  .hero-section img {
    display: none;
  }
  .most-popular-videos .carousel-track {
    flex-wrap: wrap;
    justify-content: center;
  }
  .surgeons-container .surgeon-card {
    max-width: 46.84%;
    max-height: 48vh;
  }
  .surgeons-container .carousel-track {
    flex-wrap: wrap;
  }
  .flex-sm-column {
    flex-direction: column !important;
  }
  .text-sm-start {
    text-align: start !important;
  }
  .header-navigation .search-dropdown-content {
    padding-left: 2rem;
  }
  .header-navigation .search-dropdownmenu {
    margin-left: 5rem;
  }
  .header-navigation .nav-link {
    border-style: solid;
    border-color: #e5e5ea;
    padding-left: 2rem;
  }
  .login-in {
    padding-left: 2rem;
    padding-top: 0.5rem;
  }
  .header-navigation .navbar-nav {
    padding-top: 0.5rem;
  }
  .footer-content {
    flex-direction: column;
    align-items: start;
    gap: 1rem;
  }
  .footer-contain {
    flex-direction: column;
    align-items: start;
    gap: 0.5rem;
  }
  .header-navigation .dropdown-menu {
    position: relative;
    background: none;
    box-shadow: none;
    border-radius: 0;
    border: none;
    margin-top: 0;
    padding: 0;
    padding-left: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header-navigation .dropdown-menu a {
    margin: 0;
    border-radius: 0;
    padding: 10px 24px;
  }

  .header-navigation .nav-item .nav-link:hover {
    background: none;
    color: #000;
  }
}
@media (min-width: 701px) and (max-width: 1024px) {
  .eye {
    display: none;
  }
  .header-navigation .search-dropdownmenu {
    margin-left: auto;
    margin-right: 1rem;
  }
}
@media (min-width: 700px) and (max-width: 1199.98px) {
  #navbarNav:not(.show):not(.open) {
    text-align: left;
    position: static;
    background: transparent;
    width: auto;
    min-height: 0;
    left: auto;
  }
}

#carousel-prev,
#carousel-next,
.homepage-video-carousel .homepage-video-carousel__prev,
.homepage-video-carousel .homepage-video-carousel__next {
  font-weight: bold;
  font-size: x-large;
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
  padding: 0;
  box-shadow: none !important;
  line-height: 0;
}

#carousel-prev.btn:hover,
#carousel-next.btn:hover,
#carousel-prev.btn:active,
#carousel-next.btn:active,
#carousel-prev.btn:focus,
#carousel-next.btn:focus,
.homepage-video-carousel .homepage-video-carousel__prev.btn:hover,
.homepage-video-carousel .homepage-video-carousel__next.btn:hover,
.homepage-video-carousel .homepage-video-carousel__prev.btn:active,
.homepage-video-carousel .homepage-video-carousel__next.btn:active,
.homepage-video-carousel .homepage-video-carousel__prev.btn:focus,
.homepage-video-carousel .homepage-video-carousel__next.btn:focus,
.homepage-video-carousel .homepage-video-carousel__prev.btn:focus-visible,
.homepage-video-carousel .homepage-video-carousel__next.btn:focus-visible {
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none;
}

.homepage-video-carousel .homepage-video-carousel__prev:disabled,
.homepage-video-carousel .homepage-video-carousel__next:disabled {
  opacity: 0.4;
  cursor: default;
}
/* Optional: Initially show only first 3 items on mobile */
@media (max-width: 768px) {
  .video-item {
    transition: all 0.3s ease-in-out;
  }

  .mobile-grid .col-12:nth-child(-n + 3) {
    display: block;
  }

  .mobile-grid.show-all .col-12 {
    display: block !important;
  }
  .surgeon-card {
    margin-right: 1rem;
  }

  .row.flex-nowrap {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    display: flex;
    padding-bottom: 1rem;
  }
}
.container.doctor-related-videos {
  width: 20%;
  margin: 3rem;
}
.procedures-filter .children {
  display: none;
  padding-left: 25px;
}

.procedures-filter .children.open {
  display: block;
}

.parent-header {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Default arrow (chevron-right style) */
.parent-header .arrow {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: rotate(45deg);
  margin-right: 8px;
  transition: transform 0.2s ease;
}

/* Rotates when open */
.parent-header.open .arrow {
  transform: rotate(-135deg);
}
/*==============================================
VIDEO LISTING PAGE STYLES
==============================================*/

/* Page Title */
.video-listing-page {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.video-listing-page .page-title {
  font-size: 32px;
  font-weight: 590;
  color: #000;
  margin-bottom: 2rem;
}

/* Results count — informational meta line (not interactive) */
.results-count {
  max-width: 100%;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

/* Video listing — empty state (no results / no videos in category) */
.no-results-wrapper {
  display: block;
  width: 100%;
  min-height: 420px;
  padding: 0.5rem 0 3rem;
}

.video-empty-state {
  width: 100%;
  max-width: none;
  margin: 0;
}

.video-empty-state__panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  align-items: start;
}

.video-empty-state__hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 2.75rem 2.5rem;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border-subtle, rgba(15, 23, 42, 0.08));
  border-radius: 28px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 16px 48px rgba(15, 23, 42, 0.08);
}

.video-empty-state__header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  align-items: start;
  width: 100%;
  margin-bottom: 1.5rem;
}

.video-empty-state__intro {
  min-width: 0;
}

.video-empty-state__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0;
  border-radius: 20px;
  background: linear-gradient(145deg, #e8f0fb 0%, #c8daf0 100%);
  color: #2f5f94;
}

.video-empty-state__icon svg {
  width: 44px;
  height: 44px;
}

.video-empty-state__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3b6ea8;
}

.video-empty-state__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 650;
  line-height: 1.2;
  color: var(--color-text, #0f172a);
  letter-spacing: -0.03em;
}

.video-empty-state__message {
  margin: 0 0 1.5rem;
  max-width: 58ch;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-muted, #64748b);
}

.video-empty-state__tips {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  max-width: 62ch;
}

.video-empty-state__tips li {
  position: relative;
  margin: 0 0 0.75rem;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #475569;
}

.video-empty-state__tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent-gradient);
}

.video-empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  width: 100%;
}

.video-empty-state__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 14px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.video-empty-state__btn--primary {
  color: #fff;
  background: var(--color-accent-gradient);
  border: 1px solid transparent;
  box-shadow: var(--shadow-accent-md);
}

.video-empty-state__btn--primary:hover,
.video-empty-state__btn--primary:focus {
  color: #fff;
  background: var(--color-accent-gradient-hover);
  transform: translateY(-1px);
}

.video-empty-state__btn--secondary {
  color: var(--color-text, #0f172a);
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border-subtle, rgba(15, 23, 42, 0.12));
}

.video-empty-state__btn--secondary:hover,
.video-empty-state__btn--secondary:focus {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.18);
  color: var(--color-text, #0f172a);
}

.video-empty-state__related {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 2rem 2.25rem;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border-subtle, rgba(15, 23, 42, 0.08));
  border-radius: 28px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 16px 48px rgba(15, 23, 42, 0.08);
}

.video-empty-state__related-title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--color-text, #0f172a);
  letter-spacing: -0.02em;
}

.video-empty-state__related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.video-empty-state__related-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.5rem 1.125rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1e40af;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(59, 110, 168, 0.2);
  border-radius: 999px;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.video-empty-state__related-link:hover,
.video-empty-state__related-link:focus {
  color: #fff;
  background: #3b6ea8;
  border-color: #3b6ea8;
}

.view-empty--fallback {
  padding: 2rem;
  font-size: 1rem;
  color: var(--color-text-muted, #64748b);
  background: var(--color-surface, #fff);
  border-radius: 20px;
  border: 1px solid var(--color-border-subtle, rgba(15, 23, 42, 0.08));
}

@media (min-width: 992px) {
  .video-empty-state__panel {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
  }

  .video-empty-state__related {
    padding: 2rem 2rem;
  }
}

@media (max-width: 575.98px) {
  .no-results-wrapper {
    min-height: 360px;
    padding: 0.25rem 0 2rem;
  }

  .video-empty-state__hero {
    padding: 2rem 1.25rem;
    border-radius: 22px;
  }

  .video-empty-state__header {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  .video-empty-state__icon {
    width: 72px;
    height: 72px;
  }

  .video-empty-state__icon svg {
    width: 40px;
    height: 40px;
  }

  .video-empty-state__related {
    padding: 1.5rem 1.25rem;
    border-radius: 22px;
  }

  .video-empty-state__actions {
    flex-direction: column;
  }

  .video-empty-state__btn {
    width: 100%;
  }
}

/* ==============================================
   FILTERS SIDEBAR
============================================== */
.fieldset-legend {
  font-size: 15px;
  font-weight: 500;
  color: #000;
}

/*
 * Procedure / Surgeons facet blocks use <fieldset><legend>; Bootstrap floats legends
 * and uses large typography, leaving empty space inside the legend’s paint box.
 * Match taxonomy listing sidebar: titles sit flush to the top of each filter block.
 */
.procedures-filter fieldset.fieldgroup {
  margin-top: 0;
  padding-top: 0;
  border: none;
}

.procedures-filter fieldset.fieldgroup > legend {
  float: none;
  width: 100%;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: inherit;
  line-height: 1.25;
}

.procedures-filter fieldset.fieldgroup > legend .fieldset-legend {
  margin: 0;
  padding: 0;
  display: inline-block;
}

/* Search may duplicate fulltext in DOM above filters; first visible fieldset is Procedure */
.view-id-search_page.view-display-id-page_1
  .filters-sidebar
  > form
  fieldset.fieldgroup:first-of-type,
.view-id-search_page.view-display-id-page_2
  .filters-sidebar
  > form
  fieldset.fieldgroup:first-of-type {
  margin-top: 0;
  padding-top: 0;
}

.filters-sidebar {
  margin-bottom: 2rem;
}

/* Prevent fixed-width card grid from overflowing the Bootstrap column */
.video-listing-page .content-row > .video-content {
  min-width: 0;
}

/* Style the details elements to look like regular sections */
.procedures-filter details {
  border: none;
  margin-bottom: 2rem;
}

.procedures-filter details summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: #1c1c1e;
  font-size: 18px;
  margin-bottom: 1rem;
  padding: 0;
}

/* Remove the default arrow */
.procedures-filter details summary::-webkit-details-marker {
  display: none;
}

/* Keep details open by default */
.procedures-filter details[open] summary {
  margin-bottom: 1rem;
}

/* Hide the "Select All" toggle */
.procedures-filter .bef-toggle {
  display: none;
}

/* Hide the Apply button since we have auto-submit */
.procedures-filter .form-actions {
  display: none;
}

/* ==============================================
   PARENT ARROW STYLES
============================================== */

/* Style labels that have children */
.procedures-filter .has-children > .js-form-item > label {
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
}

.procedures-filter .parent-arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: auto;
  padding-left: 8px;
  color: #5f5f5f;
  cursor: pointer;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  user-select: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-family: Arial, sans-serif;
}

.procedures-filter .parent-arrow:hover {
  color: #1c1c1e;
  transform: scale(1.2);
}

/* ==============================================
   CHECKBOX STYLES
============================================== */

.procedures-filter .js-form-item {
  margin-bottom: 0.75rem;
  display: block !important;
  align-items: center;
}

.procedures-filter #edit-surgeons--wrapper {
  display: block !important;
}
/* Reset native checkbox so border-radius, shadows, and checkmark apply consistently */
.procedures-filter input[type="checkbox"],
.view-id-search_page.view-display-id-page_1
  .filters-sidebar
  > form
  input[type="checkbox"],
.view-id-search_page.view-display-id-page_2
  .filters-sidebar
  > form
  input[type="checkbox"],
.mobile-filter-modal__body input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0 0.5rem 0 0;
  flex-shrink: 0;
  vertical-align: middle;
  box-sizing: border-box;
  border: 1.5px solid rgba(120, 128, 140, 0.45);
  border-radius: 6px;
  background-color: var(--color-surface, #fff);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 65%;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

/* Procedure accordion row already uses flex gap */
.procedures-filter .parent-header input[type="checkbox"] {
  margin-right: 0;
}

.procedures-filter input[type="checkbox"]:hover,
.view-id-search_page.view-display-id-page_1
  .filters-sidebar
  > form
  input[type="checkbox"]:hover,
.view-id-search_page.view-display-id-page_2
  .filters-sidebar
  > form
  input[type="checkbox"]:hover,
.mobile-filter-modal__body input[type="checkbox"]:hover {
  border-color: rgba(71, 85, 105, 0.55);
  box-shadow:
    0 2px 5px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.procedures-filter input[type="checkbox"]:checked,
.view-id-search_page.view-display-id-page_1
  .filters-sidebar
  > form
  input[type="checkbox"]:checked,
.view-id-search_page.view-display-id-page_2
  .filters-sidebar
  > form
  input[type="checkbox"]:checked,
.mobile-filter-modal__body input[type="checkbox"]:checked {
  background-color: var(--color-accent);
  border-color: var(--color-accent-border);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.25 7.25 6 9.95 11.05 4'/%3E%3C/svg%3E");
  box-shadow:
    var(--shadow-accent-sm),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.procedures-filter input[type="checkbox"]:focus,
.view-id-search_page.view-display-id-page_1
  .filters-sidebar
  > form
  input[type="checkbox"]:focus,
.view-id-search_page.view-display-id-page_2
  .filters-sidebar
  > form
  input[type="checkbox"]:focus,
.mobile-filter-modal__body input[type="checkbox"]:focus {
  outline: none;
}

.procedures-filter input[type="checkbox"]:focus-visible,
.view-id-search_page.view-display-id-page_1
  .filters-sidebar
  > form
  input[type="checkbox"]:focus-visible,
.view-id-search_page.view-display-id-page_2
  .filters-sidebar
  > form
  input[type="checkbox"]:focus-visible,
.mobile-filter-modal__body input[type="checkbox"]:focus-visible {
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.28),
    0 1px 2px rgba(15, 23, 42, 0.06);
}

.procedures-filter input[type="checkbox"]:checked:focus-visible,
.view-id-search_page.view-display-id-page_1
  .filters-sidebar
  > form
  input[type="checkbox"]:checked:focus-visible,
.view-id-search_page.view-display-id-page_2
  .filters-sidebar
  > form
  input[type="checkbox"]:checked:focus-visible,
.mobile-filter-modal__body input[type="checkbox"]:checked:focus-visible {
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.35),
    var(--shadow-accent-sm),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.procedures-filter label {
  color: #5f5f5f;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 0;
  user-select: none;
  flex: 1;
}

.procedures-filter label:hover {
  color: #1c1c1e;
  font-weight: 500;
}

/* Style the nested UL structure from BEF */
.procedures-filter .bef-checkboxes ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.procedures-filter .bef-checkboxes ul ul {
  padding-left: 28px;
  margin-top: 0.5rem;
}

.procedures-filter .bef-checkboxes li {
  margin-bottom: 0.75rem;
}
.bef-exposed-form .form--inline > .form-item {
  float: none !important;
}
/* ==============================================
   VIDEO GRID
============================================== */

/* Fixed responsive grid: 1 col mobile, 2 tablet, 3 desktop. Single card never stretches. */
.video-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

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

.video-grid-item {
  min-width: 0; /* prevent grid blowout */
  background-color: #ffffff;
  padding: 30px;
  border-radius: 24px;
}

/* ==============================================
   VIDEO CARD
============================================== */

a.video-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.video-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(60, 60, 60, 0.04);
  border: 4px solid #f7f8fb;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.video-grid .video-card img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
  min-height: 129px;
  max-height: 129px;
}
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(60, 60, 60, 0.12);
}

/* Video Thumbnail */
.video-card .video-thumb {
  border-radius: 14.4px;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: opacity 0.3s ease;
}

.video-card:hover .video-thumb {
  opacity: 0.9;
}

.video-card .play-icon {
  width: 60px;
  height: 60px;
}

/* Video Info */
.video-card .video-info {
  padding: 0.5rem;
  flex-grow: 1;
  text-align: left;
}

.video-card .video-title {
  color: #000 !important;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

a.video-card:hover .video-title {
  color: #0a84ff;
}

.video-card .video-authors {
  font-size: 14px;
  color: #5f5f5f;
  margin-bottom: 0;
  margin-top: 1rem;
}

.video-card .video-authors a,
.video-authors a {
  color: #5f5f5f;
  text-decoration: none;
}

.video-card .video-authors a:hover,
.video-authors a:hover {
  color: #1c1c1e;
  font-weight: bold;
}

/* ==============================================
   SHOW MORE BUTTON
============================================== */

.show-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  width: 100%;
}

.btn-show-more {
  background-color: transparent;
  border: 1px solid #5f5f5f;
  color: #5f5f5f;
  border-radius: 12px;
  padding: 10px 32px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-show-more:hover {
  background-color: #5f5f5f;
  color: #fff;
  border-color: #5f5f5f;
  text-decoration: none;
}

/* ==============================================
   RESPONSIVE ADJUSTMENTS
============================================== */

@media (max-width: 991px) {
  .filters-sidebar {
    margin-bottom: 2rem;
  }

  .video-listing-page .page-title {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .video-listing-page .page-title {
    font-size: 24px;
  }

  .video-card .video-thumb {
    min-height: 150px;
  }
}

/*
==============================================
VIDEO DETAIL PAGE STYLES
==============================================
*/

/* Container */
.video-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Video Title - At the top */
.video-detail-title {
  font-size: 32px;
  font-weight: 600;
  color: #1c1c1e;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

/* ==============================================
   VIDEO PLAYER SECTION
============================================== */

.video-player-section {
  margin-bottom: 2rem;
}

/* .video-player-wrapper {
  position: relative;
  width: 100%;
  background: #F2F2F7;
  border-radius: 18px;
  overflow: hidden;
} */

.video-player-wrapper iframe,
.video-player-wrapper video {
  position: relative;
  top: 0;
  left: 0;
  border: none;
}

/* ==============================================
   VIDEO INFO SECTION
============================================== */

.video-info-section {
  margin-top: 2rem;
}

/* Metadata */
.video-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metadata-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.metadata-label {
  font-size: 14px;
  font-weight: 500;
  color: #5f5f5f;
}

.metadata-value {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Pills/Tags Styling — clickable pills use brand blue fill + white text; plain subtag text stays neutral */
.category-pill a,
.sub-procedure-pill a,
.procedure-pill a,
.surgeon-pill a {
  display: inline-block;
  padding: 6px 14px;
  background: #0a84ff;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.subtag-pill {
  display: inline-block;
  padding: 6px 14px;
  background: #e5e5ea;
  color: #1c1c1e;
  font-size: 14px;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.subtag-pill a {
  color: #fff;
  text-decoration: none;
  transition: inherit;
}

/* Sub-tags that are links: same blue pill as category/procedure/surgeon */
.subtag-pill:has(a) {
  background: #0a84ff;
}

.category-pill a:hover,
.procedure-pill a:hover,
.sub-procedure-pill a:hover,
.surgeon-pill a:hover {
  background: #0071e3;
  color: #fff;
  text-decoration: none;
}

.subtag-pill:has(a):hover {
  background: #0071e3;
}

.subtag-pill:has(a):hover a {
  color: #fff;
}

.metadata-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ==============================================
   ACTION BUTTONS
============================================== */

.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e5ea;
}

.video-actions .btn {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  background: #fff;
  color: #1c1c1e;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==============================================
   TRANSCRIPT SECTION
============================================== */

.transcript-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  color: #1c1c1e;
  margin-bottom: 1rem;
}

/* ==============================================
   ANATOMY IMAGES SECTION
============================================== */

.anatomy-images-section {
  margin-bottom: 3rem;
}

.anatomy-images-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.anatomy-image-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 18px;
  border-radius: 24px;
}

.anatomy-image-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* 4:3 aspect ratio */
  background: #f2f2f7;
  border-radius: 12px;
  overflow: hidden;
}

.anatomy-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.anatomy-image-caption {
  margin-top: 0.5rem;
  font-size: 14px;
  color: #5f5f5f;
  text-align: center;
}

/* ==============================================
   RESPONSIVE ADJUSTMENTS
============================================== */

@media (max-width: 991px) {
  .hero-text {
    width: 100%;

    padding-left: 1rem;

    text-align: left !important;
  }
  .video-detail-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
  }

  article.video-detail-page .video-metadata {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .video-detail-container {
    padding: 1rem;
  }

  .video-detail-title {
    font-size: 20px;
  }

  .anatomy-images-grid-wrapper {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
}
/* ==============================================
 About Us Page Styles
==============================================  */

.node-about-us .about-us-page-title {
  font-size: 24px;
}

.about-description {
  font-size: 18px;
  margin-bottom: 2rem;
}

.about-description p {
  margin-bottom: 1rem;
}

.about-section {
  border-radius: var(--radius-card, 20px);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-sm);
}

.about-section .section-heading {
  font-size: 18px;
  font-weight: 500;
  color: #1c1c1e;
  line-height: 1.5;
}

.about-section .section-description {
  font-size: 16px;
  color: #5f5f5f;
  line-height: 1.5;
}

.about-section .section-description p {
  margin-bottom: 1rem;
}

.about-section .section-description ul,
.about-section .section-description ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.about-section .section-description li {
  margin-bottom: 0.5rem;
}

.committee-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
  display: flex;
  justify-content: center;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .about-description {
    font-size: 16px;
  }

  .about-section {
    padding: 3rem 0 !important;
  }

  .about-section .section-heading {
    font-size: 16px;
    margin-bottom: 1rem;
  }

  .about-section .section-description {
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  .about-description {
    font-size: 15px;
  }

  .about-section {
    padding: 2rem 0 !important;
  }

  .about-section .section-heading {
    font-size: 15px;
  }

  .about-section .section-description {
    font-size: 14px;
  }

  .video-detail-title {
    font-size: 24px !important;
  }
}

/* Flat Button Styles */
.flag-video-page-flag.flag {
  display: inline-flex;
  align-items: center;
}
.flag-video-page-flag.flag a {
  background: #0a84ff !important;
  color: #ffffff !important;
}
.flag-video-page-flag.flag a {
  color: #fff !important;
  background: #0a84ff !important;
  display: inline-block;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.vimeo-player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.vimeo-player-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Video detail hero: breadcrumb + title + player + tags in first viewport */
article.video-detail-page .video-detail-hero {
  --video-detail-hero-gap: clamp(0.35rem, 1.1vh, 0.75rem);
}

article.video-detail-page .video-detail-container {
  padding-top: var(--video-detail-hero-gap, 0.75rem);
  padding-bottom: clamp(1rem, 2vh, 2rem);
  /* Horizontal inset comes from shared --video-detail-padding-x rules below */
}

article.video-detail-page .video-detail-title {
  margin-bottom: var(--video-detail-hero-gap);
  font-size: clamp(1.125rem, 2.5vw, 2rem);
  line-height: 1.25;
  /* Long titles: cap lines so the player always keeps room */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

article.video-detail-page .video-detail-hero .video-player-section {
  width: 100%;
  max-width: 100%;
  margin-bottom: var(--video-detail-hero-gap);
}

/* Full column width, left-aligned with title/breadcrumb; JS sets max height */
article.video-detail-page .video-detail-hero .vimeo-player-wrapper {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: var(--video-player-max-height, none);
}

article.video-detail-page .video-detail-hero .video-metadata {
  margin-bottom: 0;
}

article.video-detail-page .video-info-section {
  margin-top: clamp(1rem, 2vh, 2rem);
}

main#content.main-content:has(article.video-detail-page)
  #block-oculofacialsurgery-breadcrumbs
  > .block-content
  > section.pt-4 {
  padding-top: clamp(0.5rem, 1.2vh, 1rem) !important;
}

.video-progress-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.25);
}

.video-progress-bar span {
  display: block;
  height: 100%;
  background: #0a84ff;
  width: 0;
}

/* ===== Contact Form Wrapper ===== */
.contact-us {
  max-width: 600px;
  margin: auto;
  padding: 20px;
  text-align: center;
}

/* ===== Greeting Text (Figma Header Area) ===== */
.contact-us #edit-greating {
  margin-bottom: 25px;
}

.contact-us #edit-greating p:first-child {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.contact-us #edit-greating a {
  color: #0d6efd;
  text-decoration: underline;
}

/* ===== Input Fields ===== */
.contact-us .form-text,
.contact-us .form-email,
.contact-us .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #d9d9d9;
  font-size: 14px;
  box-sizing: border-box;
}

/* Spacing Between Fields */
.contact-us .form-item {
  margin-bottom: 15px;
}

/* ===== Textarea ===== */
.contact-us textarea {
  min-height: 110px;
  resize: vertical;
}

/* ===== Submit Button ===== */
.contact-us .form-submit {
  background-color: #0d6efd;
  color: #fff;
  border: none;
  padding: 10px 26px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
}

.contact-us .form-submit:hover {
  opacity: 0.9;
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 768px) {
  .contact-us {
    max-width: 90%;
    margin: 40px auto;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .contact-us {
    padding: 10px;
  }

  .contact-us .form-submit {
    width: 100%;
  }
}

/* Prevent horizontal overflow caused by flex + padding + containers */
html,
body {
  max-width: 100%; /* Never allow content wider than viewport */
  overflow-x: hidden; /* Hide accidental horizontal overflow */
}

/* Center navbar content with a single width controller */
.header-navigation > .container,
.header-navigation > .container-fluid {
  width: 100%; /* Responsive width */
  max-width: 1440px; /* Design max width (desktop & ultra-wide) */
  margin-left: auto; /* Center horizontally */
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 48px); /* Responsive side spacing */
  padding-right: clamp(16px, 4vw, 48px);
  box-sizing: border-box; /* Include padding in width calculation */
}

/* Navbar inner wrapper spacing
   Fixes logo and login touching the screen edges
   Uses the real wrapper in this theme: .header-width on the div inside .header-navigation */
.header-navigation .header-width {
  padding-left: clamp(16px, 4vw, 48px) !important; /* Space from left edge */
  padding-right: clamp(16px, 4vw, 48px) !important; /* Space from right edge */
  box-sizing: border-box; /* Padding counted in width */
}

/* Safety override
   Bootstrap container fluid can bring its own padding rules
   This keeps the header consistent even if container rules change */
.header-navigation .container,
.header-navigation .container-fluid {
  padding-left: clamp(16px, 4vw, 48px) !important;
  padding-right: clamp(16px, 4vw, 48px) !important;
  box-sizing: border-box;
}

/* Mobile drawer list dividers between parent categories */
@media (max-width: 1199.98px) {
  /* targets ONLY top level parents inside the collapse */
  #navbarNav .navbar-nav > li.nav-item {
    border-bottom: 1px solid #e5e5ea !important;
  }
}

@media (max-width: 1199.98px) {
  /* Parent categories alignment — flush with drawer logo (same as closed bar inset) */
  #navbarNav .navbar-nav > .nav-item > .nav-link {
    padding-left: 0;
  }

  /* Subcategories alignment */
  #navbarNav .dropdown-menu .dropdown-item {
    padding-left: 12px;
  }

  /* About Us / Contact Us promoted from More (treat as parents) */
  #navbarNav .navbar-nav > .nav-item > .dropdown-item {
    padding-left: 0;
  }
}
@media (max-width: 1199.98px) {
  /* Normalize vertical spacing for all menu items */
  #navbarNav .navbar-nav > .nav-item > a,
  #navbarNav .dropdown-menu .dropdown-item {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

@media (max-width: 1199.98px) {
  /* Prevent horizontal scroll when mobile menu is open */
  body.body-lock {
    overflow-x: hidden;
  }

  #navbarNav.open {
    overflow-x: hidden;
  }
}

/* Mobile + tablet drawer (≤1199px) */
@media (max-width: 1199.98px) {
  /* No Bootstrap height slide — prevents layout jump on open */
  #navbarNav.navbar-collapse.collapse {
    transition: none !important;
  }

  #navbarNav.navbar-collapse.collapsing {
    transition: none !important;
    height: 100vh !important;
    height: 100dvh !important;
  }

  .header-navigation.drawer-open {
    z-index: 100000 !important;
  }

  .header-navigation #navbarNav.collapse.show,
  .header-navigation #navbarNav.collapse.open,
  .header-navigation #navbarNav.collapse.collapsing,
  .header-navigation.drawer-open #navbarNav,
  .header-navigation:has(#navbarNav.show) #navbarNav,
  .header-navigation:has(#navbarNav.open) #navbarNav {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    margin: 0 !important;
    transform: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    z-index: 99999 !important;
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding-top: max(0.55rem, env(safe-area-inset-top, 0px));
    padding-left: clamp(16px, 4vw, 48px) !important;
    padding-right: clamp(16px, 4vw, 48px) !important;
    box-sizing: border-box;
    flex-basis: auto !important;
  }

  /* Drawer header row — same horizontal inset + logo size as closed .header-width bar */
  #navbarNav .mobile-drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    width: 100%;
    margin: 0 0 8px;
    padding: 0.3125rem 0;
    gap: 12px;
  }

  #navbarNav .mobile-drawer-brand {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  #navbarNav .mobile-drawer-brand .site-title {
    display: none;
  }

  #navbarNav .mobile-drawer-top .navbar-close {
    flex: 0 0 40px;
    width: 40px;
    max-width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    box-sizing: border-box;
    font-size: 0;
    line-height: 0;
    font-weight: 400;
    background-color: transparent;
    background-image: none;
    border: none;
    border-radius: 10px;
    color: #1c1c1e;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
  }

  #navbarNav .mobile-drawer-top .navbar-close:hover {
    background-color: rgba(15, 23, 42, 0.06);
  }

  #navbarNav .mobile-drawer-top .navbar-close:focus {
    outline: none;
    box-shadow: none;
  }

  #navbarNav .mobile-drawer-top .navbar-close:focus-visible {
    background-color: rgba(15, 23, 42, 0.06);
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
  }

  /* CSS-drawn X (avoids × glyph misalignment + Safari default button styling) */
  #navbarNav .mobile-drawer-top .navbar-close .navbar-close-icon {
    position: relative;
    display: block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    pointer-events: none;
  }

  #navbarNav .mobile-drawer-top .navbar-close .navbar-close-icon::before,
  #navbarNav .mobile-drawer-top .navbar-close .navbar-close-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 1.5px;
    margin: 0;
    background-color: currentColor;
    border-radius: 1px;
    transform-origin: center center;
  }

  #navbarNav .mobile-drawer-top .navbar-close .navbar-close-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  #navbarNav .mobile-drawer-top .navbar-close .navbar-close-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  /* Menu block — natural height so auth sits directly under Contact Us */
  #navbarNav > nav.block-menu,
  #navbarNav > .block-menu,
  #navbarNav > nav[role="navigation"] {
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  #navbarNav.collapse.justify-content-center {
    justify-content: flex-start !important;
  }

  /* Auth row (Login / My Profile + Logout) — flows after last nav item, not pinned to viewport bottom */
  #navbarNav .mobile-drawer-footer {
    display: block !important;
    flex: 0 0 auto;
    width: 100%;
    margin-top: 0 !important;
    padding-top: 0;
    padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
    position: static;
    background: #fff;
  }

  #navbarNav .mobile-header-auth {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 12px 0 0;
    justify-content: flex-start;
  }

  #navbarNav .mobile-header-auth > .d-flex {
    gap: 8px;
  }

  /* Drupal AJAX throbber must not float over the login button */
  #navbarNav .ajax-progress,
  #navbarNav .ajax-progress-throbber {
    display: none !important;
  }

  #navbarNav .navbar-nav {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-top: 0;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 0 !important;
  }

  #navbarNav .navbar-nav.mx-xl-auto {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #navbarNav .navbar-nav > li.nav-item {
    border-bottom-color: #e5e5ea;
    width: 100%;
  }

  #navbarNav .navbar-nav > .nav-item > .nav-link,
  #navbarNav .navbar-nav > .nav-item > .dropdown-item {
    padding-left: 0;
    font-size: 1.0625rem;
    line-height: 1.35;
    color: #3a3a3c;
    width: 100%;
  }

  /* Drawer parents: bold only while submenu is open (not stuck :focus after tap) */
  #navbarNav .navbar-nav > .nav-item > .nav-link,
  #navbarNav .navbar-nav > .nav-item > .nav-link:hover,
  #navbarNav .navbar-nav > .nav-item > .nav-link:focus {
    font-weight: 400 !important;
  }

  #navbarNav .navbar-nav > .nav-item.dropdown.show > .nav-link,
  #navbarNav .navbar-nav > .nav-item.dropdown.show > .nav-link:focus,
  #navbarNav .navbar-nav > .nav-item.dropdown.show > .nav-link:hover,
  #navbarNav .navbar-nav > .nav-item > .nav-link.active,
  #navbarNav .navbar-nav > .nav-item > .nav-link.is-active {
    font-weight: 600 !important;
  }

  #navbarNav > nav.block-menu .block-title,
  #navbarNav > nav[role="navigation"] .block-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  #navbarNav .navbar-nav > .nav-item > a,
  #navbarNav .dropdown-menu .dropdown-item {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* Mobile nav: promoted "More" items should look like parent items */
@media (max-width: 1199.98px) {
  .navbar-collapse .dropdown-item {
    background: transparent !important;
    padding-left: 0;
  }

  .navbar-collapse .dropdown-item:hover,
  .navbar-collapse .dropdown-item:focus {
    background: transparent !important;
  }

  /* Match parent nav-link styling */
  .navbar-collapse .dropdown-item {
    color: inherit;
    font-weight: inherit;
  }
}

/* Mobile: promoted "More" items hover should match parent nav links */
@media (max-width: 1199.98px) {
  #navbarNav .navbar-nav > .nav-item > .dropdown-item:hover,
  #navbarNav .navbar-nav > .nav-item > .dropdown-item:focus {
    color: #000;
    font-weight: 500;
  }
}

/* Footer nav block — dark footer palette */
#block-oculofacialsurgery-footer-2 .nav-link.text-dark {
  color: #cbd5e1 !important;
}

#block-oculofacialsurgery-footer-2 .nav-link.text-dark:hover,
#block-oculofacialsurgery-footer-2 .nav-link.text-dark:focus {
  color: #f8fafc !important;
  text-decoration: none;
}

/* Mobile footer: stack Supported by text and logo vertically */
@media (max-width: 767.98px) {
  .footer-supported-by .d-flex.align-items-center {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .footer-supported-by img {
    margin-top: 8px;
  }
}
/* Mobile / tablet footer: legal + copyright band */
@media (max-width: 1199.98px) {
  section.navbar-wrapper .footer-legal {
    width: 100%;
    max-width: 21rem;
    margin-left: auto;
    margin-right: auto;
  }

  section.navbar-wrapper .copyright {
    width: 100%;
    max-width: 21rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 0.5rem !important;
    padding: 0 !important;
    text-align: center;
  }

  section.navbar-wrapper .copyright p {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #94a3b8;
    padding: 0 0.25rem;
  }
}

@media (min-width: 576px) and (max-width: 1199.98px) {
  section.navbar-wrapper .footer-legal,
  section.navbar-wrapper .copyright {
    max-width: 26rem;
  }
}

@media (max-width: 575.98px) {
  section.navbar-wrapper .footer-legal,
  section.navbar-wrapper .copyright {
    max-width: min(100%, 20.5rem);
  }
}

/* Container for the selected filter chips row */
.selected-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 24px;
}
/* Individual filter chip (pill) */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}
/* The ✕ icon inside each chip */
.chip-remove {
  font-size: 20px; /* adjust X */
  line-height: 1;
  font-weight: 400;
  margin-left: 4px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
/* Hover state for the ✕ icon */
.chip-remove:hover {
  opacity: 1;
}
/* Clear All btn Text action after chips (procedure / listing pages) */
.filter-clear-all-btn {
  align-self: center;
  margin-left: 4px;
  background: transparent;
  border: none;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 6px 8px;
  white-space: nowrap;
}

.filter-clear-all-btn:hover {
  color: var(--color-accent-darker);
}

/* Hide the chip row entirely when no filters are selected */
.selected-filters:empty {
  display: none;
}

/* Procedure breadcrumb */
.breadcrumb a,
nav.breadcrumb a,
.breadcrumb .breadcrumb-item a {
  text-decoration: none !important;
}

/* Homepage carousels — do not clip card hover shadows */
.homepage-video-carousel {
  overflow: visible;
}

.popular-videos-section .mobile-grid {
  overflow: visible;
}

.popular-videos-section > .container {
  overflow: visible;
}

/* DESKTOP CAROUSEL — Most Popular, Saved, Continue Watching */

#videoCarousel,
#savedCarousel,
#continueCarousel {
  --homepage-video-card-gap: 32px;
  /* JS: drop to fewer cards before shrinking; then stretch to fill row edge-to-edge */
  --homepage-video-card-min-width: 320px;
  --homepage-video-card-max-width: 386px;
  --homepage-video-card-width: 386px;
  --cards-per-slide: 3;
  width: 100%;
}

#videoCarousel .carousel-inner,
#savedCarousel .carousel-inner,
#continueCarousel .carousel-inner {
  /* Inactive slides are display:none — safe to show overflow for hover lift + shadow */
  overflow: visible !important;
  width: 100%;
}

#videoCarousel .carousel-item,
#savedCarousel .carousel-item,
#continueCarousel .carousel-item {
  overflow: visible;
  width: 100%;
}

#videoCarousel .row,
#savedCarousel .row,
#continueCarousel .row {
  --bs-gutter-x: 0; /* remove Bootstrap horizontal gutter */
  display: flex;
  flex-wrap: nowrap;
  justify-content: stretch;
  align-items: stretch;
  width: 100%;
  column-gap: var(--homepage-video-card-gap);
  margin-left: 0;
  margin-right: 0;
  overflow: visible;
}

#surgeonCarousel {
  /* Low min-width = fit more cards before dropping a column; JS stretches to fill row */
  --homepage-video-card-min-width: 155px;
  --homepage-video-card-max-width: none;
  --homepage-video-card-width: 230px;
  --homepage-video-card-gap: 24px;
  --cards-per-slide: 5;
  width: 100%;
}

#surgeonCarousel .carousel-inner {
  overflow: visible !important;
  width: 100%;
}

#surgeonCarousel .carousel-item {
  overflow: visible;
  width: 100%;
}

#surgeonCarousel .custom-no-cols {
  --bs-gutter-x: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  justify-content: flex-start;
  column-gap: var(--homepage-video-card-gap);
  margin-left: 0;
  margin-right: 0;
}

/* Contributing Surgeons carousel only — keep faces in frame when cards resize */
#surgeonCarousel .surgeon-card-media {
  aspect-ratio: 10 / 13;
  height: auto;
  min-height: 200px;
  max-height: 252px;
}

#surgeonCarousel .surgeon-card img:not(.surgeon-card-placeholder-icon) {
  object-fit: cover;
  object-position: center 12%;
  min-height: 0;
}

#surgeonCarousel .row,
.popular-videos-section .mobile-grid .row {
  margin-left: 0;
  margin-right: 0;
}

/* JS sets --homepage-video-card-width from slots-per-slide so partial rows keep the same card size */
#videoCarousel .homepage-video-carousel__col,
#savedCarousel .homepage-video-carousel__col,
#continueCarousel .homepage-video-carousel__col,
#videoCarousel .col-md-4,
#savedCarousel .col-md-4,
#continueCarousel .col-md-4 {
  flex: 0 0 var(--homepage-video-card-width) !important;
  width: var(--homepage-video-card-width) !important;
  min-width: var(--homepage-video-card-width) !important;
  max-width: var(--homepage-video-card-width) !important;
  padding: 0;
  position: relative;
  z-index: 1;
  overflow: visible;
}

#videoCarousel .homepage-video-carousel__col:hover,
#videoCarousel .homepage-video-carousel__col:has(:hover),
#videoCarousel .homepage-video-carousel__col:focus-within,
#savedCarousel .homepage-video-carousel__col:hover,
#savedCarousel .homepage-video-carousel__col:has(:hover),
#savedCarousel .homepage-video-carousel__col:focus-within,
#continueCarousel .homepage-video-carousel__col:hover,
#continueCarousel .homepage-video-carousel__col:has(:hover),
#continueCarousel .homepage-video-carousel__col:focus-within {
  z-index: 20;
}

#videoCarousel .homepage-video-carousel__col > a,
#savedCarousel .homepage-video-carousel__col > a,
#continueCarousel .homepage-video-carousel__col > a {
  display: block;
}

#videoCarousel .video-card,
#savedCarousel .video-card,
#continueCarousel .video-card {
  width: 100%;
  max-width: 100%;
  padding: 0;
  box-sizing: border-box;
}

#videoCarousel .video-thumb,
#savedCarousel .video-thumb,
#continueCarousel .video-thumb {
  padding: 12px 12px 0;
}

#videoCarousel .video-thumb img,
#videoCarousel .video-card img,
#savedCarousel .video-thumb img,
#savedCarousel .video-card img,
#continueCarousel .video-thumb img,
#continueCarousel .video-card img {
  margin-bottom: 0;
}

#videoCarousel .video-info,
#savedCarousel .video-info,
#continueCarousel .video-info {
  padding: 4px 12px 16px;
  text-align: left;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Fixed 2-line title slot — keeps surgeon row aligned on all homepage carousels */
#videoCarousel .video-card__title,
#savedCarousel .video-card__title,
#continueCarousel .video-card__title,
#videoCarousel .video-info > .fw-bold,
#savedCarousel .video-info > .fw-bold,
#continueCarousel .video-info > .fw-bold {
  text-align: left;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
  line-height: 1.4 !important;
  font-size: 1.05rem !important;
  min-height: calc(1.05rem * 1.4 * 2) !important;
  height: calc(1.05rem * 1.4 * 2) !important;
  max-height: calc(1.05rem * 1.4 * 2) !important;
  margin: 0 !important;
  flex: 0 0 calc(1.05rem * 1.4 * 2);
  box-sizing: border-box;
}

/* Surgeon line — single-line ellipsis (same pattern as procedure listing cards) */
#videoCarousel .video-authors,
#savedCarousel .video-authors,
#continueCarousel .video-authors,
#mobileVideoGrid .video-authors,
#mobileSavedGrid .video-authors,
#mobileContinueGrid .video-authors {
  margin: 0.5rem 0 0 !important;
  flex: 0 0 auto;
  flex-shrink: 0;
  font-size: 14px;
  color: #5f5f5f;
  text-align: left;

  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 6px;

  width: 100%;
  min-width: 0;
  overflow: hidden;
}

#videoCarousel .video-authors img,
#savedCarousel .video-authors img,
#continueCarousel .video-authors img,
#mobileVideoGrid .video-authors img,
#mobileSavedGrid .video-authors img,
#mobileContinueGrid .video-authors img,
#videoCarousel .video-authors svg,
#savedCarousel .video-authors svg,
#continueCarousel .video-authors svg,
#mobileVideoGrid .video-authors svg,
#mobileSavedGrid .video-authors svg,
#mobileContinueGrid .video-authors svg {
  flex: 0 0 auto;
  display: block;
  width: 16px;
  height: 16px;
}

#videoCarousel .video-authors a,
#savedCarousel .video-authors a,
#continueCarousel .video-authors a,
#mobileVideoGrid .video-authors a,
#mobileSavedGrid .video-authors a,
#mobileContinueGrid .video-authors a,
.video-listing-page--continue-watching .video-authors a,
.video-listing-page--saved-videos .video-authors a,
.video-listing-page--related-videos .video-authors a {
  position: relative;
  z-index: 2;
}

#videoCarousel .video-authors__names,
#savedCarousel .video-authors__names,
#continueCarousel .video-authors__names,
#mobileVideoGrid .video-authors__names,
#mobileSavedGrid .video-authors__names,
#mobileContinueGrid .video-authors__names {
  display: block;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
}

#videoCarousel .video-authors__names:not(:has(.video-authors__text)),
#savedCarousel .video-authors__names:not(:has(.video-authors__text)),
#continueCarousel .video-authors__names:not(:has(.video-authors__text)),
#mobileVideoGrid .video-authors__names:not(:has(.video-authors__text)),
#mobileSavedGrid .video-authors__names:not(:has(.video-authors__text)),
#mobileContinueGrid .video-authors__names:not(:has(.video-authors__text)) {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#videoCarousel .video-authors__text,
#savedCarousel .video-authors__text,
#continueCarousel .video-authors__text,
#mobileVideoGrid .video-authors__text,
#mobileSavedGrid .video-authors__text,
#mobileContinueGrid .video-authors__text {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#videoCarousel .video-authors__text :is(a, span, .surgeon-pill),
#savedCarousel .video-authors__text :is(a, span, .surgeon-pill),
#continueCarousel .video-authors__text :is(a, span, .surgeon-pill),
#mobileVideoGrid .video-authors__text :is(a, span, .surgeon-pill),
#mobileSavedGrid .video-authors__text :is(a, span, .surgeon-pill),
#mobileContinueGrid .video-authors__text :is(a, span, .surgeon-pill) {
  display: inline !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: inherit;
  vertical-align: baseline;
}

#videoCarousel .video-authors__text .surgeon-pill a,
#savedCarousel .video-authors__text .surgeon-pill a,
#continueCarousel .video-authors__text .surgeon-pill a,
#mobileVideoGrid .video-authors__text .surgeon-pill a,
#mobileSavedGrid .video-authors__text .surgeon-pill a,
#mobileContinueGrid .video-authors__text .surgeon-pill a {
  padding: 0;
  background: transparent;
  color: inherit;
  font-weight: inherit;
  border-radius: 0;
}

/* MOBILE GRID (phones only — carousel from md / 768px) */

#mobileVideoGrid .col-12,
#mobileSavedGrid .col-12,
#mobileContinueGrid .col-12 {
  flex: 0 0 100%;
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

#mobileVideoGrid,
#mobileSavedGrid,
#mobileContinueGrid {
  flex-direction: column;
  align-items: center;
  gap: 20px; /* vertical spacing between cards */
  overflow: visible;
}

#mobileVideoGrid .col-12,
#mobileSavedGrid .col-12,
#mobileContinueGrid .col-12 {
  position: relative;
  z-index: 1;
  overflow: visible;
}

#mobileVideoGrid .col-12:hover,
#mobileVideoGrid .col-12:has(:hover),
#mobileVideoGrid .col-12:focus-within,
#mobileSavedGrid .col-12:hover,
#mobileSavedGrid .col-12:has(:hover),
#mobileSavedGrid .col-12:focus-within,
#mobileContinueGrid .col-12:hover,
#mobileContinueGrid .col-12:has(:hover),
#mobileContinueGrid .col-12:focus-within {
  z-index: 20;
}

/* Homepage sections: match heading-to-content gap on mobile */
@media (max-width: 767.98px) {
  /* Narrow / tablet-portrait homepage bands — tighter vertical rhythm */
  section.popular-videos-section {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  section.popular-videos-section .container > h4 {
    margin-bottom: 1.25rem !important;
  }

  .popular-videos-section .mobile-grid .text-center.mt-3 {
    margin-top: 1.25rem !important;
  }

  .surgeon-mobile-scroll__controls {
    margin-top: 1rem !important;
  }

  #mobileVideoGrid .video-card,
  #mobileSavedGrid .video-card,
  #mobileContinueGrid .video-card {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  .popular-videos-section .mobile-grid > .row {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  #mobileVideoGrid.row,
  #mobileSavedGrid.row,
  #mobileContinueGrid.row {
    margin-top: 0;
    --bs-gutter-y: 0;
    flex-direction: column;
    align-items: center;
  }

  #mobileVideoGrid .col-12,
  #mobileSavedGrid .col-12,
  #mobileContinueGrid .col-12 {
    flex: 0 0 100%;
    width: 100%;
    max-width: min(320px, 100%);
  }

  #mobileVideoGrid.row > *,
  #mobileSavedGrid.row > *,
  #mobileContinueGrid.row > * {
    margin-top: 0;
  }

  /* Equal 12px inset on top/sides; title block handles spacing below the image */
  #mobileVideoGrid .video-thumb,
  #mobileSavedGrid .video-thumb,
  #mobileContinueGrid .video-thumb {
    display: block !important;
    padding: 12px 12px 0;
    height: auto;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  #mobileVideoGrid .video-info,
  #mobileSavedGrid .video-info,
  #mobileContinueGrid .video-info {
    padding: 4px 12px 12px !important;
    text-align: left;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  #mobileVideoGrid .video-card__title,
  #mobileSavedGrid .video-card__title,
  #mobileContinueGrid .video-card__title,
  #mobileVideoGrid .video-info > .fw-bold,
  #mobileSavedGrid .video-info > .fw-bold,
  #mobileContinueGrid .video-info > .fw-bold {
    text-align: left;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    line-height: 1.4 !important;
    font-size: 1.05rem !important;
    min-height: calc(1.05rem * 1.4 * 2) !important;
    height: calc(1.05rem * 1.4 * 2) !important;
    max-height: calc(1.05rem * 1.4 * 2) !important;
    margin: 0 !important;
    flex: 0 0 calc(1.05rem * 1.4 * 2);
    box-sizing: border-box;
  }

  #mobileVideoGrid .video-thumb .field,
  #mobileVideoGrid .video-thumb .field__item,
  #mobileSavedGrid .video-thumb .field,
  #mobileSavedGrid .video-thumb .field__item,
  #mobileContinueGrid .video-thumb .field,
  #mobileContinueGrid .video-thumb .field__item {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 0;
  }

  #mobileVideoGrid .video-card .video-thumb img,
  #mobileVideoGrid .video-thumb img,
  #mobileSavedGrid .video-card .video-thumb img,
  #mobileSavedGrid .video-thumb img,
  #mobileContinueGrid .video-card .video-thumb img,
  #mobileContinueGrid .video-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 12px;
    max-height: none;
    min-height: 0;
  }

  #mobileVideoGrid .col-12 > a,
  #mobileSavedGrid .col-12 > a,
  #mobileContinueGrid .col-12 > a {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  /* Views "See All" — match mobile card column + 12px content inset */
  .popular-videos-section .homepage-video-see-all,
  .popular-videos-section .view-id-saved-videos .more-link,
  .popular-videos-section .view-id-continue-watching .more-link {
    max-width: 320px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    padding-left: 12px;
    text-align: left;
    box-sizing: border-box;
  }
}

/* CARD STRUCTURE — carousel only (was global and stripped shadows site-wide) */
#videoCarousel .video-card,
#savedCarousel .video-card,
#continueCarousel .video-card,
#mobileVideoGrid .video-card,
#mobileSavedGrid .video-card,
#mobileContinueGrid .video-card,
#surgeonCarousel .video-card,
#surgeonCarousel .surgeon-card.video-card {
  border-radius: var(--radius-card, 20px);
  overflow: hidden;
  border: 1px solid var(--color-border-subtle) !important;
  box-shadow: var(--shadow-sm) !important;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

/* Homepage sections — card lift + full shadow (overrides generic .video-card:hover) */
#videoCarousel .video-card:hover,
#savedCarousel .video-card:hover,
#continueCarousel .video-card:hover,
#mobileVideoGrid .video-card:hover,
#mobileSavedGrid .video-card:hover,
#mobileContinueGrid .video-card:hover,
#surgeonCarousel .video-card:hover,
#surgeonCarousel .surgeon-card.video-card:hover,
.popular-videos-section .surgeon-card.video-card:hover {
  transform: translateY(-5px) !important;
  box-shadow:
    0 8px 24px rgba(60, 60, 60, 0.14),
    0 4px 12px rgba(60, 60, 60, 0.08) !important;
}

#surgeonCarousel .surgeon-card.video-card,
#surgeonCarousel .homepage-video-carousel__card {
  position: relative;
  z-index: 1;
  overflow: visible;
}

#surgeonCarousel .surgeon-card.video-card:hover,
#surgeonCarousel .homepage-video-carousel__card:hover,
#surgeonCarousel .surgeon-card.video-card:has(:hover),
#surgeonCarousel .homepage-video-carousel__card:has(:hover) {
  z-index: 20;
}

.video-thumb {
  padding: 12px; /* gap lives here */
}

.video-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9; /* move ratio to image */
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* SURGEONS — md+ carousel row (no horizontal scroll; JS groups slides) */

@media (min-width: 768px) {
  #surgeonCarousel .custom-no-cols {
    overflow: visible;
    scroll-behavior: auto;
  }

  #surgeonCarousel .custom-no-cols > .surgeon-card,
  #surgeonCarousel .custom-no-cols > .homepage-video-carousel__card {
    flex: 0 0 var(--homepage-video-card-width) !important;
    width: var(--homepage-video-card-width) !important;
    min-width: var(--homepage-video-card-width) !important;
    max-width: var(--homepage-video-card-width) !important;
    overflow: visible;
  }

  #surgeonCarousel .surgeon-card.video-card {
    width: 100%;
    max-width: none;
  }
}

/* SURGEON CARD */

.surgeon-card {
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff; /* match Figma */
  padding: 12px;
}

/* Headshot slot — fixed height so photo and placeholder cards match */
.surgeon-card-media {
  height: 220px;
  min-height: 220px;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 16px;
}

.surgeon-card-media > * {
  width: 100%;
  height: 100%;
  margin: 0;
}

.surgeon-card img:not(.surgeon-card-placeholder-icon) {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  margin-bottom: 0; /* override .video-card img */
}

/* No-photo surgeon cards: same footprint as headshot */
.surgeon-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border-radius: 16px;
  background: #e8e8ed;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.surgeon-card img.surgeon-card-placeholder-icon {
  width: 72px;
  height: 72px;
  max-width: 72px;
  flex-shrink: 0;
  border-radius: 0;
  object-fit: contain;
}

/* SURGEONS equal card height */

.surgeon-card {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.surgeon-card > a {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
}

.surgeon-card > a > div {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
}

.surgeon-card .video-info {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* make the SURGEON name block always take 1 line */
.surgeon-card .video-authors {
  line-height: 20px;
  min-height: 20px; /*  line */
  margin-top: 12px;
  overflow: hidden;

  display: -webkit-box;
  -webkit-box-orient: vertical;

  -webkit-line-clamp: 1;
  line-clamp: 1; /* standard property for future compatibility */
}

@media (min-width: 1200px) and (max-width: 1340px) {
  /* Scale nav text smoothly */
  .header-navigation .navbar-nav .nav-link {
    font-size: clamp(0.85rem, 1vw, 1rem);
    padding-left: clamp(0.5rem, 0.8vw, 1rem);
    padding-right: clamp(0.5rem, 0.8vw, 1rem);
  }

  /* Scale gap proportionally */
  .header-navigation .navbar-nav {
    gap: clamp(0.4rem, 0.8vw, 1rem);
  }
}

/* Stop navbar from centering its inner container */
.header-navigation {
  justify-content: flex-start !important;
}

/* Ensure inner header wrapper spreads correctly */
.header-navigation .header-width {
  justify-content: space-between !important;
}

/* Ensure consistent horizontal breathing room */
.header-navigation .container {
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* Make header full-width instead of Bootstrap boxed container */
.header-navigation .container {
  max-width: 100% !important;
}

@media (min-width: 1200px) and (max-width: 1340px) {
  .header-navigation .navbar-collapse {
    justify-content: flex-start !important;
    width: 100% !important;
  }

  .header-navigation .navbar-nav {
    justify-content: center !important;
  }
}

@media (min-width: 1200px) and (max-width: 1340px) {
  .header-navigation .navbar-nav .nav-link {
    padding-left: 6px !important;
    padding-right: 6px !important;
    font-size: 0.9rem !important;
  }
}

/* Remove Bootstrap auto margin */
.header-navigation .navbar-nav.mx-xl-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (min-width: 1200px) {
  .header-navigation .header-width {
    min-width: 0;
  }

  /* Remove Bootstrap auto margin */
  .header-navigation .navbar-nav.mx-xl-auto {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Center the menu properly */
  .header-navigation .navbar-collapse {
    display: flex !important;
    justify-content: center !important;
    min-width: 0;
    flex: 1 1 auto;
  }

  .header-navigation .navbar-nav {
    width: auto !important;
    justify-content: center !important;
  }
}

/*SURGEON PROFILE IMAGE NORMALIZATION */

.doctor-profile-section__photo {
  max-width: 220px;
  margin: 0 auto;
}

.doctor-profile-section .col-md-3 img {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
}

.doctor-profile-photo-placeholder {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 3 / 4;
  min-height: 260px;
  border-radius: 16px;
  background: #e8e8ed;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.doctor-profile-photo-placeholder__icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: block;
}

/* Surgeon profile — “About” summary when no biography body is entered */
.doctor-profile-about {
  margin-top: 0.75rem;
}

.doctor-profile-about__text {
  margin: 0;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #374151;
}

/* Stacked layout: breathing room between headshot and name (Bootstrap md breakpoint). */
@media (max-width: 767.98px) {
  .doctor-profile-section .row.align-items-center > .col-md-3 {
    margin-bottom: 1.5rem;
  }
}

/* Surgeon node (/surgeons/...): less vertical space between bio and Procedures / video block */
@media (max-width: 768px) {
  /* Bootstrap py-4 adds 1.5rem below the row — stacks as dead air before the videos block */
  .doctor-profile-section .row.align-items-center.py-4 {
    padding-bottom: 0 !important;
  }

  section.doctor-profile-section.pb-5 {
    padding-bottom: 0.5rem !important;
  }

  .doctor-profile-section__bio .field--name-body > :last-child,
  .doctor-profile-section__bio .text-formatted > :last-child {
    margin-bottom: 0;
  }

  .video-listing-page--surgeon-related {
    margin-top: 0;
  }

  main.main-content
    .views-element-container:has(.video-listing-page--surgeon-related) {
    margin-top: 0;
    padding-top: 0;
  }

  main.main-content .block:has(.video-listing-page--surgeon-related) {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

.video-card .video-card__title,
.video-card .video-info > .fw-bold {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  line-height: 1.4;
  font-size: 1.05rem;
  min-height: calc(1.05rem * 1.4 * 2);
  height: calc(1.05rem * 1.4 * 2);
  max-height: calc(1.05rem * 1.4 * 2);
  margin-bottom: 0;
  box-sizing: border-box;
}

.js-pager__items {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  display: flex;
  justify-content: center;
}

.js-pager__items .pager__item {
  list-style: none;
}

.js-pager__items .button {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 106px;
  height: 44px;
  padding: 13px 12px;

  border-radius: 14px;
  border: 1px solid #0a84ff;
  background: #fff;

  color: #0a84ff;
  font-family: "SF Pro", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;

  text-decoration: none;
  box-sizing: border-box;
}

.js-pager__items .button:hover {
  background-color: #0a84ff;
  color: #fff;
  border-color: #0a84ff;
}

/* Keep fixed column grid (defined above); do not use auto-fit so single card stays same width */
.video-grid {
  gap: 32px;
}

.video-card .video-title a {
  color: inherit;
  text-decoration: none;
}

.video-card .video-title a:hover {
  color: var(--color-accent);
}

.dialog-off-canvas-main-canvas {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main#content.main-content {
  flex: 1;
  min-height: 0;
}

/* About Us: make title and description share the same centered width */
.about h4,
.about h5 {
  width: 100% !important;
  text-align: center;
  margin-left: 0 !important;
}

/* Center the Drupal field wrapper div and match Figma width */
.about h4 > div,
.about h5 > div {
  max-width: 509px;
  margin: 0 auto;
}

/* Kill the random Bootstrap width utility just for this section */
.about h5.w-63 {
  width: 100% !important;
  max-width: none !important;
}

/* ==============================================
   SEARCH PAGE - Match allVideos layout
   Same container width, grid, spacing, video cards.
   Search form (exposed + Apply/Reset) at top, then grid below.
============================================== */

/* Stack layout: search section full width on top, video grid below (same width as allVideos content) */
.view-id-search-page .video-listing-page .row {
  display: flex;
  flex-direction: column;
}

/* Exposed form wrapper: full width, spacing below */
.view-id-search-page .video-listing-page .row > div:first-child {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  margin-bottom: 2rem;
}

/* Video content column: same width as allVideos (col-lg-9 = 75% on large) - already has col-lg-9 col-md-8; ensure it doesn't stretch */
.view-id-search-page .video-listing-page .row > .video-content {
  flex: 0 0 auto;
}

/* Search page exposed form section: clear block at top with Apply/Reset visible */
.view-id-search-page .views-exposed-form {
  padding: 1.5rem 0;
  margin-bottom: 0;
}

.view-id-search-page .views-exposed-form .form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Search page: full text */
.view-id-search-page .form-item-search-api-fulltext {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0;
}

.view-id-search-page .form-item-search-api-fulltext input {
  width: 100%;
  max-width: 600px;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
}

/* Search page grid: defer to .video-listing-page rules (fixed 287px desktop, fluid mobile) */
.view-id-search-page .video-content .video-grid {
  display: grid !important;
  margin-bottom: 2rem;
}

.view-id-search-page .video-content .video-grid-item {
  min-width: 0;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 24px;
}

.mobile-filter-tabs {
  display: none;
}

/* Mobile filter modal - hidden on desktop */
.mobile-filter-modal {
  display: none;
}

/* Collapse sidebar sooner than Bootstrap md (768) — avoids cards overlapping filters */
@media (max-width: 991.98px) {
  .video-listing-page {
    --radius-mobile-control: 14px;
    --radius-mobile-control-nested: 10px;
  }

  .video-listing-page .content-row > .video-content {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  .filters-sidebar {
    display: none !important;
  }

  /* Listing container: same horizontal inset as search bar / filter pills */
  .video-listing-page.container,
  .video-listing-page.container.mx-5 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Cards share the same content width as search (no extra Bootstrap col gutter) */
  .video-listing-page .content-row {
    --bs-gutter-x: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .video-listing-page .content-row > .video-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .view-id-search-page .video-content .video-grid-item {
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0;
  }

  .mobile-filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-filter-tabs .pill {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    border: 1px solid #ddd;
    border-radius: var(--radius-mobile-control, 14px);
    padding: 10px 12px;
    background: white;
    font-size: 14px;
    cursor: pointer;
  }

  .mobile-filter-tabs .pill__main {
    flex: 1;
    min-width: 0;
    text-align: center;
  }

  .mobile-filter-tabs .pill__count {
    color: #000;
  }

  .mobile-filter-tabs .pill__chevron {
    flex-shrink: 0;
    font-size: 1.15em;
    line-height: 1;
    color: #6b7280;
    opacity: 0.9;
  }

  .mobile-filter-tabs .pill.active {
    background: #1c1c1e;
    color: white;
    border-color: #1c1c1e;
  }

  .mobile-filter-tabs .pill.active .pill__count {
    color: #fff;
  }

  .mobile-filter-tabs .pill.active .pill__chevron {
    color: #fff;
    opacity: 1;
  }

  /* Modal overlay: darkened, blurred backdrop */
  .mobile-filter-modal {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1100;
    visibility: hidden;
    opacity: 0;
    transition:
      opacity 0.25s ease,
      visibility 0.25s ease;
    pointer-events: none;
  }

  .mobile-filter-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    /* Above .navbar (1500) and #toolbar-bar (3000) so search/focus are not stolen */
    z-index: 3201;
  }

  .mobile-filter-modal__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    cursor: pointer;
  }

  /* Centered modal card (slightly above center), spacing from edges */
  .mobile-filter-modal__box {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 50%;
    transform: translateY(-55%);
    max-height: 80vh;
    min-height: 320px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* White header, centered title */
  .mobile-filter-modal__header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    background: #fff;
    border-bottom: none;
  }

  .mobile-filter-modal__header-spacer {
    width: 44px;
    flex-shrink: 0;
  }

  .mobile-filter-modal__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1c1c1e;
    flex: 1;
    text-align: center;
  }

  .mobile-filter-modal__close {
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: none;
    font-size: 22px;
    line-height: 1;
    color: #1c1c1e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  /* Rounded grey search field */
  .mobile-filter-modal__search-wrap {
    flex-shrink: 0;
    padding: 0 20px 16px;
  }

  .mobile-filter-modal__search {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    background: #e9e9eb;
    color: #1c1c1e;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
  }

  .mobile-filter-modal__search::placeholder {
    color: #8e8e93;
  }

  /* Scrollable filter list, left aligned */
  .mobile-filter-modal__body {
    flex: 1;
    overflow: auto;
    overflow-x: hidden;
    padding: 8px 20px 24px;
    -webkit-overflow-scrolling: touch;
    text-align: left;
  }

  .mobile-filter-modal__body > * {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .mobile-filter-modal__body .procedures-filter details,
  .mobile-filter-modal__body details,
  .mobile-filter-modal__body [id$="--wrapper"] {
    display: block !important;
    border: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
  }

  .mobile-filter-modal__body details summary {
    display: block !important;
    margin-left: 0;
    padding-left: 0;
    width: 100%;
    margin-bottom: 12px;
  }

  .mobile-filter-modal__body details > *:not(summary),
  .mobile-filter-modal__body [id$="--wrapper"] > * {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    float: none !important;
  }

  .mobile-filter-modal__body [id$="--wrapper"] > .form-item {
    margin-left: 0;
    padding-left: 0;
  }

  .mobile-filter-modal__body details > .form-item,
  .mobile-filter-modal__body details > .js-form-item,
  .mobile-filter-modal__body [id$="--wrapper"] > .form-item,
  .mobile-filter-modal__body [id$="--wrapper"] > .js-form-item {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .mobile-filter-modal__body .bef-checkboxes,
  .mobile-filter-modal__body .form-checkboxes,
  .mobile-filter-modal__body .form-item,
  .mobile-filter-modal__body .js-form-item {
    margin-left: 0 !important;
    padding-left: 0 !important;
    width: 100%;
    max-width: 100%;
  }

  .mobile-filter-modal__body details summary {
    font-size: 17px;
    font-weight: 600;
    color: #1c1c1e;
    margin-bottom: 12px;
    padding: 0;
    list-style: none;
  }

  .mobile-filter-modal__body details summary::-webkit-details-marker {
    display: none;
  }

  .mobile-filter-modal__body ul,
  .mobile-filter-modal__body .bef-checkboxes ul,
  .mobile-filter-modal__body .form-checkboxes ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
  }

  .mobile-filter-modal__body .bef-checkboxes li,
  .mobile-filter-modal__body .form-checkboxes li,
  .mobile-filter-modal__body ul li {
    list-style: none;
    list-style-type: none;
    margin-bottom: 14px;
    margin-left: 0;
    padding: 0;
    padding-left: 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    gap: 8px;
    box-sizing: border-box;
  }

  .mobile-filter-modal__body li.has-children {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .mobile-filter-modal__body li.has-children > .js-form-item {
    margin-bottom: 4px;
  }

  .mobile-filter-modal__body li.has-children > ul {
    padding-left: 28px;
    margin-top: 4px;
    margin-bottom: 0;
  }

  .mobile-filter-modal__body li::marker {
    content: none;
    display: none;
  }

  .mobile-filter-modal__body .js-form-item,
  .mobile-filter-modal__body .form-item {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 8px;
  }

  .mobile-filter-modal__body .has-children > .js-form-item,
  .mobile-filter-modal__body .has-children {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    gap: 8px;
  }

  .mobile-filter-modal__body .has-children > .js-form-item > label,
  .mobile-filter-modal__body .has-children > label,
  .mobile-filter-modal__body label.option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    cursor: pointer;
    margin: 0;
    padding: 0 0 0 4px;
    font-size: 16px;
    color: #1c1c1e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    gap: 8px;
  }

  .mobile-filter-modal__body .parent-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    flex-shrink: 0;
    margin-left: 4px;
    padding: 0;
    color: #8e8e93;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    user-select: none;
  }

  .mobile-filter-modal__body .parent-arrow:hover {
    color: #1c1c1e;
  }

  .mobile-filter-modal__body input[type="checkbox"] {
    margin-right: 0;
  }

  /*
   * Select All / Select None (BEF injects <a.bef-toggle> immediately before
   * .bef-checkboxes). Full-width secondary control with clear spacing from list.
   */
  .mobile-filter-modal__body a.bef-toggle {
    display: block !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 0 18px !important;
    padding: 12px 16px;
    border: 1px solid #d1d1d6;
    border-radius: 10px;
    background: #f2f2f7;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #1c1c1e !important;
    text-decoration: none !important;
    line-height: 1.25;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-filter-modal__body a.bef-toggle:hover,
  .mobile-filter-modal__body a.bef-toggle:focus {
    color: #1c1c1e !important;
    text-decoration: none !important;
    background: #e8e8ed;
    border-color: #c7c7cc;
    outline: none;
  }

  .mobile-filter-modal__body a.bef-toggle:active {
    background: #dedee3;
  }

  /* Footer fixed at bottom, Figma button styles */
  .mobile-filter-modal__footer {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
    padding: 16px 20px 24px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0));
    border-top: 1px solid #e5e5ea;
    background: #fff;
  }

  .mobile-filter-modal__clear {
    flex: 1;
    padding: 14px 20px;
    border: 1.5px solid #c7c7cc;
    border-radius: 12px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: #1c1c1e;
  }

  .mobile-filter-modal__apply {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: var(--color-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }
}
/* Search page: full text */
.form-item-search-api-fulltext {
  display: flex;
  justify-content: center;
}
.form-item-search-api-fulltext input {
  width: 100%;
  max-width: 600px;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
}
.path-user .block-system-breadcrumb-block {
  display: none;
}

/* Login, register, and password reset */
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(24px, 5vw, 48px);
  background: #f0f0f0;
}

.auth-page__inner {
  width: 100%;
  max-width: 380px;
}

.auth-page__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}

.auth-page__legal {
  font-size: 0.75rem;
}

.video-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* center grid */
  gap: 24px;
}

.video-grid-item {
  flex: 0 0 257px; /* FIXED width */
  max-width: 300px;
}
/* ---- Hide description text ---- */
#edit-name--description {
  display: none;
}

/* ---- Form item spacing ---- */
.user-login-form .js-form-item {
  margin-bottom: 16px;
}

/* ---- Labels ---- */
.user-login-form label {
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  display: block;
}

/* ---- Inputs ---- */
.user-login-form .form-control {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: #374151;
  width: 100%;
}

.user-login-form .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: #fff;
  outline: none;
}

.user-login-form .form-control::placeholder {
  color: #9ca3af;
}

/* ---- Submit button ---- */
.user-login-form .btn-primary {
  background: #2563eb;
  border: none;
  border-radius: 10px;
  padding: 11px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.user-login-form .btn-primary:hover {
  background: #1d4ed8;
}

.user-login-form .btn-primary:active {
  transform: scale(0.99);
}
/* ================================================
   Registration Form Styles
   ================================================ */

/* ---- Hide description text on standard fields ---- */
#user-register-form #edit-mail--description,
#edit-name--description,
.user-login-form #edit-pass--description,
.user-pass p {
  display: none;
}

/* ---- Form item spacing ---- */
.user-register-form .js-form-item {
  margin-bottom: 16px;
}

/* ---- Labels ---- */
.user-register-form label {
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  display: block;
}

/* ---- Standard inputs ---- */
.user-register-form .form-control {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: #374151;
  width: 100%;
  box-sizing: border-box;
}

.user-register-form .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: #fff;
  outline: none;
}

.user-register-form .form-control::placeholder {
  color: #9ca3af;
}

/* ---- Password confirm widget ---- */
.user-register-form .js-form-type-password-confirm {
  margin-bottom: 16px;
}

.user-register-form .js-form-type-password-confirm input[type="password"] {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: #374151;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.user-register-form
  .js-form-type-password-confirm
  input[type="password"]:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: #fff;
  outline: none;
}

.user-register-form
  .js-form-type-password-confirm
  input[type="password"]::placeholder {
  color: #9ca3af;
}

/* ---- Keep strength text ---- */
.user-register-form .password-strength__title,
.user-register-form .password-strength__text {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

/* ---- Password match tick ---- */
.user-register-form .password-confirm-message {
  font-size: 12px;
  margin-top: 4px;
}

.user-register-form .password-confirm-message.ok {
  color: #16a34a;
}

.user-register-form .password-confirm-message.error {
  color: #dc2626;
}

/* ---- Help text below password ---- */
/* ---- Password help text ---- */
.user-register-form .js-form-type-password-confirm .description {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
  line-height: 1.5;
}

/* ---- Submit button ---- */
.user-register-form .btn-primary {
  background: #2563eb;
  border: none;
  border-radius: 10px;
  padding: 11px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.user-register-form .btn-primary:hover {
  background: #1d4ed8;
}

.user-register-form .btn-primary:active {
  transform: scale(0.99);
}
#edit-pass-pass2.password-matched {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2316a34a' d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 18px !important;
  padding-right: 40px !important;
  border-color: #16a34a !important;
}
.password-confirm-message {
  display: none !important;
}
.placeholder {
  background-color: transparent !important;
}
.form-item-persistent-login {
  display: flex;
  gap: 8px;
}

/* =========================================
   HARD FIX VIDEO CARD STRUCTURE
   ========================================= */

/* remove wrapper interference */
.video-listing-page .video-grid-item {
  padding: 0 !important;
  background: transparent !important;
  display: flex;
  flex: none !important;
  max-width: none !important;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

/* Listing grid: override global flex .video-grid (fixed 257px items) */
.video-listing-page .video-grid {
  display: grid !important;
  flex-wrap: unset !important;
}

.video-listing-page .video-grid-item > a {
  display: block;
  width: 100%;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

@media (min-width: 992px) {
  .video-listing-page .video-grid-item {
    justify-content: center;
  }
}

/* CARD */
.video-listing-page .video-card {
  width: 287px;
  height: 276px;
  padding: 15px 15px 0 !important;
  border-radius: var(--radius-card, 20px);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.video-listing-page .video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* IMAGE WRAPPER — fixed slot; image must fill it (global .video-thumb img uses 16:9 + height:auto) */
.video-listing-page .video-card .video-thumb {
  position: relative;
  height: 150px;
  min-height: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  display: block !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  overflow: hidden;
  border-radius: 16px;
  flex-shrink: 0;
  line-height: 0;
}

.video-listing-page .video-thumb .field,
.video-listing-page .video-thumb .field__item,
.video-listing-page .video-thumb a {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
  height: 100%;
}

.video-listing-page .video-thumb img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  aspect-ratio: unset !important;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* TEXT AREA — flush under thumbnail; fixed title slot for Chrome/Safari parity */
.video-listing-page .video-card .video-info {
  padding: 0 0 16px !important;
  flex-grow: 0 !important;
  height: 126px; /* 276 - image area */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 10px;
  min-height: 0;
}

/* TITLE */
.video-listing-page .video-title {
  margin: 0 !important;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  /* Reserve two lines so the surgeon row starts at the same offset in all engines */
  min-height: calc(1.3em * 2);
  height: calc(1.3em * 2);

  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* AUTHORS — grid + single truncation box (reliable ellipsis in Chrome + Safari) */
.video-listing-page .video-authors {
  margin: 0;
  flex-shrink: 0;
  font-size: 14px;
  color: #666;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 6px;

  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.video-listing-page .video-authors__names {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

/* Cached / older markup without .video-authors__text */
.video-listing-page .video-authors__names:not(:has(.video-authors__text)) {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-listing-page
  .video-authors__names:not(:has(.video-authors__text))
  :is(a, span, .surgeon-pill) {
  display: inline !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: inherit;
}

/* One line box: ellipsis applies here, not on each <a> */
.video-listing-page .video-authors__text {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-listing-page .video-authors__text :is(a, span, .surgeon-pill) {
  display: inline !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: inherit;
  vertical-align: baseline;
}

.video-listing-page .video-authors__text .surgeon-pill a {
  padding: 0;
  background: transparent;
  color: inherit;
  font-weight: inherit;
  border-radius: 0;
}

.video-listing-page .video-authors svg {
  flex: 0 0 auto;
}

/* =========================================
   GRID GAP = FIGMA EXACT (24px)
   Sidebar visible → grid starts at left of main column.
   Sidebar collapsed → grid centered in full width.
   ========================================= */

.video-listing-page .video-grid,
.view-id-search-page .video-listing-page .video-content .video-grid {
  display: grid;
  gap: 24px;
  justify-content: center;
  grid-template-columns: min(287px, 100%);
  margin-bottom: 2rem;
}

/* Between mobile (≤576) and tablet (700): single column, centered */
@media (min-width: 577px) and (max-width: 699.98px) {
  .video-listing-page .video-grid,
  .view-id-search-page .video-listing-page .video-content .video-grid {
    justify-content: center;
    grid-template-columns: min(287px, 100%);
  }
}

/* Two columns (fixed card width) */
@media (min-width: 700px) {
  .video-listing-page .video-grid,
  .view-id-search-page .video-listing-page .video-content .video-grid {
    grid-template-columns: repeat(2, 287px);
  }
}

/* Sidebar visible: no dead space between filters and cards */
@media (min-width: 992px) {
  .video-listing-page .content-row .video-content .video-grid,
  .video-listing-page .video-grid {
    justify-content: start;
  }

  .video-listing-page .content-row {
    --bs-gutter-x: 24px;
  }
}

/* Collapsed sidebar: fluid cards aligned with search bar / filter pills */
@media (max-width: 991.98px) {
  .view-id-search-page .video-content .video-grid,
  .video-listing-page .video-content .video-grid,
  .video-listing-page .video-grid,
  .view-id-search-page .video-listing-page .video-content .video-grid {
    display: grid !important;
    width: 100%;
    justify-content: stretch;
    justify-items: stretch;
  }

  .video-listing-page .video-grid-item {
    width: 100%;
    max-width: none !important;
    flex: none !important;
    justify-content: flex-start;
    align-items: stretch;
  }

  .video-listing-page .video-grid-item > a {
    width: 100%;
  }

  .video-listing-page .video-grid-item .video-card {
    width: 100% !important;
    max-width: none !important;
    height: auto;
  }

  .video-listing-page .video-card .video-thumb {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .video-listing-page .video-card .video-info {
    height: auto;
  }
}

/* Phone: one column (full width of search bar) */
@media (max-width: 575.98px) {
  .view-id-search-page .video-content .video-grid,
  .video-listing-page .video-content .video-grid,
  .video-listing-page .video-grid,
  .view-id-search-page .video-listing-page .video-content .video-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Tablet / large phone (collapsed sidebar): two equal columns */
@media (min-width: 576px) and (max-width: 991.98px) {
  .view-id-search-page .video-content .video-grid,
  .video-listing-page .video-content .video-grid,
  .video-listing-page .video-grid,
  .view-id-search-page .video-listing-page .video-content .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Three columns only when main column fits sidebar + 3×287px + gaps (~909px) */
@media (min-width: 1350px) {
  .video-listing-page .video-grid,
  .view-id-search-page .video-listing-page .video-content .video-grid {
    grid-template-columns: repeat(3, 287px);
    justify-content: start;
  }

  .video-listing-page .video-grid-continue {
    grid-template-columns: repeat(4, 287px);
    justify-content: start;
  }

  /* Related Videos block: 3 cards per row, standard gap (not 4-col continue layout) */
  .view-id-related-videos-by-sub-procedure
    .video-listing-page
    .video-grid.video-grid-continue {
    grid-template-columns: repeat(3, 287px);
    column-gap: 24px;
    row-gap: 24px;
  }
}

/* Related Videos: consistent card spacing at all breakpoints */
.view-id-related-videos-by-sub-procedure .video-listing-page .video-grid {
  column-gap: 24px;
  row-gap: 24px;
}

/* Thumbnail–title gap only (not card top): related videos, continue watching, saved videos */
.video-listing-page--related-videos .video-card .video-info,
.video-listing-page--continue-watching .video-card .video-info,
.video-listing-page--saved-videos .video-card .video-info {
  padding-top: 10px !important;
}

@media (max-width: 576px) {
  .video-grid {
    justify-content: center !important;
  }
  .video-card {
    width: 100%;
    height: auto; /* let it grow naturally */
  }

  .video-thumb {
    height: 180px; /* bigger image like Figma */
    padding: 12px; /* equal spacing all around */
  }

  #mobileVideoGrid .video-thumb,
  #mobileSavedGrid .video-thumb,
  #mobileContinueGrid .video-thumb {
    height: auto;
  }

  .video-info {
    height: auto; /* remove fixed height */
    padding: 12px 14px 16px;
  }
  .video-listing-page {
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
.video-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Listing cards: keep thumbnails flush with titles (overrides rules above) */
.video-listing-page .video-thumb img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: unset !important;
  margin: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
}

/* ===============================
   ABOUT US CARD - CLEAN FIX
=============================== */

/* Card */
.video-grid.px-5 > .video-grid-item {
  padding: 20px !important;
  border-radius: 24px !important;
  background: #fff !important;
  text-align: center !important;

  display: flex;
  flex-direction: column;
  align-items: stretch;

  max-width: 260px !important;
}

/* Remove weird inner spacing */
.video-grid.px-5 > .video-grid-item .video-info {
  padding: 0 !important;
  margin: 0 !important; /* unified (was margin-top:12 vs 0) */
  height: auto !important;
  flex: unset !important;
}

/* Fix anchor behavior */
.video-grid.px-5 > .video-grid-item a {
  text-decoration: none !important;
  color: #000 !important;
}

/* Image */
.video-grid.px-5 > .video-grid-item img {
  width: 100%;
  max-width: 100%;
  height: 244px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  margin: 0 auto;
}

/* Name */
.video-grid.px-5 > .video-grid-item .video-authors {
  margin-top: 18px !important;
  margin-bottom: 8px !important;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

/* Hover */
.video-grid.px-5 > .video-grid-item:hover {
  transform: translateY(-4px);
  transition: 0.2s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ===============================
   ABOUT US - LAYOUT FIX
=============================== */

/* Wrapper */
.block-views-block-education-committee-block-1 .video-listing-page {
  width: 100% !important;
  max-width: 1200px;
  margin: 0 auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* Kill Bootstrap row offset */
.block-views-block-education-committee-block-1 .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  justify-content: center !important;
}

/* Content centering */
.block-views-block-education-committee-block-1 .video-content {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;

  display: flex !important;
  justify-content: center !important;
}

/* ===============================
   GRID (MERGED ALL DUPLICATES)
=============================== */

.video-grid.px-5 {
  display: grid;
  grid-template-columns: repeat(3, 260px) !important;

  column-gap: 24px !important;
  row-gap: 24px !important;

  justify-content: center;
  width: 100%;
  max-width: 920px;
  margin: 0 auto !important;

  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ===============================
   MOBILE FIX
=============================== */

@media (max-width: 768px) {
  .block-views-block-education-committee-block-1 .video-listing-page {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .video-grid.px-5 {
    max-width: 100%;
  }

  .video-grid.px-5 > .video-grid-item {
    margin: 0 auto !important;
  }
}
@media (max-width: 992px) {
  .video-grid.px-5 {
    grid-template-columns: repeat(2, 260px) !important;
  }
}

@media (max-width: 576px) {
  .video-grid.px-5 {
    grid-template-columns: repeat(1, 260px) !important;
  }
}

.ajax-progress.ajax-progress-fullscreen {
  display: none !important;
}

.navbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 4px;
  /* Soft blends + matching ends for seamless pan; vertical mask feathers top/bottom */
  background: linear-gradient(
    90deg,
    #b0a6d8 0%,
    #b0a6d8 16%,
    #b8a8d0 22%,
    #c8a8c4 30%,
    #d4a0b0 36%,
    #c0a0c8 42%,
    #a898cc 47%,
    #6c9ad8 49%,
    #5088d4 50%,
    #6c9ad8 51%,
    #a898cc 53%,
    #c0a0c8 58%,
    #d4a0b0 64%,
    #c8a8c4 70%,
    #b8a8d0 78%,
    #b0a6d8 84%,
    #b0a6d8 100%
  );
  background-size: 200% 100%;
  background-position: 0 0;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 28%,
    #000 72%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 28%,
    #000 72%,
    transparent 100%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.2s ease;
}

body.ajax-loading .navbar::after {
  opacity: 1;
  animation: ajaxBarHighlight 2.4s linear infinite;
}

@keyframes ajaxBarHighlight {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ajax-loading .navbar::after {
    animation: none;
    background: linear-gradient(
      90deg,
      #b0a6d8 0%,
      #d4a0b0 22%,
      #b0a0d0 40%,
      #5088d4 52%,
      #b0a0d0 68%,
      #b0a6d8 100%
    );
    background-size: 100% 100%;
  }
}

.parent-arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: auto;
  padding-left: 8px;
  color: #5f5f5f;
  cursor: pointer;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  user-select: none;
  flex-shrink: 0;
  font-family: Arial, sans-serif;
  transition: 0.2s;
}

.views-exposed-form li {
  list-style: none;
}

/* remove default ul spacing */
.views-exposed-form ul {
  margin: 0;
  padding-left: 0;
}

/* Search form actions — pill buttons */
[id^="edit-actions"] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 18px;
}

[id^="edit-actions"] .form-submit {
  appearance: none;
  outline: none;
  position: relative;
  isolation: isolate;

  min-height: 44px;
  padding: 10px 22px !important;
  border-radius: 999px !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

[id^="edit-actions"] .form-submit:focus-visible {
  outline: 2px solid #0a84ff;
  outline-offset: 3px;
}

/* Apply — warm accent, soft depth */
#edit-submit-search-page--2 {
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  background: var(--color-accent-gradient-pill) !important;
  color: #fff !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Hover */
#edit-submit-search-page--2:hover {
  background: var(--color-accent-gradient-pill-hover) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 3px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* Active (click) */
#edit-submit-search-page--2:active {
  transform: translateY(0);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 4px 12px rgba(var(--color-accent-rgb), 0.22);
}

/* Focus (FIX for your issue) */
#edit-submit-search-page--2:focus,
#edit-submit-search-page--2:focus-visible {
  background: var(--color-accent-gradient-pill-hover) !important;
  color: #fff !important;
  outline: none !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 3px 6px rgba(0, 0, 0, 0.1) !important;
}

/* Reset — quiet secondary */
#edit-reset-search-page--2 {
  background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%) !important;
  color: #374151 !important;
  border: 1px solid #d1d5db !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 6px rgba(15, 23, 42, 0.06);
}

/* Reset hover */
#edit-reset-search-page--2:hover {
  background: linear-gradient(180deg, #fafbfc 0%, #eef0f3 100%) !important;
  color: #111827 !important;
  border-color: #c4c9d1 !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 4px 12px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

/* Reset active */
#edit-reset-search-page--2:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) inset;
}

/* Reset focus */
#edit-reset-search-page--2:focus,
#edit-reset-search-page--2:focus-visible {
  background: linear-gradient(180deg, #fafbfc 0%, #eef0f3 100%) !important;
  color: #111827 !important;
  outline: none !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 2px 6px rgba(15, 23, 42, 0.06);
}

/* Global safety (prevents browser/Bootstrap overrides) */
[id^="edit-actions"] .form-submit:focus {
  outline: none !important;
}

/* Make the whole exposed form a vertical flex layout */
.views-exposed-form {
  display: flex;
  flex-direction: column;
}

/* Search input → first */
.form-item-search-api-fulltext {
  order: 1;
}

/* Buttons → second (move up under search) */
[id^="edit-actions"] {
  order: 2;
  margin-top: 12px;
}

/* Everything else (filters) → after */
fieldset {
  order: 3;
}

/* Center buttons under search box */
[id^="edit-actions"] {
  order: 2;
  margin-top: 12px;

  display: flex;
  justify-content: center; /*s centers horizontally */
  width: 100%;
}

/* Homepage video sections — left-aligned headings (Most Popular, Saved, Continue Watching) */
@media (max-width: 768px) {
  section.popular-videos-section:has(
      #videoCarousel,
      #savedCarousel,
      #continueCarousel
    )
    > .container
    > h4 {
    width: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
  }

  .popular-videos-section:has(
      #mobileVideoGrid,
      #mobileSavedGrid,
      #mobileContinueGrid
    )
    .video-info
    > .fw-bold {
    text-align: left !important;
  }
}

@media (max-width: 767.98px) {
  .popular-videos-section .row.flex-nowrap {
    margin-left: 0 !important; /* kill bootstrap negative margin */
    margin-right: 0 !important;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Contributing Surgeons — Figma exact layout */
@media (max-width: 767.98px) {
  /* scroll container */
  .popular-videos-section .row.flex-nowrap,
  .surgeon-mobile-scroll__track {
    overflow-x: auto;
    gap: 12px;
    padding-left: 0;
    padding-right: 0;
  }

  /* CARD (exact figma size) */
  .popular-videos-section .surgeon-card {
    flex: 0 0 180px;
    max-width: 180px;

    padding: 12px;
    border-radius: 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .popular-videos-section .row.flex-nowrap > .surgeon-card.video-card,
  .surgeon-mobile-scroll__track > .surgeon-card.video-card {
    position: relative;
    z-index: 1;
    overflow: visible;
  }

  .popular-videos-section .row.flex-nowrap > .surgeon-card.video-card:hover,
  .popular-videos-section
    .row.flex-nowrap
    > .surgeon-card.video-card:has(:hover),
  .surgeon-mobile-scroll__track > .surgeon-card.video-card:hover,
  .surgeon-mobile-scroll__track > .surgeon-card.video-card:has(:hover) {
    z-index: 20;
  }

  /* Mobile surgeon scroll only (md carousel is hidden) */
  .surgeon-mobile-scroll__track
    .surgeon-card
    img:not(.surgeon-card-placeholder-icon) {
    width: 100%;
    height: 100%;
    min-height: 234px;
    margin-bottom: 0; /* override .video-card img */
    object-fit: cover;
    object-position: center 12%;
    border-radius: 12px;
    image-rendering: auto;
  }

  .popular-videos-section .surgeon-card > a,
  .popular-videos-section .surgeon-card > a > div {
    width: 100%;
    min-width: 0;
  }

  .popular-videos-section .surgeon-card-media {
    width: 100%;
    height: 234px;
    min-height: 234px;
    overflow: hidden;
    border-radius: 12px;
  }

  .popular-videos-section .surgeon-card-media > * {
    width: 100%;
    min-width: 100%;
  }

  .popular-videos-section .surgeon-card-placeholder {
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 234px;
    border-radius: 12px;
    background: #e8e8ed;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
  }

  .popular-videos-section .surgeon-card img.surgeon-card-placeholder-icon {
    width: 64px;
    height: 64px;
    max-width: 64px;
    flex-shrink: 0;
    border-radius: 0;
    object-fit: contain;
  }

  /* TEXT — contributing surgeons only (not Most Popular Videos) */
  .popular-videos-section:has(#surgeonCarousel) .video-authors {
    text-align: center;
    font-size: 14px;
  }
}
/* Contributing Surgeons — mobile scroll track + controls */
.surgeon-mobile-scroll__track {
  cursor: grab;
}

.surgeon-mobile-scroll__track.is-dragging,
.surgeon-mobile-scroll__track:active {
  cursor: grabbing;
}

.surgeon-mobile-scroll__prev,
.surgeon-mobile-scroll__next {
  font-weight: bold;
  font-size: x-large;
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
  padding: 0;
  box-shadow: none !important;
  line-height: 0;
}

.surgeon-mobile-scroll__prev:disabled,
.surgeon-mobile-scroll__next:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Contributing Surgeons scroll behavior */
.popular-videos-section .row.flex-nowrap,
.surgeon-mobile-scroll__track {
  cursor: grab;

  /* smooth free scroll */
  scroll-snap-type: none !important;

  /* prevent text selection while dragging */
  user-select: none;
  -webkit-user-select: none;

  /* Chevron controls handle navigation — hide redundant scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.popular-videos-section .row.flex-nowrap::-webkit-scrollbar,
.surgeon-mobile-scroll__track::-webkit-scrollbar {
  display: none;
}

/* Horizontal scroll only — overflow-auto was clipping hover lift + shadow */
.popular-videos-section .row.flex-nowrap.overflow-auto,
.surgeon-mobile-scroll__track.overflow-auto {
  overflow-x: auto !important;
  overflow-y: visible !important;
}

.popular-videos-section .row.flex-nowrap:active,
.surgeon-mobile-scroll__track:active {
  cursor: grabbing;
}

/* disable snap on cards */
.popular-videos-section .video-card {
  scroll-snap-align: none !important;
}

/* prevent image dragging */
.popular-videos-section .row.flex-nowrap img,
.surgeon-mobile-scroll__track img {
  -webkit-user-drag: none;
}

/* About Us mobile fix — include padding */
@media (max-width: 768px) {
  .about {
    padding: 3rem 12px !important;
  }

  .about h5.mb-3.w-63 {
    font-size: 15px !important;
    line-height: 22.5px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 339px !important;
    text-align: center !important;
  }

  /* spacing between title, text, button */
  .about .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

@media (max-width: 991.98px) {
  /* Reset Bootstrap garbage */
  #block-oculofacialsurgery-breadcrumbs section {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  #block-oculofacialsurgery-breadcrumbs .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #block-oculofacialsurgery-breadcrumbs .breadcrumb {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  /* Video listing (Saved Videos, Continue Watching, taxonomy, etc.) */
  main#content.main-content:has(.video-listing-page):not(
      :has(article.video-detail-page)
    )
    #block-oculofacialsurgery-breadcrumbs
    > .block-content
    > section
    > .container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  main#content.main-content:has(.video-listing-page):not(
      :has(article.video-detail-page)
    )
    #block-oculofacialsurgery-breadcrumbs
    nav {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 768px) {
  /* Controlled spacing for non-listing pages (matches Figma) */
  main#content.main-content:not(:has(.video-listing-page))
    #block-oculofacialsurgery-breadcrumbs
    nav {
    padding-left: 18px;
    padding-right: 16px;
  }
}

@media (max-width: 768px) {
  /* H1 fix for procedure pages */
  .video-listing-page h1 {
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 31.2px !important;
  }
}
@media (max-width: 1199.98px) {
  body.body-lock,
  body.menu-open {
    overflow: hidden !important;
    width: 100%;
  }

  /* Lock background HARD (prevents scroll) */
  body.menu-open {
    position: fixed;
    height: 100vh;
    height: 100dvh;
  }

  /* Full screen menu — always viewport-fixed when open (not inline below header) */
  #navbarNav.collapse.show,
  #navbarNav.collapse.open,
  #navbarNav.collapse.collapsing,
  .header-navigation.drawer-open #navbarNav,
  .header-navigation:has(#navbarNav.show) #navbarNav,
  .header-navigation:has(#navbarNav.open) #navbarNav {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    margin: 0 !important;
    transform: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    z-index: 99999;
    background: #fff;
    flex-basis: auto !important;
  }

  /* Hide closed-state bar chrome (drawer has matching logo + close row) */
  .header-navigation.drawer-open .header-width > .navbar-brand,
  .header-navigation.drawer-open .header-width > .d-xl-none,
  .header-navigation:has(#navbarNav.show) .header-width > .navbar-brand,
  .header-navigation:has(#navbarNav.show) .header-width > .d-xl-none,
  .header-navigation:has(#navbarNav.open) .header-width > .navbar-brand,
  .header-navigation:has(#navbarNav.open) .header-width > .d-xl-none,
  body.menu-open .header-navigation .header-width > .navbar-brand,
  body.body-lock .header-navigation .header-width > .navbar-brand,
  body.menu-open .header-navigation .header-width > .d-xl-none,
  body.body-lock .header-navigation .header-width > .d-xl-none {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Hide site footer while drawer is open (body class + :has fallback if JS lags) */
  body.menu-open section.navbar-wrapper,
  body.body-lock section.navbar-wrapper,
  body:has(#navbarNav.show) section.navbar-wrapper,
  body:has(#navbarNav.open) section.navbar-wrapper,
  body:has(.header-navigation.drawer-open) section.navbar-wrapper,
  html.drawer-open section.navbar-wrapper {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

@media (max-width: 1199.98px) {
  /* HARD LOCK background scroll */
  body.menu-open,
  body.menu-open.body-lock {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    touch-action: none !important;
  }

  .navbar:has(#navbarNav) #navbarNav.collapse.show,
  .navbar:has(#navbarNav) #navbarNav.collapse.open {
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }
}
/* SEARCH PAGE = mimic .procedures-filter */
.view-id-search_page.view-display-id-page_1 .filters-sidebar > form,
.view-id-search_page.view-display-id-page_2 .filters-sidebar > form {
  position: relative;
}

/* children toggle */
.view-id-search_page.view-display-id-page_1 .filters-sidebar > form .children,
.view-id-search_page.view-display-id-page_2 .filters-sidebar > form .children {
  display: none;
  padding-left: 25px;
}
.view-id-search_page.view-display-id-page_1
  .filters-sidebar
  > form
  .children.open,
.view-id-search_page.view-display-id-page_2
  .filters-sidebar
  > form
  .children.open {
  display: block;
}

/* details / accordion */
.view-id-search_page.view-display-id-page_1 .filters-sidebar > form details,
.view-id-search_page.view-display-id-page_2 .filters-sidebar > form details {
  border: none;
  margin-bottom: 2rem;
}
.view-id-search_page.view-display-id-page_1
  .filters-sidebar
  > form
  details
  summary,
.view-id-search_page.view-display-id-page_2
  .filters-sidebar
  > form
  details
  summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: #1c1c1e;
  font-size: 18px;
  margin-bottom: 1rem;
  padding: 0;
}
.view-id-search_page.view-display-id-page_1
  .filters-sidebar
  > form
  details
  summary::-webkit-details-marker,
.view-id-search_page.view-display-id-page_2
  .filters-sidebar
  > form
  details
  summary::-webkit-details-marker {
  display: none;
}
.view-id-search_page.view-display-id-page_1
  .filters-sidebar
  > form
  details[open]
  summary,
.view-id-search_page.view-display-id-page_2
  .filters-sidebar
  > form
  details[open]
  summary {
  margin-bottom: 1rem;
}

/* hide select-all toggle like allVideos */
.view-id-search_page.view-display-id-page_1 .filters-sidebar > form .bef-toggle,
.view-id-search_page.view-display-id-page_2
  .filters-sidebar
  > form
  .bef-toggle {
  display: none;
}

/* ⚠ KEEP actions visible on search (DO NOT hide like allVideos) */

/* checkbox rows */
.view-id-search_page.view-display-id-page_1
  .filters-sidebar
  > form
  .js-form-item,
.view-id-search_page.view-display-id-page_2
  .filters-sidebar
  > form
  .js-form-item {
  margin-bottom: 0.75rem;
  display: block !important;
  align-items: center;
}

/* Filter checkboxes: shared styles under “FILTERS SIDEBAR” (.procedures-filter input[type="checkbox"]). */

/* labels */
.view-id-search_page.view-display-id-page_1 .filters-sidebar > form label,
.view-id-search_page.view-display-id-page_2 .filters-sidebar > form label {
  color: #5f5f5f;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 0;
}
.view-id-search_page.view-display-id-page_1 .filters-sidebar > form label:hover,
.view-id-search_page.view-display-id-page_2
  .filters-sidebar
  > form
  label:hover {
  color: #1c1c1e;
  font-weight: 500;
}

/* list reset */
.view-id-search_page.view-display-id-page_1
  .filters-sidebar
  > form
  .bef-checkboxes
  ul,
.view-id-search_page.view-display-id-page_2
  .filters-sidebar
  > form
  .bef-checkboxes
  ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* nested */
.view-id-search_page.view-display-id-page_1
  .filters-sidebar
  > form
  .bef-checkboxes
  ul
  ul,
.view-id-search_page.view-display-id-page_2
  .filters-sidebar
  > form
  .bef-checkboxes
  ul
  ul {
  padding-left: 28px;
  margin-top: 0.5rem;
}

/* spacing */
.view-id-search_page.view-display-id-page_1
  .filters-sidebar
  > form
  .bef-checkboxes
  li,
.view-id-search_page.view-display-id-page_2
  .filters-sidebar
  > form
  .bef-checkboxes
  li {
  margin-bottom: 0.75rem;
}

/* Supported by logo height */
section.navbar-wrapper:has(.footer-supported-by)
  .footer-supported-by
  .d-flex
  img {
  height: 60px !important;
}

article.video-detail-page .video-metadata {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px;
  align-items: center;
}

article.video-detail-page .metadata-item,
article.video-detail-page .metadata-value,
article.video-detail-page .field-category-wrapper,
article.video-detail-page .field-procedure-wrapper,
article.video-detail-page .field-surgeon-wrapper {
  display: contents !important;
}

article.video-detail-page .video-metadata span {
  display: inline-flex;
  white-space: nowrap;
}
article.video-detail-page .video-detail-container.mx-5 {
  margin-left: auto !important;
  margin-right: auto !important;
}
article.video-detail-page .video-metadata .flag {
  position: relative;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  margin-top: 0;
  align-self: center;
}

/* Flag AJAX flash message: stack under Save/Saved, do not shift the button */
article.video-detail-page .video-metadata .flag .js-flag-message {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  display: block;
  width: max-content;
  max-width: 220px;
  margin: 0.35rem 0 0;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: #5f5f5f;
  text-align: right;
  white-space: normal;
}

/* Disable ONLY the "More" dropdown */
.navbar:has(.dropdown-toggle[href*="/more"]) .dropdown-toggle[href*="/more"] {
  pointer-events: none !important;
  cursor: default !important;
}
/* =============================================
   SEARCH BAR - CENTERED WITH ENTER BUTTON
   ============================================= */

/* Remove old conflicting rule */
.view-id-search-page .form-item-search-api-fulltext {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.view-id-search-page .form-item-search-api-fulltext input {
  width: 100%;
  max-width: unset;
  padding: unset;
  font-size: unset;
  border: none;
  border-radius: unset;
}

/* Outer wrapper */
.form-item-search-api-fulltext {
  display: flex !important;
  justify-content: center !important;
  margin: 1.5rem auto !important;
  max-width: 700px !important;
  width: 100% !important;
  padding: 0 1rem !important;
  box-sizing: border-box !important;
  order: 1;
}

/* Inner search bar container (pill / stadium shape) */
.search-input-inner {
  display: flex;
  align-items: center;
  border: 1.5px solid #b8d4f0;
  border-radius: 9999px;
  padding: 8px 8px 8px 16px;
  width: 100%;
  background: #fff;
  box-shadow: none;
  box-sizing: border-box;
}

/* Search icon (Bootstrap Icons — matches header bi-search) */
.search-icon {
  display: flex;
  align-items: center;
  margin-right: 10px;
  flex-shrink: 0;
  color: #6c757d;
  line-height: 1;
}

.search-icon .bi-search {
  font-size: 1.125rem;
}

/* Input field */
.search-input-inner input[name="search_api_fulltext"] {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  flex: 1;
  padding: 4px 0;
  font-size: 16px !important;
  background: none !important;
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-position: unset !important;
  min-width: 0;
  width: 100%;
}

/* Search button — brand primary blue (matches hero / login CTAs) */
.search-submit-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.search-submit-btn:hover {
  background: #1d4ed8;
}

.search-submit-btn:focus-visible {
  background: #1d4ed8;
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.search-clear-btn {
  background: none;
  color: #5f5f5f;
  border: none;
}

.search-clear-btn:hover {
  color: #2563eb;
}

/* Hide original Apply/Reset buttons - search page only */
.view-id-search_page .views-exposed-form .form-actions,
.view-id-search_page [id^="edit-actions"] {
  display: none !important;
}

/* Override the global form-actions flex/order rules for search page */
.view-id-search_page .views-exposed-form {
  display: block;
}

.view-id-search_page .form-item-search-api-fulltext {
  order: unset;
}

/* =============================================
   SEARCH BAR REGION - hide checkboxes
   ============================================= */
.search-and-content-wrapper > .search-bar-region {
  margin-bottom: 1.5rem;
}

/* "Search results for …" — only rendered when a query is present (see page-1 twig). */
.view-id-search_page.view-display-id-page_1 .search-results-intro {
  margin: 0 0 0.75rem;
  padding: 0;
  font-size: 1.125rem;
  font-weight: 590;
  line-height: 1.35;
  color: #000;
}

.view-id-search_page.view-display-id-page_1 .search-results-intro:empty {
  display: none;
  margin: 0;
}

.search-bar-region .fieldgroup,
.search-bar-region .form-actions,
.search-bar-region [id^="edit-actions"] {
  display: none !important;
}

.search-bar-region .form-item-search-api-fulltext {
  margin: 0 auto !important;
}

/* =============================================
   SIDEBAR REGION - hide search input only
   ============================================= */
.filters-sidebar .form-item-search-api-fulltext,
.filters-sidebar .search-input-inner,
.filters-sidebar .form-actions,
.filters-sidebar [id^="edit-actions"] {
  display: none !important;
}

/*
 * Search page (page_1) prints the exposed form twice: top hero bar + sidebar.
 * The duplicated fulltext field must not reserve flex/margin space in the sidebar
 * (taxonomy listing pages only render exposed once — no duplicate markup).
 */
.view-id-search_page.view-display-id-page_1
  .filters-sidebar
  .js-form-item.form-item-search-api-fulltext.form-type-search-api-autocomplete {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* =============================================
   RESPONSIVE - Listing layout (sidebar collapsed)
   ============================================= */
@media (max-width: 991.98px) {
  .form-item-search-api-fulltext {
    max-width: 100% !important;
    padding: 0 0.75rem !important;
    margin: 1rem auto !important;
  }

  .search-input-inner {
    padding: 7px 7px 7px 14px;
  }

  .search-input-inner input[name="search_api_fulltext"] {
    font-size: 14px;
  }

  .search-submit-btn {
    padding: 7px 14px;
    font-size: 13px;
  }

  .video-listing-page .content-row {
    flex-direction: column;
  }

  .video-listing-page .video-content {
    width: 100% !important;
    max-width: 100%;
  }
}

/* =============================================
   RESPONSIVE - Mobile 480px
   ============================================= */
@media (max-width: 480px) {
  .form-item-search-api-fulltext {
    padding: 0 0.5rem !important;
    margin: 0.75rem auto !important;
  }

  .search-input-inner {
    padding: 6px 6px 6px 10px;
  }

  .search-icon {
    margin-right: 8px;
  }

  .search-icon .bi-search {
    font-size: 1rem;
  }

  .search-input-inner input[name="search_api_fulltext"] {
    font-size: 13px;
  }

  .search-submit-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* Search page: full-width search bar when sidebar is collapsed */
@media (max-width: 991.98px) {
  .view-id-search_page.view-display-id-page_1
    .search-and-content-wrapper
    > .search-bar-region
    .form-item-search-api-fulltext {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
  }

  .view-id-search_page.view-display-id-page_1
    .search-and-content-wrapper
    > .search-bar-region
    .search-input-inner {
    width: 100%;
    box-sizing: border-box;
  }
}

/* Target ONLY user dropdown */
.header-navigation .nav-item.user-menu .user-dropdown {
  left: auto !important;
  right: 0 !important;
  /* Match .header-navigation .dropdown-menu — full rounding, not asymmetric */
  border-radius: 14px !important;
}

.video-listing-page
  .procedures-filter:has(fieldset[id^="edit-surgeons"])
  .desktop-surgeon-search {
  box-sizing: border-box;
  width: 100%;
  max-width: 240px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface, #ffffff);
}

/* ONLY surgeon filter rows when hidden */
.procedures-filter:has(fieldset[id^="edit-surgeons"])
  .js-form-item[style*="display: none"] {
  display: none !important;
}
/* ONLY listing cards — keep in sync with .video-listing-page .video-authors* above */
.video-listing-page .video-grid .video-authors {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 6px;
  margin: 0;
  flex-shrink: 0;
  min-width: 0;
  overflow: hidden;
}

.video-listing-page .video-grid .video-authors__names {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.video-listing-page .video-grid .video-authors__text {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-listing-page
  .video-grid
  .video-authors__text
  :is(a, span, .surgeon-pill) {
  display: inline !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: inherit;
}

/* Hide "Procedure" "Surgeons" legend/title inside mobile filter modal */
.mobile-filter-modal .fieldset-legend {
  display: none;
}

/* Hide Procedure filter / pill when no procedure options exist */
.video-listing-page--no-procedure-filter .mobile-filter-tabs .procedure-btn,
.video-listing-page--no-procedure-filter
  .mobile-filter-tabs:not(:has(.surgeon-btn)) {
  display: none !important;
}

/* Surgeon profile with no procedure filters at all → full-width video grid */
.video-listing-page--no-sidebar-filters .content-row > .video-content {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}

@media (min-width: 992px) {
  .video-listing-page--no-sidebar-filters .content-row > .video-content {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.procedures-filter .procedure-filter--empty,
.procedures-filter
  fieldset[data-drupal-selector="edit-tid"]:not(:has(input[type="checkbox"])),
.procedures-filter
  fieldset[data-drupal-selector="edit-procedure"]:not(
    :has(input[type="checkbox"])
  ),
.procedures-filter #edit-procedure--wrapper:not(:has(input[type="checkbox"])),
.procedures-filter #edit-tid--wrapper:not(:has(input[type="checkbox"])) {
  display: none !important;
}

/* User register only: :has(#user-register-form) is unique; no extra Twig class. */
body:has(#user-register-form) .min-vh-100.d-flex {
  box-sizing: border-box;
  padding-top: clamp(1.5rem, 6vh, 4rem);
  padding-bottom: clamp(1.5rem, 6vh, 4rem);
}

/* Allow JS filtering for BOTH surgeon + surgeons */
/* FIX: support both surgeon and surgeons */
.procedures-filter:has(fieldset[id^="edit-surgeons"])
  .js-form-item[style*="display: none"],
.procedures-filter:has(fieldset[id^="edit-surgeon"])
  .js-form-item[style*="display: none"] {
  display: none !important;
}
/* Search view: facet id is `surgeon` → fieldset#edit-surgeon-* (not edit-surgeons-*), so the
   rule above does not match; mirror the same input look without changing global/procedure CSS. */
.view-id-search_page
  .video-listing-page
  .procedures-filter:has(fieldset[id^="edit-surgeon"])
  .desktop-surgeon-search {
  box-sizing: border-box;
  width: 100%;
  max-width: 240px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface, #ffffff);
}
.doctor-profile-section .row.align-items-center {
  align-items: flex-start !important;
}

/* --------------------------------------------------------------------------
   Account profile (/user/[id]) — typography + alignment (scoped)
   SAFE: Only when .user-profile-page-container is present in main.
   -------------------------------------------------------------------------- */

body.path-user main.main-content:has(.user-profile-page-container) {
  background-color: #f8f9fc;
}

main.main-content .user-profile-page-container {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #1a1d21;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main.main-content .user-profile-page-container .user-profile-page__page-title {
  font-size: clamp(1.75rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: #111827;
}

main.main-content .user-profile-page-container .user-profile-page__page-lead {
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #6b7280;
  line-height: 1.5;
}

main.main-content .user-profile-page-container .user-profile-page__page-header,
main.main-content .user-profile-page-container .user-profile-page__page-title,
main.main-content .user-profile-page-container .user-profile-page__page-lead {
  cursor: default;
}

main.main-content
  .user-profile-page-container
  .user-profile-page__logout-wrap
  a {
  cursor: pointer;
}

main.main-content .user-profile-page-container .user-profile-page__card {
  border-radius: 10px;
  border: 1px solid #e8eaef;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: none !important;
  overflow: hidden;
  background-color: #fff;
}

main.main-content .user-profile-page-container .user-profile-page__card:hover {
  transform: none !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

main.main-content
  .user-profile-page-container
  .user-profile-page__card
  .card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

/* Arrow cursor on static content; I-beam only feels wrong here. Buttons/links = pointer. */
main.main-content
  .user-profile-page-container
  .user-profile-page__card
  *:not(a):not(button) {
  cursor: default;
}

main.main-content .user-profile-page-container .user-profile-page__card a,
main.main-content .user-profile-page-container .user-profile-page__card button {
  cursor: pointer;
}

/* Header strip: slightly darker than page (#f8f9fc) and body (white), like the mockup. */
main.main-content .user-profile-page-container .user-profile-page__card-head {
  margin: -1.25rem -1.5rem 0;
  padding: 1rem 1.5rem 1rem;
  background-color: #eef1f5;
  border-bottom: 1px solid #e2e6ec;
  border-radius: 9px 9px 0 0;
}

main.main-content
  .user-profile-page-container
  .user-profile-page__card-head--solo {
  margin-bottom: 0;
}

main.main-content .user-profile-page-container .user-profile-page__card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #111827;
}

main.main-content .user-profile-page-container .user-profile-page__data-rows {
  margin-top: 0.25rem;
}

main.main-content .user-profile-page-container .user-profile-page__data-row {
  min-height: 3.25rem;
}

main.main-content .user-profile-page-container .user-profile-page__label-col {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280 !important;
  padding-top: 0.125rem;
}

/* Tight label column: values start close to “Name / Email / Password”. */
@media (min-width: 768px) {
  main.main-content .user-profile-page-container .user-profile-page__label-col {
    width: 4.875rem;
    flex: 0 0 4.875rem;
    max-width: 4.875rem;
  }

  main.main-content .user-profile-page-container .user-profile-page__value-col {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 0.125rem !important;
  }
}

main.main-content .user-profile-page-container .user-profile-page__value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1f2937;
  word-break: break-word;
}

main.main-content .user-profile-page-container .user-profile-page__chevron {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1;
  color: #c5cad3 !important;
  flex-shrink: 0;
}

main.main-content .user-profile-page-container .user-profile-page__dots {
  font-size: 1.125rem;
  letter-spacing: 0.2em;
  color: #111827;
  line-height: 1;
}

main.main-content
  .user-profile-page-container
  .user-profile-page__value-col--password {
  column-gap: 0.75rem;
  row-gap: 0.5rem;
}

main.main-content .user-profile-page-container .border-top {
  border-color: #e9ecef !important;
}

main.main-content .user-profile-page-container .card-body img {
  display: block;
  max-width: 64px;
  height: auto;
  border-radius: 50%;
}

main.main-content .user-profile-page-container .btn-primary {
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

main.main-content .user-profile-page-container .user-profile-page__logout-btn {
  min-width: unset;
  padding: 0.375rem 1.125rem;
  font-size: 0.8125rem;
  border-radius: 8px;
}

@media (max-width: 767.98px) {
  main.main-content .user-profile-page-container .user-profile-page__label-col {
    margin-bottom: 0.35rem;
  }

  main.main-content
    .user-profile-page-container
    .user-profile-page__data-row--password
    .user-profile-page__dots {
    width: 100%;
    text-align: left;
  }

  main.main-content
    .user-profile-page-container
    .user-profile-page__value-col--password {
    row-gap: 0.625rem;
  }

  main.main-content
    .user-profile-page-container
    .user-profile-page__data-row--password
    .btn {
    width: auto;
    max-width: 11.5rem;
    flex: 0 0 auto;
    align-self: flex-start;
    margin-left: 0;
    margin-right: auto;
    white-space: nowrap;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
/* User menu button */
#dropdownUserDesktop.user-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 6px 14px; /* slightly more left/right space */
  border-radius: 999px;
  background: #2f80ed;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

/* Initials (RP) */
#dropdownUserDesktop .user-initials {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;

  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2); /* subtle inner circle */

  font-size: 13px;
  font-weight: 600;
}

#dropdownUserDesktop .user-arrow {
  margin-left: 4px;
  opacity: 0.9;
}

@media (max-width: 700px) {
  #navbarNav.collapse.show,
  #navbarNav.collapse.open {
    transform: none !important;
  }
}

/* Hide Drupal contextual pencil only for the header-right block that contains the user dropdown */
.contextual-region.block:has(#dropdownUserDesktop) > .contextual {
  display: none !important;
}

/* ── Autocomplete dropdown container ── */
/* Do not set width here with !important — fixAutocompleteWidth (video-filters.js)
   sets width/left inline to match .search-input-inner (icon + field + Search). */
ul.ui-autocomplete.search-api-autocomplete-search {
  max-width: 100vw !important;
  box-sizing: border-box;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  background: #fff;
  padding: 8px 0;
  max-height: 400px;
  overflow-y: auto;
  z-index: 9999;
}

/* ============================================
   MENU ITEMS
   ============================================ */
ul.ui-autocomplete.search-api-autocomplete-search .ui-menu-item {
  padding: 0;
  border-bottom: 1px solid #f0f0f0;
}
ul.ui-autocomplete.search-api-autocomplete-search .ui-menu-item:last-child {
  border-bottom: none;
}

.ui-autocomplete .ui-menu-item-wrapper {
  display: block !important;
  padding: 0 !important;
  cursor: pointer;
}
/* Remove jQuery UI default hover styles */
ul.ui-autocomplete.search-api-autocomplete-search
  .ui-menu-item
  .ui-state-active,
ul.ui-autocomplete.search-api-autocomplete-search .ui-menu-item:hover {
  background: #f5f5f5;
  border: none;
  margin: 0;
  cursor: pointer;
}
.autocomplete-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}
.autocomplete-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 45px; /* 16:9 ratio */
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

.autocomplete-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.autocomplete-thumb--placeholder {
  width: 100%;
  height: 100%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Play icon placeholder via CSS */
.autocomplete-thumb--icon {
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #aaa;
  margin-left: 3px;
}
.autocomplete-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0; /* allows text truncation */
}

.autocomplete-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-category {
  font-size: 12px;
  color: #666;
}

.autocomplete-surgeon {
  font-size: 12px;
  color: #999;
}

/* ── "View all results" footer link ── */
.ui-autocomplete .search-api-autocomplete-suggestion-all {
  display: block;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #1a73e8;
  text-align: center;
  border-top: 1px solid #f0f0f0;
  text-decoration: none;
}
.ui-autocomplete .search-api-autocomplete-suggestion-all:hover {
  background: #f0f7ff;
}
@media (max-width: 768px) {
  /* Width/left: video-filters.js alignSearchApiAutocompleteToInnerBar — match search bar */
  ul.ui-autocomplete.search-api-autocomplete-search {
    border-radius: 12px;
    max-height: 60vh; /* don't take full screen on mobile */
  }

  .autocomplete-thumb {
    width: 60px;
    height: 34px; /* maintain 16:9 on mobile */
  }

  .autocomplete-title {
    font-size: 13px;
  }

  .autocomplete-category,
  .autocomplete-surgeon {
    font-size: 11px;
  }
}
@media (max-width: 480px) {
  .autocomplete-suggestion-item {
    padding: 8px 12px;
    gap: 8px;
  }

  .autocomplete-thumb {
    width: 50px;
    height: 28px;
  }
}
/* Fix iOS Safari zoom on search input */
body.path-search .search-input-inner input[name="search_api_fulltext"] {
  font-size: 16px;
}
.path-search .search-input-inner input[name="search_api_fulltext"] {
  font-size: 16px !important;
  line-height: 1.2;
}
/* Align breadcrumb with video listing page title */
main#content.main-content:has(.video-listing-page)
  #block-oculofacialsurgery-breadcrumbs
  > .block-content
  > section {
  margin-left: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

main#content.main-content:has(.video-listing-page)
  #block-oculofacialsurgery-breadcrumbs
  ol.breadcrumb {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Desktop: match Bootstrap container / mx-5 listing inset */
@media (min-width: 992px) {
  main#content.main-content:has(.video-listing-page)
    #block-oculofacialsurgery-breadcrumbs
    > .block-content
    > section
    > .container {
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5) !important;
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5) !important;
  }

  main#content.main-content:has(.video-listing-page.container.mx-5):not(
      :has(article.video-detail-page)
    )
    #block-oculofacialsurgery-breadcrumbs
    > .block-content
    > section
    > .container {
    margin-left: 3rem !important;
    margin-right: 3rem !important;
    padding-left: 3rem !important;
    padding-right: 3rem !important;
  }
}

/* Mobile/tablet: must match .video-listing-page (16px) — keep after desktop rules */
@media (max-width: 991.98px) {
  main#content.main-content:has(.video-listing-page):not(
      :has(article.video-detail-page)
    )
    #block-oculofacialsurgery-breadcrumbs
    > .block-content
    > section
    > .container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* Video detail page: shared max-width + horizontal inset (title, breadcrumb, related videos) */
main#content.main-content:has(article.video-detail-page) {
  --video-detail-max-width: 1200px;
  --video-detail-padding-x: 3rem;
}

@media (max-width: 991.98px) {
  main#content.main-content:has(article.video-detail-page) {
    --video-detail-padding-x: 16px;
  }
}

main#content.main-content:has(article.video-detail-page)
  #block-oculofacialsurgery-breadcrumbs
  > .block-content
  > section {
  margin-left: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

main#content.main-content:has(article.video-detail-page)
  #block-oculofacialsurgery-breadcrumbs
  > .block-content
  > section
  > .container,
article.video-detail-page .video-detail-container.container,
main#content.main-content:has(article.video-detail-page)
  .video-listing-page--related-videos.container {
  box-sizing: border-box;
  max-width: var(--video-detail-max-width) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--video-detail-padding-x) !important;
  padding-right: var(--video-detail-padding-x) !important;
}

main#content.main-content:has(article.video-detail-page)
  #block-oculofacialsurgery-breadcrumbs
  ol.breadcrumb {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-bottom: 0 !important;
}
/* .hero-section .eye img {
  width: 600px;
  height: auto;
} */

/* 401 / 403 / 404 and maintenance: align message with site layout */
.system-error-page {
  padding-top: 0.5rem;
  padding-bottom: 3rem;
}

.system-error-page--maintenance {
  display: flex;
  align-items: center;
  min-height: 70vh;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.system-error-page__brand {
  margin-bottom: 1.5rem;
}

.system-error-page__heading {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text, #1c1c1e);
}

.system-error-page__message {
  margin: 0 0 1.5rem;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text, #1c1c1e);
}

.system-error-page__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.system-error-page__home-btn {
  background: #2563eb;
  border: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-control, 12px);
  padding: 0.65rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.system-error-page__home-btn:hover,
.system-error-page__home-btn:focus {
  background: #1d4ed8;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: #fff;
}

.system-error-page__secondary-btn {
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-control, 12px);
  padding: 0.65rem 1.75rem;
  border-color: #cbd5e1;
  color: var(--color-text, #1c1c1e);
}

.system-error-page__secondary-btn:hover,
.system-error-page__secondary-btn:focus {
  background: #f8fafc;
  border-color: #94a3b8;
  color: var(--color-text, #1c1c1e);
}

body.maintenance-page {
  min-height: 100vh;
}

body.maintenance-page .system-error-page--maintenance > .container {
  max-width: 720px;
}

main#content.main-content:has(.system-error-page)
  #block-oculofacialsurgery-breadcrumbs
  > .block-content
  > section
  > .container {
  max-width: 1320px;
}

@media (max-width: 991.98px) {
  main#content.main-content:has(.system-error-page)
    #block-oculofacialsurgery-breadcrumbs
    > .block-content
    > section
    > .container,
  main#content.main-content:has(.system-error-page)
    .system-error-page
    > .container,
  body.maintenance-page .system-error-page--maintenance > .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
