.slider {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Demo background images */

.slide:nth-child(1) { 
  background-image: url('https://unitechinterior.in/img/banner1.png'); 
}

.slide:nth-child(2) { 
  background-image: url('https://unitechinterior.in/img/banner2.png'); 
}

.slide:nth-child(3) { 
  background-image: url('https://unitechinterior.in/img/banner3.jpg'); 
}

.slide:nth-child(4) { 
  background-image: url('https://unitechinterior.in/img/banner4.jpg'); 
}
/*.slide:nth-child(1) { background-image: url('https://picsum.photos/1600/600?1'); }*/
/*.slide:nth-child(2) { background-image: url('https://picsum.photos/1600/600?2'); }*/
/*.slide:nth-child(3) { background-image: url('https://picsum.photos/1600/600?3'); }*/
/*.slide:nth-child(4) { background-image: url('https://picsum.photos/1600/600?4'); }*/
.slide-content {
    position: absolute;
    bottom: 80px;
    left: 60px;
    color: #fff;
    max-width: 500px;
}

.slide-content h2 {
    font-size: 42px;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 18px;
    opacity: 0.9;
}

/* Arrows */
.nav_arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #fff;
    background: rgba(0,0,0,0.4);
    padding: 10px 16px;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    z-index: 10;
}

.prev { left: 20px; }
.next { right: 20px; }

/* Dots */
.dots {
    position: absolute;
    bottom: 25px;
    width: 100%;
    text-align: center;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: #fff;
}
/* ===== Mobile Responsive Slider ===== */
@media (max-width: 768px) {

    .slider {
        height: 300px;
    }

    .slide-content {
        left: 20px;
        bottom: 40px;
        max-width: 90%;
    }

    .slide-content h2 {
        font-size: 24px;
        line-height: 1.2;
    }

    .slide-content p {
        font-size: 14px;
    }

    .nav_arrow {
        font-size: 22px;          /* arrow size */
        padding: 5px 8px;         /* button size */
        background: rgba(0,0,0,0.35);
    }

    .prev { left: 8px; }
    .next { right: 8px; }

    .dots {
        bottom: 15px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
    .nav_arrow {
    opacity: 0.85;
}

.nav_arrow:hover {
    opacity: 1;
}

}

/* Small phones */
@media (max-width: 480px) {
 .nav_arrow {
        font-size: 18px;
        padding: 4px 7px;
    }
    .slider {
        height: 240px;
    }

    .slide-content {
        text-align: center;
        left: 50%;
        transform: translateX(-50%);
        bottom: 30px;
    }

    .slide-content h2 {
        font-size: 20px;
    }

    .slide-content p {
        font-size: 13px;
    }
}
