/* ==========================================================================
   AZEEHEALTH CLINICS - Global Design System & Stylesheet
   Precision | Care | Well Being
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand Color Palette */
  --color-primary-navy: #0B3B63;
  --color-secondary-blue: #145A8D;
  --color-dark-navy: #082C4A;
  --color-sage-green: #6B7655;
  --color-light-sage: #DDE4D5;
  --color-sage-bg: #EEF3EA;
  --color-warm-white: #F7F5EF;
  --color-white: #FFFFFF;
  --color-dark-text: #1E2933;
  --color-muted-text: #64748B;
  --color-border: #E2E8F0;
  --color-border-subtle: #EDF2F7;
  --color-accent-gold: #C7A86B;
  --color-accent-gold-light: #FBF6EA;
  --color-success: #2E7D32;
  --color-danger: #D32F2F;

  /* Typography */
  --font-heading: 'Manrope', 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --container-max-width: 1280px;
  --section-padding-y: 5rem;
  --section-padding-y-lg: 6.5rem;

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-subtle: 0 2px 8px rgba(11, 59, 99, 0.04);
  --shadow-card: 0 4px 20px rgba(11, 59, 99, 0.06);
  --shadow-card-hover: 0 12px 32px rgba(11, 59, 99, 0.12);
  --shadow-navbar: 0 4px 20px rgba(8, 44, 74, 0.06);
  --shadow-modal: 0 25px 50px -12px rgba(8, 44, 74, 0.25);

  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Typography Baseline
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-dark-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--font-heading);
  color: var(--color-primary-navy);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

h1,
.h1 {
  font-size: clamp(2.2rem, 4vw + 1rem, 3.25rem);
  font-weight: 800;
}

h2,
.h2 {
  font-size: clamp(1.75rem, 2.5vw + 0.8rem, 2.5rem);
}

h3,
.h3 {
  font-size: clamp(1.35rem, 1.8vw + 0.5rem, 1.85rem);
}

h4,
.h4 {
  font-size: 1.25rem;
}

h5,
.h5 {
  font-size: 1.1rem;
}

h6,
.h6 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--color-dark-text);
}

.lead {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-muted-text);
}

a {
  color: var(--color-secondary-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-sage-green);
}

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

/* Accessibility Focus States */
:focus-visible {
  outline: 2px solid var(--color-secondary-blue);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   3. Brand Helpers & Section Backgrounds
   -------------------------------------------------------------------------- */
.bg-warm-white {
  background-color: var(--color-warm-white) !important;
}

.bg-light-sage {
  background-color: var(--color-light-sage) !important;
}

.bg-sage-subtle {
  background-color: var(--color-sage-bg) !important;
}

.bg-navy-dark {
  background-color: var(--color-dark-navy) !important;
  color: var(--color-white);
}

.bg-navy-primary {
  background-color: var(--color-primary-navy) !important;
  color: var(--color-white);
}

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

.text-navy-dark {
  color: var(--color-dark-navy) !important;
}

.text-blue-secondary {
  color: var(--color-secondary-blue) !important;
}

.text-sage {
  color: var(--color-sage-green) !important;
}

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

.section-padding {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.section-padding-lg {
  padding-top: var(--section-padding-y-lg);
  padding-bottom: var(--section-padding-y-lg);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sage-green);
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.85rem;
  background-color: rgba(107, 118, 85, 0.1);
  border-radius: var(--radius-pill);
}

.section-eyebrow.text-light {
  background-color: rgba(221, 228, 213, 0.15);
  color: var(--color-light-sage) !important;
}

.section-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-sage-green);
  display: inline-block;
}

.section-title {
  position: relative;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--color-muted-text);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   4. Buttons & CTAs System
   -------------------------------------------------------------------------- */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  line-height: 1.4;
  text-decoration: none;
}

.btn-primary-navy {
  background-color: var(--color-primary-navy);
  color: var(--color-white);
  border-color: var(--color-primary-navy);
  box-shadow: 0 4px 12px rgba(11, 59, 99, 0.15);
}

.btn-primary-navy:hover,
.btn-primary-navy:focus {
  background-color: var(--color-sage-green);
  border-color: var(--color-sage-green);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107, 118, 85, 0.25);
}

.btn-secondary-blue {
  background-color: var(--color-secondary-blue);
  color: var(--color-white);
  border-color: var(--color-secondary-blue);
}

.btn-secondary-blue:hover,
.btn-secondary-blue:focus {
  background-color: var(--color-dark-navy);
  border-color: var(--color-dark-navy);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(11, 59, 99, 0.2);
}

.btn-outline-navy {
  background-color: transparent;
  color: var(--color-primary-navy);
  border-color: var(--color-primary-navy);
}

.btn-outline-navy:hover,
.btn-outline-navy:focus {
  background-color: var(--color-primary-navy);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 59, 99, 0.15);
}

.btn-outline-sage {
  background-color: transparent;
  color: var(--color-sage-green);
  border-color: var(--color-sage-green);
}

.btn-outline-sage:hover,
.btn-outline-sage:focus {
  background-color: var(--color-sage-green);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover,
.btn-outline-white:focus {
  background-color: var(--color-white);
  color: var(--color-primary-navy);
  border-color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.btn-gold {
  background-color: var(--color-accent-gold);
  color: var(--color-dark-navy);
  border-color: var(--color-accent-gold);
  font-weight: 700;
}

.btn-gold:hover {
  background-color: #B89759;
  border-color: #B89759;
  color: var(--color-dark-navy);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

.btn-icon-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-secondary-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: all var(--transition-fast);
  padding: 0.25rem 0;
}

.btn-icon-link:hover {
  color: var(--color-sage-green);
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   5. Header & Navigation
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: #B27432;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.825rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.top-bar a {
  color: rgba(255, 255, 255, 0.95);
  transition: color var(--transition-fast);
}

.top-bar a:hover {
  color: #FFFFFF;
}

.top-bar-divider {
  display: inline-block;
  width: 1px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.25);
  margin: 0 0.75rem;
  vertical-align: middle;
}

header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  width: 100%;
  background: transparent;
}

.site-header.scrolled {
  background: transparent;
}

.navbar-custom,
.navbar-custom.scrolled {
  background: #ffffff !important;
  width: 100%;
  transition: all var(--transition-normal);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar-custom {
  padding: 0.65rem 0;
  box-shadow: 0 4px 20px rgba(120, 70, 20, 0.16);
}

.navbar-custom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

@media (min-width: 992px) {
  .navbar-custom .container {
    max-width: 1260px;
    flex-wrap: nowrap !important;
  }
}

.navbar-custom.scrolled {
  padding: 0.45rem 0;
  box-shadow: 0 6px 26px rgba(120, 70, 20, 0.24);
}

/* Brand Wordmark & Logo */
.brand-wrapper {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  padding: 0;
}

.navbar-logo-img {
  height: 56px;
  width: auto;
  max-width: 340px;
  object-fit: contain;
  display: block;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

@media (min-width: 1400px) {
  .navbar-logo-img {
    height: 60px;
    max-width: 360px;
  }
}

.brand-wrapper:hover .navbar-logo-img {
  transform: scale(1.02);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.navbar-custom.scrolled .navbar-logo-img {
  height: 46px;
  max-width: 290px;
  padding: 0;
}

.footer-logo-bg {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  display: inline-block;
  margin-bottom: 1.25rem;
  box-shadow: none;
  border: none;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.footer-logo-bg:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.15));
}

.footer-logo-img,
.footer-logo {
  height: 68px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
  display: block;
}

.navbar-toggler {
  border: 1.5px solid rgba(8, 44, 74, 0.3);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.35);
  color: #082C4A;
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.navbar-toggler i,
.navbar-toggler .bi,
.navbar-toggler .text-white {
  color: #082C4A !important;
}

.navbar-toggler:hover {
  background-color: rgba(255, 255, 255, 0.55);
  border-color: rgba(8, 44, 74, 0.5);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(8, 44, 74, 0.25);
  outline: none;
}

@media (min-width: 992px) {
  .navbar-toggler {
    display: none !important;
  }
}

/* Nav Links */
.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: #082C4A;
  padding: 0.5rem 0.75rem !important;
  position: relative;
  transition: color var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #051B2E;
  text-shadow: none;
}

