/* ============================================================
   DR. GANESH V L — PREMIUM NEUROSURGEON WEBSITE
   Custom Stylesheet v2.0 — With Slider Hero & Gallery
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
  /* Primary Palette */
  --color-primary: #0A2558;
  /* Deep Navy Blue */
  --color-primary-light: #1a3a7a;
  --color-accent: #0E8A7D;
  /* Premium Teal */
  --color-accent-light: #13a897;
  --color-accent-pale: #e8f6f5;

  /* Neutrals */
  --color-white: #ffffff;
  --color-bg: #f8fafc;
  --color-bg-alt: #f0f4f8;
  --color-surface: #ffffff;
  --color-border: #e2e8f0;

  /* Text */
  --color-text-dark: #0f172a;
  --color-text-base: #334155;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #0A2558 0%, #1a3a7a 60%, #0E8A7D 100%);
  --grad-hero: linear-gradient(135deg, #071a3e 0%, #0A2558 50%, #0c5c55 100%);
  --grad-accent: linear-gradient(135deg, #0E8A7D 0%, #13a897 100%);
  --grad-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  --grad-subtle: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);

  /* Fallback when JS has not set --nav-offset yet (measured #mainNavbar height) */
  --navbar-fixed-height: clamp(4.65rem, 11vw, 6.35rem);
  /* Hero slides shorter than full viewport so stats/counters show without scrolling */
  --hero-banner-height: clamp(425px, 58vh, 710px);

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(10, 37, 88, 0.06);
  --shadow-sm: 0 2px 8px rgba(10, 37, 88, 0.08);
  --shadow-md: 0 4px 20px rgba(10, 37, 88, 0.10);
  --shadow-lg: 0 8px 40px rgba(10, 37, 88, 0.14);
  --shadow-xl: 0 20px 60px rgba(10, 37, 88, 0.18);
  --shadow-accent: 0 8px 30px rgba(14, 138, 125, 0.25);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Typography */
  --font-heading: 'Manrope', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing scale — vertical rhythm (sections, CTA bands, tight blocks) */
  --section-py: 100px;
  --section-py-sm: 60px;
  --cta-band-py: var(--section-py);

  /* Transitions */
  --transition-base: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 1199.98px) {
  :root {
    --section-py: 80px;
    --section-py-sm: 50px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --section-py: 60px;
    --section-py-sm: 40px;
  }
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-base);
  background-color: var(--color-white);
  /* Navy band behind fixed nav + padding zone so there is no white gap above the hero */
  background-image: linear-gradient(
    180deg,
    var(--color-primary) 0,
    var(--color-primary) calc(var(--nav-offset, var(--navbar-fixed-height)) + env(safe-area-inset-top, 0px) + 3px),
    var(--color-white) calc(var(--nav-offset, var(--navbar-fixed-height)) + env(safe-area-inset-top, 0px) + 3px)
  );
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-wrap: break-word;
  /* Main site nav is fixed-top — in-flow content starts below it (banner is its own block, not under the header) */
  padding-top: calc(var(--nav-offset, var(--navbar-fixed-height)) + env(safe-area-inset-top, 0px));
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  transition: var(--transition-base);
}

img {
  max-width: 100%;
  height: auto;
}

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

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar.navbar-main.fixed-top {
  border: 0 !important;
  box-shadow: none !important;
}

.navbar-main {
  /* Solid bar — no translucency or backdrop blur (avoids hairlines / banner bleeding through) */
  background: var(--color-primary) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  outline: none;
  padding: 0.75rem 0;
  transition: var(--transition-base);
  z-index: 1050;
}

/* Anchor for absolutely positioned mobile menu panel */
.navbar-main > .container {
  position: relative;
}

.navbar-main.scrolled {
  background: var(--color-primary-light) !important;
  box-shadow: none;
  padding: 0.5rem 0;
}

.navbar-main .navbar-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
}

