/* =========================================================
   SHREEJA HOSPITAL - CLEAN STICKY HEADER
========================================================= */

:root {
    --primary: #033474;
    --primary-dark: #00224b;
    --primary-2: #0a4fa3;
    --accent: #3dc8ed;

    --primary-rgb: 3, 52, 116;
    --primary-2-rgb: 10, 79, 163;
    --accent-rgb: 61, 200, 237;

    --dept-primary: #099aa7;
    --dept-primary-light: rgba(9, 154, 167, 0.08);
    --dept-text-dark: #1b2b44;
    --dept-text-muted: #64748b;
    --dept-border: #e2e8f0;
    --dept-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    --dept-shadow-hover: 2px 4px 8px rgba(9, 116, 167, 0.1);

    --doc-primary: #099aa7;
    /* Primary Brand Color */
    --doc-primary-dark: #067883;
    /* Darker variant for hovers */
    --doc-text-dark: #1e293b;
    --doc-text-muted: #64748b;
    --doc-border: #e2e8f0;
    --doc-bg: #f8fafc;

    --heading-color: #0b2b5c;
    --text-color: #334155;
    --muted-color: #6b7a90;

    --bg-soft: #f4f9ff;
    --bg-soft-2: #eef7fd;
    --border-soft: rgba(10, 79, 163, 0.12);

    --white: #ffffff;
    --shadow-sm: 0 8px 20px rgba(3, 52, 116, 0.07);
    --shadow-md: 0 14px 30px rgba(3, 52, 116, 0.1);
    --shadow-lg: 0 18px 40px rgba(3, 52, 116, 0.14);
}

/* =========================
   TOPBAR
========================= */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 998;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    color: var(--white);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.topbar-inner {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.topbar-left a,
.topbar-right .topbar-item,
.topbar-right .emergency-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1;
}

.topbar-left a:hover,
.topbar-right .emergency-badge:hover {
    color: #ffffff;
}

.topbar i {
    font-size: 12px;
}

.emergency-badge {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-weight: 700;
}

/* =========================
   MAIN HEADER
========================= */

.header.hospital-header {
    top: 36px;
    background: #ffffff;
    border-bottom: 1px solid rgba(10, 79, 163, 0.08);
    box-shadow: 0 4px 16px rgba(3, 52, 116, 0.04);
    padding: 0;
    transition: top 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.header-main {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: min-height 0.35s ease;
}

.hospital-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.hospital-logo img {
    height: 58px;
    width: auto;
    display: block;
    transition: height 0.35s ease;
}

/* =========================
   DESKTOP NAV
========================= */

@media (min-width: 1200px) {
    .hospital-navmenu {
        margin-left: auto;
        margin-right: 0;
    }

    .hospital-navmenu>ul {
        display: flex;
        align-items: center;
        gap: 4px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .hospital-navmenu a,
    .hospital-navmenu a:focus {
        position: relative;
        display: inline-flex;
        align-items: center;
        padding: 12px 16px;
        font-size: 15px;
        font-weight: 700;
        color: var(--heading-color);
        border-radius: 999px;
        transition: all 0.3s ease;
    }

    .hospital-navmenu a:hover,
    .hospital-navmenu li:hover>a,
    .hospital-navmenu .active,
    .hospital-navmenu .active:focus {
        color: var(--primary);
        /* background: rgba(61, 200, 237, 0.1); */
    }

    .hospital-navmenu>ul>li>a::after {
        content: "";
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: 5px;
        height: 3px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--primary-2), var(--accent));
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.28s ease;
    }

    .hospital-navmenu>ul>li:hover>a::after,
    .hospital-navmenu>ul>li>a.active::after {
        transform: scaleX(1);
    }

    .hospital-navmenu .dropdown>a i,
    .hospital-navmenu .dropdown>a:focus i {
        margin-left: 6px;
        font-size: 11px;
    }

    .hospital-navmenu .dropdown ul {
        top: calc(100% + 14px);
        left: 0;
        min-width: 250px;
        padding: 12px;
        background: #ffffff;
        border-radius: 18px;
        border: 1px solid rgba(10, 79, 163, 0.08);
        box-shadow: var(--shadow-lg);
    }

    .hospital-navmenu .dropdown:hover>ul {
        top: calc(100% + 10px);
    }

    .hospital-navmenu .dropdown ul a {
        display: flex;
        width: 100%;
        padding: 12px 14px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 600;
        color: var(--heading-color);
    }

    .hospital-navmenu .dropdown ul a:hover,
    .hospital-navmenu .dropdown ul li:hover>a {
        color: var(--primary);
        background: rgba(61, 200, 237, 0.12);
    }
}

/* =========================
   LAPTOP FIX (1200px to 1399px)
========================= */
@media (min-width: 1200px) and (max-width: 1399px) {

    /* Reduce the global gap between Logo, Nav, and Buttons */
    .header-main {
        gap: 12px;
    }

    /* Shrink the padding and font size of the navigation links */
    .hospital-navmenu a,
    .hospital-navmenu a:focus {
        padding: 10px 8px;
        font-size: 14px;
    }

    /* Fix the animated underline to match the new 8px padding */
    .hospital-navmenu>ul>li>a::after {
        left: 8px;
        right: 8px;
        bottom: 4px;
        /* Slightly raised to match the reduced bottom padding */
    }

    /* Remove the extra gap between list items */
    .hospital-navmenu>ul {
        gap: 0;
    }

    /* Slightly scale down the action buttons */
    .btn-call,
    .btn-appointment {
        padding: 0 14px;
        gap: 6px;
        font-size: 13px;
        min-height: 44px;
    }
}

