﻿.committee-body {
    margin: 0;
    padding: 0;
    display: flow-root;
    background-color: #f4f4f4;
    font-family: Arial, sans-serif;
}

/* Fixed horizontal menu */
.menu {
    width: 100%;
    background-color: #2d3e50;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center !important;
    position: relative;
    top: 0;
    left: 0;
    z-index: 1;
    overflow-x: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    white-space: nowrap; /* Ensure the links are inline */
}

    .menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        justify-content: center; /* Center the li elements */
        width: 100%;
    }

    .menu li {
        margin-right: 15px;
    }
    /* Menu items */
    .menu a {
        color: #fff !important;
        text-decoration: none;
        padding: 12px 20px;
        display: inline-block;
        font-size: 14px;
        transition: background-color 0.3s ease, opacity 0.3s ease;
        opacity: 1;
        margin-right: 15px;
    }

        /* Hover state of menu items */
        .menu a:hover {
            background-color: #4b596b;
            border-radius: 5px;
        }

        /* Active menu item styling (underline and centered) */
        .menu a.active {
            background-color: #4b596b;
            border-radius: 5px;
            text-decoration: underline;
        }

/* Content area */
.content {
    margin-top: 70px; /* Space for fixed menu */
    padding: 20px;
    background-color: #fff;
}

/* Horizontal scroll for menu on mobile */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .menu {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        z-index: 1;
        padding: 10px 0;
        background-color: #2d3e50;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        justify-content: flex-start;
    }

        .menu ul {
            display: flex;
            overflow-x: auto;
            white-space: nowrap;
            justify-content: left !important;
        }

        .menu li {
            flex: 0 0 auto;
        }

        .menu a {
            padding: 12px 20px;
        }

            .menu a:first-child {
                margin-left: 0; /* Keep the first link at the left */
            }

            .menu a.active {
                background-color: #4b596b;
                border-radius: 5px;
                text-decoration: underline;
            }
}

/*Added 10NOV to optimize gif speakers loading n converted all data to webp*/
.modal-speaker-img {
    border-radius: 15px;
    width: 200px;
    height: 200px;
    border: 3px groove #2ccfbb;
}

.team-item {
    position: relative;
    display: inline-block; /* Makes sure the image and gif stay aligned */
}

    .team-item img {
        position: relative;
        border-radius: 50%;
        /*object-position: top center; */
        z-index: 2;
        display: block;
        top: -5px;
    }

        .team-item img.gif {
            position: absolute;
            margin: 0 auto;
            width: 120%; /* Makes the gif size responsive */
            height: 120%; /* Ensures the gif wraps around the image */
            background: url('https://rh.premadz.com/ssdds_assets/img/speaker/circle3.gif') no-repeat center center;
            background-size: contain;
            border-radius: 50%;
            opacity: 1;
            transition: opacity 0.3s ease-in-out;
            pointer-events: none; /* Ensure the gif doesn't interfere with other interactions */
            z-index: 1;
        }

            .team-item img.gif.loaded {
                opacity: 1; /* Show gif once the image has loaded */
            }

        .team-item img:hover {
            filter: none;
        }

            .team-item img:hover + .gif-wrapper .gif {
                opacity: 1; /* Show gif on hover */
            }
/* Media Query for larger screens */
@media (min-width: 200px) {

    .team-item img.gif {
        top: -14.5%;
        left: 5%;
        width: 90%;
        height: 90%;
    }
}

@media (min-width: 768px) {

    .team-item img.gif {
        top: -14.5%;
        left: 5%;
        width: 90%;
        height: 90%;
    }
}

@media (min-width: 991px) {

    .team-item img.gif {
        top: -32.5%; /* Keeps gif position relative to larger image */
        left: 0%;
        width: 120%; /* Ensures gif expands with the image */
        height: 120%;
    }
}


/* Media Query for extra-large screens */
@media (min-width: 1200px) {

    .team-item img.gif {
        top: -32%; /* Keeps gif position relative to image */
        left: 0%;
        width: 120%; /* Ensures gif wraps around image properly */
        height: 120%;
    }
}