/* Composite logo (icon + name + tagline in one image) */
.navbar-brand-logo {
  height: clamp(48px, 5.5vw, 60px);
  width: auto;
  max-width: min(420px, 90vw);
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.navbar-main.scrolled .navbar-brand-logo {
  height: clamp(44px, 5vw, 54px);
  max-width: min(380px, 88vw);
}

.navbar-main .nav-link {
  color: rgba(255, 255, 255, 0.82) !important;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  letter-spacing: 0.01em;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: #ffffff !important;
  background: rgba(14, 138, 125, 0.18);
}

.navbar-main .nav-link.active {
  color: var(--color-accent-light) !important;
}

.btn-nav-cta {
  background: var(--grad-accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: var(--radius-full) !important;
  border: none !important;
  box-shadow: var(--shadow-accent);
  letter-spacing: 0.02em;
  transition: var(--transition-base) !important;
}

.btn-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 35px rgba(14, 138, 125, 0.35) !important;
}

.navbar-toggler {
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.35rem 0.6rem !important;
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* Matches Bootstrap navbar-expand-xl — collapsed menu layout below 1200px */
@media (max-width: 1199.98px) {
  .navbar-main .navbar-brand {
    max-width: calc(100% - 4.5rem);
    margin-right: 0;
  }

  .navbar-brand-logo {
    height: clamp(44px, 12vw, 52px);
    max-width: min(360px, 88vw);
  }

  .navbar-main.scrolled .navbar-brand-logo {
    height: clamp(40px, 11vw, 48px);
    max-width: min(320px, 86vw);
  }

  /* Overlay menu: does not grow navbar height, so page content is not pushed down */
  .navbar-main .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0;
    padding: 0.85rem 0.75rem 1.15rem;
    background: var(--color-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
    z-index: 1020;
    max-height: min(calc(100dvh - 3.5rem), 75vh);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .navbar-main .navbar-nav {
    text-align: center;
    gap: 0.25rem !important;
  }

  .navbar-main .nav-link {
    padding: 0.55rem 0.75rem !important;
  }

  .btn-nav-cta {
    width: 100%;
    justify-content: center !important;
    margin-top: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .navbar-main .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Full nav is visible from 1200px (navbar-expand-xl). Between ~1200–1400px the bar can feel tight — compact spacing without hamburger. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navbar-main .navbar-nav {
    gap: 0 !important;
  }

  .navbar-main .nav-link {
    padding: 0.45rem 0.5rem !important;
    font-size: 0.8125rem;
  }

  .navbar-main .btn-nav-cta {
    padding: 0.42rem 0.95rem !important;
    font-size: 0.78rem !important;
  }

  .navbar-main .navbar-brand-logo {
    max-width: min(280px, 36vw);
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-custom {
  background: var(--grad-accent);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  border: none;
  box-shadow: var(--shadow-accent);
  letter-spacing: 0.02em;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 45px rgba(14, 138, 125, 0.38);
  color: #ffffff;
}

.btn-secondary-custom {
  background: transparent;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-secondary-custom:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-accent {
  background: transparent;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-accent);
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-outline-accent:hover {
  background: var(--color-accent);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

.btn-dark-custom {
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  border: none;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-dark-custom:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: #ffffff;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background: var(--grad-hero);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 60px;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 20% 50%, #0E8A7D 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, #1a3a7a 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 138, 125, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 138, 125, 0.1) 0%, transparent 70%);
  bottom: -50px;
  left: 10%;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 138, 125, 0.18);
  border: 1px solid rgba(14, 138, 125, 0.35);
  color: var(--color-accent-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-heading .accent-word {
  color: var(--color-accent-light);
  position: relative;
}

.hero-subheading {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 2.25rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-trust-bar {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.trust-badge i {
  color: var(--color-accent-light);
  font-size: 0.85rem;
}

.hero-image-wrap {
  position: relative;
  text-align: center;
}

.hero-doctor-img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-xl);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
  object-fit: cover;
}

.hero-img-glow {
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(14, 138, 125, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  filter: blur(30px);
}

.hero-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 5;
  color: white;
  min-width: 160px;
}

.hero-float-card .float-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.hero-float-card .float-label {
  font-size: 0.65rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-float-card .float-value {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-float-card-1 {
  top: 12%;
  left: -5%;
  animation: float-card 4s ease-in-out infinite;
}

.hero-float-card-2 {
  bottom: 20%;
  right: -2%;
  animation: float-card 4s ease-in-out infinite 2s;
}

@keyframes float-card {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Trust Stats below hero */
.hero-stats-bar {
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.75rem 0;
}

.hero-stat-item {
  text-align: center;
  padding: 0.5rem 1rem;
}

.hero-stat-item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-accent-light);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  margin-top: 0.3rem;
}

/* ============================================================
   HERO SLIDER SECTION
   ============================================================ */
.hero-slider-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-primary);
}

/* Banner height — capped so slider stats strip fits on first screen */
#heroSlider .carousel-inner {
  min-height: var(--hero-banner-height);
}

#heroSlider .carousel-item {
  min-height: var(--hero-banner-height);
}

/* Slide = full banner region; copy is vertically centered in this box */
.hero-slide {
  position: relative;
  min-height: var(--hero-banner-height);
  height: var(--hero-banner-height);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-slide-overlay-1 {
  background: linear-gradient(105deg, rgba(7, 24, 60, 0.92) 0%, rgba(10, 37, 88, 0.80) 50%, rgba(14, 138, 125, 0.25) 100%);
}

.hero-slide-overlay-2 {
  background: linear-gradient(105deg, rgba(7, 24, 60, 0.88) 0%, rgba(6, 18, 48, 0.82) 55%, rgba(12, 90, 84, 0.35) 100%);
}

.hero-slide-overlay-3 {
  background: linear-gradient(105deg, rgba(4, 14, 40, 0.92) 0%, rgba(8, 30, 70, 0.85) 50%, rgba(14, 110, 100, 0.30) 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: clamp(1.25rem, 4vh, 2.5rem) 0;
  box-sizing: border-box;
}

.hero-slide .hero-cta-group {
  margin-bottom: 0;
}

.hero-slide .hero-heading {
  margin-top: 0;
}

/* Slide badge / eyebrow label */
.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 138, 125, 0.18);
  border: 1px solid rgba(14, 138, 125, 0.4);
  color: var(--color-accent-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

/* Slider Controls — sit above .hero-slide-content (z-index:2) so prev/next receive clicks */
#heroSlider .carousel-control-prev,
#heroSlider .carousel-control-next {
  z-index: 15;
  width: 52px;
  height: 52px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  opacity: 1;
  transition: var(--transition-base);
}

#heroSlider .carousel-control-prev {
  left: 2rem;
}

#heroSlider .carousel-control-next {
  right: 2rem;
}

#heroSlider .carousel-control-prev:hover,
#heroSlider .carousel-control-next:hover {
  background: rgba(14, 138, 125, 0.4);
  border-color: var(--color-accent);
}

#heroSlider .carousel-control-prev-icon,
#heroSlider .carousel-control-next-icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 991px) {
  :root {
    --hero-banner-height: clamp(385px, 52vh, 610px);
  }
}

/* Hero (<lg): stack slide + dedicated nav row so prev/next never overlap CTAs */
@media (max-width: 991.98px) {
  #heroSlider.carousel {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  #heroSlider .carousel-inner {
    flex: 1 1 auto;
    min-height: var(--hero-banner-height);
  }

  .hero-slide-content {
    padding-bottom: 1.5rem;
  }

  .hero-slide--lead .hero-slide-content {
    align-items: flex-start;
    padding-top: clamp(1.35rem, 4vh, 2.5rem);
    padding-bottom: 1.75rem;
  }

  .hero-slide--lead .hero-slide-content .container {
    width: 100%;
  }

  .hero-mobile-nav {
    flex: 0 0 auto;
    gap: 1rem;
    padding: 0.65rem 1rem 0.9rem;
    background: linear-gradient(180deg, transparent 0%, rgba(7, 24, 60, 0.82) 45%, rgba(7, 24, 60, 0.95) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 15;
  }

  .hero-mobile-nav-btn {
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: var(--transition-base);
  }

  .hero-mobile-nav-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
  }

  .hero-mobile-nav-btn--next {
    background: var(--color-accent);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .hero-mobile-nav-btn--next:hover {
    background: #0b756a;
    border-color: transparent;
    color: #fff;
  }

  .hero-mobile-nav-btn:focus-visible {
    outline: 2px solid var(--color-accent-light);
    outline-offset: 3px;
  }
}

@media (max-width: 575.98px) {
  .hero-slide .hero-heading {
    margin-bottom: 1rem;
    font-size: clamp(1.55rem, 6.2vw, 2.25rem);
    line-height: 1.2;
  }

  .hero-slide .hero-subheading {
    margin-bottom: 1.15rem;
    font-size: clamp(0.9rem, 3.5vw, 1rem);
  }

  .hero-slide .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .hero-slide .hero-cta-group .btn-primary-custom,
  .hero-slide .hero-cta-group .btn-secondary-custom {
    width: 100%;
    justify-content: center;
  }

  .stats-strip-item {
    padding: 1.35rem 0.45rem;
  }

  .stats-strip-number {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .stats-strip-label {
    font-size: 0.72rem;
  }
}

/* Icon badges in slider bottom stats */
.slide-icon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.1rem;
  backdrop-filter: blur(10px);
  transition: var(--transition-base);
}

.slide-icon-badge:hover {
  background: rgba(14, 138, 125, 0.2);
  border-color: rgba(14, 138, 125, 0.4);
}

.slide-icon-badge .sib-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: white;
  flex-shrink: 0;
}

.slide-icon-badge .sib-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.slide-icon-badge .sib-value {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

/* Stats strip below slider — light band so counts/icons read clearly under the hero */
.slider-stats-strip {
  background: linear-gradient(180deg, var(--color-accent-pale) 0%, var(--color-bg) 55%, #eef6f4 100%);
  border-top: 1px solid rgba(14, 138, 125, 0.12);
  position: relative;
  overflow: hidden;
  padding: 0;
}

.slider-stats-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230e8a7d' fill-opacity='1' fill-rule='evenodd'%3E%3Cpath d='M20 20.5V18H0v5h5v5H0v5h20v-5h15v5h5V0h-5v5H20V0h-5v5H5V0H0v20h5zM20 5h15v5H20V5zm0 10h15v-5H20v5zm0 10H5v-5h15v5zm0 5H5v-5h15v5zm5-5h15v5H25v-5zm0-10h15v5H25v-5z'/%3E%3C/g%3E%3C/svg%3E");
}

.stats-strip-item {
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

.stats-strip-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(10, 37, 88, 0.08);
}

.stats-strip-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stats-strip-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Stat strip icons (Bootstrap Icons) — larger than body text for balance with numbers */
.stats-strip-icon {
  font-size: 2.55rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--color-accent);
  opacity: 0.92;
}

.stats-strip-icon i {
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 575px) {
  .stats-strip-icon {
    font-size: 2.1rem;
  }
}

@media (max-width: 575px) {
  .stats-strip-item {
    padding: 1.5rem 0.5rem;
  }

  .stats-strip-number {
    font-size: 1.8rem;
  }

  .stats-strip-item:not(:last-child)::after {
    display: none;
  }
}

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

/* Gallery page: fixed three columns (three tiles per row) */
.gallery-grid.gallery-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 991px) {
  .gallery-grid.gallery-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .gallery-grid.gallery-grid--3col {
    grid-template-columns: 1fr;
  }
}

/* Homepage gallery preview — uniform grid */
.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

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

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

a.gallery-item--link {
  text-decoration: none;
  color: inherit;
}

a.gallery-item--link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(5, 18, 48, 0.94) 0%, rgba(10, 37, 88, 0.82) 38%, rgba(10, 37, 88, 0.35) 62%, transparent 100%);
  opacity: 0;
  transition: var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.gallery-overlay-text {
  color: #ffffff;
  position: relative;
  z-index: 1;
}

