    /* Base Typography */
    body { font-family: 'Plus Jakarta Sans', sans-serif; overflow-x: hidden; }
    h1, h2, h3, h4, h5, h6, .font-heading { font-family: 'Outfit', sans-serif; }

    /* Custom Scrollbar */
    ::-webkit-scrollbar { width: 8px; }
    ::-webkit-scrollbar-track { background: #0b1e33; }
    ::-webkit-scrollbar-thumb { background: #c8102e; border-radius: 4px; }
    ::-webkit-scrollbar-thumb:hover { background: #e11d48; }

    /* Morphing Blob Animation */
    @keyframes morphBlob {
      0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(0deg); }
      33% { border-radius: 40% 60% 70% 30% / 40% 40% 60% 60%; transform: rotate(120deg); }
      66% { border-radius: 70% 30% 50% 50% / 30% 70% 40% 60%; transform: rotate(240deg); }
    }
    .animate-morph {
      animation: morphBlob 14s ease-in-out infinite alternate;
    }

    /* Animated ECG Line */
    @keyframes drawECG {
      0% { stroke-dashoffset: 1000; }
      100% { stroke-dashoffset: 0; }
    }
    .ecg-path {
      stroke-dasharray: 1000;
      stroke-dashoffset: 1000;
      animation: drawECG 4s linear infinite;
    }

    /* Emergency Pulse Aura */
    .pulse-emergency {
      animation: pulse-red 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }
    @keyframes pulse-red {
      0%, 100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.6); }
      50% { box-shadow: 0 0 0 14px rgba(200, 16, 46, 0); }
    }

    /* Scroll Reveal Initial States */
    .scroll-reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
      will-change: opacity, transform;
    }
    .reveal-left {
      opacity: 0;
      transform: translateX(-40px);
      transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal-right {
      opacity: 0;
      transform: translateX(40px);
      transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal-scale {
      opacity: 0;
      transform: scale(0.92);
      transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .revealed {
      opacity: 1 !important;
      transform: translateY(0) translateX(0) scale(1) !important;
    }

    /* SPA Page View Transitions */
    .page-view {
      display: none;
      opacity: 0;
      transform: translateY(12px);
      transition: opacity 0.35s ease-out, transform 0.35s ease-out;
    }
    .page-view.active {
      display: block;
      opacity: 1;
      transform: translateY(0);
    }

    /* Stacked Sticky Card Styles */
    .stacked-card {
      position: sticky;
      top: 100px;
      transition: transform 0.3s ease, filter 0.3s ease;
    }

    /* Magnetic element helper */
    .magnetic-item {
      display: inline-block;
      transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
      will-change: transform;
    }



/* ==============================
   HERO IMAGE SLIDER
============================== */

.hero-image-slider {
  position: relative;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;

  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 650ms ease,
    transform 1000ms ease;

  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Navigation arrows */
.hero-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 20;
  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;

  color: #fff;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);

  cursor: pointer;
  transition:
    background 250ms ease,
    transform 250ms ease;
}

.hero-slider-prev {
  left: 12px;
}

.hero-slider-next {
  right: 12px;
}

.hero-slider-arrow:hover {
  background: #e11d48;
  transform: translateY(-50%) scale(1.08);
}

.hero-slider-arrow:focus-visible,
.hero-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Bottom indicators */
.hero-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  z-index: 20;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition:
    width 250ms ease,
    background 250ms ease;
}

.hero-dot.active {
  width: 23px;
  background: #fff;
}

/* Tablet and mobile */
@media (max-width: 640px) {
  .hero-slider-arrow {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .hero-slider-prev {
    left: 8px;
  }

  .hero-slider-next {
    right: 8px;
  }

  .hero-slider-dots {
    bottom: 8px;
  }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slider-arrow,
  .hero-dot {
    transition: none;
  }
}





/* ==================================
   FACILITIES CARDS
================================== */

.facility-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 1.5rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition:
    transform 300ms ease,
    box-shadow 300ms ease,
    border-color 300ms ease;
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
  border-color: #e2e8f0;
}

.facility-image {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
  background: #f1f5f9;
  transition: transform 500ms ease;
}

.facility-card:hover .facility-image {
  transform: scale(1.04);
}

.facility-card > div {
  position: relative;
  background: #fff;
}

.facility-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 1rem;
  flex-shrink: 0;
  font-size: 1.25rem;
}

@media (max-width: 639px) {
  .facility-image {
    height: 210px;
  }

  .facility-card:hover {
    transform: translateY(-2px);
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .facility-image {
    height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .facility-card,
  .facility-image {
    transition: none;
  }

  .facility-card:hover,
  .facility-card:hover .facility-image {
    transform: none;
  }
}


/* ======================================
   PREMIUM HERO IMAGE SLIDER
====================================== */

.hero-image-slider {
  position: relative;
  isolation: isolate;
}

/* Images */
.hero-image-slider .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;

  opacity: 0;
  transform: scale(1.045);

  transition:
    opacity 650ms ease,
    transform 1100ms cubic-bezier(0.2, 0.65, 0.3, 1);

  pointer-events: none;
}

.hero-image-slider .hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* ======================================
   LOADER OVERLAY
====================================== */

.hero-loader-overlay {
  position: absolute;
  inset: 0;
  z-index: 25;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(6, 19, 34, 0.82);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 350ms ease,
    visibility 350ms ease;
}

.hero-loader-overlay.is-loading {
  opacity: 1;
  visibility: visible;
}

/* Loader content */
.hero-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;

  transform: translateY(8px) scale(0.94);
  transition: transform 350ms ease;
}

.hero-loader-overlay.is-loading .hero-loader-content {
  transform: translateY(0) scale(1);
}

/* Rotating ring */
.hero-loader-ring {
  position: absolute;

  width: 112px;
  height: 112px;

  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: #C8102E;
  border-right-color: #ffffff;
  border-radius: 50%;

  animation: heroLogoSpin 1.1s linear infinite;
}

/* Small decorative glow behind the logo */
.hero-loader-logo {
  position: relative;
  z-index: 1;

  width: 78px;
  height: 63px;

  display: flex;
  align-items: center;
  justify-content: center;

  filter: drop-shadow(0 0 12px rgba(200, 16, 46, 0.3));

  animation: heroLogoFloat 1.5s ease-in-out infinite;
}

.hero-loader-label {
  color: rgba(255, 255, 255, 0.9);

  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;

  animation: heroLabelPulse 1.5s ease-in-out infinite;
}

/* ======================================
   LOADER ANIMATIONS
====================================== */

@keyframes heroLogoSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes heroLogoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.035);
  }
}

