﻿

.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 */
    }
}






.slider {
    position: relative;
    max-width: 100%;
    height: 360px; /* 🔽 Adjust this to control slider height */
    margin: auto;
    overflow: hidden;
    
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    animation: changeBackground 20s linear infinite;
    height: 100%;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    height: 100%;
    object-fit: contain;
}


/* Mobile Optimization */
@media (max-width: 768px) {
    .slider {
        height: 200px; /* 🔽 smaller height for mobile */
    }
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Fill the slide area */
    display: block;
}


.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: #380442;
    }

.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);
    }