.navbar-nav .nav-link.active {
  color: #051B2E;
  font-weight: 800;
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background-color: #082C4A;
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-nav-call {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: #082C4A;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  background-color: #FFFFFF;
  border: 1px solid rgba(8, 44, 74, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-fast);
}

.btn-nav-call:hover {
  background-color: #F8FAFC;
  color: #051B2E;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

/* Mobile Navbar Call Action & Mobile Controls */
.navbar-mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  flex-shrink: 0;
}

.navbar-mobile-actions .navbar-toggler {
  margin-left: 0 !important;
  height: 35px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.btn-nav-call-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.3rem 0.6rem;
  height: 35px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFFFFF;
  background-color: #082C4A;
  border: 1.5px solid #082C4A;
  border-radius: var(--radius-sm);
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(8, 44, 74, 0.2);
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-nav-call-mobile:hover,
.btn-nav-call-mobile:focus,
.btn-nav-call-mobile:active {
  background-color: #051B2E;
  border-color: #051B2E;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(8, 44, 74, 0.3);
}

.btn-nav-call-mobile i {
  font-size: 0.85rem;
  color: #DDE4D5;
  transition: transform var(--transition-fast);
}

.btn-nav-call-mobile:hover i {
  transform: scale(1.1);
}

.navbar-custom .btn-primary-navy {
  background: #082C4A;
  border-color: #082C4A;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(8, 44, 74, 0.25);
  transition: all var(--transition-fast);
}

.navbar-custom .btn-primary-navy:hover {
  background: #0E3D66;
  border-color: #0E3D66;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(8, 44, 74, 0.35);
}



/* --------------------------------------------------------------------------
   6. Hero Sections
   -------------------------------------------------------------------------- */
.hero-home {
  position: relative;
  background-color: var(--color-warm-white);
  padding-top: 4rem;
  padding-bottom: 5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.hero-home::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(221, 228, 213, 0.4) 0%, rgba(247, 245, 239, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   Hospital & Clinical Hero Background Animations
   -------------------------------------------------------------------------- */
.hero-bg-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

/* 1. Ambient Breathing Healing Gradient Orbs */
.hero-ambient-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  will-change: transform;
}

.hero-ambient-orb.orb-teal {
  width: 580px;
  height: 580px;
  top: -80px;
  right: -60px;
  background: radial-gradient(circle, rgba(10, 143, 130, 0.16) 0%, rgba(10, 143, 130, 0.05) 50%, rgba(10, 143, 130, 0) 70%);
  animation: floatOrbTeal 18s ease-in-out infinite alternate;
}

.hero-ambient-orb.orb-sage {
  width: 500px;
  height: 500px;
  bottom: -80px;
  left: 10%;
  background: radial-gradient(circle, rgba(61, 112, 77, 0.14) 0%, rgba(61, 112, 77, 0.04) 50%, rgba(61, 112, 77, 0) 70%);
  animation: floatOrbSage 22s ease-in-out infinite alternate;
}

.hero-ambient-orb.orb-warm {
  width: 440px;
  height: 440px;
  top: 30px;
  left: -80px;
  background: radial-gradient(circle, rgba(199, 168, 107, 0.14) 0%, rgba(199, 168, 107, 0.03) 50%, rgba(199, 168, 107, 0) 70%);
  animation: floatOrbWarm 20s ease-in-out infinite alternate;
}

@keyframes floatOrbTeal {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-35px, 40px) scale(1.08);
  }

  100% {
    transform: translate(25px, -20px) scale(0.95);
  }
}

@keyframes floatOrbSage {
  0% {
    transform: translate(0, 0) scale(0.96);
  }

  50% {
    transform: translate(35px, -30px) scale(1.07);
  }

  100% {
    transform: translate(-25px, 25px) scale(1);
  }
}

@keyframes floatOrbWarm {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, 35px) scale(1.1);
  }

  100% {
    transform: translate(-20px, -20px) scale(0.94);
  }
}

/* 2. Medical Precision Geometric Matrix Grid */
.hero-medical-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(10, 143, 130, 0.13) 1.25px, transparent 1.25px);
  background-size: 32px 32px;
  background-position: 0 0;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 50%, #000000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 85% 70% at 50% 50%, #000000 30%, transparent 85%);
  animation: gridDrift 45s linear infinite;
}

@keyframes gridDrift {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 32px 32px;
  }
}

/* 3. Dynamic ECG Heartbeat Vitality Pulse Line */
.hero-ecg-track {
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 95px;
  pointer-events: none;
  opacity: 0.75;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000000 12%, #000000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000000 12%, #000000 88%, transparent 100%);
}