@keyframes heroLabelPulse {
  0%, 100% {
    opacity: 0.65;
  }

  50% {
    opacity: 1;
  }
}

/* ======================================
   NAVIGATION ARROWS
====================================== */

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 30;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;

  color: #fff;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);

  cursor: pointer;

  transform: translateY(-50%);

  transition:
    background 250ms ease,
    transform 250ms ease;
}

.hero-slider-prev {
  left: 12px;
}

.hero-slider-next {
  right: 12px;
}

.hero-slider-arrow:hover {
  background: #C8102E;
  transform: translateY(-50%) scale(1.08);
}

.hero-slider-arrow:focus-visible,
.hero-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ======================================
   SLIDER DOTS
====================================== */

.hero-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  z-index: 30;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  transform: translateX(-50%);
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;

  border: 0;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;

  transition:
    width 250ms ease,
    background 250ms ease;
}

.hero-dot.active {
  width: 23px;
  background: #fff;
}

/* ======================================
   RESPONSIVE
====================================== */

@media (max-width: 640px) {
  .hero-loader-ring {
    width: 88px;
    height: 88px;
  }

  .hero-loader-logo {
    width: 62px;
    height: 50px;
  }

  .hero-loader-content {
    gap: 14px;
  }

  .hero-loader-label {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .hero-slider-arrow {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .hero-slider-prev {
    left: 8px;
  }

  .hero-slider-next {
    right: 8px;
  }

  .hero-slider-dots {
    bottom: 8px;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-image-slider .hero-slide,
  .hero-loader-overlay,
  .hero-loader-content,
  .hero-slider-arrow,
  .hero-dot {
    transition: none;
  }

  .hero-loader-ring,
  .hero-loader-logo,
  .hero-loader-label {
    animation: none;
  }
}

/* Remove the rotating circle ring */
.hero-loader-ring {
  display: none;
}

/* Animate only the hospital logo */
.hero-loader-logo {
  position: relative;
  z-index: 1;
  width: 78px;
  height: 63px;
  display: flex;
  align-items: center;
  justify-content: center;

  filter: drop-shadow(0 0 12px rgba(200, 16, 46, 0.35));

  animation: heroLogoFlip 1.1s ease-in-out infinite;
  transform-origin: center;
}

/* Logo rotates on its own axis */
@keyframes heroLogoFlip {
  0% {
    transform: perspective(500px) rotateY(0deg);
    opacity: 1;
  }

  45% {
    transform: perspective(500px) rotateY(90deg);
    opacity: 0.15;
  }

  55% {
    transform: perspective(500px) rotateY(90deg);
    opacity: 0.15;
  }

  100% {
    transform: perspective(500px) rotateY(360deg);
    opacity: 1;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .hero-loader-logo {
    width: 100px;
    height: 100px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-loader-logo {
    animation: none;
  }
}




/* ==========================================
   FREEDOM HOSPITALS — PREMIUM IMAGE GALLERY
   Brand Navy: #0B1E33
   Brand Red:  #C8102E
========================================== */

.fh-gallery-section {
    --fh-navy: #0b1e33;
    --fh-red: #c8102e;
    --fh-light: #f5f7fa;

    position: relative;
    padding: 100px 0 85px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
    font-family: inherit;
}

.fh-gallery-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

/* Heading */

.fh-gallery-heading {
    max-width: 780px;
    margin: 0 0 42px;
    text-align: left;
}

.fh-gallery-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 17px;
    color: var(--fh-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.6;
}

.fh-eyebrow-line {
    width: 34px;
    height: 2px;
    flex-shrink: 0;
    background: var(--fh-red);
}

/* .fh-gallery-heading h2 {
    margin: 0;
    color: var(--fh-navy);
    font-size: clamp(32px, 4.2vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.fh-gallery-heading h2 span {
    color: var(--fh-red);
} */

.fh-gallery-heading p {
    max-width: 690px;
    margin: 18px 0 0;
    color: #647184;
    font-size: 16px;
    line-height: 1.85;
}

/* Carousel frame */

.fh-gallery-carousel {
    position: relative;
}

.fh-gallery-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8.3;
    overflow: hidden;
    border-radius: 20px;
    background: var(--fh-navy);
    box-shadow:
        0 24px 65px rgba(11, 30, 51, 0.16),
        0 4px 14px rgba(11, 30, 51, 0.08);
    isolation: isolate;
}

.fh-gallery-slide {
    position: absolute;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    transform: scale(1.035);
    transition:
        opacity 650ms ease,
        transform 1800ms cubic-bezier(0.2, 0.65, 0.3, 1),
        visibility 650ms;
    pointer-events: none;
}

.fh-gallery-slide.is-active {
    z-index: 2;
    visibility: visible;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.fh-gallery-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.fh-gallery-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 5s ease;
}

.fh-gallery-slide.is-active .fh-gallery-image-wrap img {
    transform: scale(1.035);
}

.fh-gallery-image-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(7, 20, 36, 0.91) 0%,
            rgba(7, 20, 36, 0.72) 34%,
            rgba(7, 20, 36, 0.24) 70%,
            rgba(7, 20, 36, 0.05) 100%
        ),
        linear-gradient(
            0deg,
            rgba(7, 20, 36, 0.38) 0%,
            transparent 45%
        );
}

.fh-gallery-image-content {
    position: absolute;
    z-index: 2;
    left: clamp(24px, 5.5vw, 70px);
    bottom: clamp(28px, 5.5vw, 66px);
    width: min(520px, calc(100% - 48px));
    color: #fff;
    text-align: left;
}

.fh-gallery-number {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.fh-gallery-number::before {
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--fh-red);
    content: "";
}

.fh-gallery-image-content h3 {
    max-width: 510px;
    margin: 0;
    color: #fff;
    font-size: clamp(25px, 3.4vw, 43px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.8px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.fh-gallery-image-content p {
    max-width: 420px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.8;
}

/* Controls */

.fh-gallery-controls {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 25px 0 0;
}

.fh-gallery-counter {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 76px;
    color: #8b96a5;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.fh-current-slide {
    color: var(--fh-navy);
    font-size: 22px;
    font-weight: 800;
}

.fh-counter-divider {
    width: 23px;
    height: 1px;
    background: #c6ccd4;
    transform: rotate(-55deg);
}

.fh-gallery-progress {
    position: relative;
    flex: 1;
    height: 3px;
    overflow: hidden;
    border-radius: 5px;
    background: #dfe4ea;
}

.fh-gallery-progress-bar {
    display: block;
    width: 10%;
    height: 100%;
    border-radius: inherit;
    background: var(--fh-red);
    transition: width 500ms ease;
}

.fh-gallery-buttons {
    display: flex;
    gap: 10px;
}

.fh-gallery-buttons button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid #d9dfe6;
    border-radius: 50%;
    background: #fff;
    color: var(--fh-navy);
    font-size: 15px;
    cursor: pointer;
    transition:
        color 250ms ease,
        background 250ms ease,
        border-color 250ms ease,
        transform 250ms ease;
}

.fh-gallery-buttons button:hover {
    border-color: var(--fh-red);
    background: var(--fh-red);
    color: #fff;
    transform: translateY(-2px);
}

.fh-gallery-buttons button:focus-visible {
    outline: 3px solid rgba(200, 16, 46, 0.3);
    outline-offset: 4px;
}

/* Footer */

.fh-gallery-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    color: #748092;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.fh-gallery-footer-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fh-red);
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.09);
}

/* Tablet */

@media (max-width: 768px) {
    .fh-gallery-section {
        padding: 75px 0 65px;
    }

    .fh-gallery-container {
        width: calc(100% - 36px);
    }

    .fh-gallery-heading {
        margin-bottom: 30px;
    }

    .fh-gallery-heading p {
        font-size: 15px;
        line-height: 1.8;
    }

    .fh-gallery-track {
        aspect-ratio: 4 / 3;
        border-radius: 16px;
    }

    .fh-gallery-image-overlay {
        background:
            linear-gradient(
                0deg,
                rgba(7, 20, 36, 0.94) 0%,
                rgba(7, 20, 36, 0.60) 43%,
                rgba(7, 20, 36, 0.05) 100%
            );
    }

    .fh-gallery-image-content {
        left: 25px;
        bottom: 30px;
        width: calc(100% - 50px);
    }

    .fh-gallery-image-content h3 {
        font-size: clamp(25px, 4.5vw, 34px);
    }

    .fh-gallery-image-content p {
        max-width: 390px;
        font-size: 14px;
    }

    .fh-gallery-controls {
        gap: 16px;
        padding-top: 20px;
    }

    .fh-gallery-buttons button {
        width: 43px;
        height: 43px;
    }
}

/* Mobile */

@media (max-width: 480px) {
    .fh-gallery-section {
        padding: 58px 0 50px;
    }

    .fh-gallery-container {
        width: calc(100% - 28px);
    }

    .fh-gallery-eyebrow {
        gap: 9px;
        font-size: 10px;
        letter-spacing: 1.3px;
    }

    .fh-eyebrow-line {
        width: 24px;
    }

    .fh-gallery-heading h2 {
        font-size: 32px;
        line-height: 1.2;
        letter-spacing: -0.8px;
    }

    .fh-gallery-heading p {
        margin-top: 13px;
        font-size: 14px;
        line-height: 1.75;
    }

    .fh-gallery-track {
        aspect-ratio: 3 / 4;
        border-radius: 14px;
    }

    .fh-gallery-image-wrap img {
        object-position: center;
    }

    .fh-gallery-image-content {
        left: 20px;
        bottom: 25px;
        width: calc(100% - 40px);
    }

    .fh-gallery-number {
        margin-bottom: 13px;
        font-size: 10px;
    }

    .fh-gallery-image-content h3 {
        font-size: 27px;
        line-height: 1.22;
        letter-spacing: -0.4px;
    }

    .fh-gallery-image-content p {
        margin-top: 10px;
        font-size: 13px;
        line-height: 1.65;
    }

    .fh-gallery-controls {
        gap: 10px;
        padding-top: 17px;
    }

    .fh-gallery-counter {
        gap: 7px;
        min-width: 62px;
        font-size: 11px;
    }

    .fh-current-slide {
        font-size: 19px;
    }

    .fh-counter-divider {
        width: 16px;
    }

    .fh-gallery-buttons {
        gap: 7px;
    }

    .fh-gallery-buttons button {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .fh-gallery-footer {
        align-items: flex-start;
        margin-top: 20px;
        font-size: 11px;
        line-height: 1.7;
    }
}

/* Respect reduced-motion preference */

@media (prefers-reduced-motion: reduce) {
    .fh-gallery-slide,
    .fh-gallery-image-wrap img,
    .fh-gallery-progress-bar,
    .fh-gallery-buttons button {
        transition: none !important;
    }

    .fh-gallery-slide.is-active .fh-gallery-image-wrap img {
        transform: none;
    }
}

/* =========================================
   FREEDOM HOSPITALS - SPLIT IMAGE GALLERY
========================================= */

#hospital-gallery .fh-gallery-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    align-items: stretch;
    gap: 22px;
}

/* Main image column */

#hospital-gallery .fh-gallery-main {
    min-width: 0;
}

