/*
Theme Name: Dr. Finan Medical Theme
Theme URI: http://example.com/
Author: Prallab
Author URI: http://example.com/
Description: A custom advanced surgical care theme.
Version: 1.0
Text Domain: drfinan
*/

 :root {
            /* Medical Theme Colors */
            --bg-grad-start: #1c3c5a; /* Deep medical blue */
            --bg-grad-end: #257a7a;   /* Teal/Surgical green */
            --mint-green: #4cd1a1;
            --text-light: #ffffff;
            --text-faint: rgba(255, 255, 255, 0.85);
            --shape-faint: rgba(255, 255, 255, 0.03);
            --shape-outline: rgba(255, 255, 255, 0.12);
            --dark-bg: #0d1b2a;
        }

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

        body {
            font-family: 'Oswald', sans-serif;
            background-color: var(--dark-bg);
            overflow-x: clip; /* Using clip instead of hidden allows sticky positioning to work properly */
            color: var(--text-light);
            padding-bottom: 0; 
        }

        /* --- Intro Splash Banners --- */
        .intro-banners-container {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            z-index: 9999;
            background: rgba(13, 27, 42, 0.9);
            backdrop-filter: blur(5px);
            pointer-events: all;
            animation: hideIntro 0.5s forwards 9.2s;
            overflow: hidden;
        }

        @keyframes hideIntro {
            100% { opacity: 0; visibility: hidden; pointer-events: none; }
        }

        .splash-banner {
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -150vh);
            background: linear-gradient(135deg, var(--bg-grad-start) 0%, var(--mint-green) 100%);
            color: var(--text-light);
            padding: 40px 80px;
            font-family: 'Teko', sans-serif;
            font-size: 4rem;
            letter-spacing: 3px;
            border-radius: 12px;
            box-shadow: 0 30px 60px rgba(0,0,0,0.6);
            text-align: center;
            white-space: nowrap;
            border: 1px solid rgba(255, 255, 255, 0.3);
            opacity: 0;
            animation: bannerDrop 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
            width: auto;
            max-width: 90%;
        }

        .banner-1 { animation-delay: 0.2s; }
        .banner-2 { animation-delay: 3.2s; }
        .banner-3 { animation-delay: 6.2s; }

        @keyframes bannerDrop {
            0% { transform: translate(-50%, -150vh); opacity: 0; }
            15% { transform: translate(-50%, -50%); opacity: 1; }
            85% { transform: translate(-50%, -50%); opacity: 1; }
            100% { transform: translate(-50%, 150vh); opacity: 0; }
        }

        /* --- Reusable Gradient & Grid Backgrounds for All Sections --- */
        .themed-section {
            position: relative;
            background: linear-gradient(135deg, var(--bg-grad-start) 0%, var(--bg-grad-end) 100%);
            overflow: hidden;
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }

        /* Corner-only grid boxes */
        .bg-grid-corner {
            position: absolute;
            width: 350px;
            height: 350px;
            background-image: linear-gradient(var(--shape-outline) 1px, transparent 1px), 
                              linear-gradient(90deg, var(--shape-outline) 1px, transparent 1px);
            background-size: 40px 40px;
            opacity: 0.4;
            pointer-events: none;
            z-index: 1;
        }
		/* --- Converging Surgical Preloader --- */
#surgical-loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--dark-bg);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Hides the loader when JS triggers it */
.loader-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}

.loader-stage {
    position: relative;
    width: 100px; 
    height: 100px;
}

/* Base styling for the moving icons */
.surg-icon {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0;
    /* The animation duration is 1.2s */
    animation: converge 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Starting positions off-screen */
.icon-top    { top: 0; left: 50%; transform: translate(-50%, -50vh) rotate(-180deg); animation-delay: 0.0s; }
.icon-right  { top: 50%; right: 0; transform: translate(50vw, -50%) rotate(90deg);   animation-delay: 0.2s; }
.icon-bottom { bottom: 0; left: 50%; transform: translate(-50%, 50vh) rotate(180deg);  animation-delay: 0.1s; }
.icon-left   { top: 50%; left: 0; transform: translate(-50vw, -50%) rotate(-90deg);  animation-delay: 0.3s; }

/* The movement logic: Go to center and fade out */
@keyframes converge {
    0% { opacity: 0; }
    30% { opacity: 1; }
    90% { transform: translate(-50%, -50%) rotate(0deg); opacity: 1; top: 50%; left: 50%; }
    100% { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; top: 50%; left: 50%; }
}

/* The central logo popping up after convergence */
.loader-logo {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    color: var(--mint-green);
    font-family: 'Teko', sans-serif;
    font-size: 3.5rem;
    letter-spacing: 2px;
    white-space: nowrap;
    /* Starts exactly when the icons finish converging (1.2s + 0.3s delay = 1.5s) */
    animation: popCenter 0.8s ease forwards 1.5s;
}

@keyframes popCenter {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); text-shadow: 0 0 20px var(--mint-green); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); text-shadow: none; }
}
        
        .top-left { 
            top: 0; 
            left: 0; 
            mask-image: radial-gradient(circle at top left, black 20%, transparent 80%);
            -webkit-mask-image: radial-gradient(circle at top left, black 20%, transparent 80%);
        }
        
        .bottom-right { 
            bottom: 0; 
            right: 0; 
            mask-image: radial-gradient(circle at bottom right, black 20%, transparent 80%);
            -webkit-mask-image: radial-gradient(circle at bottom right, black 20%, transparent 80%);
        }

        .section-padding { padding: 100px 50px; position: relative; z-index: 5; }
        .container { max-width: 1200px; margin: 0 auto; position: relative; z-index: 5; }
        .section-title { text-align: center; font-family: 'Teko', sans-serif; font-size: 3.5rem; color: var(--mint-green); margin-bottom: 40px; text-transform: uppercase; letter-spacing: 2px;}

        /* --- Top Header --- */
        .top-bar {
            background-color: var(--dark-bg);
            color: var(--text-light);
            padding: 10px 50px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.95rem;
            font-weight: 300;
            letter-spacing: 1px;
            position: relative;
            z-index: 120;
        }

        .contact-info { display: flex; gap: 20px; flex-wrap: wrap; }
        .contact-info span { display: flex; align-items: center; gap: 5px; }

        /* --- Main Navigation (With Sticky Effect) --- */
        nav {
            background: rgba(13, 27, 42, 0.95);
            backdrop-filter: blur(10px);
            padding: 15px 50px;
            position: sticky;
            top: 0;
            z-index: 900; /* High z-index to stay above page content */
            display: flex;
            justify-content: center;
            align-items: center;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            transition: all 0.4s ease; /* Smooth transition for sticky effect */
        }
