﻿.slider {
    height: 200px;
    margin: auto;
    position: relative;
    width: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.slide-track {
    display: flex;
    width: calc(250px * 20);
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px*10));
    }
}

.slide {
    height: 200px;
    width: 300px;
    display: flex;
    align-items: center;
    padding: 1px;
    perspective: 100px;
}

img {
    width: 100%;
    transition: transform .5s;
}

    img:hover {
        transform: translateZ(0px);
    }

.slider::before,
.slider::after {
    background: linear-gradient(to right, rgba(255,255,255, 1) 0%, rgba(255,255,255, 0) 100%);
    content: '';
    height: 100%;
    position: absolute;
    width: 10%;
    z-index: 2;
}

.slider::before {
    left: 0;
    top: 0;
}

.slider::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.container {
    position: relative;
}

.banner-card {
    max-width:100%;
    height:auto;
}

.banner-text {
    position: absolute;
    top: -5%;
    columns: #fff;
    padding: 20px;
    color : #fff;
}

.banner-text h4{
    font-size:16px;
    text-transform:uppercase;
    font-weight:bold;
    margin-bottom:5px;
}

.banner-text h5 {
    font-size: 14px;
    text-orientation:upright;
    text-align:justify;
    margin-bottom: 5px;
}


.banner-text p{
    margin-bottom:5px;
}

.Judul {
    color: #212121;
    font-weight: 700;
    font-size: 2.7em;
    line-height: 1.2;
    margin: 0 0 20px;
    letter-spacing: -0.04em;
}

@media only screen and (max-width: 992px) {
    .Judul {
        font-size: 2em !important;
    }
}

@media only screen and (max-width: 768px) {
    .Judul {
        font-size: 1.5em !important;
    }
}