#hospital-gallery .fh-gallery-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1.48 / 1;
    overflow: hidden;
    border-radius: 18px;
    background: #0b1e33;
    box-shadow: 0 18px 45px rgba(11, 30, 51, 0.15);
}

#hospital-gallery .fh-main-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Full image visible, no cropping */
    object-position: center;
    background: #0b1e33;
    opacity: 1;
    transition: opacity 250ms ease;
}

#hospital-gallery .fh-main-image.is-changing {
    opacity: 0.25;
}

/* #hospital-gallery .fh-main-image-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        0deg,
        rgba(5, 18, 33, 0.92) 0%,
        rgba(5, 18, 33, 0.62) 24%,
        rgba(5, 18, 33, 0.05) 90%,
        transparent 100%
    );
} */

/* #hospital-gallery .fh-main-image-caption {
    position: absolute;
    left: clamp(20px, 3vw, 38px);
    right: 20px;
    bottom: clamp(22px, 3vw, 36px);
    z-index: 2;
    color: #fff;
    text-align: left;
}

#hospital-gallery .fh-main-image-number {
    display: inline-block;
    margin-bottom: 12px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

#hospital-gallery .fh-main-image-number::before {
    content: "";
    display: inline-block;
    width: 25px;
    height: 2px;
    margin: 0 9px 3px 0;
    background: #c8102e;
}

#hospital-gallery .fh-main-image-title {
    margin: 0;
    color: #fff;
    font-size: clamp(23px, 2.5vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

#hospital-gallery .fh-main-image-description {
    max-width: 460px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    line-height: 1.7;
} */