/* Override global h5 colour — headings must stay light on the dark overlay */
.gallery-overlay-text h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.gallery-overlay-text p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.gallery-zoom-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  opacity: 0;
  transition: var(--transition-base);
  backdrop-filter: blur(8px);
}

.gallery-item:hover .gallery-zoom-icon {
  opacity: 1;
}

.home-gallery-grid .gallery-zoom-icon {
  opacity: 0.85;
}

/* Gallery placeholder fallback */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.82rem;
}

.gallery-cat-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.gallery-cat-btn {
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-base);
}

.gallery-cat-btn:hover,
.gallery-cat-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

/* Lightbox Modal */
#galleryLightbox .modal-dialog {
  max-width: 900px;
}

#galleryLightbox .modal-content {
  background: #000;
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

#galleryLightbox img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

#galleryLightbox .modal-header {
  background: rgba(0, 0, 0, 0.8);
  border: none;
  padding: 0.75rem 1.25rem;
}

#galleryLightbox .modal-title {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
}

#galleryLightbox .btn-close {
  filter: invert(1);
}

/* Featured gallery (big + small) */
.gallery-featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 240px);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.gallery-featured-grid .gallery-item:first-child {
  grid-row: 1 / 3;
}

@media (max-width: 767px) {
  .gallery-featured-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-featured-grid .gallery-item:first-child {
    grid-row: auto;
    aspect-ratio: 16/9;
  }

  .gallery-grid:not(.gallery-grid--3col) {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
.section-py {
  padding: var(--section-py) 0;
}

.section-py-sm {
  padding: var(--section-py-sm) 0;
}

/* Rare: remove one edge when two sections should read as one block (e.g. intro → grid) */
.section-flush-top {
  padding-top: 0 !important;
}

.section-flush-bottom {
  padding-bottom: 0 !important;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--color-text-dark);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.section-title-white {
  color: #ffffff;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 600px;
}

.section-subtitle-white {
  color: rgba(255, 255, 255, 0.75);
}

.bg-light-custom {
  background: var(--color-bg);
}

.bg-alt-custom {
  background: var(--color-bg-alt);
}

.bg-primary-custom {
  background: var(--color-primary);
}

.bg-gradient-primary {
  background: var(--grad-primary);
}

/* ============================================================
   CARDS
   ============================================================ */
.card-premium {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  overflow: hidden;
}

.card-premium:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14, 138, 125, 0.2);
}

