/* ============================================
   Homepage — advanced blue/teal redesign
   Scoped to .hospital-home-page
   ============================================ */

@keyframes hh-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(1.2); }
}

.hospital-home-page,
.hospital-home-page * {
    box-sizing: border-box;
}

.hospital-home-page {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

/* Ensure home content can sit edge-to-edge inside the layout shell */
.modern-container:has(.hospital-home-page) {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.hospital-home-page img {
    max-width: 100%;
    height: auto;
}

/* ---- Cinematic Hero (true full-bleed) ---- */
.hh-hero {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: min(88vh, 720px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(4.5rem, 10vw, 7rem) clamp(1rem, 4vw, 1.5rem) clamp(3rem, 6vw, 4.5rem);
    overflow: hidden;
    color: #e8f4ff;
    border-radius: 0;
    background:
        radial-gradient(ellipse 55% 50% at 50% 35%, rgba(0, 184, 169, 0.22), transparent 58%),
        radial-gradient(ellipse 45% 40% at 80% 10%, rgba(0, 102, 255, 0.28), transparent 55%),
        radial-gradient(ellipse 40% 35% at 15% 80%, rgba(0, 102, 255, 0.18), transparent 50%),
        linear-gradient(165deg, #04101f 0%, #062a3a 45%, #041820 100%);
}

.hh-hero,
.hh-hero-media,
.hh-hero-atmosphere,
.hh-hero-media-veil {
    border-radius: 0 !important;
}

.hh-hero-atmosphere {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hh-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(4px);
    opacity: 0.55;
}

.hh-hero-orb-a {
    width: min(42vw, 28rem);
    height: min(42vw, 28rem);
    top: -8%;
    left: 50%;
    transform: translateX(-55%);
    background: radial-gradient(circle, rgba(0, 184, 169, 0.45), transparent 68%);
    animation: hh-float-a 10s ease-in-out infinite;
}

.hh-hero-orb-b {
    width: min(36vw, 22rem);
    height: min(36vw, 22rem);
    bottom: 8%;
    right: -4%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.4), transparent 70%);
    animation: hh-float-b 12s ease-in-out infinite;
}

.hh-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 197, 253, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 197, 253, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    opacity: 0.55;
}

@keyframes hh-float-a {
    0%, 100% { transform: translateX(-55%) translateY(0); }
    50% { transform: translateX(-50%) translateY(18px); }
}

@keyframes hh-float-b {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

.hh-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hh-hero-media .hh-slideshow {
    position: absolute;
    inset: 0;
}

.hh-hero-media .hh-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hh-hero-media .hh-slide.active {
    opacity: 1;
}

.hh-hero-media .hh-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.04);
    filter: saturate(0.85) brightness(0.55);
}

.hh-hero-media-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 16, 31, 0.72) 0%, rgba(4, 24, 36, 0.78) 45%, rgba(4, 16, 31, 0.92) 100%),
        radial-gradient(ellipse 60% 55% at 50% 40%, rgba(0, 184, 169, 0.18), transparent 65%);
}

