body,
html {
    font-size: 1rem;
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Poppins, sans-serif
}

.slider-area {
    position: relative;
    height: 70vh;
    overflow: hidden
}

.single-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70vh;
    opacity: 0;
    transition: opacity .5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center
}

.btn-text,
.slider-nav,
.theme-btn {
    transition: .3s
}

.theme-btn .btn-text a {
    text-decoration: none;
    color: inherit
}

.single-slider.active {
    opacity: 1
}

.single-slider:first-child {
    background-image: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url('../img/slider1_tablet.webp')
}

.single-slider:nth-child(2) {
    background-image: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url('../img/slider2_tablet.webp')
}

.slider-content {
    color: #fff;
    padding: 0 160px;
    box-sizing: border-box;
    text-align: center
}

.slider-content h1,
.slider-content h2 {
    font-size: 58px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slider-content h1 span,
.slider-content h2 span {
    display: block;
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 10px
}

.slider-content p {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 30px;
    opacity: .8
}

.theme-btn {
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer
}

.btn-text {
    padding: 12px 25px;
    background-color: #157aaf;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px
}

.theme-btn:hover .btn-text {
    background-color: #fff;
    color: #157aaf
}

.slider-controls {
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10
}

.slider-nav {
    background: rgba(255, 255, 255, .3);
    color: #fff;
    border: none;
    width: 43px;
    height: 43px;
    font-size: 30px;
    margin: 0 6px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2)
}

.slider-nav:hover {
    background: rgba(255, 255, 255, .5);
    transform: scale(1.1)
}

@media (max-width:1024px) {
    .slider-area {
        height: 100vh
    }

    .single-slider {
        height: 100%;
        flex-direction: column;
        justify-content: flex-start;
        background-image: none !important
    }

    .slider-content {
        order: 1;
        width: 100%;
        max-width: 100%;
        padding: 40px 20px;
        text-align: center;
        background-color: rgba(0, 0, 0, .7)
    }

    .slider-background {
        order: 2;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center
    }

    .single-slider:first-child .slider-background {
        background-image: url('../img/slider1_tablet.webp')
    }

    .single-slider:nth-child(2) .slider-background {
        background-image: url('../img/slider2_tablet.webp')
    }

    .slider-content h1,
    .slider-content h2 {
        font-size: 56px
    }

    .slider-content h1 span,
    .slider-content h2 span {
        font-size: 20px
    }

    .slider-content p {
        font-size: 25px
    }

    .btn-text {
        padding: 14px 24px;
        font-size: 1.2rem
    }

    .slider-nav {
        width: 50px;
        height: 50px;
        font-size: 24px
    }
}

@media (max-width:768px) {
    .slider-content {
        padding: 40px 20px
    }

    .slider-content h1 span,
    .slider-content h2 span {
        font-size: 18px
    }

    .slider-content p {
        font-size: 23px
    }

    .btn-text {
        padding: 16px 22px;
        font-size: 1.1rem
    }

    .slider-nav {
        width: 45px;
        height: 45px;
        font-size: 22px
    }
}

@media (max-width:767px) {
    .single-slider:first-child .slider-background {
        background-image: url('../img/slider1_mobile.webp')
    }

    .single-slider:nth-child(2) .slider-background {
        background-image: url('../img/slider2_mobile.webp')
    }
}

@media (max-width:576px) {
    .slider-content {
        padding: 40px 15px 30px
    }

    .slider-content h1,
    .slider-content h2 {
        font-size: 26px
    }

    .slider-content h1 span,
    .slider-content h2 span,
    .slider-content p {
        font-size: 16px
    }

    .btn-text {
        padding: 8px 16px;
        font-size: 1rem
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 20px
    }
}