/* =========================
   ACTIONS
========================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-call,
.btn-appointment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: all 0.3s ease;
}

.btn-call {
    color: var(--primary);
    background: #ffffff;
    border: 1px solid rgba(10, 79, 163, 0.14);
}

.btn-call:hover {
    color: var(--primary-2);
    border-color: rgba(10, 79, 163, 0.22);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.btn-appointment {
    color: #ffffff;
    border: none;
    background: linear-gradient(135deg, var(--primary-2), var(--accent));
    box-shadow: 0 1px 9px rgba(5, 45, 100, 0.18);
    /* box-shadow: 0 12px 26px rgba(10, 79, 163, 0.18); */
}

.btn-appointment:hover {
    color: #ffffff;
    transform: translateY(-2px);
    /* box-shadow: 0 16px 32px rgba(10, 79, 163, 0.24); */
    box-shadow: 0 5px 14px rgba(9, 55, 100, 0.20);
}

/* =========================
   STICKY / SCROLLED STATE
========================= */

body.header-scrolled .topbar {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

body.header-scrolled .header.hospital-header {
    top: 0;
    box-shadow: var(--shadow-md);
}

body.header-scrolled .header-main {
    min-height: 74px;
}

body.header-scrolled .hospital-logo img {
    height: 50px;
}

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

@media (max-width: 1199px) {
    .topbar {
        display: none;
    }

    .header.hospital-header {
        top: 0;
    }

    .header-main {
        min-height: 72px;
        gap: 12px;
    }

    .hospital-logo img {
        height: 46px;
    }

    body.header-scrolled .header-main {
        min-height: 68px;
    }

    body.header-scrolled .hospital-logo img {
        height: 42px;
    }

    .mobile-nav-toggle {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        background: linear-gradient(135deg, var(--primary), var(--primary-2));
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 23px;
        box-shadow: var(--shadow-sm);
    }

    .hospital-navmenu ul {
        inset: 82px 14px 14px 14px;
        padding: 16px;
        border-radius: 20px;
        background: #ffffff;
        border: 1px solid rgba(10, 79, 163, 0.08);
        box-shadow: var(--shadow-lg);
    }

    .hospital-navmenu a,
    .hospital-navmenu a:focus {
        padding: 14px 16px;
        border-radius: 14px;
        font-size: 16px;
        font-weight: 700;
        color: var(--heading-color);
    }

    .hospital-navmenu a:hover,
    .hospital-navmenu .active,
    .hospital-navmenu .active:focus {
        color: var(--primary);
        background: rgba(61, 200, 237, 0.12);
    }

    .hospital-navmenu .dropdown ul {
        margin: 8px 8px 4px 8px;
        padding: 10px;
        background: var(--bg-soft);
        border: 1px solid rgba(10, 79, 163, 0.08);
        border-radius: 16px;
    }

    .hospital-navmenu .dropdown ul a {
        font-size: 15px;
        font-weight: 600;
        border-radius: 12px;
    }

    .hospital-navmenu a i,
    .hospital-navmenu a:focus i {
        width: 32px;
        height: 32px;
        background: rgba(10, 79, 163, 0.08);
        color: var(--primary);
    }

    .hospital-navmenu .active i,
    .hospital-navmenu .active:focus i {
        background: var(--primary);
        color: #ffffff;
    }

    .mobile-nav-active .navmenu {
        background: rgba(3, 20, 44, 0.45);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

@media (max-width: 767px) {
    .header-main {
        min-height: 66px;
    }

    .hospital-logo img {
        height: 40px;
    }

    .mobile-nav-toggle {
        width: 40px;
        height: 40px;
        font-size: 21px;
    }
}

/* =========================
   BODY OFFSET
========================= */

body {
    padding-top: 124px;
}

@media (max-width: 1199px) {
    body {
        padding-top: 69px;
    }
}

body.header-scrolled {
    padding-top: 88px;
}

@media (max-width: 1199px) {
    body.header-scrolled {
        padding-top: 72px;
    }
}

/* =========================
   GLOBAL BRAND TOUCH
========================= */

.section-title h2,
.section-title p,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
}

a {
    color: var(--primary-2);
}

a:hover {
    color: var(--accent);
}

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


/* ================================
   SHREEJA HERO STAGE (CLEANED)
================================ */

/* 1. CRITICAL FIX: Neutralize the template's global flexbox that crushes the cards */
section.shreeja-hero-stage {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: auto !important;
    height: auto !important;
    width: 100%;
}

/* --- Main Slider Container --- */
.hero-stage-slider {
    position: relative;
    width: 100%;
    height: 60vh;
    /* Ensures it fills the screen perfectly */
    min-height: 500px;
    max-height: 700px;
    background-color: var(--primary-dark);
    overflow: hidden;
    display: block;
}

/* --- Slide Mechanics --- */
.hero-stage-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    z-index: 1;
    display: flex;
    /* Flexbox here for flawless vertical centering of text */
    align-items: center;
}

.hero-stage-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* --- Image & Overlay (Prevents Image Stretching) --- */
.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Guarantees Laravel images never break/stretch */
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Premium Dark Blue to Transparent Gradient */
    background: linear-gradient(90deg, rgba(3, 52, 116, 0.95) 0%, rgba(3, 52, 116, 0.7) 50%, rgba(3, 52, 116, 0.2) 100%);
}

/* --- Hero Typography & Content --- */
.hero-content-container {
    width: 100%;
    padding-top: 80px;
    /* Pushes text down below the fixed header */
    padding-bottom: 120px;
    /* Accounts for bottom overlapping cards */
}

.hero-text-box {
    color: #ffffff;
    max-width: 750px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
}

.hero-kicker {
    display: inline-block;
    background-color: rgba(61, 200, 237, 0.15);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(61, 200, 237, 0.3);
}

.hero-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    /* Responsive typography */
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: white;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 35px;
    line-height: 1.6;
}

/* --- Buttons --- */
.hero-btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-primary {
    background-color: var(--accent);
    color: var(--primary-dark);
    border: 2px solid var(--accent);
}

