
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #8d141b;
            --primary-dark: #6b0f15;
            --primary-light: #fbe9eb;
            --accent: #d4a373;
            --accent-light: #faeddd;
            --text: #1A2B3C;
            --text-light: #546E7A;
            --background: #FFFFFF;
            --light-bg: #F8FAFC;
            --border: #E9EDF2;
            --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.02);
            --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.05);
            --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
            --gradient: linear-gradient(135deg, var(--primary) 0%, #b31b24 100%);
            --radius: 24px;
            --radius-sm: 16px;
        }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            color: var(--text);
            line-height: 1.6;
            overflow-x: hidden;
            background: var(--background);
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 40px;
        }

        /* Typography */
        h1, h2, h3, h4 {
            font-weight: 700;
            line-height: 1.2;
            letter-spacing: -0.02em;
        }

        .section-title {
            font-size: 44px;
            margin-bottom: 20px;
            color: var(--text);
            position: relative;
        }

        .section-title:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 80px;
            height: 4px;
            background: var(--primary);
            border-radius: 2px;
        }

        .section-title.center {
            text-align: center;
        }

        .section-title.center:after {
            left: 50%;
            transform: translateX(-50%);
        }

        .section-subtitle {
            font-size: 18px;
            color: var(--text-light);
            max-width: 700px;
            margin-bottom: 50px;
        }

        /* Top Bar */
        .top-bar {
            background: var(--primary-dark);
            color: white;
            padding: 10px 0;
            font-size: 14px;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1001;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            transition: transform 0.3s ease, opacity 0.3s ease;
        }

        .top-bar.hide {
            transform: translateY(-100%);
            opacity: 0;
        }

        .top-bar-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .emergency-contact {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .emergency-badge {
            background: white;
            color: var(--primary);
            padding: 4px 12px;
            border-radius: 50px;
            font-weight: 700;
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .emergency-number {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
        }

        .emergency-number i {
            color: white;
            font-size: 16px;
        }

        .top-bar-links {
            display: flex;
            gap: 25px;
        }

        .top-bar-links a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            font-size: 13px;
            transition: color 0.3s ease;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .top-bar-links a:hover {
            color: white;
        }

        /* Main Header */
        .main-header {
            background: white;
            position: fixed;
            top: 50px;
            left: 0;
            right: 0;
            z-index: 1000;
            box-shadow: var(--shadow-sm);
            transition: top 0.3s ease, box-shadow 0.3s ease;
        }

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

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
        }

        /* ----- LOGO SECTION - EXACTLY AS IMAGE (no divider) ----- */
        .logo-section {
            display: flex;
            align-items: center;
            gap: 8px; /* minimal gap, no vertical line */
        }

        /* Logo image styling */
        .logo-image-png {
            height: 70px;
            width: auto;
            display: flex;
            align-items: center;
            flex-shrink: 0;
        }
        .logo-image-png img {
            height: 100%;
            width: auto;
            max-width: 100px;
            object-fit: contain;
            display: block;
        }

        .logo-text {
            line-height: 1.2;
        }

        .logo-main {
            font-size: 20px;
            font-weight: 700;
            color: var(--primary);
            letter-spacing: 0.3px;
            text-transform: uppercase;
            /* no border, no extra decoration — exactly like image */
        }

        /* Navigation */
        .nav-menu {
            display: flex;
            align-items: center;
            gap: 30px;
        }

        .nav-item {
            position: relative;
        }

        .nav-link {
            text-decoration: none;
            color: var(--text);
            font-weight: 600;
            font-size: 15px;
            padding: 8px 0;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: color 0.3s ease;
        }

        .nav-link i {
            font-size: 12px;
            color: var(--text-light);
            transition: transform 0.3s ease;
        }

        .nav-link:hover {
            color: var(--primary);
        }

        .nav-link:hover i {
            transform: rotate(180deg);
            color: var(--primary);
        }

        .nav-link.active {
            color: var(--primary);
            border-bottom: 2px solid var(--primary);
        }

        /* Mega Menu */
        .mega-menu {
            position: absolute;
            top: 100%;
            left: 0;
            width: 500px;
            background: white;
            border-radius: var(--radius-sm);
            box-shadow: var(--shadow-md);
            padding: 30px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: all 0.3s ease;
            border: 1px solid var(--border);
            z-index: 100;
        }

        .nav-item:hover .mega-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(10px);
        }

        .mega-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 25px;
        }

        .mega-section h4 {
            color: var(--primary);
            font-size: 16px;
            margin-bottom: 15px;
            padding-bottom: 8px;
            border-bottom: 2px solid var(--accent);
            display: inline-block;
        }

        .mega-links {
            list-style: none;
        }

        .mega-links li {
            margin-bottom: 12px;
        }

        .mega-links a {
            text-decoration: none;
            color: var(--text-light);
            font-size: 14px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .mega-links a:hover {
            color: var(--primary);
            transform: translateX(5px);
        }

        .mega-links a i {
            font-size: 12px;
            color: var(--primary);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .mega-links a:hover i {
            opacity: 1;
        }

        /* Header Actions */
        .header-actions {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .search-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--primary-light);
            border: none;
            color: var(--primary);
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .search-btn:hover {
            background: var(--primary);
            color: white;
            transform: scale(1.05);
        }

        .appointment-btn {
            padding: 12px 28px;
            background: var(--gradient);
            border: none;
            border-radius: 50px;
            color: white;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 10px 20px rgba(141, 20, 27, 0.2);
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }

        .appointment-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 30px rgba(141, 20, 27, 0.3);
        }

        /* Hero Slider */
        .hero-slider {
            margin-top: 122px;
            position: relative;
            height: calc(100vh - 122px);
            min-height: 700px;
        }

        .swiper {
            width: 100%;
            height: 100%;
        }

        .swiper-slide {
            position: relative;
            overflow: hidden;
        }

        .slide-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            transition: transform 8s ease;
        }

        .swiper-slide-active .slide-bg {
            transform: scale(1.1);
        }

        .slide-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(141, 20, 27, 0.6) 70%);
        }

        .slide-content {
            position: relative;
            z-index: 2;
            height: 100%;
            display: flex;
            align-items: center;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 40px;
            color: white;
        }

        .slide-text {
            max-width: 700px;
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s ease 0.3s;
        }

        .swiper-slide-active .slide-text {
            opacity: 1;
            transform: translateY(0);
        }

        .slide-badge {
            background: white;
            color: var(--primary);
            padding: 8px 20px;
            border-radius: 50px;
            font-weight: 700;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
            display: inline-block;
            margin-bottom: 30px;
        }

        .slide-text h1 {
            font-size: 64px;
            font-weight: 800;
            margin-bottom: 20px;
            line-height: 1.2;
        }

        .slide-text h1 span {
            color: white;
            position: relative;
            display: inline-block;
        }

        .slide-text p {
            font-size: 18px;
            margin-bottom: 40px;
            opacity: 0.9;
            max-width: 600px;
        }

        .slide-features {
            display: flex;
            gap: 30px;
            margin-bottom: 40px;
        }

        .slide-feature {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .slide-feature i {
            color: white;
            font-size: 20px;
        }

        .slide-buttons {
            display: flex;
            gap: 20px;
        }

        .slide-btn-primary {
            background: white;
            color: var(--primary);
            padding: 16px 40px;
            border-radius: 50px;
            font-weight: 700;
            text-decoration: none;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

        .slide-btn-primary:hover {
            background: var(--accent);
            color: var(--primary-dark);
            transform: translateY(-3px);
            box-shadow: var(--shadow-lg);
        }

        .slide-btn-outline {
            border: 2px solid white;
            color: white;
            padding: 16px 40px;
            border-radius: 50px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

        .slide-btn-outline:hover {
            background: white;
            color: var(--primary);
            transform: translateY(-3px);
        }

        /* Slider Navigation - FIXED POSITION */
        .slider-nav {
            position: absolute;
            bottom: 50px;
            right: 50px;
            z-index: 20;
            display: flex;
            gap: 15px;
        }

        .slider-button {
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            color: white;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .slider-button:hover {
            background: var(--primary);
            border-color: var(--primary);
            transform: scale(1.1);
        }

        .slider-pagination {
            position: absolute;
            bottom: 60px;
            left: 50px;
            z-index: 20;
            display: flex;
            gap: 10px;
        }

        .slider-pagination .swiper-pagination-bullet {
            width: 12px;
            height: 12px;
            background: rgba(255, 255, 255, 0.5);
            opacity: 1;
            transition: all 0.3s ease;
            border-radius: 50%;
        }

        .slider-pagination .swiper-pagination-bullet-active {
            width: 30px;
            border-radius: 10px;
            background: white;
        }

        /* Stats Bar */
        .stats-bar {
            background: white;
            border-radius: var(--radius);
            padding: 40px;
            margin-top: -60px;
            position: relative;
            z-index: 20;
            box-shadow: var(--shadow-lg);
            margin-bottom: 80px;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
        }

        .stats-item {
            text-align: center;
            position: relative;
        }

        .stats-item:not(:last-child):after {
            content: '';
            position: absolute;
            right: -15px;
            top: 50%;
            transform: translateY(-50%);
            width: 1px;
            height: 50px;
            background: var(--border);
        }

        .stats-number {
            font-size: 52px;
            font-weight: 800;
            color: var(--primary);
            line-height: 1;
            margin-bottom: 8px;
        }

        .stats-label {
            font-size: 16px;
            color: var(--text-light);
            font-weight: 500;
        }

        /* Quick Actions */
        .quick-actions {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 25px;
            margin-bottom: 80px;
        }

        .quick-action {
            background: var(--light-bg);
            padding: 30px;
            border-radius: var(--radius-sm);
            text-align: center;
            transition: all 0.3s ease;
            text-decoration: none;
            color: var(--text);
            border: 1px solid var(--border);
        }

        .quick-action:hover {
            transform: translateY(-5px);
            background: white;
            box-shadow: var(--shadow-md);
            border-color: var(--primary);
        }

        .quick-action i {
            font-size: 40px;
            color: var(--primary);
            margin-bottom: 15px;
        }

        .quick-action h3 {
            font-size: 18px;
            margin-bottom: 8px;
        }

        .quick-action p {
            font-size: 13px;
            color: var(--text-light);
        }

        /* About Section */
        .about-section {
            padding: 40px 0;
            background: #97161d17;
        }

        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }

        .about-content {
            padding-right: 40px;
        }

        .hospital-badge {
            background: var(--primary-light);
            color: var(--primary);
            padding: 6px 16px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 14px;
            display: inline-block;
            margin-bottom: 20px;
        }

        .about-highlight {
            font-size: 20px;
            font-weight: 600;
            color: var(--primary);
            margin: 25px 0 15px;
        }

        .about-text {
            color: var(--text-light);
            margin-bottom: 20px;
            font-size: 16px;
        }

        .features-list {
            margin: 30px 0;
        }

        .feature-item {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            align-items: flex-start;
        }

        .feature-item i {
            color: var(--primary);
            font-size: 24px;
            min-width: 30px;
        }

        .feature-item h4 {
            font-size: 18px;
            margin-bottom: 5px;
        }

        .feature-item p {
            color: var(--text-light);
            font-size: 15px;
        }

        .about-image {
            position: relative;
        }

        .about-image-main {
            background: linear-gradient(135deg, var(--primary-light), white);
            border-radius: var(--radius);
            aspect-ratio: 4/3;
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-lg);
            border: 5px solid white;
        }

        .about-image-main img{
            width:100%;
            height:100%;
            object-fit:cover;
            display:block;
        }
        .about-image-main:before {
            content: 'Hospital';
            position: absolute;
            bottom: 30px;
            left: 30px;
            background: var(--primary);
            color: white;
            padding: 10px 20px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 14px;
            z-index:2;
        }

        .about-image-accent {
            position: absolute;
            bottom: -20px;
            right: -20px;
            width: 150px;
            height: 150px;
            background: var(--primary);
            opacity: 0.1;
            border-radius: 50%;
            z-index: -1;
        }

        /* Departments Section */
        .departments-section {
            padding: 40px 0;
            background: var(--light-bg);
        }

        .departments-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 25px;
            margin-top: 40px;
        }

        .dept-card {
            background: white;
            padding: 30px;
            border-radius: var(--radius-sm);
            text-align: center;
            transition: all 0.3s ease;
            border: 1px solid var(--border);
        }

        .dept-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-md);
            border-color: var(--primary);
        }

        .dept-icon {
            width: 70px;
            height: 70px;
            background: var(--primary-light);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            color: var(--primary);
            font-size: 30px;
            transition: all 0.3s ease;
        }

        .dept-card:hover .dept-icon {
            background: var(--primary);
            color: white;
        }

        .dept-card h3 {
            font-size: 18px;
            margin-bottom: 10px;
        }

        .dept-card p {
            color: var(--text-light);
            font-size: 13px;
            margin-bottom: 15px;
        }

        .dept-link {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        /* Why Choose Us */
        .why-choose {
            padding: 80px 0;
            background: white;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 25px;
            margin-top: 40px;
        }

        .feature-card {
            background: var(--light-bg);
            padding: 35px;
            border-radius: var(--radius-sm);
            text-align: center;
            transition: all 0.3s ease;
            border: 1px solid var(--border);
        }

        .feature-card:hover {
            transform: translateY(-5px);
            background: white;
            box-shadow: var(--shadow-md);
            border-color: var(--primary);
        }

        .feature-icon {
            width: 70px;
            height: 70px;
            background: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 25px;
            color: white;
            font-size: 28px;
        }

        .feature-card h3 {
            font-size: 20px;
            margin-bottom: 15px;
        }

        .feature-card p {
            color: var(--text-light);
            font-size: 14px;
            line-height: 1.6;
        }

        /* CTA Section */
        .cta-section {
            padding: 100px 0;
            background: var(--gradient);
            position: relative;
            overflow: hidden;
        }

        .cta-section:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><path d="M20 0 L40 20 L20 40 L0 20 Z" fill="white" opacity="0.03"/></svg>');
            background-size: 60px 60px;
        }

        .cta-content {
            position: relative;
            z-index: 2;
            text-align: center;
            max-width: 800px;
            margin: 0 auto;
            color: white;
        }

        .cta-content h2 {
            font-size: 48px;
            margin-bottom: 20px;
        }

        .cta-content p {
            font-size: 18px;
            margin-bottom: 40px;
            opacity: 0.9;
        }

        .cta-buttons {
            display: flex;
            gap: 20px;
            justify-content: center;
        }

        .btn-white {
            background: white;
            color: var(--primary);
            padding: 16px 40px;
            border-radius: 50px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .btn-white:hover {
            background: var(--accent);
            color: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        .btn-outline-white {
            border: 2px solid white;
            color: white;
            padding: 16px 40px;
            border-radius: 50px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .btn-outline-white:hover {
            background: white;
            color: var(--primary);
            transform: translateY(-2px);
        }

        /* Footer */
        .footer {
            background: var(--text);
            color: white;
            padding: 80px 0 30px;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1.5fr;
            gap: 60px;
            margin-bottom: 60px;
        }

        .footer-logo {
            font-size: 28px;
            font-weight: 800;
            margin-bottom: 20px;
            background: linear-gradient(135deg, white, var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .footer-about p {
            opacity: 0.7;
            font-size: 15px;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .footer h4 {
            font-size: 18px;
            margin-bottom: 25px;
            color: white;
            position: relative;
            padding-bottom: 10px;
        }

        .footer h4:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 2px;
            background: var(--primary);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 15px;
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            transition: all 0.3s ease;
            font-size: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .footer-links a:hover {
            color: var(--primary);
            transform: translateX(5px);
        }

        .footer-contact p {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
            opacity: 0.7;
            font-size: 15px;
        }

        .footer-contact i {
            color: var(--primary);
            width: 20px;
        }

        .footer-bottom {
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            text-align: center;
            opacity: 0.5;
            font-size: 14px;
        }

        /* Mobile Menu Toggle */
        .mobile-toggle {
            display: none;
            flex-direction: column;
            gap: 6px;
            cursor: pointer;
        }

        .mobile-toggle span {
            width: 25px;
            height: 2px;
            background: var(--primary);
            transition: all 0.3s ease;
        }

        /* Responsive */
        @media (max-width: 1200px) {
            .slide-text h1 {
                font-size: 52px;
            }
            
            .departments-grid,
            .features-grid,
            .quick-actions {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .footer-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .logo-main {
                font-size: 18px;
            }
        }

        @media (max-width: 992px) {
            .nav-menu {
                display: none;
            }
            
            .mobile-toggle {
                display: flex;
            }
            
            .about-grid {
                grid-template-columns: 1fr;
            }
            
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .slide-text h1 {
                font-size: 42px;
            }
            
            .logo-main {
                font-size: 16px;
            }
        }

        @media (max-width: 768px) {
            .container {
                padding: 0 20px;
            }
            
            .top-bar-links {
                display: none;
            }
            
            .emergency-number span {
                display: none;
            }
            
            .slide-text h1 {
                font-size: 32px;
            }
            
            .section-title {
                font-size: 32px;
            }
            
            .slide-features {
                flex-direction: column;
                gap: 15px;
            }
            
            .slide-buttons {
                flex-direction: column;
            }
            
            .departments-grid,
            .features-grid,
            .quick-actions,
            .stats-grid {
                grid-template-columns: 1fr;
            }
            
            .stats-item:after {
                display: none;
            }
            
            .cta-buttons {
                flex-direction: column;
            }
            
            .footer-grid {
                grid-template-columns: 1fr;
            }
            
            .slider-nav {
                bottom: 20px;
                right: 20px;
            }
            
            .slider-pagination {
                bottom: 30px;
                left: 20px;
            }
            
            .slider-button {
                width: 40px;
                height: 40px;
            }
            
            .logo-image-png img {
                max-width: 120px;
            }
            
            .logo-section {
                gap: 5px;
            }
            
            .logo-main {
                font-size: 14px;
            }
        }

        /* Animations */
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        .animate-float {
            animation: float 3s ease infinite;
        }

        .fade-up {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

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

        /*popup */
      .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content img {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain; /* keeps full image visible */
}

/* Close button */
.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #fff;
    color: #000;
    font-size: 22px;
    width: 35px;
    height: 35px;
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    z-index: 10;
}
@keyframes popupFade {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .popup-content {
        max-width: 95%;
    }
}
