/* Card container with relative positioning */
.card-custom {
    position: relative;
    overflow: hidden; /* Ensure anything outside the card boundary is hidden */
}

/* Image styling */
.card-img-top {
    width: 100%;
    transition: filter 0.3s ease; /* Smooth transition for grayscale effect */
}

/* Grayscale effect on hover */
.card-custom:hover .card-img-top {
    filter: grayscale(100%);
}

/* Arrow overlay that will slide in */
.arrow-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the arrow */
    opacity: 0; /* Initially hidden */
    pointer-events: none; /* Disable interaction */
    transition: opacity 0.3s ease;
}

/* Arrow image styling */
.arrow-img {
    width: 100%; /* Adjust the size as per your requirement */
    opacity: 0.5;
    transition: transform 0.5s ease-in-out, opacity 0.3s ease;
}

/* Slide effect and opacity on hover */
.card-custom:hover .arrow-overlay {
    opacity: 1; /* Show the arrow when hovering the card */
}

.card-custom:hover .arrow-img {
    transform: translateX(20px); /* Slide the arrow from left to right */
    opacity: 1; /* Make arrow fully visible */
}