.btn-hero-primary:hover {
    background-color: #ffffff;
    color: var(--primary-dark);
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-hero-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-hero-outline:hover {
    background-color: #ffffff;
    color: var(--primary-dark);
    border-color: #ffffff;
    transform: translateY(-3px);
}

/* --- Slider Controls --- */
.hero-stage-controls-wrap {
    /* left: 0; */
    right: 0px;
    width: 125px;
    pointer-events: none;
    /* Lets you click text through the wrapper */
}

.hero-stage-arrow {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    pointer-events: auto;
    /* Restores clickability to buttons */
}

.hero-stage-arrow:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
    transform: scale(1.1);
}

/* --- Overlapping Bottom Cards --- */
.hero-stage-bottom-container {
    position: relative;
    z-index: 10;
    margin-top: -100px;
    /* Pulls cards up over the hero */
    padding-bottom: 60px;
    width: 100%;
    display: block;
}

.hero-stage-bottom-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(3, 52, 116, 0.1);
    overflow: hidden;
}

.hero-stage-bottom-card {
    padding: 40px 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border-right: 1px solid #e2e8f0;
    background: #ffffff;
    transition: all 0.3s ease;
}

.hero-stage-bottom-card:last-child {
    border-right: none;
}

.hero-stage-bottom-card:hover {
    background-color: #f8fafc;
}

.hero-stage-bottom-card-accent {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #ffffff;
}

.hero-stage-bottom-card-accent:hover {
    background: linear-gradient(135deg, var(--primary-2), var(--primary-dark));
}

.bottom-card-icon {
    font-size: 2.5rem;
    color: var(--accent);
    line-height: 1;
}

.hero-stage-bottom-card-accent .bottom-card-icon {
    color: #ffffff;
}

.bottom-card-copy h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: inherit;
}

.hero-stage-bottom-card:not(.hero-stage-bottom-card-accent) .bottom-card-copy h3 {
    color: var(--heading-color);
}

.bottom-card-copy p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    opacity: 0.8;
}

.bottom-card-link {
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.hero-stage-bottom-card:not(.hero-stage-bottom-card-accent) .bottom-card-link {
    color: var(--primary);
}

.hero-stage-bottom-card-accent .bottom-card-link {
    color: var(--accent);
}

.bottom-card-link:hover {
    opacity: 0.8;
    transform: translateX(5px);
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .hero-stage-bottom-cards {
        grid-template-columns: 1fr;
    }

    .hero-stage-bottom-card {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .hero-stage-bottom-container {
        /* margin-top: -50px; */
        margin-top: 2.2rem;
    }

    .hero-stage-slider {
        height: auto;
        min-height: 500px; /* Reduced from 600px to stop extreme cropping */
    }
    
    .hero-content-container {
        padding-top: 100px;
        padding-bottom: 80px; /* Reduced padding to pull bottom cards up */
    }
}

/* Mobile Specific Fixes for Image Cropping & Text Overflow */
@media (max-width: 767px) {
    .hero-stage-slider {
        min-height: 450px; /* Further reduced to maintain a better aspect ratio for the image */
    }

    .hero-cover-img {
        object-position: top center; /* Keeps the top/faces in view instead of strict center */
    }

    .hero-content-container {
        padding-top: 90px;
        padding-bottom: 60px;
    }

    .hero-text-box {
        padding: 15px; /* Less box padding on small screens */
    }

    .hero-title {
        font-size: 1.75rem; /* Scaled down slightly to fit narrow screens perfectly */
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    /* Stack buttons neatly on phones */
    .hero-btn-group {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        width: 100%;
        justify-content: center;
    }
    
    /* Hide arrows on very small mobile screens to save space (optional) */
    .hero-stage-controls-wrap {
        display: none !important; 
    }
}


/* ==========================================================================
   Home About Section (Solid Modern Redesign)
   ========================================================================== */
.home-about-modern {
    padding: 30px 0;
    background-color: #ffffff;
    overflow: hidden;
}

/* --- Left Side: Visual Wrapper --- */
.about-visual-wrapper {
    position: relative;
    padding-right: 20px;
    padding-bottom: 20px;
}

/* Solid dashed offset backdrop (Replaces glass background) */
.visual-solid-backdrop {
    position: absolute;
    top: 25px;
    right: 0;
    bottom: 0;
    left: 25px;
    background-color: rgba(9, 154, 167, 0.05);
    /* Very soft teal tint */
    border: 2px dashed #099aa7;
    border-radius: 16px;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.about-visual-wrapper:hover .visual-solid-backdrop {
    background-color: rgba(9, 154, 167, 0.08);
}

.visual-floating-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 3;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.visual-floating-badge:hover {
    transform: translateY(-8px);
}

.visual-floating-badge .badge-icon {
    background: #099aa7;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.visual-floating-badge .badge-text {
    display: flex;
    flex-direction: column;
}

.visual-floating-badge .badge-text strong {
    color: #1e293b;
    font-size: 1.1rem;
    line-height: 1.2;
}

.visual-floating-badge .badge-text span {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* --- Right Side: Content --- */
.about-kicker {
    display: inline-block;
    background-color: rgba(9, 154, 167, 0.1);
    color: #099aa7;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.about-kicker i {
    margin-right: 6px;
}

/* Feature List */
.about-feature-item {
    display: flex;
    align-items: center;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
}

.about-feature-item i {
    color: #099aa7;
    font-size: 1.1rem;
    margin-right: 10px;
}

/* Stats Grid */
.about-stats-grid {
    display: flex;
    gap: 20px;
}

.about-stat-box {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-bottom: 3px solid transparent;
}

.about-stat-box:hover {
    background: #ffffff;
    border-color: #e2e8f0;
    border-bottom-color: #099aa7;
    /* Accent border slide up */
    box-shadow: 0 15px 30px rgba(9, 154, 167, 0.08);
    transform: translateY(-5px);
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: #099aa7;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-lbl {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .about-visual-wrapper {
        margin-bottom: 40px;
    }

    .visual-floating-badge {
        left: 20px;
        bottom: -20px;
    }

    .about-stats-grid {
        flex-direction: column;
        gap: 15px;
    }
}

/* Top Footer CTA Start */
/* =========================================================
   Sreeja General Hospital - Modern Contact Banner
========================================================= */
.call-to-action .contact-banner {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 34px 38px;
    background: linear-gradient(135deg, #033474 0%, #0a4fa3 52%, #3dc8ed 130%);
    box-shadow: 0 24px 60px rgba(3, 52, 116, 0.22);
    isolation: isolate;
}

.call-to-action .contact-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.14), transparent 24%),
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.12), transparent 18%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 45%);
    z-index: 0;
}