.card-service {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.card-service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-accent);
  opacity: 0;
  transition: var(--transition-base);
}

.card-service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14, 138, 125, 0.25);
}

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

.service-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-accent-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-accent);
  transition: var(--transition-base);
  flex-shrink: 0;
}

.card-service:hover .service-icon-wrap {
  background: var(--color-accent);
  color: #ffffff;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin: 0;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.service-link {
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
  text-decoration: none;
}

.service-link:hover {
  color: var(--color-accent-light);
  gap: 0.6rem;
}

/* Why Choose Cards */
.card-why {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  height: 100%;
}

.card-why:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent-pale);
  line-height: 1;
  margin-bottom: 0.5rem;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Stat Cards */
.card-stat {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--color-border);
  transition: var(--transition-base);
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* About page: stat cards readable on phones (avoid 3× narrow col-4 columns) */
@media (max-width: 767.98px) {
  .about-stat-row .card-stat {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    padding: 1.1rem 1.25rem;
  }

  .about-stat-row .stat-number {
    flex-shrink: 0;
    margin-bottom: 0;
    font-size: 1.85rem;
    line-height: 1.1;
  }

  .about-stat-row .stat-label {
    font-size: 0.9rem;
    line-height: 1.35;
    text-align: right;
    text-wrap: balance;
    max-width: 62%;
  }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-img-wrap {
  position: relative;
}

.about-img-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  aspect-ratio: 3 / 4;
  max-height: 580px;
}

.about-img-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.about-credential-badge {
  position: absolute;
  bottom: -12px;
  right: 0.75rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.5rem;
  text-align: center;
  border: 1px solid var(--color-border);
}

.cred-badge-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

