.scrollable-container {
    overflow-x: auto;
    display: flex;
    flex-wrap: nowrap;
    background: #f9f9f9;
}

.card {
    flex: 0 0 auto;
    width: calc(33.3333% - 20px);
    /* Adjust the width accordingly */
    margin: 10px;
    white-space: wrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    border: none;
    border-radius: 0;
    border-bottom: 3px solid #ae141900;
    padding-bottom: 10px;
    transition: 200ms;
}

.card:hover {
    border-bottom: 3px solid #AE1419;
}

.card img {
    width: 100%;
    height: auto;
    transition: transform .3s ease;
    /* Add a smooth transition for the zoom effect */
}

.img-hover-zoom {
    height: 350px;
    /* [1.1] Set it as per your need */
    overflow: hidden;
    /* [1.2] Hide the overflowing of child elements */
}

/* [2] Transition property for smooth transformation of images */
.img-hover-zoom img {
    min-height: 400px;
    transition: transform .5s ease;
}

/* [3] Finally, transforming the image when container gets hovered */
.img-hover-zoom:hover img {
    transform: scale(1.5);
}

.card img:hover {
    transform: scale(1.1);
    /* Increase the scale of the image on hover */
}

.card .card-body {
    padding: 10px;
}

.card .card-text {
    display: -webkit-box -webkit-line-clamp: 4;
    /* Adjust the number of lines to show */
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: gray;
    text-overflow: ellipsis;

}

.card .btn {
    font-size: 14px;
    padding: 10px 30px;
    background-color: #AE1419;
    border-radius: 0;
    border: none;
    margin-top: 20px;
    float: left;
}

.card .btn:hover {
    background-color: #29363A
}

/* Hide scrollbar */
::-webkit-scrollbar {
    display: none;
}

/* Buttons to scroll left and right */
.scroll-btn {
    position: absolute;
    bottom: 350px;
    padding: 10px;
    margin: 30px;
    border: none;
    border-radius: 10%;
    background-color: #AE1419;
    cursor: pointer;
    color: white;
    z-index: 10;
}

.scroll-btn.left {
    left: 0px;
}

.scroll-btn.right {
    right: 0px;
}

@media (max-width: 767px) {
    .section-padding {
    padding-top: 0;
    }
    .scrollable-container {
        flex-wrap: nowrap;
        overflow-x: scroll;
        width: 100%;
    }

    .card {
        width: 100%;
        margin: 10px 5px;
    }

    .scroll-btn {
        margin: 0;
    }
}