.contact-banner::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -90px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.13), transparent 68%);
    z-index: 0;
}

.contact-banner-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(12px);
    z-index: 0;
    pointer-events: none;
}

.contact-banner-blur-1 {
    width: 180px;
    height: 180px;
    top: -40px;
    left: -40px;
    background: rgba(61, 200, 237, 0.18);
}

.contact-banner-blur-2 {
    width: 220px;
    height: 220px;
    right: 10%;
    top: -60px;
    background: rgba(255, 255, 255, 0.08);
}

.contact-banner-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
    align-items: center;
    gap: 26px;
}

.contact-banner-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.contact-badge span {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 22px;
}

.contact-icon-wrap {
    position: relative;
    flex-shrink: 0;
}

.contact-icon-wrap::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 28px;
    filter: blur(6px);
}

.contact-icon {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(61, 200, 237, 0.95), rgba(255, 255, 255, 0.26));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.14);
}

.contact-icon i {
    color: #033474;
    font-size: 30px;
}

.contact-text h5 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 38px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.contact-text p {
    margin: 0;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.75;
}

.contact-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.highlight-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.highlight-item i {
    color: #3dc8ed;
    font-size: 14px;
}

.contact-banner-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
    justify-content: center;
}

.call-btn,
.contact-link-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 84px;
    padding: 14px 20px;
    border-radius: 22px;
    text-decoration: none;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.call-btn::before,
.contact-link-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.call-btn:hover::before,
.contact-link-btn:hover::before {
    opacity: 1;
}

.call-btn {
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.call-btn::before {
    background: linear-gradient(135deg, rgba(61, 200, 237, 0.1), rgba(10, 79, 163, 0.08));
}

.contact-link-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.contact-link-btn::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(61, 200, 237, 0.08));
}

.call-btn:hover,
.contact-link-btn:hover {
    transform: translateY(-4px);
}