.hh-hero-media-controls {
    position: absolute;
    right: clamp(1rem, 3vw, 1.75rem);
    bottom: clamp(1rem, 3vw, 1.75rem);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.hh-hero-wrap {
    position: relative;
    z-index: 2;
    width: min(820px, 100%);
    margin: 0 auto;
    text-align: center;
}

.hh-hero-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hh-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 1.05rem;
    margin-bottom: 1.35rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a5f3e8;
    background: rgba(0, 184, 169, 0.12);
    border: 1px solid rgba(94, 234, 212, 0.28);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.hh-badge i {
    color: #5eead4;
    font-size: 0.85rem;
}

.hh-hero-title {
    margin: 0 0 1.15rem;
    max-width: 16ch;
    font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: clamp(2.4rem, 7vw, 4.4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #7dd3c7;
    text-shadow:
        0 0 40px rgba(0, 184, 169, 0.35),
        0 12px 40px rgba(0, 0, 0, 0.35);
    overflow-wrap: anywhere;
    animation: hh-title-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hh-title-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.hh-hero-text {
    margin: 0 auto 1.75rem;
    max-width: 38rem;
    font-size: clamp(0.98rem, 2.1vw, 1.12rem);
    line-height: 1.75;
    font-weight: 500;
    color: rgba(226, 236, 250, 0.86);
    overflow-wrap: anywhere;
}

.hh-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin-bottom: clamp(2rem, 5vw, 2.75rem);
}

.hh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.95rem 1.45rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.hh-btn-primary {
    background: linear-gradient(120deg, var(--primary-blue, #0066ff), var(--secondary-teal, #00b8a9));
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 14px 32px rgba(0, 102, 255, 0.32);
}

.hh-btn-primary:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 18px 36px rgba(0, 184, 169, 0.35);
}

.hh-btn-ghost {
    background: #fff;
    color: var(--primary-blue, #0066ff);
    border: 1.5px solid rgba(0, 102, 255, 0.22);
    box-shadow: 0 6px 16px rgba(7, 21, 37, 0.05);
}

.hh-btn-ghost:hover {
    background: #f3f8ff;
    color: var(--primary-blue, #0066ff);
    border-color: rgba(0, 102, 255, 0.35);
    transform: translateY(-2px);
}

/* Hero ghost CTA sits on dark atmosphere */
.hh-hero .hh-btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: #e8f4ff;
    border: 1.5px solid rgba(125, 211, 199, 0.45);
    backdrop-filter: blur(8px);
    box-shadow: none;
}

.hh-hero .hh-btn-ghost:hover {
    background: rgba(0, 184, 169, 0.16);
    color: #fff;
    border-color: rgba(94, 234, 212, 0.7);
}

.hh-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    width: min(100%, 560px);
    padding-top: 0.35rem;
}

.hh-hero-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.85rem 0.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.14);
    backdrop-filter: blur(8px);
}

.hh-hero-metric-num {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #5eead4;
}

.hh-hero-metric-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(226, 236, 250, 0.72);
}

/* Legacy slideshow bits still used in hero media controls */
.hh-slideshow {
    position: absolute;
    inset: 0;
}

.hh-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hh-slide.active {
    opacity: 1;
    z-index: 1;
}

.hh-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hh-slideshow-controls {
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.85rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.hh-slideshow-nav {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 12px;
    background: rgba(7, 21, 37, 0.55);
    color: #e8f4ff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.hh-slideshow-nav:hover {
    background: rgba(0, 184, 169, 0.28);
    border-color: rgba(94, 234, 212, 0.45);
}

.hh-slideshow-dots {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hh-slideshow-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hh-slideshow-dot.active {
    width: 22px;
    background: #fff;
}

.hh-gallery-link {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-blue, #0066ff);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

/* ---- Shared section chrome ---- */
.hh-section {
    position: relative;
    padding: clamp(3.25rem, 7vw, 5.25rem) clamp(1rem, 4vw, 1.5rem);
}

.hh-section-alt {
    background:
        radial-gradient(ellipse 50% 40% at 0% 0%, rgba(0, 102, 255, 0.05), transparent 55%),
        radial-gradient(ellipse 45% 35% at 100% 100%, rgba(0, 184, 169, 0.06), transparent 50%),
        linear-gradient(180deg, #f7fafc 0%, #ffffff 55%, #f4f8fc 100%);
}

.hh-section-light {
    background: #ffffff;
}

.hh-container {
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
}

.hh-section-head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto clamp(1.75rem, 4vw, 2.75rem);
}

.hh-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-blue, #0066ff);
    background: rgba(0, 102, 255, 0.07);
    border: 1px solid rgba(0, 102, 255, 0.12);
}

.hh-kicker i { font-size: 0.75rem; color: var(--secondary-teal, #00b8a9); }

.hh-section-title {
    margin: 0 0 0.55rem;
    font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: clamp(1.45rem, 3.5vw, 2rem);
    font-weight: 700;
    color: #071525;
    letter-spacing: -0.03em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.hh-section-text {
    margin: 0;
    color: #5c7086;
    font-size: 0.95rem;
    line-height: 1.65;
    font-weight: 500;
}

.hh-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(15, 39, 66, 0.08);
}

.hh-row-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #071525;
}

.hh-row-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue, #0066ff), var(--secondary-teal, #00b8a9));
    color: #fff;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(0, 102, 255, 0.2);
}

.hh-link-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-blue, #0066ff);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    white-space: nowrap;
    transition: gap 0.2s ease, color 0.2s ease;
}

.hh-link-all:hover {
    gap: 0.6rem;
    color: var(--secondary-teal, #00b8a9);
    text-decoration: none;
}

/* ---- Features (Why Choose Us) ---- */
.hh-features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.05rem;
}

.hh-feature {
    position: relative;
    background: #fff;
    border: 1px solid rgba(15, 39, 66, 0.08);
    border-radius: 1.2rem;
    padding: 1.4rem 1.3rem 1.45rem;
    box-shadow: 0 10px 28px rgba(7, 21, 37, 0.05);
    min-width: 0;
    overflow: hidden;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.hh-feature::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue, #0066ff), var(--secondary-teal, #00b8a9));
    opacity: 0.85;
}

.hh-feature:nth-child(even)::before {
    background: linear-gradient(90deg, var(--secondary-teal, #00b8a9), var(--primary-blue, #0066ff));
}

.hh-feature:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 102, 255, 0.2);
    box-shadow: 0 18px 40px rgba(0, 102, 255, 0.1);
}

.hh-feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--primary-blue, #0066ff), var(--secondary-teal, #00b8a9));
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 22px rgba(0, 102, 255, 0.22);
    transition: transform 0.28s ease;
}