/* --- Logo Layout & Animation --- */

/* Ensures the logo and links sit on opposite sides of the navbar */
nav#main-nav {
    justify-content: space-between; 
}

.logo-link {
    display: flex;
    align-items: center;
    z-index: 130; /* Keeps it above the mobile menu overlay */
}

.site-logo {
    max-height: 70px; /* Controls the size of the jpeg */
    width: auto;
    border-radius: 6px; /* Smooths the square corners of the image */
    border: 2px solid var(--mint-green);
    box-shadow: 0 0 10px rgba(76, 209, 161, 0.2);
    transition: all 0.3s ease;
    /* Applies the heartbeat animation */
    animation: logoHeartbeat 3s infinite;
}

/* Pause animation and glow on hover */
.logo-link:hover .site-logo {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--mint-green);
    animation: none; 
    border-color: var(--text-light);
}

/* Medical Double-Beat Animation */
@keyframes logoHeartbeat {
    0% { transform: scale(1); }
    5% { transform: scale(1.06); }
    10% { transform: scale(1); }
    15% { transform: scale(1.06); }
    20% { transform: scale(1); }
    100% { transform: scale(1); }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .site-logo {
        max-height: 45px; /* Slightly smaller on mobile screens */
    }
}

        /* The Sticky Scrolled Effect */
        nav.scrolled {
            padding: 8px 50px;
            background: rgba(8, 17, 26, 0.98); /* Darker background */
            box-shadow: 0 10px 30px rgba(0,0,0,0.8);
            border-bottom: 2px solid var(--mint-green);
        }

        .mobile-brand { display: none; font-family: 'Teko', sans-serif; font-size: 2rem; color: var(--mint-green); letter-spacing: 2px; }

        .nav-links {
            display: flex;
            gap: 30px;
            align-items: center;
        }

        .nav-links a {
            color: var(--text-light);
            text-decoration: none;
            font-size: 1.1rem;
            font-weight: 400;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            transition: color 0.3s;
        }

        .nav-links a:hover { color: var(--mint-green); }

        .mobile-menu-toggle {
            display: none;
            flex-direction: column;
            gap: 6px;
            cursor: pointer;
            z-index: 130;
        }
        .mobile-menu-toggle span {
            width: 30px;
            height: 3px;
            background-color: var(--mint-green);
            transition: 0.3s;
            border-radius: 3px;
        }

        /* --- Dropdown Menu with Images --- */
        .dropdown { position: relative; }
        .dropdown-menu {
            position: absolute;
            top: 150%;
            left: 50%;
            transform: translateX(-50%) translateY(10px);
            background: var(--dark-bg);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 8px;
            padding: 15px;
            display: flex;
            gap: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            pointer-events: none;
            z-index: 100;
        }
        .dropdown:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
            pointer-events: auto;
        }
        .dropdown-item { text-align: center; width: 150px; text-decoration: none; color: var(--text-light); }
        .dropdown-item img {
            width: 100%; height: 100px; object-fit: cover; border-radius: 6px; margin-bottom: 8px; transition: transform 0.3s; border: 1px solid var(--shape-outline);
        }
        .dropdown-item:hover img { transform: scale(1.05); border-color: var(--mint-green); }
        .dropdown-item span { display: block; font-family: 'Teko', sans-serif; font-size: 1.2rem; letter-spacing: 1px; color: var(--mint-green); }

        /* --- Marquee Update Section --- */
        .marquee-container {
            width: 100%;
            overflow: hidden;
            white-space: nowrap;
            background: var(--mint-green);
            padding: 8px 0;
            position: relative;
            z-index: 90;
        }
        .marquee-text {
            display: inline-block;
            font-family: 'Teko', sans-serif;
            font-size: 1.4rem;
            letter-spacing: 1.5px;
            color: var(--dark-bg);
            font-weight: 500;
            animation: marquee 25s linear infinite;
        }

        /* --- Main Hero Section --- */
        .hero {
            position: relative;
            width: 100%;
            min-height: 85vh;
            padding-bottom: 120px;
            padding-top: 50px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        /* Medical Cross Icon Background */
        .hero-cross {
            position: absolute;
            width: 400px;
            height: 400px;
            background: linear-gradient(90deg, transparent 40%, rgba(76, 209, 161, 0.08) 40%, rgba(76, 209, 161, 0.08) 60%, transparent 60%),
                        linear-gradient(0deg, transparent 40%, rgba(76, 209, 161, 0.08) 40%, rgba(76, 209, 161, 0.08) 60%, transparent 60%);
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 2;
            animation: pulse 6s infinite;
            pointer-events: none;
        }

        /* Hero ECG Background Animation */
        .hero-ecg {
            position: absolute;
            top: 50%;
            left: 0;
            width: 100%;
            height: 300px;
            transform: translateY(-50%);
            z-index: 3;
            opacity: 0.2;
            pointer-events: none;
        }
        .hero-ecg path {
            fill: none;
            stroke: var(--mint-green);
            stroke-width: 4;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-dasharray: 2000;
            stroke-dashoffset: 2000;
            animation: drawEcgHero 5s linear infinite;
        }

        /* Background Floating Shapes */
        .bg-shape { position: absolute; z-index: 2; pointer-events: none; }
        .circle-solid-1 { width: 350px; height: 350px; background: rgba(76, 209, 161, 0.1); border-radius: 50%; top: -100px; left: -100px; animation: float 12s ease-in-out infinite; }
        .circle-outline-1 { width: 200px; height: 200px; border: 1px solid var(--mint-green); border-radius: 50%; top: -50px; left: -80px; opacity: 0.4; animation: rotateSlow 25s linear infinite; }
        .dots-1 { width: 150px; height: 200px; top: 150px; right: 50px; background-image: radial-gradient(var(--mint-green) 2px, transparent 2px); background-size: 20px 20px; animation: pulse 8s ease-in-out infinite; opacity: 0.3;}
        .circle-solid-3 { width: 400px; height: 400px; background: rgba(13, 27, 42, 0.4); border-radius: 50%; bottom: -50px; right: 100px; animation: floatReverse 14s ease-in-out infinite; }
        .circle-outline-3 { width: 300px; height: 300px; border: 1px solid var(--shape-outline); border-radius: 50%; bottom: -150px; right: -50px; animation: rotateSlowReverse 30s linear infinite; }
        
        .content {
            position: relative;
            z-index: 10;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 0 20px;
        }

        .badge {
            font-family: 'Teko', sans-serif;
            font-size: 1.5rem;
            letter-spacing: 2px;
            border: 1px solid var(--mint-green);
            color: var(--mint-green);
            padding: 4px 20px;
            border-radius: 4px;
            margin-bottom: 10px;
            font-weight: 500;
            background: rgba(13, 27, 42, 0.5);
            backdrop-filter: blur(5px);
        }

        .hero h1 {
            font-family: 'Teko', sans-serif;
            font-size: 6.5rem;
            font-weight: 600;
            letter-spacing: 3px;
            line-height: 1;
            margin-bottom: 15px;
            text-shadow: 2px 4px 15px rgba(0,0,0,0.4);
        }

        .hero p {
            font-family: 'Teko', sans-serif;
            font-size: 1.6rem;
            font-weight: 400;
            letter-spacing: 1.5px;
            max-width: 800px;
            line-height: 1.4;
            margin-bottom: 35px;
            color: var(--text-faint);
            text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
        }

        .buttons { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center;}
        .btn { font-family: 'Teko', sans-serif; font-size: 1.4rem; letter-spacing: 1.5px; padding: 8px 30px; border-radius: 4px; cursor: pointer; text-decoration: none; transition: all 0.3s ease; text-align: center;}
        .btn-hire { background-color: var(--mint-green); color: #0d1b2a; border: 1px solid var(--mint-green); font-weight: 600; box-shadow: 0 4px 15px rgba(76, 209, 161, 0.3);}
        .btn-hire:hover { background-color: #ffffff; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4); }
        .btn-portfolio { background-color: rgba(13, 27, 42, 0.6); color: var(--text-light); border: 1px solid var(--text-light); backdrop-filter: blur(5px);}
        .btn-portfolio:hover { background-color: rgba(255, 255, 255, 0.15); transform: translateY(-3px); border-color: var(--mint-green); color: var(--mint-green);}

        /* --- Overlapping Stats Section --- */
        .stats-wrapper {
            position: relative;
            z-index: 50;
            margin-top: -80px; /* Pulls it up over the hero */
            padding: 0 20px;
        }

        .stats-section {
            background: linear-gradient(135deg, var(--dark-bg) 0%, #173046 100%);
            padding: 40px 0;
            border-radius: 12px;
            border: 1px solid rgba(76, 209, 161, 0.3);
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            overflow: hidden;
        }

        /* Mini grid for stats box */
        .stats-section::before {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), 
                              linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
            background-size: 20px 20px;
            pointer-events: none;
        }

        .stats-grid {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            gap: 20px;
            position: relative;
            z-index: 5;
        }

        .stat-box { text-align: center; padding: 10px; }
        .stat-number {
            font-family: 'Teko', sans-serif;
            font-size: 5rem;
            color: var(--mint-green);
            line-height: 1;
            margin-bottom: 5px;
            display: inline-block;
            text-shadow: 0 0 20px rgba(76, 209, 161, 0.4);
        }
        .stat-number::after { content: '+'; color: #ffffff; }
        .stat-label { font-size: 1.1rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 400; }

        /* --- Section: About the Doctors --- */
        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }
        
        .about-image-container {
            position: relative;
            z-index: 5;
        }
        
        /* Image Background Grid Decorator */
        .img-decorator-grid {
            position: absolute;
            top: -25px;
            left: -25px;
            width: 100%;
            height: 100%;
            border: 2px solid var(--mint-green);
            z-index: -1;
            background-image: radial-gradient(var(--mint-green) 2px, transparent 2px);
            background-size: 20px 20px;
            opacity: 0.3;
            border-radius: 8px;
        }

        .about-image { 
            width: 100%; 
			height:-webkit-fill-available;
            border-radius: 8px; 
            box-shadow: 0 20px 40px rgba(0,0,0,0.4);
            position: relative;
            z-index: 2;
            border: 1px solid rgba(255,255,255,0.1);
        }

        .about-text h2 { text-align: left; margin-bottom: 15px; }
        .about-text p { font-family: 'Oswald', sans-serif; font-size: 1.15rem; color: var(--text-faint); letter-spacing: 0.5px; margin-bottom: 25px; text-transform: none; line-height: 1.6;}

        /* --- Section: Services --- */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
        }
        .service-card {
            background: rgba(13, 27, 42, 0.6);
            backdrop-filter: blur(10px);
            padding: 40px 30px;
            border-radius: 12px;
            border: 1px solid rgba(76, 209, 161, 0.2);
            text-align: center;
            transition: all 0.4s ease;
            position: relative;
            z-index: 5;
            overflow: hidden;
        }
        .service-card::before {
            content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
            background-size: 15px 15px; z-index: -1; pointer-events: none;
        }
        .service-card:hover { transform: translateY(-10px); border-color: var(--mint-green); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
        .service-card img { width: 90px; height: 90px; object-fit: cover; border-radius: 50%; margin-bottom: 25px; border: 3px solid var(--mint-green); padding: 3px; background: var(--dark-bg);}
        .service-card h3 { font-family: 'Teko', sans-serif; font-size: 2.2rem; letter-spacing: 1.5px; margin-bottom: 15px; color: #fff;}
        .service-card p { font-family: 'Oswald', sans-serif; font-size: 1.05rem; color: var(--text-faint); letter-spacing: 0.5px; text-transform: none; line-height: 1.5;}

        /* --- New Section: Why Choose Us --- */
        .features-list {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-top: 30px;
        }
        .feature-item {
            display: flex;
            align-items: center;
            gap: 20px;
            background: rgba(255,255,255,0.05);
            padding: 20px;
            border-radius: 8px;
            border-left: 4px solid var(--mint-green);
        }
        .feature-icon {
            font-size: 2.5rem;
            color: var(--mint-green);
        }
        .feature-text h4 {
            font-family: 'Teko', sans-serif; font-size: 1.8rem; letter-spacing: 1px; margin-bottom: 5px;
        }
        .feature-text p { font-size: 1rem; color: var(--text-faint); text-transform: none;}

        /* --- Floating Mobile Bottom Bar --- */
        .mobile-bottom-bar {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background: rgba(13, 27, 42, 0.95);
            backdrop-filter: blur(15px);
            border-top: 1px solid rgba(76, 209, 161, 0.2);
            z-index: 999;
            justify-content: space-around;
            align-items: center;
            padding: 10px 0;
            padding-bottom: env(safe-area-inset-bottom, 10px);
            box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
        }

        .bottom-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: var(--text-faint);
            text-decoration: none;
            font-family: 'Teko', sans-serif;
            font-size: 1.2rem;
            letter-spacing: 1px;
            transition: color 0.3s;
        }

        .bottom-item .icon { font-size: 1.5rem; margin-bottom: 2px; }
        .bottom-item:hover, .bottom-item:active { color: var(--mint-green); }

        .bottom-item.center-btn {
            background: linear-gradient(135deg, var(--mint-green), #37a884);
            color: var(--dark-bg);
            width: 70px;
            height: 70px;
            border-radius: 50%;
            justify-content: center;
            transform: translateY(-25px);
            box-shadow: 0 10px 20px rgba(76, 209, 161, 0.4);
            border: 4px solid var(--dark-bg);
        }

        .bottom-item.center-btn .icon { font-size: 1.8rem; margin: 0;}
        .bottom-item.center-btn .text { display: none; }

        /* --- Footer --- */
        footer {
            background: var(--dark-bg);
            color: var(--text-faint);
            text-align: center;
            padding: 40px 20px;
            font-weight: 300;
            letter-spacing: 1px;
            border-top: 1px solid rgba(255,255,255,0.05);
            position: relative;
            z-index: 10;
        }

        /* --- Responsive Media Queries --- */
        @media (max-width: 992px) {
            .hero h1 { font-size: 5rem; }
            .about-grid, .about-grid[style] { grid-template-columns: 1fr !important; gap: 40px; text-align: center; }
            .about-text h2 { text-align: center !important; }
            .services-grid { grid-template-columns: repeat(2, 1fr); }
            .features-list { grid-template-columns: 1fr; }
            .img-decorator-grid { display: none; }
        }

        @media (max-width: 768px) {
            body { padding-bottom: 80px; }
            
            .splash-banner { font-size: 2.5rem; padding: 25px 40px; white-space: normal; }

            .top-bar { display: none; }
            
            nav { justify-content: space-between; padding: 15px 25px; }
            nav.scrolled { padding: 10px 25px; } /* Sticky shrink on mobile too */
            
            .mobile-brand { display: block; }
            .mobile-menu-toggle { display: flex; }
            
            .nav-links {
                position: fixed;
                top: 0; right: -100%;
                width: 75%; height: 100vh;
                background: var(--dark-bg);
                flex-direction: column;
                justify-content: center;
                transition: right 0.4s ease;
                border-left: 1px solid rgba(255,255,255,0.1);
                box-shadow: -10px 0 30px rgba(0,0,0,0.5);
                z-index: 120;
            }
            .nav-links.active { right: 0; }

            .dropdown-menu {
                position: static; transform: none; opacity: 1; visibility: visible; 
                box-shadow: none; border: none; background: transparent; padding: 10px 0;
                display: none; flex-direction: column; align-items: center;
            }
            .dropdown.active .dropdown-menu { display: flex; }
            .dropdown-item img { display: none; }
            .dropdown-item span { color: var(--text-light); }

            .mobile-menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
            .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
            .mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

            .hero { min-height: 70vh; padding-top: 40px; }
            .hero h1 { font-size: 3.8rem; }
            .hero p { font-size: 1.2rem; }
            .hero-cross { width: 250px; height: 250px; }
            .badge { font-size: 1.2rem; }

            .buttons { flex-direction: column; width: 100%; }
            .buttons .btn { width: 100%; }

            .stats-wrapper { margin-top: -40px; }
            .stat-box { width: 45%; }
            .stat-number { font-size: 3.5rem; }

            .section-padding { padding: 60px 20px; }
            .section-title { font-size: 2.8rem; }
            
           .services-grid { 
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 30px; /* Space for the drop shadow */
        margin: 0 -20px; /* Pulls it to the edges of the screen */
        padding-left: 20px;
        padding-right: 20px;
        
        /* Hide the scrollbar */
        -ms-overflow-style: none;  
        scrollbar-width: none;  
    }
    
    .services-grid::-webkit-scrollbar {
        display: none; 
    }

    .service-card {
        flex: 0 0 85%; /* Cards take up 85% to let the next one peek in */
        scroll-snap-align: center; /* Snaps card to the center */
        
        /* Disable hover jump on mobile to prevent glitches while swiping */
        transform: none !important; 
    }
    
    .service-card:hover {
        box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    }

            .mobile-bottom-bar { display: flex; }
            footer { padding-bottom: 100px; }
        }
/* --- Professional Footer --- */
.site-footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #112233 100%);
    color: var(--text-faint);
    padding: 80px 20px 20px;
    border-top: 1px solid rgba(76, 209, 161, 0.2);
    position: relative;
    z-index: 10;
    font-family: 'Oswald', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h3.footer-logo {
    font-family: 'Teko', sans-serif;
    font-size: 2.8rem;
    color: var(--mint-green);
    letter-spacing: 2px;
    margin-bottom: 15px;
    line-height: 1;
}

.footer-column h4 {
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    text-align: center; /* Ensures the text is perfectly centered */
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%; /* Moves the line to the middle of the column */
    transform: translateX(-50%); /* Perfectly aligns the true center of the line */
    width: 40px;
    height: 2px;
    background-color: var(--mint-green);
}

.footer-column p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-icons a {
    font-size: 1.5rem;
    margin-right: 15px;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    transform: translateY(-5px);
}

.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
}

.footer-links li, .footer-contact li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-links a, .footer-contact a {
    color: var(--text-faint);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--mint-green);
    padding-left: 5px; /* Adds a nice sliding effect on hover */
}

/* Dark mode map filter effect */
.footer-map iframe {
    filter: grayscale(100%) invert(90%) contrast(80%);
    transition: filter 0.4s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Map becomes colorful when hovered */
.footer-map iframe:hover {
    filter: grayscale(0%);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Mobile Spacing Fix for Footer */
@media (max-width: 768px) {
    .site-footer {
        padding-bottom: 100px; /* Ensures the floating mobile bar doesn't block the copyright text */
    }
}


		/* --- Our Happy Customers (Testimonials) --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 5;
}

.testimonial-card {
    background: rgba(13, 27, 42, 0.6);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid rgba(76, 209, 161, 0.2);
    transition: all 0.4s ease;
    text-align: left;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--mint-green);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.testimonial-card .stars {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-size: 1.1rem;
    color: var(--text-faint);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 25px;
    text-transform: none;
}

.patient-info {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.patient-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--mint-green);
}

.patient-info h4 {
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    margin: 0;
    line-height: 1;
    color: var(--text-light);
}

.patient-info span {
    font-size: 0.9rem;
    color: var(--mint-green);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Ask Question / FAQ Section --- */
.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 5;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: rgba(13, 27, 42, 0.6);
    border: 1px solid rgba(76, 209, 161, 0.2);
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: var(--mint-green);
}

.faq-item summary {
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    color: var(--text-light);
    cursor: pointer;
    list-style: none; /* Removes default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    letter-spacing: 1px;
}

/* Custom + / - icon for the accordion */
.faq-item summary::after {
    content: '+';
    color: var(--mint-green);
    font-size: 2rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '-';
    transform: rotate(180deg);
}

/* Hide the default webkit summary marker */
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-answer {
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-faint);
    font-size: 1.1rem;
    line-height: 1.6;
    animation: fadeInDown 0.4s ease forwards;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
		


@media (max-width: 768px) {
    /* ... your other mobile rules ... */

    /* --- UPDATED: Mobile Horizontal Scroll for Reviews --- */
    .testimonial-grid { 
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory; /* Creates the smooth snapping effect */
        gap: 20px;
        padding-bottom: 30px; /* Space for the drop shadow */
        margin: 0 -20px; /* Pulls it to the edges of the screen */
        padding-left: 20px;
        padding-right: 20px;
        
        /* Hide the ugly scrollbar for a clean app-like feel */
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    
    /* Hide scrollbar for Chrome, Safari and Opera */
    .testimonial-grid::-webkit-scrollbar {
        display: none; 
    }

    .testimonial-card {
        flex: 0 0 85%; /* Cards take up 85% of screen, letting the next one peek in */
        scroll-snap-align: center; /* Snaps the card to the middle */
        
        /* Disable hover jump on mobile to prevent glitches while swiping */
        transform: none !important; 
    }
    
    .testimonial-card:hover {
        box-shadow: 0 15px 30px rgba(0,0,0,0.3); /* Keep shadow, remove jump */
    }
}

@media (max-width: 992px) {
    .hero h1 { font-size: 5rem; }
    .about-grid, .about-grid[style] { grid-template-columns: 1fr !important; gap: 40px; text-align: center; }
    .about-text h2 { text-align: center !important; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .features-list { grid-template-columns: 1fr; }
    .img-decorator-grid { display: none; }

    /* --- NEW: Tablet Responsive for Reviews & FAQ --- */
    .testimonial-grid { 
        grid-template-columns: repeat(2, 1fr); /* Changes from 3 to 2 columns */
    }
    
    .faq-layout { 
        grid-template-columns: 1fr; /* Stacks the text and the accordion */
        gap: 40px; 
    }
    
    .faq-layout .faq-text h2 { 
        text-align: center !important; /* Centers the FAQ title */
    }
    
    .faq-layout .faq-text p, 
    .faq-layout .faq-text div {
        text-align: center; /* Centers the paragraph and button */
    }
}
/* Slider Logic */
.surgeon-slider {
    position: relative;
    width: 100%;
    height: 450px; /* Adjust based on your design */
    overflow: hidden;
    border-radius: 15px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Animated Background for PNG */
.animated-bg-wrapper {
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #e3f2fd, #ffffff, #bbdefb, #f5f5f5);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    display: flex;
    align-items: flex-end; /* Keeps person grounded */
    justify-content: center;
    overflow: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.surgeon-png {
    height: 90%; /* Scale PNG to fit nicely */
    width: auto !important;
    object-fit: contain;
}

/* Labels */
.surgeon-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 3;
}
/* Layout Overhaul */
.high-contrast-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Image gets slightly more space */
    gap: 80px;
    align-items: center;
}

/* Ultra Large Typography */
.ultra-title {
    font-family: 'Teko', sans-serif;
    font-size: 5.5rem; /* Massive size */
    font-weight: 700;
    line-height: 0.9;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.mint-highlight {
    color: var(--mint-green);
    display: block;
    text-shadow: 0 0 30px rgba(76, 209, 161, 0.3);
}

.lead-text {
    font-size: 1.6rem;
    color: var(--text-light);
    font-family: 'Teko', sans-serif;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Image Container Tweaks */
.about-image-container {
    height: 600px; /* Taller image */
    position: relative;
}

.surgeon-slider {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 1px solid var(--shape-outline);
    overflow: hidden;
    z-index: 2;
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Specialist Badge on Image */
.specialist-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: var(--mint-green);
    color: var(--dark-bg);
    padding: 10px 25px;
    font-family: 'Teko', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* PNG Slide Background */
.animated-bg-wrapper {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #257a7a 0%, #1c3c5a 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Responsiveness for Mobile */
@media (max-width: 992px) {
    .high-contrast-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .ultra-title {
        font-size: 3.5rem;
    }
    
    .about-image-container {
        height: 400px;
    }
}
/* Horizontal Scroll Container */
.treatment-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 40px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
}

.treatment-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
/* 1. Horizontal Scroll & Snapping */
.treatment-horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0 50px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.treatment-horizontal-scroll::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

/* 2. The Professional Card Box */
.surgery-card-box {
    flex: 0 0 400px; /* Fixed width for desktop */
    scroll-snap-align: center; /* Snaps card to the center on mobile */
    aspect-ratio: 3 / 4; /* Keeps a professional "vertical box" shape */
    position: relative;
    border: 1px solid var(--shape-outline);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.5s ease;
}

/* 3. Image Covering Container */
.box-image-layer {
    width: 100%;
    height: 100%;
    position: relative;
}

.full-cover-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Forces image to fill the card */
    filter: brightness(0.6) contrast(1.2);
    transition: transform 0.8s ease, filter 0.5s ease;
}

.surgery-card-box:hover .full-cover-img {
    transform: scale(1.1);
    filter: brightness(0.4) grayscale(0.5); /* Modern medical aesthetic */
}

/* 4. TRUE Centering of Text */
.box-overlay-centered {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center; /* Vertically Centers */
    justify-content: center; /* Horizontally Centers */
    text-align: center;
    padding: 30px;
    z-index: 10;
}

.box-content-inner h3 {
    font-family: 'Teko', sans-serif;
    font-size: 3rem;
    color: #fff;
    text-transform: uppercase;
    margin: 10px 0;
    line-height: 1;
}

.surgery-tag {
    color: var(--mint-green);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

.box-line-center {
    width: 50px;
    height: 3px;
    background: var(--mint-green);
    margin: 15px auto; /* Centers the line */
    transition: width 0.4s ease;
}

.surgery-card-box:hover .box-line-center {
    width: 120px;
}

.box-btn-premium {
    color: #fff;
    text-decoration: none;
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
    border: 1px solid #fff;
    padding: 8px 25px;
    margin-top: 20px;
    display: inline-block;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.surgery-card-box:hover .box-btn-premium {
    opacity: 1;
    transform: translateY(0);
    background: var(--mint-green);
    border-color: var(--mint-green);
    color: var(--dark-bg);
}

/* 5. Mobile Responsiveness */
@media (max-width: 768px) {
    .surgery-card-box {
        flex: 0 0 85%; /* Shows most of the card, peeks the next one */
        aspect-ratio: 4 / 5; /* Slightly shorter on mobile */
    }
    
    .box-content-inner h3 {
        font-size: 2.2rem;
    }
    
    .box-btn-premium {
        opacity: 1; /* Always visible on mobile for UX */
        transform: none;
    }
}
/* Hero Page Styling */
.hero-specialty {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    border-bottom: 2px solid var(--mint-green);
}

.ultra-title-main {
    font-family: 'Teko', sans-serif;
    font-size: clamp(3.5rem, 10vw, 6.5rem);
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.mint-line-center {
    width: 80px;
    height: 4px;
    background: var(--mint-green);
    margin: 20px auto;
    box-shadow: 0 0 15px var(--mint-green);
}

.post-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-faint);
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Ensure the layout is responsive */
@media (max-width: 768px) {
    .hero-specialty {
        height: 45vh;
        background-attachment: scroll;
    }
}


/* Core Card Styles */
.doctor-poster-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 40px;
    border: 1px solid rgba(0,0,0,0.05);
}

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

/* Header Formatting */
.poster-header {
    margin-bottom: 40px;
}

/* Flex Layout for Image & Details */
.doctor-profile-flex {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.doctor-image-wrapper {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 8px solid transparent;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.doctor-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Details & Badges */
.doctor-details {
    flex-grow: 1;
}

.name-badge {
    padding: 10px 25px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.qualifications p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.sub-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
}

/* Expertise Section */
.expertise-section {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.expertise-title {
    text-align: center;
    padding: 8px 20px;
    display: inline-block;
    border-radius: 30px;
    margin: 0 auto 25px auto;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #444;
}

.expertise-grid.text-red i {
    color: #d32f2f;
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .doctor-poster-card {
        padding: 25px 15px;
    }
    
    .poster-header h1 {
        font-size: 2.2rem !important;
    }
    
    .doctor-profile-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .doctor-details.align-right {
        text-align: center;
    }
    
    .expertise-grid {
        grid-template-columns: repeat(1, 1fr); /* Single column on mobile */
        text-align: left;
        padding-left: 10%;
    }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse-blob {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.7; }
    100% { transform: scale(1); opacity: 0.5; }
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
/* =========================================
   FULL WIDTH POSTER STYLES
========================================= */
.full-width-poster-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

.poster-section {
    position: relative;
    padding: 100px 20px;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

/* Backgrounds & Graphic Elements */
.red-poster { background: linear-gradient(135deg, #ffffff 0%, #fdf5f5 100%); border-bottom: 5px solid #d32f2f; }
.blue-poster { background: linear-gradient(135deg, #f4f9fd 0%, #ffffff 100%); }

.graphic-grid-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(#000000 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.04;
    z-index: 1;
}

.graphic-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
}
.orb-red-top { width: 500px; height: 500px; background: #ffcdd2; top: -200px; left: -150px; }
.orb-yellow-bottom { width: 600px; height: 600px; background: #fff9c4; bottom: -300px; right: -200px; }
.orb-blue-top { width: 550px; height: 550px; background: #bbdefb; top: -100px; right: -150px; }
.orb-cyan-bottom { width: 500px; height: 500px; background: #e0f7fa; bottom: -200px; left: -200px; }

.floating-icon {
    position: absolute;
    font-size: 3rem;
    opacity: 0.05;
    z-index: 1;
}
.icon-1 { top: 15%; right: 10%; color: #d32f2f; transform: rotate(15deg); }
.icon-2 { bottom: 20%; left: 8%; color: #fbc02d; font-size: 5rem; transform: rotate(-20deg); }
.icon-3 { top: 25%; left: 12%; color: #1976d2; font-size: 4rem; transform: rotate(10deg); }
.icon-4 { bottom: 15%; right: 15%; color: #00bcd4; transform: rotate(-15deg); }

/* Content Container */
.poster-container {
    max-width: 1100px;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Typography */
.super-subtitle {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: 1px;
	color:black
}
.super-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    text-shadow: 2px 4px 15px rgba(0,0,0,0.1);
}
.text-red { color: #d32f2f; }
.text-blue { color: #1976d2; }
.text-dark { color: #2c3e50; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Glassmorphism Profile Box */
.glass-panel {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 40px;
    margin-top: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 50px;
}
.reverse-layout { flex-direction: row-reverse; }

/* Image Rings */
.profile-image-ring {
    width: 260px;
    height: 260px;
    flex-shrink: 0;
    border-radius: 50%;
    padding: 10px;
    position: relative;
    background: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}
.ring-yellow { border: 4px dashed #fbc02d; }
.ring-blue { border: 4px dashed #64b5f6; }

.profile-image-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    background: #f0f0f0;
}

/* Ribbons and Badges */
.name-ribbon {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: skewX(-5deg);
}
.name-ribbon h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    transform: skewX(5deg); /* Unskew text */
}
.ribbon-red { background: linear-gradient(90deg, #d32f2f, #e53935); }
.ribbon-blue { background: linear-gradient(90deg, #1976d2, #2196f3); }

.floating-badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
.badge-yellow { background: #fbc02d; color: #000; }
.badge-outline-blue { position: static; display: inline-block; transform: none; background: white; border: 2px solid #1976d2; color: #1976d2; margin-top: 15px; }

/* Text Info */
.degrees .deg-main {
    font-size: 1.4rem;
    font-weight: 800;
    color: #333;
    line-height: 1.5;
    margin-bottom: 5px;
}
.degrees .deg-sub {
    font-size: 1.1rem;
    color: #666;
    font-weight: 600;
}

/* Expertise Grid Box */
.poster-expertise-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    position: relative;
    border: 1px solid #f0f0f0;
}
.expertise-ribbon {
    position: absolute;
	width:max-content;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 8px 30px;
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}
.exp-item {
    font-size: 1.2rem;
    font-weight: 700;
    color: #444;
    display: flex;
    align-items: center;
    background: #f9f9f9;
    padding: 12px 15px;
    border-radius: 10px;
    transition: 0.3s;
}
.exp-item:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); background: white; }
.grid-red .exp-item i { color: #d32f2f; margin-right: 12px; font-size: 1.3rem; }

/* =========================================
   MOBILE RESPONSIVENESS
========================================= */
@media (max-width: 991px) {
    .glass-panel { flex-direction: column !important; padding: 30px 20px; text-align: center; }
    .text-right { text-align: center; }
    .expertise-grid { grid-template-columns: repeat(2, 1fr); }
    .super-title { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .poster-section { padding: 60px 15px; }
    .super-subtitle { font-size: 1.5rem; }
    .super-title { font-size: 2.8rem; }
    .profile-image-ring { width: 200px; height: 200px; }
    .name-ribbon h2 { font-size: 1.4rem; }
    .degrees .deg-main { font-size: 1.1rem; }
    .degrees .deg-sub { font-size: 0.95rem; }
    .expertise-grid { grid-template-columns: 1fr; }
    .exp-item { font-size: 1.1rem; justify-content: center; }
}


        /* --- Keyframes --- */
        @keyframes float { 0%, 100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-20px) translateX(10px); } }
        @keyframes floatReverse { 0%, 100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(20px) translateX(-10px); } }
        @keyframes rotateSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
        @keyframes rotateSlowReverse { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
        @keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
        @keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
        @keyframes drawEcgHero { 0% { stroke-dashoffset: 2000; } 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -2000; } }





/* 1. Base Container - Tucked off-screen with a slide transition */
.trp-language-switcher.trp-floating-switcher.trp-switcher-position-top {
    position: fixed !important;
    top: 50% !important;
    bottom: auto !important;
    left: auto !important;
    right: 0 !important; /* Anchor to the edge for the transform math to work */
    z-index: 999999 !important;
    margin: 0 !important;
    border-radius: 30px !important; /* Outer rounding */
    
    /* TUCK IT AWAY: Move right by 100% of its width, minus 25px so a sliver peeks out */
    transform: translate(calc(100% - 25px), -50%) !important; 
    
    /* Smooth sliding animation and slight dimming when hidden */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out !important;
    opacity: 0.5 !important;
}

/* 2. Slide it fully into view on Hover (Desktop) or when Open (Mobile) */
.trp-language-switcher.trp-floating-switcher.trp-switcher-position-top:hover,
.trp-language-switcher.trp-floating-switcher.trp-switcher-position-top.is-open {
    /* Slide fully into view, stopping 20px from the right edge */
    transform: translate(-20px, -50%) !important; 
    opacity: 1 !important;
}

/* 3. Target the main button to make it small and rounded */
.trp-language-switcher.trp-floating-switcher .trp-ls-shortcode-current-language {
    padding: 6px 14px !important; 
    font-size: 13px !important;   
    border-radius: 30px !important; 
}

/* 4. Target the dropdown items to match the smaller size */
.trp-language-switcher.trp-floating-switcher .trp-ls-sublanguages a {
    padding: 6px 14px !important;
    font-size: 13px !important;
}

/* 5. Shrink the flags slightly */
.trp-language-switcher.trp-floating-switcher img.trp-flag-image {
    width: 16px !important;
    height: auto !important;
    margin-right: 6px !important;
}

/* 6. Fix the dropdown list position, round it, and ensure it aligns right */
.trp-language-switcher.trp-floating-switcher .trp-ls-sublanguages {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important; 
    left: auto !important;
    margin-top: 5px !important; 
    border-radius: 15px !important; 
    overflow: hidden !important; 
    min-width: 100% !important;
}