.btn-icon {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-btn .btn-icon {
    background: rgba(10, 79, 163, 0.1);
}

.contact-link-btn .btn-icon {
    background: rgba(61, 200, 237, 0.14);
}

.call-btn .btn-icon i {
    color: #033474;
    font-size: 20px;
}

.contact-link-btn .btn-icon i {
    color: #3dc8ed;
    font-size: 20px;
}

.btn-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.btn-text small {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.call-btn .btn-text small {
    color: rgba(3, 52, 116, 0.62);
}

.contact-link-btn .btn-text small {
    color: rgba(255, 255, 255, 0.68);
}

.btn-text strong {
    font-size: 22px;
    font-weight: 800;
}

.call-btn .btn-text strong {
    color: #033474;
}

.contact-link-btn .btn-text strong {
    color: #ffffff;
}

.contact-banner .call-btn:hover {
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.contact-banner .contact-link-btn:hover {
    border-color: rgba(61, 200, 237, 0.45);
    background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 1199.98px) {
    .contact-text h5 {
        font-size: 32px;
    }

    .contact-text p {
        font-size: 16px;
    }

    .contact-banner-grid {
        grid-template-columns: 1fr;
    }

    .contact-banner-right {
        flex-direction: row;
    }

    .call-btn,
    .contact-link-btn {
        flex: 1 1 0;
    }
}

@media (max-width: 991.98px) {
    .contact-banner {
        padding: 30px 28px;
        border-radius: 24px;
    }

    .contact-info {
        align-items: flex-start;
    }

    .contact-text h5 {
        font-size: 28px;
    }

    .contact-icon {
        width: 76px;
        height: 76px;
        border-radius: 22px;
    }
}

@media (max-width: 767.98px) {
    .contact-banner {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .contact-info {
        flex-direction: column;
        gap: 18px;
    }

    .contact-banner-right {
        flex-direction: column;
    }

    .contact-text h5 {
        font-size: 24px;
    }

    .contact-text p {
        font-size: 15px;
        line-height: 1.7;
    }

    .call-btn,
    .contact-link-btn {
        min-height: 76px;
        border-radius: 18px;
    }

    .btn-text strong {
        font-size: 18px;
    }
}

@media (max-width: 575.98px) {
    .contact-badge {
        padding: 8px 14px;
    }

    .contact-badge span {
        font-size: 11px;
        letter-spacing: 0.1em;
    }

    .contact-icon {
        width: 68px;
        height: 68px;
        border-radius: 20px;
    }

    .contact-icon i {
        font-size: 24px;
    }

    .highlight-item {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Top Footer CTA End */

/* Footer Design Start */
/* =========================================================
   Sreeja General Hospital - Modern Footer
========================================================= */
.sgh-footer {
    --footer-bg: linear-gradient(135deg, var(--primary) 0%, #02285d 55%, #01214b 100%);
    --footer-border: rgba(255, 255, 255, 0.12);
    --footer-text: rgba(255, 255, 255, 0.78);
    --footer-heading: #ffffff;
    --footer-soft: rgba(255, 255, 255, 0.08);
    --footer-soft-2: rgba(255, 255, 255, 0.06);
    --footer-highlight: rgba(var(--accent-rgb), 0.18);

    background: var(--footer-bg);
    color: var(--footer-text);
    overflow: hidden;
    font-size: 15px;
}

.sgh-footer .container {
    position: relative;
    z-index: 2;
}

.sgh-footer .footer-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(10px);
    opacity: 0.45;
}

.sgh-footer .footer-shape-1 {
    width: 260px;
    height: 260px;
    background: rgba(var(--accent-rgb), 0.12);
    top: -90px;
    right: -60px;
}

.sgh-footer .footer-shape-2 {
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.05);
    bottom: 40px;
    left: -70px;
}



.sgh-footer .footer-main {
    padding: 5rem 0 3rem;
}

.sgh-footer .footer-brand .logo {
    gap: 14px;
    margin-bottom: 18px;
    text-decoration: none;
}

.sgh-footer .footer-brand .logo img {
    /* max-height: 54px; */
    width: auto;
    object-fit: contain;
}

.sgh-footer .footer-brand .logo .sitename {
    display: block;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
}

.sgh-footer .footer-brand .logo small {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    margin-top: 4px;
}

.sgh-footer .footer-brand-text {
    color: var(--footer-text);
    margin-bottom: 22px;
    max-width: 370px;
}

.sgh-footer .footer-contact-list {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.sgh-footer .footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sgh-footer .footer-contact-item i {
    color: var(--accent);
    font-size: 17px;
    margin-top: 3px;
}

.sgh-footer .footer-contact-item span,
.sgh-footer .footer-contact-item a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    line-height: 1.6;
}

.sgh-footer .footer-contact-item a:hover {
    color: #ffffff;
}

.sgh-footer .social-links {
    gap: 10px;
}

.sgh-footer .social-links a {
    width: 42px;
    height: 42px;
    margin-right: 0;
    border-radius: 14px;
    border: 1px solid var(--footer-border);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transition: all 0.3s ease;
}

.sgh-footer .social-links a i {
    font-size: 1.2rem;
    margin: 0px;

}

.sgh-footer .social-links a:hover {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.sgh-footer .footer-links {
    margin-bottom: 0;
}

.sgh-footer .footer-links h4 {
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    padding-bottom: 0;
    margin-bottom: 18px;
}

.sgh-footer .footer-links ul {
    display: grid;
    gap: 11px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sgh-footer .footer-links ul li {
    padding: 0;
    display: block;
}

.sgh-footer .footer-links ul a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.6;
    text-decoration: none;
    transition: all 0.25s ease;
}

.sgh-footer .footer-links ul a i {
    color: var(--accent);
    font-size: 12px;
    transition: transform 0.25s ease;
}

.sgh-footer .footer-links ul a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.sgh-footer .footer-links ul a:hover i {
    transform: translateX(2px);
}

.sgh-footer .hours-card {
    padding: 18px 18px 8px;
    border-radius: 18px;
    background: var(--footer-soft-2);
    border: 1px solid var(--footer-border);
    margin-bottom: 18px;
}

.sgh-footer .hours-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 0 0 14px;
    margin-bottom: 14px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
}

.sgh-footer .hours-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.sgh-footer .hours-row span {
    color: rgba(255, 255, 255, 0.72);
}

.sgh-footer .hours-row strong {
    color: #ffffff;
    font-size: 14px;
    text-align: right;
}

.sgh-footer .footer-inline-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(var(--accent-rgb), 0.16);
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    transition: all 0.3s ease;
}

.sgh-footer .footer-inline-btn:hover {
    background: var(--accent);
    color: var(--primary);
}

.sgh-footer .footer-bottom {
    padding: 22px 0 28px;
    border-top: 1px solid var(--footer-border);
}

.sgh-footer .footer-bottom p,
.sgh-footer .footer-bottom strong {
    color: rgba(255, 255, 255, 0.82);
}

.sgh-footer .footer-bottom-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 22px;
}

.sgh-footer .footer-bottom-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.25s ease;
}

.sgh-footer .footer-bottom-links a:hover {
    color: #ffffff;
}

@media (max-width: 1199.98px) {
    .sgh-footer .sgh-footer-cta {
        flex-wrap: wrap;
    }

    .sgh-footer .sgh-footer-cta-action {
        margin-left: 0;
    }
}

@media (max-width: 991.98px) {

    .sgh-footer .footer-main {
        padding: 40px 0 26px;
    }

    .sgh-footer .sgh-footer-cta {
        padding: 24px;
    }

    .sgh-footer .sgh-footer-cta-content h3 {
        font-size: 24px;
    }

    .sgh-footer .footer-bottom-links {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .sgh-footer {
        font-size: 14px;
    }

    .sgh-footer .sgh-footer-cta {
        border-radius: 20px;
        gap: 18px;
        padding: 20px;
    }

    .sgh-footer .sgh-footer-cta-icon {
        width: 62px;
        height: 62px;
        min-width: 62px;
        font-size: 26px;
        border-radius: 18px;
    }

    .sgh-footer .sgh-footer-cta-content h3 {
        font-size: 22px;
    }

    .sgh-footer .footer-brand .logo .sitename {
        font-size: 22px;
    }

    .sgh-footer .hours-row {
        flex-direction: column;
        gap: 6px;
    }

    .sgh-footer .hours-row strong {
        text-align: left;
    }

    .sgh-footer .footer-bottom {
        text-align: center;
    }

    .sgh-footer .footer-bottom-links {
        justify-content: center;
        gap: 14px 18px;
    }
}

@media (max-width: 575.98px) {

    .sgh-footer .footer-main {
        padding-top: 34px;
    }

    .sgh-footer .sgh-footer-mini-card {
        min-height: auto;
        padding: 16px;
    }

    .sgh-footer .footer-brand .logo {
        /* align-items: flex-start !important; */
        align-items: center !important;
        justify-content: center;
    }

    .sgh-footer .footer-brand-text {
        text-align: center;
    }

    .sgh-footer .social-links {
        justify-content: center;
    }

    .sgh-footer .footer-links h4 {
        margin-bottom: 14px;
    }
}

/* Footer Design End */


/* ==========================================================================
   Modern Departments Section
   ========================================================================== */
.modern-departments {
    background-color: #f8fafc;
    /* Very light clinical gray/blue */
    padding: 70px 0;
}

/* --- Hero Emergency Block --- */
.featured-emergency-wrapper {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--dept-shadow);
    border: 1px solid var(--dept-border);
}

.emergency-content-box {
    padding: 3rem 4rem;
}

.dept-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background-color: var(--dept-primary-light);
    color: var(--dept-primary);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emergency-title {
    color: var(--dept-text-dark);
    font-weight: 800;
    font-size: 2.25rem;
    line-height: 1.2;
}

.emergency-desc {
    color: var(--dept-text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 1.5rem 0;
}

.emergency-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.emergency-features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--dept-text-dark);
    font-weight: 600;
    font-size: 1rem;
}

.emergency-features-list li i {
    color: var(--dept-primary);
    font-size: 1.25rem;
    margin-right: 12px;
}

.emergency-image-box img {
    min-height: 350px;
    /* Fallback for mobile */
}

/* --- Modern Grid Cards --- */
.dept-modern-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--dept-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dept-modern-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--dept-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.dept-modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--dept-shadow-hover);
    border-color: transparent;
}