#hospital-gallery .fh-main-image-caption {
    padding: 28px 0 18px;
    position: static;
    color: #000;
    text-align: left;
}

#hospital-gallery .fh-main-image-number {
    display: inline-block;
    margin-bottom: 12px;
    color: #fe6966;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#hospital-gallery .fh-main-image-number::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 2px;
    margin: 0 10px 3px 0;
    background: #fe6966;
}

#hospital-gallery .fh-main-image-title {
    margin: 0;
    color: rgb(15 23 42 / var(--tw-text-opacity, 1));
    /* font-size: clamp(28px, 2.5vw, 40px); */
    font-weight: 700;
    line-height: 1.25;
}

#hospital-gallery .fh-main-image-description {
    max-width: 700px;
    margin-top: 14px;
    color: #666095;
    font-size: 16px;
    line-height: 1.8;
}
/* Controls: main image width only */

#hospital-gallery .fh-gallery-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding-top: 20px;
}

#hospital-gallery .fh-gallery-counter {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    min-width: 70px;
    color: #8b96a5;
    font-size: 12px;
    font-weight: 700;
}

#hospital-gallery .fh-current-slide {
    color: #0b1e33;
    font-size: 21px;
    font-weight: 800;
}

#hospital-gallery .fh-counter-divider {
    width: 18px;
    height: 1px;
    background: #aab3bf;
    transform: rotate(-55deg);
}