.cred-badge-label {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

.about-accent-strip {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--grad-accent);
  opacity: 0.15;
  z-index: 0;
}

.about-training-heading {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: nowrap;
}

.about-training-heading .about-training-play {
  flex-shrink: 0;
  color: var(--color-text-dark);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1;
  position: relative;
  top: 0.2em;
}

.about-training-prose {
  color: var(--color-text-muted);
  line-height: 1.85;
}

/* About — “Person behind the surgeon” */
.person-behind-section {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.person-behind-intro {
  position: relative;
}

.person-behind-panel {
  margin-top: 2rem;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--color-accent-pale);
  border: 1px solid rgba(14, 138, 125, 0.18);
}

.person-behind-panel-icon {
  flex-shrink: 0;
  font-size: 1.75rem;
  color: var(--color-accent);
  line-height: 1;
  margin-top: 0.1rem;
}

.person-behind-panel-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-base);
  line-height: 1.55;
}

.person-behind-prose {
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 3px solid var(--color-accent);
}

.person-behind-prose p {
  color: var(--color-text-muted);
  line-height: 1.9;
  margin-bottom: 1.35rem;
}

.person-behind-prose p:last-child {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .person-behind-prose {
    padding-left: 1.15rem;
    margin-top: 0.5rem;
  }
}

/* About — Education & qualifications table */
.qualifications-section {
  background: var(--color-bg);
}

.qualifications-table-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  background: var(--color-white);
}

.qualifications-table {
  --qual-thead-bg: #e8eef5;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.qualifications-table thead th {
  background: var(--qual-thead-bg);
  color: var(--color-text-dark);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.qualifications-table tbody td {
  padding: 1.15rem 1.35rem;
  color: var(--color-text-base);
  vertical-align: middle;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  line-height: 1.5;
}

.qualifications-table tbody tr:last-child td {
  border-bottom: none;
}

.qualifications-table-highlight td {
  background: var(--color-accent-pale);
  color: var(--color-accent);
  font-weight: 600;
}

@media (max-width: 575.98px) {
  .qualifications-table thead {
    display: none;
  }

  .qualifications-table tbody tr {
    display: block;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .qualifications-table tbody tr:last-child {
    border-bottom: none;
  }

  .qualifications-table tbody td {
    display: block;
    padding: 0.35rem 0;
    border: none;
  }

  .qualifications-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 0.2rem;
  }

  .qualifications-table-highlight {
    border-radius: var(--radius-md);
    margin: 0.35rem 0;
    background: var(--color-accent-pale);
    border: 1px solid rgba(14, 138, 125, 0.22) !important;
  }

  .qualifications-table-highlight td {
    background: transparent;
    color: var(--color-accent);
    font-weight: 600;
  }
}

.treatment-bullet-list {
  padding-left: 1.35rem;
  margin-bottom: 0;
  color: var(--color-text-muted);
  line-height: 1.85;
}

.treatment-bullet-list li {
  margin-bottom: 0.45rem;
}

.treatment-bullet-list li::marker {
  color: var(--color-accent);
}

.treatment-procedure-block {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--color-border);
}

.treatment-procedure-block--last {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.treatment-urgency-callout {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-base);
}

.treatment-warning-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.treatment-warning-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.treatment-warning-list li:last-child {
  margin-bottom: 0;
}

.treatment-warning-list .bi-exclamation-triangle-fill {
  color: #d97706;
  flex-shrink: 0;
  margin-top: 0.12rem;
  font-size: 1.05rem;
}

.why-choose-list {
  margin-top: 0.25rem;
}

.why-choose-item {
  margin-bottom: 2.25rem;
}

.why-choose-item--last {
  margin-bottom: 0;
}

.why-choose-item-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.why-choose-item-text {
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: 0;
}

.credential-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0;
}

.cred-tag {
  background: var(--color-accent-pale);
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(14, 138, 125, 0.2);
}

.about-highlights {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.about-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
  color: var(--color-text-base);
}

.about-highlights li:last-child {
  border-bottom: none;
}

.about-highlights li i {
  color: var(--color-accent);
  font-size: 1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* Symptom / checklist rows (e.g. treatments) — icon tiles + comfortable spacing */
.about-highlights.symptom-checklist {
  margin-top: 1rem;
  margin-bottom: 1.75rem;
}

.about-highlights.symptom-checklist li {
  gap: 1rem;
  padding: 1rem 0;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.about-highlights.symptom-checklist li:first-child {
  padding-top: 0.35rem;
}

.about-highlights.symptom-checklist .symptom-checklist-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--color-accent-pale);
  border: 1px solid rgba(14, 138, 125, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.about-highlights.symptom-checklist .symptom-checklist-text {
  flex: 1;
  min-width: 0;
  line-height: 1.55;
}

/* ============================================================
   TECHNOLOGY SECTION
   ============================================================ */
.tech-section {
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.tech-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.tech-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-base);
  margin-bottom: 1rem;
}

.tech-feature:hover {
  background: rgba(14, 138, 125, 0.12);
  border-color: rgba(14, 138, 125, 0.25);
}

.tech-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
}