.hh-feature:hover .hh-feature-icon {
    transform: scale(1.05) rotate(-3deg);
}

.hh-feature h3 {
    margin: 0 0 0.45rem;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #071525;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.hh-feature p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.6;
    font-weight: 500;
    color: #5c7086;
    overflow-wrap: anywhere;
}

/* ---- Cards (dept / doctor / service / news) — image top, text below ---- */
.hh-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.hh-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.hh-card {
    background: #fff;
    border: 1px solid rgba(15, 39, 66, 0.08);
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(7, 21, 37, 0.06);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.hh-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 102, 255, 0.22);
    box-shadow: 0 22px 44px rgba(0, 102, 255, 0.12);
}

.hh-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
    background: linear-gradient(145deg, #e8f1ff 0%, #e6faf7 100%);
    overflow: hidden;
}

.hh-card-media::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue, #0066ff), var(--secondary-teal, #00b8a9));
    z-index: 1;
}

.hh-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.hh-card:hover .hh-card-media img {
    transform: scale(1.05);
}

.hh-card-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue, #0066ff);
    font-size: 2.2rem;
    background:
        radial-gradient(circle at 30% 30%, rgba(0, 102, 255, 0.12), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 184, 169, 0.14), transparent 45%),
        linear-gradient(145deg, #eef5ff, #e8fbf8);
}