#hospital-gallery .fh-gallery-progress {
    flex: 1;
    min-width: 20px;
    height: 3px;
    overflow: hidden;
    border-radius: 5px;
    background: #dfe4ea;
}

#hospital-gallery .fh-gallery-progress-bar {
    display: block;
    width: 10%;
    height: 100%;
    border-radius: inherit;
    background: #c8102e;
    transition: width 350ms ease;
}

#hospital-gallery .fh-gallery-buttons {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

#hospital-gallery .fh-gallery-buttons button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #dce1e8;
    border-radius: 50%;
    background: #fff;
    color: #0b1e33;
    cursor: pointer;
    transition: all 250ms ease;
}

#hospital-gallery .fh-gallery-buttons button:hover {
    border-color: #c8102e;
    background: #c8102e;
    color: #fff;
    transform: translateY(-2px);
}

#hospital-gallery .fh-gallery-buttons button:focus-visible,
#hospital-gallery .fh-gallery-thumb:focus-visible {
    outline: 3px solid rgba(200, 16, 46, 0.3);
    outline-offset: 3px;
}

/* Right-side vertical thumbnail list */

#hospital-gallery .fh-gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 5px 2px 2px;
    scrollbar-width: thin;
    scrollbar-color: #c8102e #e9edf2;
}