.hero-ecg-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ecg-base-path {
  stroke: rgba(10, 143, 130, 0.12);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ecg-pulse-path {
  stroke: url(#ecgPulseGrad);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 230 1370;
  stroke-dashoffset: 1600;
  filter: drop-shadow(0 0 6px rgba(45, 212, 191, 0.85));
  animation: ecgPulseAnim 5s linear infinite;
}

@keyframes ecgPulseAnim {
  0% {
    stroke-dashoffset: 1600;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

/* 4. Subtle Floating Clinical Vitality Cross Emblems */
.hero-medical-cross {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}

.hero-medical-cross.cross-1 {
  top: 15%;
  left: 5%;
  color: rgba(10, 143, 130, 0.28);
  animation: floatCross 12s ease-in-out infinite;
  animation-delay: 0s;
}

.hero-medical-cross.cross-2 {
  top: 58%;
  left: 8%;
  color: rgba(61, 112, 77, 0.22);
  animation: floatCross 15s ease-in-out infinite;
  animation-delay: 2.5s;
}

.hero-medical-cross.cross-3 {
  top: 20%;
  left: 45%;
  color: rgba(199, 168, 107, 0.26);
  animation: floatCross 14s ease-in-out infinite;
  animation-delay: 4.5s;
}

.hero-medical-cross.cross-4 {
  top: 70%;
  left: 42%;
  color: rgba(10, 143, 130, 0.22);
  animation: floatCross 13s ease-in-out infinite;
  animation-delay: 1.2s;
}

.hero-medical-cross.cross-5 {
  top: 14%;
  right: 6%;
  color: rgba(61, 112, 77, 0.24);
  animation: floatCross 16s ease-in-out infinite;
  animation-delay: 6s;
}

.hero-medical-cross.cross-6 {
  top: 76%;
  right: 10%;
  color: rgba(199, 168, 107, 0.23);
  animation: floatCross 13.5s ease-in-out infinite;
  animation-delay: 3.2s;
}

@keyframes floatCross {
  0% {
    transform: translateY(18px) rotate(0deg) scale(0.85);
    opacity: 0;
  }

  20% {
    opacity: 0.75;
  }

  50% {
    transform: translateY(-22px) rotate(45deg) scale(1.05);
    opacity: 0.9;
  }

  80% {
    opacity: 0.65;
  }

  100% {
    transform: translateY(-55px) rotate(90deg) scale(0.9);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero-ambient-orb,
  .hero-medical-grid,
  .ecg-pulse-path,
  .hero-medical-cross {
    animation: none !important;
  }

  .ecg-pulse-path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    opacity: 0.35;
  }

  .hero-medical-cross {
    opacity: 0.2;
    transform: none;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-heading {
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--color-dark-navy);
}

.hero-heading span.text-highlight {
  color: var(--color-secondary-blue);
  position: relative;
  display: inline-block;
}

.hero-text {
  font-size: 1.15rem;
  color: var(--color-muted-text);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-dark-navy);
  box-shadow: var(--shadow-subtle);
}

.hero-trust-badge .trust-icon {
  color: var(--color-sage-green);
  font-size: 1rem;
}

/* Hero Media & Floating Card */
.hero-media-wrapper {
  position: relative;
  z-index: 2;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(11, 59, 99, 0.12);
  border: 4px solid var(--color-white);
}

.hero-image-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth);
}

.hero-media-wrapper:hover .hero-image-frame img {
  transform: scale(1.02);
}

.floating-hero-card {
  position: absolute;
  bottom: 24px;
  left: -20px;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.35rem;
  box-shadow: var(--shadow-card-hover);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 320px;
  z-index: 3;
  animation: floatSubtle 4s ease-in-out infinite;
}

@keyframes floatSubtle {

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

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

.floating-hero-card.floating-card-top {
  position: absolute;
  top: 24px;
  right: -20px;
  left: auto;
  bottom: auto;
  z-index: 5;
}

.floating-hero-card.floating-card-bottom {
  position: absolute;
  bottom: 24px;
  left: -20px;
  z-index: 5;
}

.floating-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-sage-bg);
  color: var(--color-sage-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.bg-teal-subtle {
  background-color: #E2F5F3 !important;
}

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

.floating-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary-navy);
  margin-bottom: 0.2rem;
}

.floating-card-text {
  font-size: 0.8125rem;
  color: var(--color-muted-text);
  margin: 0;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   Hero 3D Medical Stage
   -------------------------------------------------------------------------- */
.hero-3d-showcase-col {
  position: relative;
  z-index: 2;
}

.hero-3d-stage {
  position: relative;
  width: 100%;
  height: 520px;
  background: radial-gradient(circle at 50% 45%, #FFFFFF 0%, #F3F8F6 55%, #E5F0EC 100%);
  border: 1.5px solid rgba(10, 143, 130, 0.2);
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(8, 44, 74, 0.09), inset 0 2px 4px rgba(255, 255, 255, 0.8);
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-tag-badge {
  position: absolute;
  top: 18px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(10, 143, 130, 0.22);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-primary-navy);
  z-index: 5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.stage-tag-badge .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(10, 143, 130, 0.25);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(10, 143, 130, 0.5);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(10, 143, 130, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(10, 143, 130, 0);
  }
}

.hero-canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: grab;
  border-radius: 32px;
  overflow: hidden;
}

.hero-canvas-container:active {
  cursor: grabbing;
}

#heroThreeCanvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}

.hero-image-media-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  z-index: 1;
}

.hero-procedure-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-3d-stage:hover .hero-procedure-img {
  transform: scale(1.035);
}

.hero-image-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 44, 74, 0.12) 0%, rgba(8, 44, 74, 0.02) 40%, rgba(8, 44, 74, 0.32) 100%);
  pointer-events: none;
}

.stage-procedure-pill {
  position: absolute;
  bottom: 16px;
  right: 18px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(10, 143, 130, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  z-index: 5;
}

.stage-interaction-hint {
  position: absolute;
  bottom: 14px;
  right: 18px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-muted-text);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  z-index: 5;
  pointer-events: none;
}

/* Inner Page Hero */
.page-hero {
  background-color: var(--color-warm-white);
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-sage-green) 0%, var(--color-secondary-blue) 50%, var(--color-primary-navy) 100%);
}

.page-hero-title {
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-muted-text);
  max-width: 650px;
  margin: 0;
}

.breadcrumb-custom {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.breadcrumb-custom a {
  color: var(--color-muted-text);
}

.breadcrumb-custom a:hover {
  color: var(--color-primary-navy);
}

.breadcrumb-custom .active {
  color: var(--color-primary-navy);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. Cards & Component System
   -------------------------------------------------------------------------- */
.custom-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 1.15rem;
  height: 100%;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
}

.custom-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(8, 44, 74, 0.1);
  border-color: rgba(217, 154, 83, 0.45);
}

/* Card Top Image Header & Media Frame */
.card-image-wrap {
  position: relative;
  width: 100%;
  height: 185px;
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background-color: #f3efe9;
}

.card-top-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-card:hover .card-top-img,
.why-card:hover .why-card-img {
  transform: scale(1.06);
}

.card-icon-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px rgba(8, 44, 74, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all var(--transition-normal);
  z-index: 2;
}

.custom-card:hover .card-icon-badge {
  background-color: #082C4A;
  color: #D99A53;
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(8, 44, 74, 0.25);
}

.card-body-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 0.15rem 0.25rem 0.25rem;
}

/* Quick Service Cards */
.quick-service-card {
  position: relative;
  overflow: hidden;
}

.quick-service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: transparent;
  transition: background-color var(--transition-normal);
}

.quick-service-card:hover::after {
  background-color: #D99A53;
}

.card-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background-color: var(--color-warm-white);
  color: var(--color-primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin-bottom: 1.35rem;
  transition: all var(--transition-normal);
  border: 1px solid var(--color-border);
}

.custom-card:hover .card-icon-box {
  background-color: var(--color-primary-navy);
  color: var(--color-white);
  border-color: var(--color-primary-navy);
  transform: scale(1.05);
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
  color: var(--color-primary-navy);
}

.card-text {
  font-size: 0.925rem;
  color: var(--color-muted-text);
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.6;
}

/* Feature Check Points */
.feature-checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-dark-navy);
  margin-bottom: 0.85rem;
}

.feature-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--color-sage-bg);
  color: var(--color-sage-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Why Choose Cards */
.why-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  text-align: left;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(8, 44, 74, 0.1);
  border-color: rgba(217, 154, 83, 0.45);
}

.why-image-wrap {
  position: relative;
  width: 100%;
  height: 185px;
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background-color: #f3efe9;
}

.why-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-icon-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #082C4A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 14px rgba(8, 44, 74, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all var(--transition-normal);
  z-index: 2;
}

.why-card:hover .why-icon-badge {
  background-color: #082C4A;
  color: #D99A53;
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(8, 44, 74, 0.25);
}

.why-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 0.15rem 0.25rem 0.25rem;
}

