.content-slide {
    position: relative;
    width: 180px;
    height: 230px;
    margin: 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .content-slide img {
        width: auto;
        max-width: 180px;
        height: 160px;
        transition: transform 0.3s ease;
    }

    .content-slide:hover{
        background: radial-gradient(circle,rgba(21, 34, 79, 0.9) 0%, rgba(14, 22, 52, 0.5) 20%, rgba(6, 10, 24, 0) 70%);
        transition: all ease-in-out 0.3s;
    }

    .content-slide:hover img {
        transform: scale(1.1) translateY(-5px);
    }

    .content-slide h3 {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        color: #fff;
        font-size: 16px;
        opacity: 0;
        transition: opacity 0.3s ease;
        font-family: "Lora", serif;
        font-variant: small-caps;
        width: 100%;
    }

    .content-slide:hover h3 {
        opacity: 1;
    }

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

    .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease, margin-top 0.3s ease;
    }

    .image-container:hover img {
        transform: scale(1.1);
        margin-top: -10%;
    }

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    padding: 5px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.image-container:hover .overlay {
    opacity: 1;
}