#hospital-gallery .fh-gallery-thumbnails::-webkit-scrollbar {
    width: 5px;
}

#hospital-gallery .fh-gallery-thumbnails::-webkit-scrollbar-track {
    border-radius: 8px;
    background: #e9edf2;
}

#hospital-gallery .fh-gallery-thumbnails::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: #c8102e;
}

#hospital-gallery .fh-gallery-thumb {
    position: relative;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 13px;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 90px;
    padding: 8px;
    overflow: hidden;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    background: #fff;
    color: #0b1e33;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 250ms ease,
        background 250ms ease,
        box-shadow 250ms ease,
        transform 250ms ease;
}

#hospital-gallery .fh-gallery-thumb:hover {
    border-color: rgba(200, 16, 46, 0.5);
    transform: translateX(-2px);
}

#hospital-gallery .fh-gallery-thumb.is-active {
    border-color: #c8102e;
    background: #fff8f9;
    box-shadow: 0 5px 18px rgba(200, 16, 46, 0.09);
}

#hospital-gallery .fh-thumb-image {
    position: relative;
    display: block;
    width: 92px;
    height: 72px;
    overflow: hidden;
    border-radius: 7px;
    background: #e9edf2;
}

#hospital-gallery .fh-thumb-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 350ms ease;
}

#hospital-gallery .fh-gallery-thumb:hover .fh-thumb-image img {
    transform: scale(1.06);
}

#hospital-gallery .fh-thumb-number {
    position: absolute;
    left: 5px;
    bottom: 5px;
    padding: 3px 5px;
    border-radius: 4px;
    background: rgba(11, 30, 51, 0.88);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

#hospital-gallery .fh-thumb-title {
    min-width: 0;
    color: #344255;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

#hospital-gallery .fh-gallery-thumb.is-active .fh-thumb-title {
    color: #c8102e;
}

#hospital-gallery .fh-thumb-arrow {
    color: #aab3bf;
    font-size: 11px;
    transition: color 250ms ease, transform 250ms ease;
}

#hospital-gallery .fh-gallery-thumb.is-active .fh-thumb-arrow {
    color: #c8102e;
    transform: translateX(2px);
}

/* Tablet: keep two columns, slightly smaller thumbnails */

@media (min-width: 601px) and (max-width: 900px) {
    #hospital-gallery .fh-gallery-layout {
        grid-template-columns: minmax(0, 1fr) 215px;
        gap: 15px;
    }

    #hospital-gallery .fh-gallery-main-image {
        aspect-ratio: 1.05 / 1;
    }

    #hospital-gallery .fh-gallery-thumb {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 9px;
        min-height: 76px;
        padding: 6px;
    }

    #hospital-gallery .fh-thumb-image {
        width: 70px;
        height: 62px;
    }

    #hospital-gallery .fh-thumb-title {
        font-size: 11px;
    }

    #hospital-gallery .fh-thumb-arrow {
        display: none;
    }

    #hospital-gallery .fh-gallery-controls {
        gap: 10px;
    }

    #hospital-gallery .fh-gallery-buttons {
        gap: 5px;
    }

    #hospital-gallery .fh-gallery-buttons button {
        width: 37px;
        height: 37px;
    }
}

