.hover-effect {
    position: relative;
    cursor: pointer;
    padding: 0;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.2);
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 50%;
    border: 1px solid #959595;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease;
    /* Add transition for smooth effect */
}

.hover-effect:hover {
    border-color: #e30613;
    /* Change border color on hover */
}

.sibling {
    color: #fff;
    cursor: default;
}

.sibling:hover {
    color: #e30613;
}

.hover-effect img {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 40px;
}

.hover-effect a {
    position: relative;
    z-index: 2;
    margin-top: auto;
    text-decoration: none;
    /* Remove underline from link */
}



.hover-effect h3 {
    /* padding: 5px; */
    padding-left: 5px;
    margin-bottom: 0;
    color: #fff;
    font-weight: 400;
    font-size: 24px;
    opacity: 0.5;
}

.hover-effect:hover h3 {
    opacity: 1;
    /* Change border color on hover */
}

.hover-effect:hover img {
    opacity: 1;
    /* Change border color on hover */
}

.hover-effect:hover a,
.hover-effect:hover a span {
    color: #e30613;
    /* Change color of a and span tags on hover */
}

.swiper-slide a img {
    opacity: 0.4;
}

.swiper-slide a img:hover {
    opacity: 1;
}

.swiper-slide .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5 5;
    font-size: 13px;

    /* Position the tooltip */
    position: absolute;
    left: -10px;
    top: -45px;
    z-index: 999;
}

.swiper-slide:hover .tooltiptext {
    visibility: visible;
}

.hover-effect img {
    opacity: 0.5;
}