.tech-feature-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.tech-feature-desc {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
  margin: 0;
}

.tech-image-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.tech-image-wrap img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.tech-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 37, 88, 0.3) 0%, rgba(14, 138, 125, 0.2) 100%);
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-primary));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.38rem;
  top: 0.2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 3px rgba(14, 138, 125, 0.25);
}

.timeline-year {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.2rem;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  background: var(--color-bg);
}

.card-testimonial {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  position: relative;
  height: 100%;
}

.testimonial-quote-icon {
  font-size: 2.5rem;
  color: var(--color-accent-pale);
  line-height: 1;
  margin-bottom: 0.75rem;
  display: block;
  font-family: Georgia, serif;
  color: var(--color-accent);
  opacity: 0.3;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--color-text-base);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin: 0;
}

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

.testimonial-stars {
  color: #f59e0b;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

/* Testimonial Carousel */
#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  position: absolute;
}

#testimonialCarousel .carousel-control-prev {
  left: 0.75rem;
}

#testimonialCarousel .carousel-control-next {
  right: 0.75rem;
}

#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
  filter: invert(1) hue-rotate(180deg);
  width: 16px;
}

.carousel-indicators-custom {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: var(--transition-base);
}

.carousel-indicator-dot.active {
  background: var(--color-accent);
  width: 24px;
  border-radius: 4px;
}

/*
 * Home testimonial carousel: first slide shows 3 across from lg (992px) up.
 * Below lg, extra cards use d-none d-lg-block in HTML (avoids 3 narrow cards at 768px md).
 * On very small screens, hide non-first columns in any slide row as a fallback.
 */
@media (max-width: 549.98px) {
  #testimonialCarousel .carousel-item .row > [class*="col-"]:not(:first-child) {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  #testimonialCarousel .carousel-control-prev {
    left: 0.35rem !important;
    right: auto !important;
  }

  #testimonialCarousel .carousel-control-next {
    left: auto !important;
    right: 0.35rem !important;
  }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  background: var(--color-bg);
}

.accordion-premium .accordion-item {
  background: var(--color-white);
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.accordion-premium .accordion-item:last-child {
  margin-bottom: 0;
}

.accordion-premium .accordion-button {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-dark);
  background: var(--color-white);
  padding: 1.35rem 1.65rem;
  box-shadow: none !important;
  line-height: 1.45;
}

.accordion-premium .accordion-button:not(.collapsed) {
  background: var(--color-accent-pale);
  color: var(--color-accent);
  padding-bottom: 1rem;
}

/* Plus when collapsed, minus when open (override Bootstrap chevron rotation) */
.accordion-premium .accordion-button::after {
  width: 1.35rem;
  height: 1.35rem;
  background-size: 1.35rem;
  filter: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230E8A7D' viewBox='0 0 16 16'%3E%3Cpath d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z'/%3E%3C/svg%3E");
  transform: none !important;
}

.accordion-premium .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230E8A7D' viewBox='0 0 16 16'%3E%3Cpath d='M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z'/%3E%3C/svg%3E");
  transform: none !important;
}

.accordion-premium .accordion-body {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  padding: 0.35rem 1.65rem 1.5rem;
}

/* ============================================================
   CONTACT / APPOINTMENT SECTION
   ============================================================ */
#contact-section {
  scroll-margin-top: 5.5rem;
}

#appointmentForm {
  scroll-margin-top: 5.5rem;
}

.contact-form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

@media (max-width: 575.98px) {
  .contact-form-wrap {
    padding: 1.35rem 1.1rem;
  }
}

/* Homepage appointment submit: readable on very narrow widths */
.btn-appointment-submit {
  text-wrap: balance;
  min-height: 3rem;
}

.btn-appointment-submit .appointment-submit-label {
  text-align: center;
  line-height: 1.25;
}

@media (max-width: 374.98px) {
  .btn-appointment-submit {
    font-size: 0.82rem;
    padding: 0.7rem 0.85rem;
    letter-spacing: 0;
    gap: 0.4rem;
  }
}

.form-label-custom {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.form-control-custom {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--color-text-base);
  background: var(--color-bg);
  transition: var(--transition-base);
  width: 100%;
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(14, 138, 125, 0.1);
}

.form-control-custom::placeholder {
  color: var(--color-text-light);
}

.contact-info-card {
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-accent-light);
  flex-shrink: 0;
}

.contact-info-title {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.contact-info-value {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  margin: 0;
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  border: none;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.4);
  color: white;
}