/* Mobile: one large image, thumbnails in horizontal row */

@media (max-width: 600px) {
    #hospital-gallery .fh-gallery-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    #hospital-gallery .fh-gallery-main-image {
        aspect-ratio: 4 / 3;
        border-radius: 13px;
    }

    #hospital-gallery .fh-main-image-caption {
        left: 17px;
        right: 15px;
        bottom: 18px;
    }

    #hospital-gallery .fh-main-image-number {
        margin-bottom: 8px;
        font-size: 10px;
    }

    #hospital-gallery .fh-main-image-title {
        font-size: clamp(20px, 5.5vw, 27px);
        line-height: 1.25;
    }

    #hospital-gallery .fh-main-image-description {
        margin-top: 7px;
        font-size: 12px;
        line-height: 1.5;
    }

    #hospital-gallery .fh-gallery-controls {
        gap: 9px;
        padding-top: 15px;
    }

    #hospital-gallery .fh-gallery-counter {
        gap: 6px;
        min-width: 60px;
    }

    #hospital-gallery .fh-current-slide {
        font-size: 18px;
    }

    #hospital-gallery .fh-counter-divider {
        width: 14px;
    }

    #hospital-gallery .fh-gallery-buttons {
        gap: 6px;
    }

    #hospital-gallery .fh-gallery-buttons button {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    #hospital-gallery .fh-gallery-thumbnails {
        display: grid;
        grid-auto-columns: 155px;
        grid-auto-flow: column;
        grid-template-rows: auto;
        gap: 10px;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 2px 10px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    #hospital-gallery .fh-gallery-thumb {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        min-height: 0;
        padding: 8px;
        border-radius: 10px;
        scroll-snap-align: start;
    }

    #hospital-gallery .fh-thumb-image {
        width: 100%;
        height: 90px;
        flex-shrink: 0;
    }

    #hospital-gallery .fh-thumb-title {
        display: -webkit-box;
        min-height: 34px;
        overflow: hidden;
        font-size: 11px;
        line-height: 1.5;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    #hospital-gallery .fh-thumb-arrow {
        display: none;
    }

    #hospital-gallery .fh-gallery-thumbnails::-webkit-scrollbar {
        height: 4px;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    #hospital-gallery .fh-main-image,
    #hospital-gallery .fh-gallery-thumb,
    #hospital-gallery .fh-gallery-buttons button,
    #hospital-gallery .fh-gallery-progress-bar {
        transition: none !important;
    }
}



/* FREEDOM HOSPITALS GALLERY - HEIGHT FIX */

#hospital-gallery .fh-gallery-layout {
   
    grid-template-columns: minmax(0, 1fr) 300px !important;
    align-items: start !important;
    gap: 18px !important;
}

#hospital-gallery .fh-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: auto;
    filter: none;
    transform: none;
}
#hospital-gallery .fh-gallery-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 2.2 / 1;
    overflow: hidden;
    /* background: #0b1e33; */
}

#hospital-gallery .fh-gallery-thumbnails {
    display: flex !important;
    flex-direction: column !important;
    gap: 9px;
    min-height: 0 !important;
    height: 100%;
    max-height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding: 2px 6px 2px 2px;
    scrollbar-width: thin;
    scrollbar-color: #c8102e #e9edf2;
}

#hospital-gallery .fh-gallery-thumb {
    flex: 0 0 auto !important;
    min-height: 70px !important;
    grid-template-columns: 72px minmax(0, 1fr) 12px !important;
    gap: 9px;
    padding: 6px;
}

#hospital-gallery .fh-thumb-image {
    width: 72px !important;
    height: 58px !important;
}

#hospital-gallery .fh-thumb-title {
    font-size: 11px;
    line-height: 1.4;
}