.why-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--color-sage-bg);
  color: var(--color-sage-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   8. Clinical Departments Bento Grid
   -------------------------------------------------------------------------- */
.dept-bento-grid {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 1.5rem;
}

.dept-card {
  border-radius: 20px;
  padding: 2.25rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  text-decoration: none;
  min-height: 205px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.dept-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

.dept-card-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  min-width: 0;
}

.dept-title {
  font-family: var(--font-heading);
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.dept-conditions {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 1.25rem;
  opacity: 0.92;
}

.dept-link {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: gap var(--transition-fast), transform var(--transition-fast);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.dept-card:hover .dept-link {
  gap: 0.65rem;
}

.dept-card-icon {
  flex: 0 0 115px;
  width: 115px;
  height: 115px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform var(--transition-normal);
}

.dept-card:hover .dept-card-icon {
  transform: scale(1.08) translateY(-2px);
}

.dept-illustration {
  width: 100%;
  height: 100%;
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
}

.dept-cartoon-img {
  width: 100%;
  height: 100%;
  max-width: 115px;
  max-height: 115px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
  transition: transform var(--transition-normal), filter var(--transition-normal);
  user-select: none;
  pointer-events: none;
}

.dept-card:hover .dept-cartoon-img {
  transform: scale(1.12) translateY(-4px);
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.16));
}

/* 24-Column Bento Spans for Desktop */
.dept-span-12 {
  grid-column: span 12;
}

.dept-span-10 {
  grid-column: span 10;
}

.dept-span-8 {
  grid-column: span 8;
}

.dept-span-7 {
  grid-column: span 7;
}

/* Department Color Variations matching the uploaded reference */
/* 1. Proctology - Lilac / Purple */
.dept-card-proctology {
  background-color: #E8D2F8;
  color: #271442;
}

.dept-card-proctology .dept-title {
  color: #271442;
}

.dept-card-proctology .dept-conditions {
  color: #4F356B;
}

.dept-card-proctology .dept-link {
  color: #271442;
}

.dept-card-proctology .dept-illustration {
  stroke: #271442;
}

/* 2. General and Laparoscopic - Soft Periwinkle Violet */
.dept-card-laparoscopic {
  background-color: #B8ACF6;
  color: #1A1448;
}

.dept-card-laparoscopic .dept-title {
  color: #1A1448;
}

.dept-card-laparoscopic .dept-conditions {
  color: #352B6D;
}

.dept-card-laparoscopic .dept-link {
  color: #1A1448;
}

.dept-card-laparoscopic .dept-illustration {
  stroke: #1A1448;
}

/* 3. Bariatric & Surgical Gastro - Soft Sky Blue */
.dept-card-gastro {
  background-color: #CBE4FA;
  color: #0C2849;
}

.dept-card-gastro .dept-title {
  color: #0C2849;
}

.dept-card-gastro .dept-conditions {
  color: #1E4675;
}

.dept-card-gastro .dept-link {
  color: #0C2849;
}

.dept-card-gastro .dept-illustration {
  stroke: #0C2849;
}

/* 4. ENT - Soft Warm Terracotta Peach */
.dept-card-ent {
  background-color: #EFA277;
  color: #3C1204;
}

.dept-card-ent .dept-title {
  color: #3C1204;
}

.dept-card-ent .dept-conditions {
  color: #6D2B0E;
}

.dept-card-ent .dept-link {
  color: #3C1204;
}

.dept-card-ent .dept-illustration {
  stroke: #3C1204;
}

/* 5. Urology - Soft Cyan/Teal Blue */
.dept-card-urology {
  background-color: #82C7E8;
  color: #072F40;
}

.dept-card-urology .dept-title {
  color: #072F40;
}

.dept-card-urology .dept-conditions {
  color: #104C67;
}

.dept-card-urology .dept-link {
  color: #072F40;
}

.dept-card-urology .dept-illustration {
  stroke: #072F40;
}

/* 6. Gynaecology - Soft Pastel Mint */
.dept-card-gynaecology {
  background-color: #A3DABF;
  color: #053E2F;
}

.dept-card-gynaecology .dept-title {
  color: #053E2F;
}

.dept-card-gynaecology .dept-conditions {
  color: #0B5B45;
}

.dept-card-gynaecology .dept-link {
  color: #053E2F;
}

.dept-card-gynaecology .dept-illustration {
  stroke: #053E2F;
}

/* 7. Orthopaedics - Soft Warm Sunny Gold */
.dept-card-orthopaedics {
  background-color: #EED46B;
  color: #3B2103;
}

.dept-card-orthopaedics .dept-title {
  color: #3B2103;
}

.dept-card-orthopaedics .dept-conditions {
  color: #69410A;
}

.dept-card-orthopaedics .dept-link {
  color: #3B2103;
}

.dept-card-orthopaedics .dept-illustration {
  stroke: #3B2103;
}

/* 8. Plastic & Cosmetic Surgery - Soft Seafoam Sage */
.dept-card-cosmetic {
  background-color: #9FD4BC;
  color: #053C2D;
}

.dept-card-cosmetic .dept-title {
  color: #053C2D;
}

.dept-card-cosmetic .dept-conditions {
  color: #0C5841;
}

.dept-card-cosmetic .dept-link {
  color: #053C2D;
}

.dept-card-cosmetic .dept-illustration {
  stroke: #053C2D;
}

/* 9. Surgical Oncology - Soft Rose / Blush */
.dept-card-oncology {
  background-color: #F8D3DC;
  color: #3E101D;
}

.dept-card-oncology .dept-title {
  color: #3E101D;
}

.dept-card-oncology .dept-conditions {
  color: #6B1E34;
}

.dept-card-oncology .dept-link {
  color: #3E101D;
}

.dept-card-oncology .dept-illustration {
  stroke: #3E101D;
}

/* 10. Pediatric Surgery - Soft Warm Sunshine Buttercream */
.dept-card-pediatric {
  background-color: #FEDD97;
  color: #3A2302;
}

.dept-card-pediatric .dept-title {
  color: #3A2302;
}

.dept-card-pediatric .dept-conditions {
  color: #633E06;
}

.dept-card-pediatric .dept-link {
  color: #3A2302;
}

.dept-card-pediatric .dept-illustration {
  stroke: #3A2302;
}

/* --------------------------------------------------------------------------
   Minor OT Procedures Showcase
   -------------------------------------------------------------------------- */
.minor-ot-section {
  position: relative;
  background: linear-gradient(180deg, #F9FBFC 0%, #FFFFFF 100%);
  border-top: 1px solid rgba(24, 48, 89, 0.06);
  border-bottom: 1px solid rgba(24, 48, 89, 0.06);
}

.minor-ot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.minor-ot-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.minor-ot-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-navy);
  box-shadow: 0 12px 28px rgba(24, 48, 89, 0.09);
}

.minor-ot-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(30, 86, 86, 0.08);
  color: var(--color-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  transition: all var(--transition-fast);
}

.minor-ot-card:hover .minor-ot-icon-badge {
  background-color: var(--color-navy);
  color: var(--color-white);
  transform: scale(1.08);
}

.minor-ot-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.minor-ot-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 1.15rem;
  flex-grow: 1;
}

.minor-ot-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-teal);
  background-color: rgba(30, 86, 86, 0.07);
  padding: 0.28rem 0.65rem;
  border-radius: 100px;
  width: fit-content;
}

.minor-ot-banner {
  background: linear-gradient(135deg, var(--color-navy) 0%, #102544 100%);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2.5rem;
  color: var(--color-white);
  margin-top: 3rem;
  box-shadow: 0 16px 40px rgba(16, 37, 68, 0.16);
}

/* Doctor Cards */
.doctor-card {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(11, 59, 99, 0.2);
}

.doctor-card-media {
  position: relative;
  overflow: hidden;
  background-color: var(--color-warm-white);
  aspect-ratio: 1 / 1;
}

.doctor-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.doctor-card:hover .doctor-card-media img {
  transform: scale(1.04);
}

.doctor-specialty-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background-color: rgba(8, 44, 74, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
}

.doctor-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.doctor-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--color-primary-navy);
}

.doctor-exp-meta {
  font-size: 0.85rem;
  color: var(--color-sage-green);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.doctor-bio-short {
  font-size: 0.875rem;
  color: var(--color-muted-text);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.doctor-card-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* Service Detail Cards */
.service-full-card {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: 2.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-subtle);
}

.service-full-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-sage-green);
}

