.carouselprof-container {
    overflow: hidden;
    position: relative;
    margin-top: 80px;
    margin-bottom: 80px;
    padding-bottom: 30px;
    width: 100vw;

    /* Adjust the height as needed */
}

.carouselprof {
    width: 100%;
    display: flex;
    gap: 50px;
    /* position: relative; */
    transition: transform 0.5s ease-in-out;
    animation: scroll 50s linear infinite;
    /* Adjust the animation duration as needed */
}

.cardprof {
    flex: 0 0 auto;
    /* Adjust the card width as needed */
    box-sizing: border-box;
    text-align: center;
    background-color: #f0f0f0;
    /* Adjust the background color as needed */
    overflow: hidden;
    /* Ensure content doesn't overflow */
    border-radius: 10px;
    /* Add border-radius to round the corners */
    display: flex;
    flex-direction: column;

}

.cardprof a {

    color: gray;
    font-size: small;
}

.image-wrapper {
    /* flex: 1; */
    height: 140px;
    width: 130px;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.image-wrapper img {
    width: 100%;
    height: 110%;
    object-fit: cover;
    /* Ensure the image covers the entire container */
}

.cardprof-content {
    padding-top: 10px;
    background-color: #ffffff;
    /* Set background color for card content */
}

.cardprof-content h2,
.cardprof-content p {
    margin: 0;
    font-size: small;
}




@keyframes scroll {

    0%,
    100% {
        transform: translateX(100);

    }

    90% {
        transform: translateX(-90%);
    }
}

.carouselprof:hover {
    animation-play-state: paused;
    /* Pause the scrolling animation on hover */
}