  /* --- Google Fonts --- */
    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;700&family=Lato:wght@400;700&display=swap');

    /* --- CSS Variables for Easy Theming --- */
    :root {
        --primary-color: #2c3e50;
        /* Dark Blue */
        --accent-color: #fde613ff;
        /* Professional Red */
        --text-dark: #34495e;

        --bg-light: #f4f7f6;
        --card-bg: #ffffff;
        --border-color: #e8e8e8;
        --shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
        --shadow-hover: 0 12px 35px rgba(0, 0, 0, 0.1);
    }



    /* --- Team Section Container --- */
    .team-section {
        max-width: 1200px;
        margin: 0 auto;
    }

    .section-title {
        font-family: 'Poppins', sans-serif;
        font-size: 2.8rem;
        font-weight: 700;
        color: var(--primary-color);
        text-align: center;
        margin-bottom: 3rem;
    }

    /* --- Team Grid Layout --- */
    .team-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    /* --- Individual Team Card --- */
    .team-card {
        background: var(--card-bg);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: var(--shadow);
        text-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .team-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-hover);
    }

    .card-image {
        width: 100%;
        height: 400px;
        /* fixed card height */
        overflow: hidden;
        /* hide overflow */
    }

    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }


    .card-content {
        padding: 1.5rem;
    }

    .member-name {
        font-family: 'Poppins', sans-serif;
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0 0 0.25rem 0;
        color: var(--primary-color);
    }

    .member-title {
        font-size: 1rem;
        font-weight: 700;
        color: var(--accent-color);
        margin: 0 0 1rem 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .member-bio {
        font-size: 0.95rem;
        color: var(#7f8c8d);
        line-height: 1.6;
        margin: 0 0 1.5rem 0;
    }

    .profile-link {
        display: inline-block;
        font-family: 'Poppins', sans-serif;
        font-weight: 500;
        text-decoration: none;
        color: var(--accent-color);
        padding: 0.5rem 0;
        position: relative;
    }

    .profile-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--accent-color);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease-in-out;
    }

    .profile-link:hover::after {
        transform: scaleX(1);
    }

       /* Modal Styling */
    .profile-modal {
        display: none;
        position: fixed;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        justify-content: center;
        align-items: center;
        padding: 1rem;
    }

    .profile-modal-content {
        background: #fff;
        width: 100%;
        max-width: 600px;
        padding: 2rem;
        border-radius: 12px;
        text-align: center;
        position: relative;
        max-height: 90vh;

    }

    .profile-modal-content img {

        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .profile-modal-content .designation {
        font-weight: bold;
        color: #666;
        margin-bottom: 1rem;
    }

    #modal-bio {
        text-align: left;
        font-size: 15px;
        line-height: 1.6;
        color: #444;
        margin-top: 1rem;
        white-space: pre-line;
    }

    /* Close button */
    .close-btn {
        position: absolute;
        top: 12px;
        right: 20px;
        font-size: 28px;
        cursor: pointer;
    }