/* Highlighted Service Card (Clinical Procedures) */
.service-full-card.is-highlighted {
  border: 2px solid var(--color-sage-green);
  background: linear-gradient(180deg, rgba(82, 183, 136, 0.08) 0%, #ffffff 42%);
  box-shadow: 0 12px 36px rgba(45, 106, 79, 0.15);
  position: relative;
}

.service-full-card.is-highlighted:hover {
  border-color: var(--color-forest-green);
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(45, 106, 79, 0.22);
}

.service-full-card.is-highlighted .card-icon-box {
  background: linear-gradient(135deg, #2D6A4F 0%, #1B4332 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(45, 106, 79, 0.3);
}

.service-highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #082C4A 0%, #13456C 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(8, 44, 74, 0.2);
}

.service-highlight-badge i {
  color: #D99A53;
}

.service-preview-highlighted {
  border: 2px solid var(--color-sage-green) !important;
  box-shadow: 0 12px 36px rgba(45, 106, 79, 0.15) !important;
}

.service-badge-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #082C4A 0%, #13456C 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(8, 44, 74, 0.25);
}

.service-badge-pill i {
  color: #D99A53;
}

.service-benefit-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.service-benefit-list li {
  font-size: 0.875rem;
  color: var(--color-dark-text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-benefit-list li i {
  color: var(--color-sage-green);
  font-size: 0.95rem;
}

/* Testimonial Cards */
.testimonial-card {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: 2.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-normal);
}

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

.testimonial-stars {
  color: var(--color-accent-gold);
  font-size: 1rem;
  margin-bottom: 1.1rem;
  display: flex;
  gap: 0.25rem;
}

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

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-warm-white);
  color: var(--color-primary-navy);
  font-weight: 700;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-light-sage);
}

.author-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-dark-navy);
  margin-bottom: 0.15rem;
}

.author-meta {
  font-size: 0.8rem;
  color: var(--color-muted-text);
}

/* Stats / Counter Block */
.stat-item {
  padding: 1.5rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--color-primary-navy);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-muted-text);
  letter-spacing: 0.02em;
}

/* Values Card */
.value-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 1.75rem;
  height: 100%;
  transition: all var(--transition-normal);
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-sage-green);
  box-shadow: var(--shadow-card);
}

.value-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--color-sage-bg);
  color: var(--color-sage-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Facility Gallery Cards */
.facility-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-normal);
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.facility-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.facility-card-body {
  padding: 1.5rem;
}

/* --------------------------------------------------------------------------
   8. Forms & Inputs
   -------------------------------------------------------------------------- */
.form-label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark-navy);
  margin-bottom: 0.45rem;
}

.form-control,
.form-select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  color: var(--color-dark-text);
  background-color: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 48px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-secondary-blue);
  box-shadow: 0 0 0 3px rgba(20, 90, 141, 0.15);
  outline: none;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--color-danger);
  background-image: none;
}

.invalid-feedback {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-danger);
  margin-top: 0.35rem;
}

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

/* Contact Info Item */
.contact-info-block {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-warm-white);
  color: var(--color-primary-navy);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

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

.contact-info-text {
  font-size: 0.925rem;
  color: var(--color-muted-text);
  margin: 0;
  line-height: 1.5;
}

/* Map Frame */
.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-subtle);
  position: relative;
  background-color: var(--color-warm-white);
}

.map-container iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

/* --------------------------------------------------------------------------
   9. Modals (Doctor Profile & Service Detail & Appointment)
   -------------------------------------------------------------------------- */
.modal-content {
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 1.75rem;
  background-color: var(--color-warm-white);
}

.modal-header .modal-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary-navy);
}

.modal-body {
  padding: 1.75rem;
}

.modal-footer {
  border-top: 1px solid var(--color-border);
  padding: 1rem 1.75rem;
  background-color: var(--color-warm-white);
}

.btn-close:focus {
  box-shadow: 0 0 0 2px var(--color-secondary-blue);
}

/* Doctor Modal Details */
.doctor-modal-img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.expertise-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  background-color: var(--color-sage-bg);
  color: var(--color-sage-green);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-right: 0.4rem;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   10. Filter Tabs
   -------------------------------------------------------------------------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-white);
  border: 1.5px solid var(--color-border);
  color: var(--color-primary-navy);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background-color: var(--color-warm-white);
  border-color: var(--color-secondary-blue);
}

.filter-btn.active {
  background-color: var(--color-primary-navy);
  border-color: var(--color-primary-navy);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(11, 59, 99, 0.15);
}

/* --------------------------------------------------------------------------
   11. CTA Banner Section
   -------------------------------------------------------------------------- */
.cta-banner {
  background-color: var(--color-primary-navy);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  background: radial-gradient(circle at 80% 50%, rgba(107, 118, 85, 0.25) 0%, rgba(11, 59, 99, 0) 70%);
  pointer-events: none;
}

.cta-banner-heading {
  color: var(--color-white);
  font-weight: 800;
}

.cta-banner-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 2rem;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #D99A53;
  color: #082C4A;
  font-size: 0.925rem;
  padding-top: 5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.site-footer p,
.site-footer .text-white-50,
.site-footer .footer-clinic-desc {
  color: #082C4A !important;
  opacity: 0.92;
  font-weight: 500;
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: #082C4A;
  margin-bottom: 1.35rem;
  letter-spacing: -0.01em;
}

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

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