/* Teal fill — readable on navy heroes/cards (avoid same hue as --color-primary) */
.btn-call {
  background: var(--grad-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-accent);
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-call:hover {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(14, 138, 125, 0.45);
}

/* ============================================================
   BLOG SECTION
   ============================================================ */
.card-blog {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.blog-img-wrap {
  overflow: hidden;
  height: 200px;
  background: var(--color-bg-alt);
}

.blog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.card-blog:hover .blog-img-wrap img {
  transform: scale(1.06);
}

.blog-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-category {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-pale);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.blog-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  flex: 1;
}

.blog-excerpt {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* List pagination (blog, gallery, testimonials) */
.pagination-wrap {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
}

.pagination-wrap .pagination {
  margin-bottom: 0;
  gap: 0.35rem;
}

.pagination-wrap .page-link {
  border-radius: var(--radius-md);
  color: var(--color-text-dark);
  border: 1.5px solid var(--color-border);
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 2.5rem;
  text-align: center;
}

.pagination-wrap .page-item.active .page-link {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.pagination-wrap .page-item:not(.disabled):not(.active) .page-link:hover {
  background: var(--color-accent-pale);
  border-color: var(--color-accent);
  color: var(--color-primary);
}

.pagination-wrap .page-item.disabled .page-link {
  opacity: 0.45;
  background: var(--color-bg);
  pointer-events: none;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--color-text-light);
  font-weight: 500;
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
}

.blog-featured {
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.blog-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.blog-featured-content {
  position: absolute;
  inset: 0;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(10, 37, 88, 0.95) 0%, transparent 60%);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-main {
  background: #061228;
  color: rgba(255, 255, 255, 0.72);
}

.footer-top {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand-logo {
  display: block;
  height: clamp(56px, 8vw, 72px);
  width: auto;
  max-width: min(340px, 100%);
  object-fit: contain;
  object-position: left center;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-links a:hover {
  color: var(--color-accent-light);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.9rem;
}

.footer-contact-item i {
  color: var(--color-accent-light);
  font-size: 0.95rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-base);
  text-decoration: none;
}

.social-icon:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  padding: 1.25rem 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-cta-strip {
  background: var(--grad-accent);
  padding: 1.5rem 0;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--grad-primary);
  padding: var(--cta-band-py) 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(14, 138, 125, 0.25) 0%, transparent 60%);
}

.cta-band-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.cta-band-text {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  margin-bottom: 0;
}

/* About page — rich contact CTA (two-column + glass panel) */
.cta-band--rich .container {
  z-index: 1;
}

.cta-contact-panel {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.cta-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.cta-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cta-contact-item > i {
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.45);
}

.cta-contact-text {
  color: rgba(255, 255, 255, 0.9);
}

.cta-contact-muted {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  font-weight: 500;
  margin-right: 0.35rem;
}

.cta-contact-link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.cta-contact-link:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.cta-contact-link--cyan {
  color: #5eead4;
  font-weight: 700;
  border-bottom-color: transparent;
}

.cta-contact-link--cyan:hover {
  color: #99f6e4;
  border-bottom-color: rgba(153, 246, 228, 0.45);
}

/*
 * Dual-button rows (d-flex gap-3 flex-wrap): CTA band, About snapshot, page heroes, etc.
 * Below lg — stack and match widths so pills don’t look uneven.
 */
@media (max-width: 991.98px) {
  .d-flex.gap-3.flex-wrap {
    flex-direction: column;
    align-items: stretch !important;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-content: flex-start !important;
  }

  .d-flex.gap-3.flex-wrap > a[class*="btn-"],
  .d-flex.gap-3.flex-wrap > a.btn-primary-custom,
  .d-flex.gap-3.flex-wrap > a.btn-whatsapp,
  .d-flex.gap-3.flex-wrap > a.btn-call,
  .d-flex.gap-3.flex-wrap > a.btn-outline-accent {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
    min-width: 0;
  }

  /* Pre-footer CTA: force full-width column + equal pill widths (overrides text-lg-end / inline-flex shrink) */
  .cta-band .row > [class*="col-"] {
    min-width: 0;
  }

  .cta-band .d-flex.gap-3,
  .cta-band .d-flex.gap-3.flex-wrap {
    flex-direction: column !important;
    align-items: stretch !important;
    flex-wrap: nowrap;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
  }

  .cta-band .d-flex.gap-3 > a[class*="btn-"],
  .cta-band .d-flex.gap-3 > a.btn-primary-custom,
  .cta-band .d-flex.gap-3 > a.btn-whatsapp,
  .cta-band .d-flex.gap-3 > a.btn-call,
  .cta-band .d-flex.gap-3 > a.btn-outline-accent {
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch;
    flex: 0 0 auto;
  }

  /* Homepage gallery preview header buttons (gap-2 row) */
  .gallery-preview-actions {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
  }

  .gallery-preview-actions > a[class*="btn-"] {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

/*
 * CTA band: lg → below xxl (992px–1399.98px), including Bootstrap "xl" (1200px–1399.98px).
 * Two-column layout is active but col-lg-4 is tight; d-flex stays row + wrap, so buttons
 * stack with content width only (uneven pills). Reuse the stacked, full-width treatment.
 * From 1400px (xxl) the container/ column is typically wide enough for a tidy row; adjust if needed.
 */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .cta-band .row > [class*="col-"] {
    min-width: 0;
  }

  .cta-band .d-flex.gap-3,
  .cta-band .d-flex.gap-3.flex-wrap {
    flex-direction: column !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
  }

  .cta-band .d-flex.gap-3 > a[class*="btn-"],
  .cta-band .d-flex.gap-3 > a.btn-primary-custom,
  .cta-band .d-flex.gap-3 > a.btn-whatsapp,
  .cta-band .d-flex.gap-3 > a.btn-call,
  .cta-band .d-flex.gap-3 > a.btn-outline-accent {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    min-width: 0;
  }
}

/* ============================================================
   FLOATING CTA
   ============================================================ */
.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-end;
}

.fab-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-lg);
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
}

