* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;    
}

.page {
    padding: 0px 200px;
    padding-top: 50px;
    font-size: 24px;
    font-weight: 100;
    text-align: right;
}


.div-container-white {
    padding: 0px 200px;
    margin-bottom: 100px;
}

.content-segment-1{
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            width: 100%; /* Full width of parent */
            padding: 50px 0px;
            gap: 40px;
        }

        .speaker-type {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            width: 100%;
        }

         .speaker-type-2 {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            padding-top: 50px;
            width: 100%;
        }

        .hr-red {
                    border: none; /* Remove default border */
                    height: 5px; /* Set thickness of the line */
                    background-color: #c70000; /* Red color for the line */
                }
        
        .speaker-card {
            width: 200px;
            height: 300px;
            border: solid 1px #c70000;
            border-radius: 20px;
            position: relative;          
            overflow: hidden;           
            cursor: pointer;
            box-shadow: 0 0px 8px rgba(0, 0, 0, 0.5);           
            transition: transform 0.2s ease;
        }

        .speaker-card:hover {
            transform: scale(1.2);     
        }


        .speaker-image {
            object-fit: cover;
            width: 100%;
            height: 100%;
            border-radius: 20px;
            box-shadow: 0 0px 8px rgba(0, 0, 0, 0.2);
            transition: transform 0.2s ease, opacity 0.2s ease;
        }

        /* Overlay layer for name (hidden by default) */
        .speaker-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);  /* semi-transparent dark layer */
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;                      /* hidden at start */
            transition: opacity 0.4s ease;
            border-radius: 20px;
            pointer-events: none;            /* doesn't block clicks */
        }

        /* Text inside overlay */
        .speaker-overlay .speaker-name {
            color: white;
            font-size: 16px;
            font-weight: 600;
            text-align: center;
            padding: 10px;
            text-shadow: 0 1px 3px rgba(0,0,0,0.8);
        }

        /* Show overlay on hover */
        .speaker-card:hover .speaker-overlay {
            opacity: 1;
        }

        /* Optional: slight zoom on image when hovered */
        .speaker-card:hover .speaker-image {
            transform: scale(1.1);
        }

        /* Fixed popup - now properly scrollable without changing your structure */
        .bio-popup {
            position: fixed;
            top: 55%;                   
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80%;
            height: 75%;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
            overflow: hidden;                  /* hide overflow on popup container */
            display: none;
            flex-direction: column;
            z-index: 100;
        }

        .bio-popup.active {
            display: flex;
        }
    
        .popup-body {
            padding: 20px;
            overflow-y: auto;
            flex: 1;
        }

        .show-less-btn {
            margin-top: 20px;
            padding: 12px 40px;
            background: #c70000;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 12px;
        }

        .backdrop {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.6);
            display: none;
            z-index: 99;
        }

        .backdrop.active {
            display: block;
        }


/*____________________________________________________________________________________________________________________________________*/

/* Mobile Styles */
@media only screen and (max-width: 873px) {

    body {
        font-size: 12px;      
    }  
    
    .div-container-white {
        padding: 0px 20px;
    }

    .page {
        padding: 0px 20px;
        padding-top: 50px;
        font-size: 18px;
    }

    .content-segment-1{
            padding: 50px 0px;
        }
                 
}