.footer-links a {
  color: #082C4A;
  font-weight: 600;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-links a:hover {
  color: #051B2E;
  transform: translateX(3px);
}

.footer-links a i {
  color: #082C4A;
  opacity: 0.75;
}

.footer-contact-item {
  color: #082C4A;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.footer-contact-item i {
  color: #082C4A;
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

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

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(8, 44, 74, 0.1);
  color: #082C4A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
  border: 1px solid rgba(8, 44, 74, 0.2);
}

.footer-social-btn:hover {
  background-color: #082C4A;
  color: #FFFFFF;
  border-color: #082C4A;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Footer Copyright Section & The Bubbles Media Animation
   -------------------------------------------------------------------------- */
.footer-bottom {
  margin-top: 3.5rem;
  padding: 1.25rem 1.75rem;
  background: #082C4A;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(8, 44, 74, 0.25);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: #FFFFFF;
}

.footer-copy-separator {
  color: rgba(255, 255, 255, 0.4);
}

.footer-designer-credit {
  color: rgba(255, 255, 255, 0.9);
}

/* The Bubbles Media Link & Shimmer */
.bubbles-media-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: #FFFFFF !important;
  text-decoration: none;
  padding: 0 4px;
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}

.bubbles-media-text {
  position: relative;
  z-index: 2;
  background: linear-gradient(90deg, #FFFFFF 0%, #DDE4D5 45%, #C7A86B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all var(--transition-fast);
  border-bottom: 1.5px dotted rgba(199, 168, 107, 0.65);
}

.bubbles-media-link:hover .bubbles-media-text {
  border-bottom-color: #FFFFFF;
  filter: drop-shadow(0 0 8px rgba(180, 230, 255, 0.9));
}

/* Floating Bubbles Container */
.bubbles-animation-wrap {
  position: absolute;
  inset: -14px -14px;
  pointer-events: none;
  overflow: visible;
  z-index: 3;
}

/* Individual Iridescent Soap Bubbles */
.bubble {
  position: absolute;
  bottom: 10px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at 35% 30%,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(180, 235, 255, 0.65) 30%,
      rgba(255, 195, 225, 0.5) 60%,
      rgba(175, 245, 210, 0.4) 85%,
      rgba(255, 255, 255, 0.2) 100%);
  box-shadow:
    inset -2px -2px 5px rgba(255, 255, 255, 0.6),
    inset 2px 2px 4px rgba(255, 255, 255, 0.95),
    0 0 10px rgba(180, 230, 255, 0.7);
  transform: translate3d(0, 0, 0) scale(0.3);
}

/* Specular Light Reflection inside Bubble */
.bubble::after {
  content: '';
  position: absolute;
  top: 18%;
  left: 22%;
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  filter: blur(0.5px);
}

/* Staggered Bubble Positions, Sizes, & Trajectories */
.bubble.b1 {
  left: 4%;
  width: 14px;
  height: 14px;
  --bx: -8px;
  --by: -44px;
  --delay: 0s;
  --dur: 1.5s;
}

.bubble.b2 {
  left: 18%;
  width: 22px;
  height: 22px;
  --bx: 8px;
  --by: -58px;
  --delay: 0.15s;
  --dur: 1.8s;
}

.bubble.b3 {
  left: 34%;
  width: 12px;
  height: 12px;
  --bx: -10px;
  --by: -46px;
  --delay: 0.05s;
  --dur: 1.4s;
}

.bubble.b4 {
  left: 50%;
  width: 18px;
  height: 18px;
  --bx: 10px;
  --by: -52px;
  --delay: 0.25s;
  --dur: 1.6s;
}

.bubble.b5 {
  left: 66%;
  width: 24px;
  height: 24px;
  --bx: -6px;
  --by: -62px;
  --delay: 0.1s;
  --dur: 1.9s;
}

.bubble.b6 {
  left: 80%;
  width: 13px;
  height: 13px;
  --bx: 8px;
  --by: -48px;
  --delay: 0.3s;
  --dur: 1.35s;
}

.bubble.b7 {
  left: 92%;
  width: 16px;
  height: 16px;
  --bx: -12px;
  --by: -54px;
  --delay: 0.2s;
  --dur: 1.7s;
}

.bubble.b8 {
  left: 42%;
  width: 20px;
  height: 20px;
  --bx: 12px;
  --by: -56px;
  --delay: 0.35s;
  --dur: 1.75s;
}

/* Bubble Rise and Pop Keyframe Animation on Hover */
.bubbles-media-link:hover .bubble,
.bubbles-media-link:focus-visible .bubble {
  animation: floatBubbleRise var(--dur) cubic-bezier(0.22, 0.61, 0.36, 1) infinite var(--delay);
}

@keyframes floatBubbleRise {
  0% {
    opacity: 0;
    transform: translate(0, 4px) scale(0.3);
  }

  20% {
    opacity: 0.95;
    transform: translate(calc(var(--bx) * 0.25), calc(var(--by) * 0.25)) scale(0.9);
  }

  60% {
    opacity: 0.9;
    transform: translate(calc(var(--bx) * 0.7), calc(var(--by) * 0.7)) scale(1.15);
  }

  85% {
    opacity: 0.75;
    transform: translate(var(--bx), var(--by)) scale(1.3);
  }

  100% {
    opacity: 0;
    transform: translate(calc(var(--bx) * 1.15), calc(var(--by) - 14px)) scale(1.45);
  }
}

/* Dynamic Cursor Sparkle Bubble Particle */
.dynamic-bubble-sparkle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(circle at 35% 30%,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(180, 235, 255, 0.8) 35%,
      rgba(255, 195, 230, 0.6) 65%,
      rgba(175, 250, 215, 0.4) 90%);
  box-shadow:
    inset -1px -1px 3px rgba(255, 255, 255, 0.7),
    inset 1px 1px 2px rgba(255, 255, 255, 0.95),
    0 0 10px rgba(180, 235, 255, 0.8);
  animation: dynamicBubbleFloat 1.2s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
}

@keyframes dynamicBubbleFloat {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.4);
  }

  15% {
    opacity: 1;
    transform: translate3d(var(--dx), calc(var(--dy) * 0.25), 0) scale(1);
  }

  80% {
    opacity: 0.85;
    transform: translate3d(calc(var(--dx) * 1.2), var(--dy), 0) scale(1.25);
  }

  100% {
    opacity: 0;
    transform: translate3d(calc(var(--dx) * 1.3), calc(var(--dy) - 15px), 0) scale(1.5);
  }
}

/* --------------------------------------------------------------------------
   13. Floating Contact Actions (WhatsApp & Call) & Back to Top
   -------------------------------------------------------------------------- */
.floating-contact-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 1030;
}

.floating-btn {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.45rem;
  box-shadow: 0 6px 20px rgba(8, 44, 74, 0.22);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.floating-btn:hover {
  transform: scale(1.08) translateY(-2px);
  color: #FFFFFF;
}

.floating-btn:focus-visible {
  outline: 3px solid var(--color-primary-navy);
  outline-offset: 3px;
  transform: scale(1.08) translateY(-2px);
}

/* WhatsApp Floating Button */
.floating-whatsapp-btn {
  background: linear-gradient(135deg, #25D366 0%, #1EBE5D 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.floating-whatsapp-btn:hover,
.floating-whatsapp-btn:focus-visible {
  background: linear-gradient(135deg, #2ee972 0%, #1EBE5D 100%);
  color: #FFFFFF;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

/* Call Floating Button */
.floating-call-btn {
  background: linear-gradient(135deg, var(--color-primary-navy) 0%, var(--color-dark-navy) 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(11, 59, 99, 0.32);
}

.floating-call-btn:hover,
.floating-call-btn:focus-visible {
  background: linear-gradient(135deg, #145A8D 0%, var(--color-primary-navy) 100%);
  color: #FFFFFF;
  box-shadow: 0 12px 30px rgba(11, 59, 99, 0.45);
}

/* Book Appointment Floating Button */
.floating-book-btn {
  background: linear-gradient(135deg, #C7A86B 0%, #B89758 50%, #9E7D3E 100%);
  color: #082C4A;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 24px rgba(199, 168, 107, 0.42);
  outline: none;
  padding: 0;
}

.floating-book-btn:hover,
.floating-book-btn:focus-visible {
  background: linear-gradient(135deg, #E2BC43 0%, #D4AF37 50%, #B89758 100%);
  color: #082C4A;
  box-shadow: 0 12px 30px rgba(199, 168, 107, 0.6);
  transform: scale(1.08) translateY(-2px);
}

/* Subtle Glowing Pulse Radar on WhatsApp */
.floating-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-pill);
  border: 2px solid #25D366;
  opacity: 0.85;
  animation: floatingPulse 2.4s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

@keyframes floatingPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.85;
  }

  50% {
    transform: scale(1.24);
    opacity: 0;
  }

  100% {
    transform: scale(1.24);
    opacity: 0;
  }
}

/* Tooltip Badge on Desktop Hover */
.floating-btn-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--color-dark-navy);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 6px 20px rgba(8, 44, 74, 0.25);
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
}

.floating-btn-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--color-dark-navy);
}

.floating-btn:hover .floating-btn-tooltip,
.floating-btn:focus-visible .floating-btn-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.back-to-top-btn {
  position: fixed;
  bottom: 222px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-primary-navy);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: var(--shadow-card-hover);
  cursor: pointer;
  z-index: 1025;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background-color: var(--color-sage-green);
  color: var(--color-white);
  transform: translateY(-3px);
}

/* Mobile Sticky Quick Action Bar */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 0.65rem 1rem;
  z-index: 1025;
  box-shadow: 0 -4px 15px rgba(8, 44, 74, 0.08);
}