.dept-modern-card:hover::before {
    transform: scaleX(1);
}

.dept-card-body {
    padding: 2.5rem 2rem 1.5rem 2rem;
    flex-grow: 1;
}

.dept-icon-box {
    width: 64px;
    height: 64px;
    background-color: var(--dept-primary-light);
    color: var(--dept-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.dept-modern-card:hover .dept-icon-box {
    background-color: var(--dept-primary);
    color: #ffffff;
}

.dept-title {
    color: var(--dept-text-dark);
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.dept-desc {
    color: var(--dept-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Stats Footer */
.dept-stats-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    background-color: #fcfdfd;
    border-top: 1px solid var(--dept-border);
    border-radius: 0 0 20px 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-weight: 800;
    color: var(--dept-primary);
    font-size: 1.25rem;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dept-text-muted);
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background-color: var(--dept-border);
}

/* --- Buttons --- */
.btn-modern-primary {
    display: inline-flex;
    align-items: center;
    background-color: var(--dept-primary);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 0px;
}

.btn-modern-primary:hover {
    background-color: #077c86;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(9, 154, 167, 0.2);
}

.btn-modern-outline {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-modern-outline:hover {
    background-color: var(--primary-dark);
    color: #ffffff;
}

/* Stats Footer */
.dept-stats-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Pushes stat to left, arrow to right */
    padding: 1.25rem 2rem;
    background-color: #fcfdfd;
    border-top: 1px solid var(--dept-border);
    border-radius: 0 0 20px 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.25rem;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dept-text-muted);
    font-weight: 600;
}

/* --- New Circular Arrow Button --- */
.dept-arrow-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #f4f7f9;
    /* Soft tint matching Image 2 */
    color: #0b5ed7;
    /* Blue arrow color */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Triggers when hovering anywhere on the parent card (Image 3 behavior) */
.dept-modern-card:hover .dept-arrow-btn {
    background-color: var(--primary);
    /* Solid blue */
    color: #ffffff;
    /* White arrow */
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.25);
    transform: translateX(4px);
    /* Adds a subtle nudge forward */
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .emergency-content-box {
        padding: 2.5rem 2rem;
    }

    .emergency-image-box img {
        height: 300px;
    }
}

/* ==========================================================================
   Modern Solid Services Section
   ========================================================================== */
.modern-services {
    --srv-primary: #099aa7;
    /* Matches your Shreeja brand color */
    --srv-primary-soft: #eaf5f6;
    --srv-text-dark: #1e293b;
    --srv-text-muted: #64748b;
    --srv-border: #e2e8f0;

    background-color: #ffffff;
    padding: 60px 0;
}

.srv-solid-card {
    background: #ffffff;
    border: 1px solid var(--srv-border);
    border-radius: 12px;
    padding: 35px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* The solid accent bar on the left */
.srv-solid-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

/* Hover effect: No glass, just crisp elevation and color shift */
.srv-solid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}

.srv-solid-card:hover::before {
    background-color: var(--srv-primary);
}

.srv-icon-box {
    width: 65px;
    height: 65px;
    background-color: var(--srv-primary-soft);
    color: var(--srv-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.srv-solid-card:hover .srv-icon-box {
    background-color: var(--srv-primary);
    color: #ffffff;
    transform: scale(1.05);
}

.srv-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--srv-text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.srv-content p {
    color: var(--srv-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.srv-link {
    display: inline-flex;
    align-items: center;
    color: var(--srv-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-top: auto;
}

.srv-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.srv-link:hover {
    color: #067883;
    /* Slightly darker shade for interaction */
}

.srv-link:hover i {
    transform: translateX(4px);
}

/* Optional: Subtle highlight for the Emergency Card */
.srv-solid-card.srv-highlight::before {
    background-color: #ef4444;
    /* Red accent for emergency */
}

.srv-solid-card.srv-highlight .srv-icon-box {
    color: #ef4444;
    background-color: #fef2f2;
}

.srv-solid-card.srv-highlight:hover .srv-icon-box {
    background-color: #ef4444;
    color: #ffffff;
}

/* ==========================================================================
   Modern Solid Doctors Section
   ========================================================================== */
.modern-doctors {
    background-color: var(--doc-bg);
    padding: 30px 0;
}

/* --- Clean Search Bar --- */
.doc-search-wrapper {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--doc-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.doc-search-input {
    position: relative;
}

.doc-search-input i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--doc-primary);
    font-size: 1.1rem;
}

.doc-search-input .form-control,
.doc-search-input .form-select {
    padding-left: 45px;
    height: 50px;
    border: 1px solid var(--doc-border);
    border-radius: 8px;
    color: var(--doc-text-dark);
    font-size: 0.95rem;
}

.doc-search-input .form-control:focus,
.doc-search-input .form-select:focus {
    border-color: var(--doc-primary);
    box-shadow: 0 0 0 0.25rem rgba(9, 154, 167, 0.15);
}

.doc-search-btn {
    background-color: var(--doc-primary);
    color: #ffffff;
    border: none;
    height: 50px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.doc-search-btn:hover {
    background-color: var(--doc-primary-dark);
}

/* --- Solid Doctor Cards --- */
.doc-solid-card {
    background: #ffffff;
    border: 1px solid var(--doc-border);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doc-solid-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(9, 154, 167, 0.08);
    border-color: transparent;
}

.doc-img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f1f5f9;
    /* Fallback for transparent PNGs */
    border-bottom: 3px solid var(--doc-primary);
}

.doc-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.doc-solid-card:hover .doc-img-box img {
    transform: scale(1.05);
}

.doc-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.doc-header {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--doc-border);
}

.doc-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--doc-text-dark);
    margin-bottom: 4px;
}

.doc-specialty {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--doc-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.doc-details p {
    font-size: 0.9rem;
    color: var(--doc-text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.doc-details p:last-child {
    margin-bottom: 0;
}

.doc-details p i {
    color: var(--doc-primary);
    font-size: 1rem;
    margin-right: 10px;
    margin-top: 2px;
}

.doc-qualification {
    font-weight: 500;
}

.doc-hours {
    font-weight: 400;
}

.doc-footer {
    padding: 24px;
}

.doc-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background-color: var(--doc-primary-light, rgba(9, 154, 167, 0.1));
    /* Very soft tint of primary */
    color: var(--doc-primary);
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.doc-solid-card:hover .doc-btn-primary {
    background-color: var(--doc-primary);
    color: #ffffff;
}

/* =========================================================
   Hospital News Section
========================================================= */
.hospital-news {
    position: relative;
    padding: 60px 0;
    background: #f8fbff;
    overflow: hidden;
}

.hospital-news::before {
    content: "";
    position: absolute;
    top: 40px;
    left: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10, 79, 163, 0.08), transparent 72%);
    pointer-events: none;
}

.hospital-news::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: 40px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(3, 52, 116, 0.08), transparent 72%);
    pointer-events: none;
}

.hospital-news .container {
    position: relative;
    z-index: 2;
}

.news-section-head {
    max-width: 760px;
    margin: 0 auto 60px;
}

.news-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.news-main-title {
    margin: 0 0 16px;
    color: var(--primary-dark);
    font-size: 44px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.news-main-text {
    margin: 0;
    color: #647b97;
    font-size: 17px;
    line-height: 1.8;
}

.news-featured-wrap {
    margin-bottom: 38px;
}

.news-featured-card {
    height: 100%;
    background: #ffffff;
    border: 1px solid rgba(3, 52, 116, 0.08);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(8, 37, 79, 0.08);
    transition: all 0.35s ease;
}

.news-featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 55px rgba(8, 37, 79, 0.12);
}

.news-featured-image {
    display: block;
    overflow: hidden;
}

.news-featured-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.news-featured-card:hover .news-featured-image img {
    transform: scale(1.05);
}

.news-featured-content {
    padding: 28px 28px 30px;
}

.news-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.news-category {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(10, 79, 163, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7b8fa7;
    font-size: 14px;
    font-weight: 500;
}

.news-featured-content h3 {
    margin: 0 0 14px;
    font-size: 32px;
    line-height: 1.22;
    font-weight: 800;
}

.news-featured-content h3 a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-featured-content h3 a:hover {
    color: var(--primary);
}

.news-featured-content p {
    margin: 0 0 18px;
    color: #627996;
    font-size: 16px;
    line-height: 1.85;
}

.news-readmore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-readmore i {
    transition: transform 0.3s ease;
}

.news-readmore:hover {
    color: var(--primary-dark);
}

.news-readmore:hover i {
    transform: translateX(4px);
}

.news-side-list {
    display: grid;
    gap: 18px;
    height: 100%;
}

.news-mini-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: #ffffff;
    border: 1px solid rgba(3, 52, 116, 0.08);
    border-radius: 22px;
    padding: 22px 20px;
    box-shadow: 0 12px 32px rgba(8, 37, 79, 0.06);
    transition: all 0.35s ease;
}

.news-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 42px rgba(8, 37, 79, 0.1);
}

