@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;600;700&display=swap');

        :root {
            --primary: #008b44;
            --primary-dark: #006b34;
            --accent: #D4AF37;
            --green: #008b44;
            --text-main: #2d3436;
            --text-sub: #636e72;
            --card-bg: #ffffff;
            --hosp-green: #008b44;
            --hosp-blue: #004a87;
            --hosp-dark: #0f172a;
            --glass-bg: rgba(255, 255, 255, 0.85);
            --glass-border: rgba(255, 255, 255, 0.4);
            /* Slower, more elegant cubic-bezier for smoothness */
            --transition-smooth: all 0.8s cubic-bezier(0.2, 1, 0.2, 1);
                        --alshifa-green: #008b44;
            --alshifa-gold: #f1b434;
            --bg-light: #f8fafc;
            
        }


        .section-padding {
            padding: 80px 0;
        }

        /* Modern Header Section */
        .section-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .section-header span {
            color: var(--hosp-green);
            text-transform: uppercase;
            font-weight: 700;
            letter-spacing: 2px;
            font-size: 14px;
            display: block;
            margin-bottom: 8px;
        }

        .section-header h2 {
            text-transform: uppercase;
            font-weight: 700;
            font-size: 42px;
            color: var(--hosp-dark);
            letter-spacing: -1px;
            margin-top: 0;
            margin-bottom: 15px;
        }

        .header-accent {
            width: 80px;
            height: 6px;
            background: linear-gradient(90deg, var(--hosp-green), #2ecc71);
            margin: 0 auto;
            border-radius: 10px;
        }

        /* Main Grid Wrapper */
        .hospital-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
            margin-bottom: 60px;
        }

        /* Centering the Upcoming Grid */
        .upcoming-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr); /* Basis for the span */
            max-width: 1140px;
            margin: 0 auto 60px auto;
            gap: 30px;
        }

        /* Specific rule for the big Lahore card */
        .hosp-card-wide {
            grid-column: span 2;
        }

        /* Glassmorphism Card Design - Reduced Height to 400px */
        .hosp-card-v9 {
            position: relative;
            height: 400px; 
            border-radius: 24px;
            overflow: hidden;
            background: #fff;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
            transition: var(--transition-smooth);
            cursor: pointer;
        }

        .hosp-card-v9:hover {
            transform: translateY(-8px);
            box-shadow: 0 25px 50px rgba(0, 74, 135, 0.12);
        }

        /* Image Layer */
        .hosp-img-wrap {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }

        .hosp-img {
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            /* Extra long transition for the image zoom */
            transition: transform 1.5s cubic-bezier(0.2, 1, 0.2, 1);
        }

        .hosp-card-v9:hover .hosp-img {
            transform: scale(1.1);
        }

        /* Content Overlay - Glassmorphism */
        .hosp-glass-overlay {
            position: absolute;
            bottom: 15px;
            left: 15px;
            right: 15px;
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 20px;
            z-index: 2;
            transition: var(--transition-smooth);
            max-height: 110px; /* Slimmer idle state */
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .hosp-card-v9:hover .hosp-glass-overlay {
            bottom: 20px;
            max-height: 340px; 
            background: rgba(255, 255, 255, 0.98);
        }

        /* Badge & Title */
        .hosp-tag {
            background: var(--hosp-green);
            color: white;
            padding: 4px 12px;
            border-radius: 50px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            display: inline-block;
            margin-bottom: 8px;
            align-self: flex-start;
        }

        .hosp-title {
            color: var(--hosp-dark);
            font-size: 22px;
            font-weight: 700;
            margin: 0;
            transition: color 0.3s;
        }

        /* Description - Animated height/opacity */
        .hosp-desc {
            font-size: 13px;
            color: #64748b;
            line-height: 1.5;
            opacity: 0;
            visibility: hidden;
            transform: translateY(15px);
            transition: var(--transition-smooth);
            margin-top: 15px;
        }

        .hosp-card-v9:hover .hosp-desc {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* Technical Info Pills */
        .tech-pills {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 15px;
            opacity: 0;
            transition: var(--transition-smooth);
        }

        .hosp-card-v9:hover .tech-pills {
            opacity: 1;
        }

        .pill {
            background: #f1f5f9;
            color: var(--hosp-blue);
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 600;
        }

        /* Sections Dividers */
        .label-divider {
            text-align: center;
            margin: 60px 0 40px 0;
            position: relative;
        }

        .label-divider span {
            background: #f8fafc;
            padding: 0 30px;
            font-weight: 700;
            color: var(--hosp-green);
            text-transform: uppercase;
            letter-spacing: 3px;
            font-size: 16px;
            position: relative;
            z-index: 2;
        }

        .label-divider::after {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            width: 100%;
            height: 1px;
            background: #e2e8f0;
            z-index: 1;
        }

        @media (max-width: 768px) {
            .hosp-glass-overlay { max-height: 400px; opacity: 1; bottom: 15px; }
            .hosp-desc, .tech-pills { opacity: 1; visibility: visible; transform: none; }
            .hospital-grid, .upcoming-grid { grid-template-columns: 1fr; }
            .hosp-card-wide { grid-column: span 1; }
            .section-header h2 { font-size: 32px; }
        }



        /* President Message */

                .section-wrapper {
            padding: 100px 0;
            background-color: #ffffff;
            position: relative;
            overflow: hidden;
        }

        /* Abstract background elements */
        .bg-blob {
            position: absolute;
            width: 800px;
            height: 800px;
            background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
            border-radius: 50%;
            z-index: 0;
        }
        .blob-1 { top: -300px; left: -200px; }
        .blob-2 { bottom: -300px; right: -200px; }

        .container-fluid {
            padding-left: 1%;
            padding-right: 1%;
            position: relative;
            z-index: 1;
        }

        @media (min-width: 992px) {
            .flex-row {
                display: flex;
                align-items: center;
            }
            .content-col {
                padding-right: 80px;
            }
        }

        .accent-pill {
            display: inline-block;
            background: #f1f5f9;
            color: #475569;
            padding: 8px 20px;
            border-radius: 100px;
            font-size: 13px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 25px;
        }

        .display-title {
            font-family: 'Montserrat', sans-serif;
            font-size: 42px;
            font-weight: 900;
            color: #0f172a;
            margin-bottom: 30px;
            line-height: 1.1;
            letter-spacing: -1.5px;
        }

        .quote-icon {
            color: #10b981;
            opacity: 0.2;
            margin-bottom: 20px;
        }

        .description-text {
            font-size: 17px;
            line-height: 1.8;
            color: #475569;
            position: relative;
        }
        
        .description-text p {
            margin-bottom: 25px;
        }

        .signature-area {
            margin-top: 40px;
            border-top: 1px solid #f1f5f9;
            padding-top: 30px;
        }

        .president-name {
            font-family: 'Montserrat', sans-serif;
            font-size: 22px;
            font-weight: 800;
            color: #0f172a;
            margin: 0;
        }

        .president-title {
            font-size: 15px;
            color: #10b981;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-top: 5px;
        }

        /* --- UI OPTION: MODERN NEOMORPHIC STYLISH FRAME --- */
        .image-wrapper {
            position: relative;
            padding: 40px;
        }

        .image-aura {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 110%;
            height: 110%;
            background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
            filter: blur(60px);
            z-index: 0;
        }

        /* The Main Stylish Frame Container */
        .ui-frame {
            position: relative;
            z-index: 5;
            background: #ffffff;
            padding: 10px;
            border-radius: 40px;
            box-shadow: 
                0 0 0 1px rgba(16, 185, 129, 0.1), /* Very thin green line */
                20px 20px 60px #d1d9e6, 
                -20px -20px 60px #ffffff;
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        /* Secondary Layer for "Different" Look */
        .ui-frame::before {
            content: '';
            position: absolute;
            inset: -15px;
            border: 2px dashed #10b981;
            border-radius: 50px;
            opacity: 0.15;
            z-index: -1;
            transition: all 0.6s ease;
        }

        .ui-frame img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 32px;
            filter: grayscale(10%) contrast(1.05);
            transition: all 0.5s ease;
        }

        /* Hover States */
        .ui-frame:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 
                0 0 0 2px rgba(16, 185, 129, 0.4),
                30px 30px 80px rgba(0,0,0,0.1);
        }

        .ui-frame:hover::before {
            inset: -25px;
            opacity: 0.3;
            transform: rotate(3deg);
        }

        .ui-frame:hover img {
            filter: grayscale(0%) contrast(1.1);
        }

        @media (max-width: 991px) {
            .section-wrapper { padding: 60px 0; }
            .content-col { text-align: center; margin-bottom: 50px; padding-right: 0; }
            .display-title { font-size: 32px; }
            .image-wrapper { max-width: 450px; margin: 0 auto; }
            .signature-area { display: flex; flex-direction: column; align-items: center; }
            .ui-frame::before { display: none; }
        }

        
        /* Fixed Container - Adaptive positioning */
        .widget-anchor {
            position: fixed;
            bottom: 40px;
            right: 40px;
            z-index: 10000;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            max-width: calc(100vw - 40px);
        }

        /* The Main Card - Compact Width */
        .as-card {
            width: 310px; 
            max-width: 100%;
            background: var(--card-bg);
            border-radius: 20px;
            box-shadow: 0 15px 45px rgba(0,0,0,0.12);
            overflow: hidden;
            transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
            transform-origin: bottom right;
            margin-bottom: 15px;
            opacity: 0;
            visibility: hidden;
            transform: scale(0.8) translateY(20px);
        }

        .as-card.is-active {
            opacity: 1;
            visibility: visible;
            transform: scale(1) translateY(0);
        }

        /* Compact Header */
        .as-header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            padding: 15px;
            color: white;
            text-align: center;
        }

        .as-header h3 {
            margin: 0 0 10px 0;
            font-size: 16px;
            font-weight: 700;
            letter-spacing: -0.3px;
        }

        /* Small Helpline Spotlight */
        .as-helpline-box {
            background: rgba(255, 255, 255, 0.12);
            padding: 8px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            text-align: center;
        }

        .as-helpline-box span {
            display: block;
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            opacity: 0.8;
            margin-bottom: 2px;
        }

        .as-helpline-box a {
            color: white;
            font-size: 16px;
            font-weight: 700;
            text-decoration: none !important;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .as-helpline-box .glyphicon {
            font-size: 12px;
            margin-right: 6px;
        }

        /* Compact Body */
        .as-body {
            padding: 8px;
            max-height: 55vh;
            overflow-y: auto;
        }

        .as-item {
            margin-bottom: 6px;
            border-radius: 12px;
            background: #fdfdfd;
            border: 1px solid #f1f1f1;
            transition: all 0.3s ease;
        }

        .as-item.is-open {
            background: #fff;
            border-color: rgba(0, 139, 68, 0.1);
        }

        .as-trigger {
            display: flex;
            align-items: center;
            padding: 10px 12px;
            cursor: pointer;
            user-select: none;
        }

        .as-icon {
            width: 32px;
            height: 32px;
            background: #f4faf6;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            color: var(--primary);
            font-size: 14px;
            transition: 0.3s;
        }

        .as-item.is-open .as-icon {
            background: var(--primary);
            color: white;
        }

        .as-label {
            flex: 1;
            font-weight: 600;
            font-size: 13px;
            color: var(--text-main);
        }

        .as-chevron {
            font-size: 9px;
            color: #ccc;
            transition: 0.3s transform ease;
        }

        .as-item.is-open .as-chevron {
            transform: rotate(180deg);
        }

        /* Panels */
        .as-panel {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
            opacity: 0;
        }

        .as-item.is-open .as-panel {
            max-height: 400px;
            opacity: 1;
        }

        .as-inner {
            padding: 0 12px 12px 56px;
            font-size: 12px;
            color: var(--text-sub);
            line-height: 1.5;
        }

        .as-data-card {
            background: #fcfcfc;
            border: 1px solid #eee;
            padding: 8px;
            border-radius: 8px;
            margin-top: 6px;
            position: relative;
        }

        .as-copy-btn {
            position: absolute;
            right: 8px;
            top: 8px;
            color: var(--primary);
            font-weight: 700;
            font-size: 9px;
            text-transform: uppercase;
            cursor: pointer;
        }

       /* Fixed Container - Adaptive positioning */
        .widget-anchor {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 10000;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            max-width: calc(100vw - 40px);
            /* Prevent the container from blocking clicks when inactive */
            pointer-events: none;
        }

        /* The Main Card - Compact Width */
        .as-card {
            width: 310px; 
            max-width: 100%;
            background: var(--card-bg);
            border-radius: 20px;
            box-shadow: 0 15px 45px rgba(0,0,0,0.12);
            overflow: hidden;
            transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
            transform-origin: bottom right;
            margin-bottom: 15px;
            opacity: 0;
            visibility: hidden;
            transform: scale(0.8) translateY(20px);
            /* Re-enable pointer events for the card content */
            pointer-events: auto;
        }

        .as-card.is-active {
            opacity: 1;
            visibility: visible;
            transform: scale(1) translateY(0);
        }

        /* Compact Header */
        .as-header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            padding: 15px;
            color: white;
            text-align: center;
        }

        .as-header h3 {
            margin: 0 0 10px 0;
            font-size: 16px;
            font-weight: 700;
            letter-spacing: -0.3px;
        }

        /* Small Helpline Spotlight */
        .as-helpline-box {
            background: rgba(255, 255, 255, 0.12);
            padding: 8px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            text-align: center;
        }

        .as-helpline-box span {
            display: block;
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            opacity: 0.8;
            margin-bottom: 2px;
        }

        .as-helpline-box a {
            color: white;
            font-size: 16px;
            font-weight: 700;
            text-decoration: none !important;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .as-helpline-box .glyphicon {
            font-size: 12px;
            margin-right: 6px;
        }

        /* Compact Body */
        .as-body {
            padding: 8px;
            max-height: 55vh;
            overflow-y: auto;
        }

        .as-item {
            margin-bottom: 6px;
            border-radius: 12px;
            background: #fdfdfd;
            border: 1px solid #f1f1f1;
            transition: all 0.3s ease;
        }

        .as-item.is-open {
            background: #fff;
            border-color: rgba(0, 139, 68, 0.1);
        }

        .as-trigger {
            display: flex;
            align-items: center;
            padding: 10px 12px;
            cursor: pointer;
            user-select: none;
        }

        .as-icon {
            width: 32px;
            height: 32px;
            background: #f4faf6;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            color: var(--primary);
            font-size: 14px;
            transition: 0.3s;
        }

        .as-item.is-open .as-icon {
            background: var(--primary);
            color: white;
        }

        .as-label {
            flex: 1;
            font-weight: 600;
            font-size: 13px;
            color: var(--text-main);
        }

        .as-chevron {
            font-size: 9px;
            color: #ccc;
            transition: 0.3s transform ease;
        }

        .as-item.is-open .as-chevron {
            transform: rotate(180deg);
        }

        /* Panels */
        .as-panel {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
            opacity: 0;
        }

        .as-item.is-open .as-panel {
            max-height: 400px;
            opacity: 1;
        }

        .as-inner {
            padding: 0 12px 12px 56px;
            font-size: 12px;
            color: var(--text-sub);
            line-height: 1.5;
        }

        .as-data-card {
            background: #fcfcfc;
            border: 1px solid #eee;
            padding: 8px;
            border-radius: 8px;
            margin-top: 6px;
            position: relative;
        }

        .as-copy-btn {
            position: absolute;
            right: 8px;
            top: 8px;
            color: var(--primary);
            font-weight: 700;
            font-size: 9px;
            text-transform: uppercase;
            cursor: pointer;
        }

        /* FAB Wrapper for Rotating Text */
        .as-fab-wrapper {
            position: relative;
            width: 100px; 
            height: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
            /* Re-enable pointer events for the button area */
            pointer-events: auto;
        }

        .as-fab-text {
            position: absolute;
            width: 100%;
            height: 100%;
            animation: rotateText 12s linear infinite; 
            pointer-events: none;
            transition: 0.5s opacity;
        }

        .as-fab-wrapper.is-open .as-fab-text {
            opacity: 0;
            animation-play-state: paused;
        }

        @keyframes rotateText {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        /* Main FAB */
        .as-fab {
            width: 50px;
            height: 50px;
            background: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
            cursor: pointer;
            box-shadow: 0 8px 25px rgba(0, 139, 68, 0.3);
            transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 2px solid #fff;
            z-index: 2;
        }

        .as-fab:hover {
            transform: scale(1.05);
        }

        .as-fab.is-open {
            background: #2d3436;
            transform: rotate(90deg);
        }

        /* Footer */
        .as-footer {
            padding: 10px 15px 15px;
        }

        .btn-as-action {
            background: var(--primary);
            color: #fff;
            display: block;
            text-align: center;
            padding: 10px;
            border-radius: 12px;
            font-weight: 700;
            text-decoration: none !important;
            font-size: 12px;
            transition: 0.3s;
            cursor: pointer;
        }

        @media (max-width: 350px) {
            .widget-anchor {
                right: 5px;
                bottom: 5px;
            }
            .as-card {
                width: calc(100vw - 20px);
            }
        }