@media (max-width: 767.98px) {
  .mobile-sticky-cta {
    display: flex;
    gap: 0.75rem;
  }

  body {
    padding-bottom: 60px;
    /* Space for sticky bar */
  }
}

/* --------------------------------------------------------------------------
   14. Subtle Scroll Animations
   -------------------------------------------------------------------------- */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay classes */
.delay-100 {
  transition-delay: 0.08s;
}

.delay-200 {
  transition-delay: 0.16s;
}

.delay-300 {
  transition-delay: 0.24s;
}

.delay-400 {
  transition-delay: 0.32s;
}

/* --------------------------------------------------------------------------
   15. Responsive Adaptations
   -------------------------------------------------------------------------- */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-custom {
    padding: 0.55rem 0;
  }

  .navbar-logo-img {
    height: 50px;
    max-width: 300px;
  }

  .navbar-nav .nav-link {
    font-size: 0.88rem;
    padding: 0.5rem 0.6rem !important;
  }

  .btn-nav-call {
    font-size: 0.82rem;
    padding: 0.48rem 0.75rem;
  }

  .navbar-custom .btn-primary-navy {
    font-size: 0.82rem;
    padding: 0.48rem 0.85rem;
  }
}

@media (max-width: 991.98px) {
  .navbar-custom {
    padding: 0.7rem 0;
  }

  .navbar-custom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .navbar-brand.brand-wrapper {
    margin-right: 0.35rem !important;
    max-width: calc(100% - 130px);
    flex-shrink: 1;
    min-width: 0;
  }

  .navbar-logo-img {
    height: 48px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    object-position: left center;
    padding: 0;
  }

  .navbar-custom.scrolled .navbar-logo-img {
    height: 40px;
    max-width: 100%;
  }

  .navbar-mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    flex-shrink: 0;
  }

  .navbar-toggler {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 38px;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
  }

  .btn-nav-call-mobile {
    height: 38px;
    padding: 0.32rem 0.65rem;
    font-size: 0.82rem;
  }

  .navbar-collapse {
    flex-basis: 100%;
    width: 100%;
    background-color: #C98942;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-top: 0.75rem;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .floating-hero-card {
    position: static;
    margin-top: 1.5rem;
    max-width: 100%;
    animation: none;
  }

  .hero-home {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-image-frame img {
    height: 380px;
  }
}

@media (max-width: 575.98px) {
  .navbar-custom {
    padding: 0.45rem 0;
  }

  .navbar-brand.brand-wrapper {
    margin-right: 0.25rem !important;
    max-width: calc(100% - 116px);
    flex-shrink: 1;
    min-width: 0;
  }

  .navbar-logo-img {
    height: clamp(38px, 10.5vw, 44px);
    max-width: 100%;
    width: auto;
    object-fit: contain;
    padding: 0;
  }

  .navbar-custom.scrolled .navbar-logo-img {
    height: clamp(32px, 8.5vw, 36px);
    max-width: 100%;
  }

  .navbar-mobile-actions {
    gap: 0.3rem;
  }

  .navbar-toggler {
    padding: 0.25rem 0.45rem;
    font-size: 0.85rem;
    height: 35px;
    width: 38px;
  }

  .btn-nav-call-mobile {
    padding: 0.28rem 0.52rem;
    font-size: 0.78rem;
    height: 35px;
    gap: 0.25rem;
  }

  .section-padding {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .hero-image-frame img {
    height: 280px;
  }

  .form-card {
    padding: 1.35rem;
  }

  .custom-card {
    padding: 1.35rem;
  }

  /* Mobile Side-by-Side Footer Links */
  .site-footer {
    padding-top: 3.5rem;
  }

  .site-footer .footer-heading {
    font-size: 1.02rem;
    margin-bottom: 0.85rem;
  }

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

  .site-footer .footer-links a {
    font-size: 0.86rem;
    gap: 0.35rem;
  }
}

/* --------------------------------------------------------------------------
   Responsive Department Bento Grid Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .dept-card {
    padding: 1.85rem 1.65rem;
    min-height: 195px;
  }

  .dept-title {
    font-size: 1.28rem;
  }

  .dept-card-icon {
    flex: 0 0 95px;
    width: 95px;
    height: 95px;
  }

  .dept-cartoon-img {
    max-width: 95px;
    max-height: 95px;
  }
}

@media (max-width: 991.98px) {
  .dept-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .dept-span-12,
  .dept-span-10,
  .dept-span-8,
  .dept-span-7 {
    grid-column: span 1;
  }

  .dept-card {
    min-height: auto;
    padding: 1.75rem 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .dept-bento-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .dept-span-12,
  .dept-span-10,
  .dept-span-8,
  .dept-span-7 {
    grid-column: span 1;
  }

  .dept-card {
    padding: 1.45rem 1.25rem;
    align-items: center;
    border-radius: 16px;
  }

  .dept-title {
    font-size: 1.2rem;
    margin-bottom: 0.45rem;
  }

  .dept-conditions {
    font-size: 0.88rem;
    margin-bottom: 0.85rem;
    line-height: 1.4;
  }

  .dept-card-icon {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
  }

  .dept-cartoon-img {
    max-width: 80px;
    max-height: 80px;
  }

  .floating-contact-actions {
    bottom: 74px;
    right: 14px;
    gap: 10px;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  .floating-btn-tooltip {
    display: none;
  }

  .back-to-top-btn {
    bottom: 256px;
    right: 18px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(8, 44, 74, 0.22);
  }
}

@media (max-width: 480px) {
  .dept-card {
    padding: 1.25rem 1rem;
    gap: 0.85rem;
  }

  .dept-title {
    font-size: 1.12rem;
  }

  .dept-conditions {
    font-size: 0.82rem;
  }

  .dept-card-icon {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
  }

  .floating-contact-actions {
    bottom: 72px;
    right: 12px;
    gap: 8px;
  }

  .floating-btn {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .back-to-top-btn {
    bottom: 238px;
    right: 15px;
    width: 36px;
    height: 36px;
    font-size: 0.92rem;
  }
}

/* --------------------------------------------------------------------------
   16. Three.js 3D Canvas & GSAP Animation Enhancements
   -------------------------------------------------------------------------- */
.hero-canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: grab;
  border-radius: 32px;
  overflow: hidden;
}

.hero-canvas-container:active {
  cursor: grabbing;
}

#heroThreeCanvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}

/* When GSAP is active, delegate transitions to GSAP engine to prevent CSS lag */
body.has-gsap .reveal-fade-up {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (max-width: 991.98px) {
  .hero-3d-stage {
    height: 420px;
    border-radius: 24px;
    margin-top: 1rem;
  }

  .hero-canvas-container,
  .hero-image-media-wrapper {
    border-radius: 24px;
  }

  .floating-hero-card.floating-card-top {
    right: 12px;
    top: 12px;
    max-width: 260px;
    padding: 0.8rem 1rem;
  }

  .floating-hero-card.floating-card-bottom {
    left: 12px;
    bottom: 12px;
    max-width: 260px;
    padding: 0.8rem 1rem;
  }
}

@media (max-width: 575.98px) {
  .hero-3d-stage {
    height: 350px;
    border-radius: 20px;
  }

  .hero-canvas-container,
  .hero-image-media-wrapper {
    border-radius: 20px;
  }

  .stage-procedure-pill {
    display: none;
  }

  .stage-tag-badge {
    top: 10px;
    left: 10px;
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
  }

  .floating-hero-card.floating-card-top {
    display: none;
  }

  .floating-hero-card.floating-card-bottom {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 0.7rem 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  }

  .stage-interaction-hint {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   17. Page Preloader & Animated Logo Experience
   -------------------------------------------------------------------------- */
.page-preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff !important;
  background: #ffffff !important;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.page-preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
}

.preloader-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  z-index: 2;
}

/* Concentric Sonar Halo Rings */
.preloader-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  pointer-events: none;
  z-index: 1;
}

