/* Add Font Awesome Icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

.recipe-category-carousel {
    width: 100%;
    margin: 0 auto;
    padding: 0 !important;
    position: relative;
}

.recipe-category-carousel .carousel-item {
    text-align: center;
    position: relative;
    display: inline-block;
    margin: 0 10px;
}

.recipe-category-carousel .category-image-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    overflow: hidden; /* Ensures the image is cropped to fit inside the circle */
    border-radius: 50%; /* Circular container */
}

.recipe-category-carousel .category-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image will fill the circle */
}

.recipe-category-carousel .category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
    border-radius: 50%; /* Ensure overlay matches the circular image */
}

.recipe-category-carousel .category-overlay .category-name {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

.recipe-category-carousel .category-image-wrapper:hover .category-overlay {
    opacity: 1;
}

/* Title Under Image for Mobile */
@media screen and (max-width: 768px) {
    /* Hide the overlay on mobile */
    .recipe-category-carousel .category-overlay {
        display: none;
    }

    /* Show the category name below the image on mobile */
    .recipe-category-carousel .category-name-mobile {
        display: block;
        margin-top: 10px;
        color: #333;
        font-size: 16px;
        font-weight: bold;
    }

    .recipe-category-carousel .category-image-wrapper {
        width: 120px;
        height: 120px;
    }
}

.slick-prev, .slick-next {
    font-size: 18px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.slick-prev {
    left: 10px;
}

.slick-next {
    right: 10px;
}

.slick-prev:hover, .slick-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slick-prev::before, .slick-next::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: '\f104'; /* Left arrow icon */
    font-size:33px;
    color:#06311a;
}

.slick-next::before {
    content: '\f105'; /* Right arrow icon */
    font-size:33px;
    color:#06311a;
}

.slick-prev, .slick-next {
    display: none !important;
}

.slick-dots {
    text-align: center;
    color:#e4990d;
}

.slick-dots li button {
    background-color: #fff !important;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    opacity: 0.7;
}

.slick-dots li.slick-active button {
    background-color: #000 !important;
}