#hospital-gallery .fh-gallery-controls {
    width: 100%;
    padding-top: 12px !important;
}

/* Reduce section whitespace */
#hospital-gallery.fh-gallery-section {
    padding-top: 45px !important;
    padding-bottom: 40px !important;
}

#hospital-gallery .fh-gallery-heading {
    margin-bottom: 22px !important;
}

#hospital-gallery .fh-gallery-heading p {
    margin-top: 10px !important;
    line-height: 1.7;
}

/* Tablet */
@media (min-width: 601px) and (max-width: 900px) {
    #hospital-gallery .fh-gallery-layout {
        grid-template-columns: minmax(0, 1fr) 205px !important;
        gap: 12px !important;
    }

    #hospital-gallery .fh-gallery-main-image {
        aspect-ratio: 1.2 / 1 !important;
    }

    #hospital-gallery .fh-gallery-thumb {
        grid-template-columns: 60px minmax(0, 1fr) !important;
    }

    #hospital-gallery .fh-thumb-image {
        width: 60px !important;
        height: 52px !important;
    }

    #hospital-gallery .fh-thumb-arrow {
        display: none;
    }
}

/* Mobile: one large image, horizontal thumbnails */
@media (max-width: 600px) {
    #hospital-gallery.fh-gallery-section {
        padding-top: 35px !important;
        padding-bottom: 30px !important;
    }

    #hospital-gallery .fh-gallery-layout {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
    }

    #hospital-gallery .fh-gallery-main-image {
        aspect-ratio: 4 / 3 !important;
    }

    #hospital-gallery .fh-gallery-thumbnails {
        display: grid !important;
        grid-auto-columns: 145px;
        grid-auto-flow: column;
        grid-template-rows: auto;
        gap: 9px;
        height: auto !important;
        max-height: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 2px 2px 9px;
        scroll-snap-type: x proximity;
    }

    #hospital-gallery .fh-gallery-thumb {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        min-height: 0 !important;
        scroll-snap-align: start;
    }

    #hospital-gallery .fh-thumb-image {
        width: 100% !important;
        height: 78px !important;
    }

    #hospital-gallery .fh-thumb-arrow {
        display: none;
    }
}


/* =====================================
   FREEDOM GALLERY - SVG LOADING ANIMATION
===================================== */

#hospital-gallery .fh-gallery-main-image {
    position: relative;
}

/* Loader overlay - hidden by default */
#hospital-gallery .fh-gallery-loader {
    position: absolute;
    inset: 0;
    z-index: 10;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;

    background: rgba(11, 30, 51, 0.88);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 220ms ease,
        visibility 220ms ease;
}

/* Show only while changing image */
#hospital-gallery .fh-gallery-main-image.fh-is-loading .fh-gallery-loader {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
}

#hospital-gallery .fh-gallery-loader-logo {
    width: 86px;
    height: 69px;
    display: flex;
    align-items: center;
    justify-content: center;

    filter: drop-shadow(0 0 14px rgba(200, 16, 46, 0.35));

    animation: fhGalleryLogoRotate 1s ease-in-out infinite;
    transform-origin: center;
}

#hospital-gallery .fh-gallery-loader-logo svg {
    display: block;
    width: 100%;
    height: 100%;
}

#hospital-gallery .fh-gallery-loader-text {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Rotate the SVG logo, not a circular ring */
@keyframes fhGalleryLogoRotate {
    0% {
        transform: perspective(500px) rotateY(0deg);
    }

    45% {
        transform: perspective(500px) rotateY(180deg);
    }

    100% {
        transform: perspective(500px) rotateY(360deg);
    }
}

@media (max-width: 600px) {
    #hospital-gallery .fh-gallery-loader-logo {
        width: 68px;
        height: 55px;
    }

    #hospital-gallery .fh-gallery-loader-text {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #hospital-gallery .fh-gallery-loader-logo {
        animation: none;
    }
}

.aspect-square img
{
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-view-box: calc(-50%, -50%);
    object-position: top;
}

/* logo */
.flogo
{
    width:100%;
    height: 100px;
    margin-top:50px;
}
@media(max-width: 768px)
{
    .flogo
    {
        width:90%;
        height:70px;
        margin:20px;
    }

  
}