.hh-card-fallback i {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #fff;
    background: linear-gradient(145deg, var(--primary-blue, #0066ff), var(--secondary-teal, #00b8a9));
    box-shadow: 0 12px 24px rgba(0, 102, 255, 0.22);
}

.hh-card-body {
    padding: 1.1rem 1.15rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.hh-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(0, 102, 255, 0.07);
    border: 1px solid rgba(0, 102, 255, 0.12);
    color: var(--primary-blue, #0066ff);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.hh-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hh-card-title {
    margin: 0 0 0.4rem;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: #071525;
    letter-spacing: -0.02em;
    line-height: 1.3;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hh-card:hover .hh-card-title {
    color: var(--primary-blue, #0066ff);
}

.hh-card-text {
    margin: 0 0 0.95rem;
    font-size: 0.84rem;
    line-height: 1.55;
    font-weight: 500;
    color: #5c7086;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.hh-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: auto;
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 0.8rem;
    background: linear-gradient(120deg, var(--primary-blue, #0066ff), var(--secondary-teal, #00b8a9));
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(0, 102, 255, 0.18);
    transition: gap 0.2s ease, box-shadow 0.2s ease;
}

.hh-card:hover .hh-card-cta {
    gap: 0.65rem;
    box-shadow: 0 12px 24px rgba(0, 184, 169, 0.22);
}

.hh-card-cta span,
.hh-card-cta i {
    white-space: nowrap;
    flex-shrink: 0;
}

.hh-card-cta i {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

/* Doctor cards */
.hh-doctor-card .hh-card-media {
    aspect-ratio: 1 / 1;
    max-height: none;
}

.hh-doctor-meta {
    margin: 0 0 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary-teal, #00b8a9);
}

.hh-block {
    margin-bottom: clamp(2.25rem, 5vw, 3.25rem);
}

.hh-block:last-child {
    margin-bottom: 0;
}

.hh-center-cta {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.hh-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #8091aa;
}

.hh-news-meta i {
    margin-right: 0.3rem;
    color: var(--primary-blue, #0066ff);
}

/* ---- Testimonials ---- */
.hh-testimonials-slider {
    position: relative;
    overflow: hidden;
    border-radius: 1.35rem;
}

.hh-testimonials-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hh-testimonial-slide {
    min-width: 100%;
    padding: 0.25rem;
}

.hh-testimonial-card {
    position: relative;
    background:
        radial-gradient(ellipse 50% 40% at 0% 0%, rgba(0, 102, 255, 0.06), transparent 55%),
        #fff;
    border: 1px solid rgba(15, 39, 66, 0.08);
    border-radius: 1.35rem;
    padding: clamp(1.5rem, 3.5vw, 2.25rem);
    box-shadow: 0 16px 40px rgba(7, 21, 37, 0.07);
    max-width: 780px;
    margin: 0 auto;
    overflow: hidden;
}

.hh-testimonial-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-blue, #0066ff), var(--secondary-teal, #00b8a9));
}

.hh-testimonial-quote {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--primary-blue, #0066ff), var(--secondary-teal, #00b8a9));
    color: #fff;
    margin-bottom: 0.9rem;
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.22);
}

.hh-testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.85rem;
    color: #e2e8f0;
}

.hh-testimonial-rating .active {
    color: #f59e0b;
}

.hh-testimonial-text {
    margin: 0 0 1.25rem;
    font-size: 1.02rem;
    line-height: 1.7;
    font-weight: 500;
    color: #334155;
    overflow-wrap: anywhere;
}

.hh-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 39, 66, 0.07);
}

.hh-testimonial-avatar,
.hh-testimonial-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(0, 102, 255, 0.15);
}

.hh-testimonial-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue, #0066ff), var(--secondary-teal, #00b8a9));
    color: #fff;
}

.hh-testimonial-name {
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 700;
    color: #071525;
}

.hh-testimonial-dept {
    font-size: 0.8rem;
    color: #5c7086;
    font-weight: 600;
}

.hh-testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.15rem;
}

.hh-testimonials-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: var(--primary-blue, #0066ff);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hh-testimonials-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.hh-testimonials-dots {
    display: flex;
    gap: 0.4rem;
}

.hh-testimonials-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
}

.hh-testimonials-dot.active {
    width: 22px;
    background: var(--primary-blue, #0066ff);
}

/* ---- Emergency ---- */
.hh-emergency {
    padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1rem, 4vw, 1.5rem);
    background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
}

.hh-emergency-panel {
    max-width: 1180px;
    margin: 0 auto;
    border-radius: 1.5rem;
    padding: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 4vw, 2.5rem);
    background:
        radial-gradient(ellipse 50% 60% at 15% 0%, rgba(0, 102, 255, 0.45), transparent 55%),
        radial-gradient(ellipse 45% 50% at 90% 100%, rgba(0, 184, 169, 0.4), transparent 50%),
        linear-gradient(145deg, #04101f, #0a2a48 55%, #06353a);
    color: #fff;
    text-align: center;
    box-shadow: 0 28px 56px rgba(4, 16, 31, 0.28);
    position: relative;
    overflow: hidden;
}

.hh-emergency-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 197, 253, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 197, 253, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    pointer-events: none;
}

.hh-emergency-panel > * {
    position: relative;
    z-index: 1;
}

.hh-emergency-icon {
    width: 3.75rem;
    height: 3.75rem;
    margin: 0 auto 1.1rem;
    border-radius: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 1.4rem;
    color: #5eead4;
}

