@charset "utf-8";
/* CSS Document */

/* Existing styles */

/*body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}*/

.speaker-profile {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px; /* Space between columns and rows */
    row-gap: 50px; /* More space between rows */
    padding: 16px;
}

.profile-card {
    position: relative;
    text-align: center;
}

.profile-photo {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px; /* Space between photo and profile info */
}

.profile-photo img {
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.overlay {
    position: absolute;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 50%;
    width: 185px; /* Adjust size as needed */
    height: 185px; /* Adjust size as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.profile-card:hover .profile-photo img {
    opacity: 0.5;
}

.profile-card:hover .overlay {
    opacity: 1;
}

.profile-info {
    padding: 10px 20px; /* Space inside profile info section */
    text-align: center;
}

.profile-info h3 {
    margin: 10px 0; /* Space above and below the name */
}

.profile-info p {
    margin: 0; /* Remove default margin */
    line-height: 1.5; /* Improve readability */
}

/* Popup styles */
/* Popup styles */
.popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.popup-content {
    background: white;
    padding: 60px 20px; /* Increased top padding for more space above content */
    border-radius: 5px;
    position: relative;
    max-width: 60%; /* Adjust for better responsiveness */
    margin: auto;
    text-align: center; /* Center align text inside popup */
	line-height: 1.5em;
}

.popup-content h2 {
    margin-top: 0; /* Remove margin above the header */
}

.popup-content p {
    margin: 15px 0; /* Space above and below paragraphs */
    line-height: 1.6; /* Improve readability */
}

/* Close button style in popup */
.popup .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px; /* Increase font size */
    width: 40px; /* Increase width */
    height: 40px; /* Increase height */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3); /* Optional: Background color for better visibility */
    color: white; /* Color of the close button */
    border-radius: 50%; /* Make button round */
    cursor: pointer;
    z-index: 1001; /* Ensure it appears above other elements */
}

/* Add margin-top to ensure space between close button and popup content */
.popup .close + .popup-content {
    margin-top: 60px; /* Space between close button and content */
}

/* Optional: Add hover effect for close button */
.popup .close:hover {
    background: rgba(0, 0, 0, 0.5); /* Darker background on hover */
}


/* Media Queries for Responsive Design */
@media (max-width: 1200px) {
    .speaker-profile {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .speaker-profile {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .speaker-profile {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .speaker-profile {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .overlay {
        width: 80px;
        height: 80px;
        padding: 10px;
    }

    .profile-info h3 {
        font-size: 1.2em;
    }

    .profile-info p {
        font-size: 1em;
    }
}