.news-mini-date {
    width: 74px;
    min-width: 74px;
    padding: 12px 10px;
    border-radius: 18px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.news-mini-date strong {
    display: block;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
}

.news-mini-date span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-mini-content {
    flex: 1 1 auto;
}

.news-mini-category {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-mini-content h4 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
}

.news-mini-content h4 a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-mini-content h4 a:hover {
    color: var(--primary);
}

.news-mini-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.news-grid-wrap {
    margin-top: 8px;
}

.news-card-modern {
    height: 100%;
    background: #ffffff;
    border: 1px solid rgba(3, 52, 116, 0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(8, 37, 79, 0.06);
    transition: all 0.35s ease;
}

.news-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 48px rgba(8, 37, 79, 0.1);
}

.news-card-image {
    display: block;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.news-card-modern:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 24px 24px 26px;
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}

.news-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7890ab;
    font-size: 13px;
    font-weight: 600;
}

.news-card-body h3 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 700;
}

.news-card-body h3 a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-body h3 a:hover {
    color: var(--primary);
}

.news-card-body p {
    margin: 0 0 18px;
    color: #667d98;
    font-size: 15px;
    line-height: 1.8;
}

.news-bottom-action {
    margin-top: 42px;
}

.news-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 14px 32px rgba(3, 52, 116, 0.16);
    transition: all 0.3s ease;
}

