/* Container Setup */
.carousel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%; /* Full width */
    margin: auto;
    overflow: hidden;
}
.carousel-wrapper {
    overflow: hidden;
    width: 100%;
}
.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    /*padding: 0 5%; /* Add padding for the first and last slides*/
    padding: 0 calc(49vw - min(1140px, 87.5vw) / 2);
}

/* Slide Setup */
.slide {
    flex: 0 0 320px; /* Each slide takes up 20% for 5 visible slides */
    box-sizing: border-box;
    margin: 10px;
    background: #f0f0f0;;
    padding: 20px 15px 30px 15px;
    border-radius: 20px;
    font-size: 20px;
    position: relative;
    text-align: left;
    transition: transform .3s cubic-bezier(0,0,0.5,1);
    cursor: pointer;
}
.slide:hover {
    transform: scale(1.0161290323);
}
.slide p {
    font-size: 14px;
}

/* Navigation Buttons */
.carousel-btn-controls {
    width: 100%;
    text-align: right;
    padding: 30px 10% 0;
}
.carousel-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 30px;
    height: 30px;
    font-size: 14px;
    margin: 0 8px;
    z-index: 2;
}
.carousel-btn:disabled {
    opacity: .3;
    pointer-events: none;
}

#team_carousel .slide {
    min-height: 500px;
}
#team_carousel .play-icon {
    position: absolute;
	bottom: 10px;
    right: 25px;
}
#team_carousel .play-icon i {
    font-size: 40px;
    color: white;
}

#team-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
#team-popup.hidden {
    display: none;
}
#team-popup .popup-content {
    background: #fff;
    padding: 35px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
}
#team-popup .close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
	font-size: 20px;
}
#team-popup .popup-answer {
    font-size: 14px;
}