.hh-emergency-title {
    margin: 0 0 0.55rem;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: clamp(1.45rem, 3.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.hh-emergency-text {
    margin: 0 auto 1.5rem;
    max-width: 34rem;
    color: rgba(226, 236, 250, 0.86);
    line-height: 1.7;
    font-size: 0.95rem;
    font-weight: 500;
}

.hh-emergency-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.hh-btn-white {
    background: #fff;
    color: var(--primary-blue, #0066ff);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.hh-btn-white:hover {
    color: var(--primary-blue, #0066ff);
    transform: translateY(-2px);
}

.hh-btn-outline-white {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 999px;
    border: 1.5px solid rgba(125, 211, 199, 0.45);
}

.hh-btn-outline-white:hover {
    background: rgba(0, 184, 169, 0.18);
    color: #fff;
    border-color: rgba(94, 234, 212, 0.7);
    transform: translateY(-2px);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hh-features-grid,
    .hh-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hh-hero {
        min-height: auto;
        padding-top: 3.75rem;
        padding-bottom: 3rem;
    }

    .hh-hero-title {
        max-width: none;
    }

    .hh-hero-metric {
        padding: 0.7rem 0.35rem;
    }

    .hh-hero-metric-label {
        font-size: 0.6rem;
        letter-spacing: 0.06em;
    }

    .hh-features-grid,
    .hh-grid-3,
    .hh-grid-2 {
        grid-template-columns: 1fr;
    }

    .hh-hero-actions,
    .hh-emergency-actions {
        flex-direction: column;
        width: 100%;
    }

    .hh-btn {
        width: 100%;
    }

    .hh-section {
        padding-bottom: calc(2.5rem + 4.5rem);
    }

    .hh-emergency {
        padding-bottom: calc(2.5rem + 4.5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hh-hero-orb,
    .hh-hero-title,
    .hh-btn,
    .hh-card,
    .hh-feature,
    .hh-slide,
    .hh-testimonials-track,
    .hh-card-media img,
    .hh-card-cta i {
        animation: none !important;
        transition: none !important;
    }
}

/* Dark mode */
html[data-theme="dark"] .hospital-home-page {
    color: #e8eef8;
    background: #07111f;
}

html[data-theme="dark"] .hh-section-title,
html[data-theme="dark"] .hh-row-title {
    color: #e8eef8;
}

html[data-theme="dark"] .hh-section-text {
    color: #a8b7cd;
}

html[data-theme="dark"] .hh-section,
html[data-theme="dark"] .hh-section-alt,
html[data-theme="dark"] .hh-section-light {
    background: #07111f;
}

html[data-theme="dark"] .hh-section-alt,
html[data-theme="dark"] .hh-section-light {
    background:
        radial-gradient(ellipse 50% 40% at 100% 0%, rgba(0, 102, 255, 0.08), transparent 55%),
        #0b1524;
}

html[data-theme="dark"] .hh-card,
html[data-theme="dark"] .hh-feature,
html[data-theme="dark"] .hh-card-body,
html[data-theme="dark"] .hh-testimonial-card {
    background: #121f34;
    border-color: rgba(148, 163, 184, 0.16);
    color: #e8eef8;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .hh-feature h3,
html[data-theme="dark"] .hh-card-title,
html[data-theme="dark"] .hh-row-title,
html[data-theme="dark"] .hh-testimonial-name {
    color: #e8eef8;
}

html[data-theme="dark"] .hh-feature p,
html[data-theme="dark"] .hh-card-text,
html[data-theme="dark"] .hh-testimonial-text,
html[data-theme="dark"] .hh-testimonial-dept,
html[data-theme="dark"] .hh-news-meta {
    color: #a8b7cd;
}

html[data-theme="dark"] .hh-kicker {
    background: rgba(96, 165, 250, 0.12);
    border-color: rgba(96, 165, 250, 0.22);
    color: #93c5fd;
}

html[data-theme="dark"] .hh-card-media,
html[data-theme="dark"] .hh-card-fallback {
    background: linear-gradient(145deg, #0f1a2c, #15233a);
}

html[data-theme="dark"] .hh-row-head {
    border-bottom-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .hh-testimonial-author {
    border-top-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .hh-emergency {
    background: #07111f;
}

html[data-theme="dark"] .hh-link-all {
    color: #93c5fd;
}