.news-all-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

@media (max-width: 1199.98px) {
    .news-main-title {
        font-size: 38px;
    }

    .news-featured-content h3 {
        font-size: 28px;
    }

    .news-featured-image img {
        height: 380px;
    }
}

@media (max-width: 991.98px) {
    .hospital-news {
        padding: 90px 0;
    }

    .news-featured-image img {
        height: 340px;
    }
}

@media (max-width: 767.98px) {
    .hospital-news {
        padding: 75px 0;
    }

    .news-section-head {
        margin-bottom: 44px;
    }

    .news-main-title {
        font-size: 32px;
    }

    .news-main-text,
    .news-featured-content p,
    .news-card-body p {
        font-size: 15px;
    }

    .news-featured-content h3 {
        font-size: 24px;
    }

    .news-mini-card {
        flex-direction: column;
    }

    .news-mini-date {
        width: 100%;
        min-width: 100%;
    }

    .news-card-image img {
        height: 220px;
    }
}

@media (max-width: 575.98px) {

    .news-featured-content,
    .news-card-body,
    .news-mini-card {
        padding: 20px;
    }

    .news-card-body h3 {
        font-size: 22px;
    }

    .news-mini-content h4 {
        font-size: 18px;
    }

    .news-all-btn {
        width: 100%;
        justify-content: center;
    }
}


.news-card-modern {
    overflow: hidden;
}

.news-card-image {
    position: relative;
    display: block;
    overflow: hidden;
    line-height: 0;
}

.news-card-image img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

/* full-width base line */
.news-card-image::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 6px;
    background: rgba(10, 79, 163, 0.16);
    z-index: 2;
}

/* animated colored runner */
.news-card-image::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg,
            var(--primary-dark) 0%,
            var(--primary) 55%,
            #18b7d4 100%);
    box-shadow: 0 0 12px rgba(10, 79, 163, 0.28);
    transform: translateX(-110%);
    transition: transform 0.55s ease;
    z-index: 3;
}

.news-card-modern:hover .news-card-image::before {
    transform: translateX(0);
}


/* ==========================================================================
   Modern Solid Blog Section (With Running Border Animation)
   ========================================================================== */
.modern-blog {
    --blog-primary: #099aa7;
    --blog-primary-dark: #067883;
    --blog-text-dark: #1e293b;
    --blog-text-muted: #64748b;
    --blog-border-default: #e2e8f0;
    --blog-bg: #ffffff;

    background-color: var(--blog-bg);
    padding: 80px 0;
}

/* --- The Animated Wrapper --- */
.blog-card-wrapper {
    position: relative;
    background-color: var(--blog-border-default);
    border-radius: 14px;
    /* Slightly larger to house inner radius */
    padding: 2px;
    /* This padding dictates the thickness of the animated border */
    height: 100%;
    overflow: hidden;
    /* Clips the spinning gradient to the rounded corners */
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

/* The Spinning Gradient Element */
.blog-card-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%;
    /* Large enough to cover corners while spinning */
    height: 250%;
    background: conic-gradient(from 0deg,
            transparent 60%,
            var(--blog-primary) 80%,
            var(--blog-primary-dark) 100%);
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

/* Hover Triggers */
.blog-card-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(9, 154, 167, 0.1);
}

.blog-card-wrapper:hover::before {
    opacity: 1;
    animation: running-border 2.5s linear infinite;
}

@keyframes running-border {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* --- The Solid Inner Card --- */
.blog-solid-card {
    background: #ffffff;
    border-radius: 12px;
    /* Matches wrapper minus padding */
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2;
    /* Sits above the spinning gradient */
}

/* Image & Badge */
.blog-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blog-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-category-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: var(--blog-primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Content Area */
.blog-content {
    padding: 24px 24px 16px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
}

.meta-item {
    font-size: 0.85rem;
    color: var(--blog-text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.meta-item i {
    color: var(--blog-primary);
    margin-right: 6px;
    font-size: 1rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-title a {
    color: var(--blog-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-wrapper:hover .blog-title a {
    color: var(--blog-primary);
}

.blog-excerpt {
    color: var(--blog-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer Area */
.blog-footer {
    padding: 16px 24px 24px 24px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: var(--blog-primary);
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.blog-read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.blog-card-wrapper:hover .blog-read-more {
    color: var(--blog-primary-dark);
}

.blog-card-wrapper:hover .blog-read-more i {
    transform: translateX(6px);
}

/* ==========================================================================
   Modern Stats Section
   ========================================================================== */
.modern-stats-section {
    position: relative;
    z-index: 2;
}

.modern-stat-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 35px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

/* Minimal Animation: Center-out bottom border */
.modern-stat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background-color: #099aa7;
    /* Theme Primary */
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px 4px 0 0;
}

/* Hover Triggers */
.modern-stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(9, 154, 167, 0.08);
    border-color: transparent;
}

.modern-stat-item:hover::after {
    width: 100%;
}

/* Icon Styling & Animation */
.modern-stat-item .stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(9, 154, 167, 0.08);
    /* Soft primary tint */
    color: #099aa7;
    /* Theme Primary */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: all 0.4s ease;
}

.modern-stat-item:hover .stat-icon {
    background: #099aa7;
    /* Flips to solid primary */
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
}

/* Typography */
.modern-stat-item .stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 10px;
}

.modern-stat-item .stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}