        /* Shared variables updated for the new look */
        :root {
            --teal: #3b9c9c;       /* Darker teal for text */
            --teal-bg: #6fb9b0;    /* Soft teal for the circle background */
            --teal-light: #e0f2f1;
            --teal-dark: #004d4d;
            --white: #ffffff;
            --gray-light: #f4f4f4;
            --text-dark: #222222;
            --text-light: #555555;
            --close-btn: #00bcd4;  /* Cyan for close button */
            --fellows-overlay-color: rgba(0, 0, 0, 0.5);
        }

        body {
            font-family: 'Poppins', sans-serif;
            margin: 0;
            padding: 0;
            background-color: var(--gray-light);
            color: var(--text-dark);
            box-sizing: border-box;
        }

        *, *:before, *:after { box-sizing: inherit; }

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

        /* --- FELLOWS GRID SYSTEM --- */
        .fellows-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 30px;
        }

        @media (min-width: 600px) { .fellows-grid { grid-template-columns: repeat(2, 1fr); } }
        @media (min-width: 900px) { .fellows-grid { grid-template-columns: repeat(3, 1fr); } }
        @media (min-width: 1100px) { .fellows-grid { grid-template-columns: repeat(4, 1fr); } }

        .fellows-card {
            background-color: var(--white);
            border-radius: 8px;
            padding: 30px;
            text-align: center;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
        }

        .fellows-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        }

        .fellows-photo {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 20px;
            border: 3px solid var(--teal-light);
        }

        .fellows-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 5px; color: var(--text-dark); }

        /* --- FELLOWS MODAL OVERLAY --- */
        .fellows-modal-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background-color: var(--fellows-overlay-color);
            backdrop-filter: blur(2px);
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            display: flex;
        }

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

        /* --- FELLOWS MODAL CONTAINER --- */
        .fellows-modal-container {
            background-color: var(--white);
            display: flex;
            position: relative;
            background: white;
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            margin: auto;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
        }
        
        .fellows-drag-handle { display: none; }
        .fellows-location-tag { display: none; } /* Hidden to match reference design */

        /* =================================================================
           DESKTOP MODAL VIEW (REDESIGNED)
           ================================================================= */
        @media (min-width: 768px) {
            .fellows-modal-overlay {
                justify-content: center;
                align-items: center;
                padding: 20px;
            }

            .fellows-modal-container {
                flex-direction: row;
                width: 100%;
                max-width: 900px;
                max-height: 90vh;
                border-radius: 12px;
                transform: scale(0.95);
                overflow: hidden; 
            }

            .fellows-modal-overlay.active .fellows-modal-container { transform: scale(1); }

            /* LEFT COLUMN - Image Area */
            .fellows-modal-image-col {
                flex: 0 0 40%;
                background-color: transparent;
                position: relative;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 40px;
            }

            /* Decorative Circle Behind Image */
            .fellows-modal-image-col::before {
                content: '';
                position: absolute;
                width: 280px;
                height: 280px;
                background-color: var(--teal-bg);
                border-radius: 50%;
                z-index: 0;
                top: 50%; left: 50%;
                transform: translate(-50%, -50%);
            }

            /* Circular Image */
            .fellows-modal-image {
                width: 260px;
                height: 260px;
                border-radius: 50%;
                object-fit: cover;
                z-index: 1;
                position: relative;
                border: 6px solid var(--white);
                box-shadow: 0 10px 20px rgba(0,0,0,0.05);
            }

            /* RIGHT COLUMN - Content */
            .fellows-modal-content-col {
                flex: 1;
                padding: 60px 50px 60px 20px;
                overflow-y: auto;
                display: flex;
                flex-direction: column;
                justify-content: center;
            }

            /* Clean Top Right Close Button */
            .fellows-close-modal {
                position: absolute;
                top: 25px;
                right: 25px;
                background: none;
                border: none;
                font-size: 2.5rem;
                color: var(--close-btn);
                cursor: pointer;
                transition: transform 0.2s;
                line-height: 0.5;
                z-index: 10;
                font-weight: 300;
            }
            .fellows-close-modal:hover { transform: scale(1.1); }
            
            /* Typography Tweaks for Desktop */
            .fellows-modal-name { font-size: 1.8rem; font-weight: 700; color: #000; }
            .fellows-modal-bio { font-size: 0.95rem; color: var(--text-light); line-height: 1.6; font-weight: 300; }
            .fellows-modal-tags { display: none; } /* Hiding tags for cleaner look */
        }


        /* =================================================================
           MOBILE MODAL VIEW (Bottom Sheet)
           ================================================================= */
        @media (max-width: 767px) {
            .fellows-modal-overlay { align-items: flex-end; padding: 0; }

            .fellows-modal-container {
                flex-direction: column;
                width: 100%;
                max-height: 85vh;
                border-radius: 24px 24px 0 0;
                transform: translateY(100%);
                transition: transform 0.3s cubic-bezier(0.1, 0.7, 0.1, 1);
                margin: 0 !important;
            }

            .fellows-modal-overlay.active .fellows-modal-container { transform: translateY(0); }

            .fellows-modal-image-col {
                height: 220px;
                width: 100%;
                flex-shrink: 0;
                position: relative;
            }
            
            .fellows-modal-image-col::before { display: none; } /* No circle on mobile */

            /* Full width image */
            .fellows-modal-image {
                width: 100%; height: 100%;
                object-fit: cover;
                border-radius: 0; border: none;
            }

            /* Gradient Overlay */
            .fellows-modal-image-col::after {
                content: '';
                position: absolute;
                top: 0; left: 0; right: 0;
                height: 80px;
                background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
                pointer-events: none;
            }

            .fellows-modal-content-col {
                padding: 25px;
                padding-bottom: 50px;
                overflow-y: auto;
            }

            /* Floating White Close Button */
            .fellows-close-modal {
                position: absolute;
                top: 15px; right: 15px;
                width: 35px; height: 35px;
                background: rgba(255,255,255,0.25);
                backdrop-filter: blur(4px);
                border: 1px solid rgba(255,255,255,0.4);
                border-radius: 50%;
                display: flex; align-items: center; justify-content: center;
                color: white; font-size: 1.2rem;
                z-index: 20; cursor: pointer;
            }

            .fellows-drag-handle {
                display: block;
                width: 40px; height: 5px;
                background-color: rgba(255,255,255,0.7);
                border-radius: 10px;
                position: absolute; top: 10px; left: 50%;
                transform: translateX(-50%);
                z-index: 25;
            }
            
            .fellows-modal-tags { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
            .fellows-modal-tag {
                background-color: var(--teal-light); color: var(--teal);
                padding: 4px 12px; border-radius: 6px;
                font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
            }
        }

        /* --- CONTENT STYLING --- */
        .fellows-modal-name {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--teal-dark);
            margin: 0 0 5px 0;
            line-height: 1.1;
        }

        .fellows-modal-bio {
            color: var(--text-dark);
            line-height: 1.7;
            margin-bottom: 30px;
            font-size: 0.95rem;
        }
        .fellows-modal-bio p { margin-top: 0; }

        body.fellows-modal-open { overflow: hidden; }
