.slider {
    width: 100%;
    height: 80vh;
    /* Adjust height relative to viewport */
    margin: auto;
    position: relative;
    overflow: hidden;
    margin-top: 85px;
}

.slider .list {
    position: absolute;
    width: 100%;
    /* Dynamically adjusts with viewport width */
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    transition: transform 1s ease-in-out;
}

.slider .item {
    flex: 0 0 100%;
    /* Ensures each item spans 100% of the slider width */
    height: 100%;
}


.slider .item img {
    width: 100%;
    height: 100%;
    object-fit: inherit;
    cursor: pointer;
    animation: gentlePulse 5s ease-in infinite;
}

.slider .item img:hover {
    transform: scale(1.12) rotate(-1deg);

}

/* Optional subtle animation on load */
@keyframes gentlePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.96);
    }

    100% {
        transform: scale(1);
    }
}

/* Each item becomes the shine container */
.slider .list .item {
    position: relative;
    overflow: hidden;
}

/* Shine overlay */
.slider .list .item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    width: 50%;
    height: 100%;

    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 100%);

    transform: skewX(-25deg);
}

/* Play shine animation on hover */
.slider .list .item:hover::before {
    animation: shine .75s;
}

@keyframes shine {
    100% {
        left: 125%;
    }
}








.slider .buttons {
    position: absolute;
    top: 50%;
    left: 2%;
    width: 96%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.slider .buttons button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgb(144 141 141 / 73%);
    color: var(--text-dark);
    border: none;
    font-family: monospace;
    font-weight: bold;
    cursor: pointer;
    font-size: 25px;
    color: white;
}

.slider .dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider .dots li {
    list-style: none;
    width: 10px;
    height: 10px;
    background-color: rgba(14, 14, 14, 0.7);
    margin: 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.slider .dots li.active {
    width: 30px;
    background-color: var(--text-dark);
}

/* Media Queries */
@media (max-width: 768px) {
    .slider {
        height: 20vh;
    }

    .slider .buttons button {
        width: 50px;
        height: 50px;
    }

  
}

@media (max-width: 480px) {
    .slider {
        height: 25vh;
    }
    .single-slider {
        height: 22vh !important;
    }
  

    .slider .buttons button {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }


}

@media (min-width: 768px) and (max-width: 1200px) {
    .slider {
        height: 40vh;
    }



}

:root {
    --primary-color: #a8cf45;
    --primary-color-dark: #0e844d;
    --text-dark: #333333;
    --white: #ffffff;
}
.single-slider {
    width: 100%;
    /* Adjust height relative to viewport */
    margin: auto;
    position: relative;
    overflow: hidden;
    margin-top: 90px;
}

.banner-img {
    overflow: hidden;
    position: relative;
}

.banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}