.fab-btn:hover {
  transform: scale(1.1);
}

.fab-whatsapp {
  background: #25D366;
  color: white;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

/* Teal fill so the circle reads clearly on navy footer / dark areas (was same hue as --color-primary) */
.fab-call {
  background: var(--grad-accent);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 28px rgba(14, 138, 125, 0.5);
}

.fab-call:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 34px rgba(14, 138, 125, 0.55);
}

/* Sticky Mobile CTA */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary);
  padding: 0.75rem 1rem;
  z-index: 999;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 0.5rem;
}

.sticky-mobile-cta a {
  flex: 1;
  padding: 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
}

@media (max-width: 767.98px) {
  .sticky-mobile-cta {
    display: none !important;
  }

  .hero-float-card {
    display: none;
  }

  .hero-image-wrap {
    margin-top: 2rem;
  }

  .about-credential-badge {
    bottom: -8px;
    right: 0.65rem;
  }
}

/* ============================================================
   HOSPITAL / PRACTICE SECTION
   ============================================================ */
.hospital-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  height: 100%;
  transition: var(--transition-base);
}

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

.hours-table {
  width: 100%;
  font-size: 0.875rem;
}

.hours-table td {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border);
}

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

.hours-table td:first-child {
  color: var(--color-text-muted);
  width: 140px;
}

.hours-table td:last-child {
  font-weight: 600;
  color: var(--color-text-dark);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--grad-primary);
  /* Vertical rhythm inside hero; horizontal offset comes from body padding-top + --nav-offset */
  padding: clamp(2.75rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(14, 138, 125, 0.2) 0%, transparent 60%);
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.page-hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
}

.page-hero-breadcrumb a:hover {
  color: var(--color-accent-light);
}

/* Inner-page hero with photo + gradient (override with inline --page-hero-photo) */
.page-hero.page-hero--photo {
  --page-hero-photo: url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=1600&q=80');
  background-color: #071a3e;
  background-image:
    linear-gradient(105deg, rgba(7, 24, 60, 0.94) 0%, rgba(10, 37, 88, 0.88) 45%, rgba(8, 50, 46, 0.82) 100%),
    var(--page-hero-photo);
  background-size: cover;
  background-position: center;
}

.page-hero.page-hero--photo::before {
  background: radial-gradient(circle at 75% 40%, rgba(14, 138, 125, 0.35) 0%, transparent 55%);
}

/* Blog article / long titles — slightly shorter hero padding */
.page-hero.page-hero--article {
  padding: clamp(2.25rem, 4vw, 3.25rem) 0 clamp(2.5rem, 5vw, 4rem);
}

/* Outline/ghost buttons on dark photo heroes — don’t rely on thin border alone */
.page-hero.page-hero--photo .btn-secondary-custom {
  background: rgba(255, 255, 255, 0.14);
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.72);
}

.page-hero.page-hero--photo .btn-secondary-custom:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: #fff;
  color: #fff;
}

/* ============================================================
   PUBLICATION CARDS (Research Page)
   ============================================================ */
.publication-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  transition: var(--transition-base);
}

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

.publication-book {
  border-left-color: var(--color-primary);
}

.publication-conference {
  border-left-color: #7c3aed;
}

.pub-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
  display: inline-block;
}

.pub-tag-journal {
  background: var(--color-accent-pale);
  color: var(--color-accent);
}

.pub-tag-conference {
  background: #ede9fe;
  color: #7c3aed;
}

.pub-tag-book {
  background: #e0f2fe;
  color: #0369a1;
}

.publication-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.publication-meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* ============================================================
   ANIMATIONS & TRANSITIONS
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.6s ease forwards;
}

.fade-up-delay-1 {
  animation-delay: 0.1s;
}

.fade-up-delay-2 {
  animation-delay: 0.2s;
}

.fade-up-delay-3 {
  animation-delay: 0.3s;
}

/* Map placeholder */
.map-placeholder {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Utility overrides */
.text-accent {
  color: var(--color-accent) !important;
}

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

.bg-accent-pale {
  background: var(--color-accent-pale) !important;
}

.border-accent {
  border-color: var(--color-accent) !important;
}

/* ======================
   DIVIDER
   ====================== */
.divider-accent {
  width: 48px;
  height: 3px;
  background: var(--grad-accent);
  border-radius: 3px;
  margin: 1rem 0 1.5rem;
}

/* img placeholders */
.img-placeholder {
  background: linear-gradient(135deg, #dde3ef 0%, #e8f0f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8fa5c2;
  font-size: 0.85rem;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}