.preloader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(8, 44, 74, 0.22);
  animation: sonarRing 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.preloader-ring.ring-2 {
  animation-delay: 0.9s;
  border-color: rgba(8, 44, 74, 0.16);
}

.preloader-ring.ring-3 {
  animation-delay: 1.8s;
  border-color: rgba(8, 44, 74, 0.10);
}

@keyframes sonarRing {
  0% {
    transform: scale(0.65);
    opacity: 0.9;
  }

  60% {
    opacity: 0.35;
  }

  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

/* Logo Presentation */
.preloader-logo-card {
  position: relative;
  background-color: transparent !important;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible;
  z-index: 3;
  animation: preloaderLogoPulse 2.4s ease-in-out infinite;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo-img {
  height: 96px;
  width: auto;
  max-width: 380px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(8, 44, 74, 0.18));
}

@keyframes preloaderLogoPulse {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 4px 12px rgba(8, 44, 74, 0.18));
  }

  50% {
    transform: scale(1.03);
    filter: drop-shadow(0 8px 20px rgba(8, 44, 74, 0.28));
  }
}

/* Metallic Light Shimmer Sweep across Logo (disabled for clean appearance) */
.preloader-shimmer {
  display: none;
}

@keyframes shimmerSweep {
  0% {
    transform: translateX(-120%);
  }

  55%,
  100% {
    transform: translateX(120%);
  }
}

/* ECG Vitality Trace */
.preloader-ecg-wrap {
  width: 220px;
  height: 38px;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  z-index: 3;
}

.preloader-ecg-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.preloader-ecg-bg {
  stroke: rgba(8, 44, 74, 0.2);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.preloader-ecg-pulse {
  stroke: #082C4A;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 45 195;
  stroke-dashoffset: 240;
  filter: drop-shadow(0 0 6px rgba(8, 44, 74, 0.4));
  animation: preloaderEcg 1.5s linear infinite;
}

@keyframes preloaderEcg {
  0% {
    stroke-dashoffset: 240;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

/* Slogan & Progress Bar */
.preloader-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  z-index: 3;
}

.preloader-slogan {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #082C4A;
  text-transform: uppercase;
  text-shadow: none;
}

.preloader-progress-track {
  width: 170px;
  height: 3px;
  background: rgba(8, 44, 74, 0.18);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.preloader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #082C4A 0%, #145A8D 100%);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(8, 44, 74, 0.4);
  animation: preloaderProgressFill 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes preloaderProgressFill {
  0% {
    width: 0%;
  }

  35% {
    width: 45%;
  }

  75% {
    width: 85%;
  }

  100% {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .preloader-logo-card {
    padding: 0;
    border-radius: 0;
    border: none;
  }

  .preloader-logo-img {
    height: 72px;
    max-width: 280px;
  }

  .preloader-rings {
    width: 260px;
    height: 260px;
  }

  .preloader-ecg-wrap {
    width: 180px;
    height: 32px;
    margin-top: 1.25rem;
  }

  .preloader-slogan {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
  }

  .preloader-progress-track {
    width: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .preloader-ring,
  .preloader-logo-card,
  .preloader-shimmer,
  .preloader-ecg-pulse,
  .preloader-progress-bar {
    animation: none !important;
  }

  .preloader-progress-bar {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   18. Blog & Clinical Insights UI System
   -------------------------------------------------------------------------- */
.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.blog-category-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.blog-category-btn {
  padding: 0.5rem 1.15rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background-color: var(--color-warm-white);
  color: var(--color-dark-navy);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.blog-category-btn:hover {
  border-color: #1C4D38;
  color: #1C4D38;
  background-color: #FFFFFF;
}

.blog-category-btn.active {
  background: linear-gradient(135deg, #1C4D38 0%, #256348 100%);
  color: #FFFFFF;
  border-color: #1C4D38;
  box-shadow: 0 4px 14px rgba(28, 77, 56, 0.28);
}

.blog-search-wrap {
  position: relative;
  min-width: 260px;
}

.blog-search-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted-text);
  font-size: 1rem;
}

.blog-search-input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  font-size: 0.88rem;
  background-color: var(--color-warm-white);
  transition: all var(--transition-fast);
}

.blog-search-input:focus {
  background-color: #FFFFFF;
  border-color: #1C4D38;
  outline: none;
  box-shadow: 0 0 0 3px rgba(28, 77, 56, 0.15);
}

/* Featured Blog Hero Card */
.blog-featured-card {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: 0 16px 40px rgba(11, 59, 99, 0.08);
  overflow: hidden;
  margin-bottom: 3.5rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.blog-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(11, 59, 99, 0.14);
}

.blog-featured-img-wrap {
  position: relative;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
}

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

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

.blog-featured-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: linear-gradient(135deg, #1C4D38 0%, #256348 100%);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.blog-featured-body {
  padding: 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--color-muted-text);
  margin-bottom: 0.95rem;
}

.blog-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-category-tag {
  background-color: var(--color-sage-bg);
  color: #1C4D38;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.blog-featured-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-dark-navy);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.blog-featured-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.blog-featured-title a:hover {
  color: #1C4D38;
}

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

.blog-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.blog-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
}

.blog-author-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.925rem;
  color: var(--color-dark-navy);
  margin: 0;
  line-height: 1.2;
}

.blog-author-role {
  font-size: 0.78rem;
  color: var(--color-muted-text);
  margin: 0;
}

/* Standard Blog Card Grid */
.blog-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.blog-card-thumb-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-color: var(--color-warm-white);
}

.blog-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-thumb {
  transform: scale(1.05);
}

.blog-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  color: #1C4D38;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(28, 77, 56, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

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

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--color-dark-navy);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.blog-card-title a:hover {
  color: #1C4D38;
}

.blog-card-excerpt {
  color: var(--color-muted-text);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.blog-read-btn {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #1C4D38;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: gap var(--transition-fast), color var(--transition-fast);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.blog-read-btn:hover {
  gap: 0.6rem;
  color: var(--color-dark-navy);
}

/* Newsletter Subscription Banner */
.blog-newsletter-section {
  background: linear-gradient(135deg, #143828 0%, #1C4D38 60%, #256348 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  color: #FFFFFF;
  margin-top: 4.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(20, 56, 40, 0.3);
}

.blog-newsletter-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 168, 107, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.blog-newsletter-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.blog-newsletter-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 540px;
}

.blog-newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 500px;
}

.blog-newsletter-input {
  flex-grow: 1;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  outline: none;
}

.blog-newsletter-input:focus {
  background: #FFFFFF;
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 3px rgba(199, 168, 107, 0.4);
}

/* Article Reader Modal */
.blog-modal-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 2rem;
}

.blog-modal-body {
  padding: 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #334155;
}

.blog-modal-body h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-dark-navy);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.blog-takeaway-box {
  background-color: var(--color-warm-white);
  border-left: 4px solid #1C4D38;
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
}

.blog-takeaway-box h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #1C4D38;
  margin-bottom: 0.5rem;
}

.blog-takeaway-box p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-dark-navy);
}

@media (max-width: 991.98px) {
  .blog-featured-title {
    font-size: 1.5rem;
  }

  .blog-featured-body {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .blog-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-search-wrap {
    width: 100%;
  }

  .blog-newsletter-form {
    flex-direction: column;
  }
}