﻿

.category-img {
    width: 140px; /* Adjust the width according to your preference */
    height: 140px; /* Adjust the height according to your preference */
    border-radius: 20px; /* Ensure the image is displayed as a circle */
    object-fit: cover; /* Maintain aspect ratio while covering the area */
}



@media (max-width: 768px) { /* Adjust breakpoint as per your design */
    .category-img {
        width: 80px; /* Adjust the width for smaller screens */
        height: 80px; /* Adjust the height for smaller screens */
    }
}



/* CSS for image preloading */
.preload {
    display: none;
}



.slider {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
   
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    animation: changeBackground 20s linear infinite;
   
  
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
 
}

    .slide img {
        width: 100%;
        vertical-align: middle;
    }

.caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}

.dots {
    text-align: center;
    margin-top: 10px;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.6s ease;
}

    .dot.active {
        background-color: #29741D;
    }

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

    .prev:hover, .next:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

