@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

.hero-slider {
    font-family: 'Poppins', sans-serif;
    min-height: 70vh;
    padding-bottom: 0; 
    /* margin-bottom: 2px; */
    border-bottom: 3px solid #f4c200;
}

.hero-slider * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;    
}

.hero-slider .slides {position: relative;
    overflow: hidden;
    /* min-height: 100vh; */
    width: 100%;}

.hero-slider .slide:nth-child(1) {background-color:	#781C1C;
    position: relative;}

.hero-slider .slide:nth-child(2) {background-color: #FFC0CB;
    /* background-image: url("./images/slide2.jpg"); */
    position: relative;}

.hero-slider .slide:nth-child(3) {background-color: #261FB3;
    /* background-image: url("./images/slide3.jpg"); */
    position: relative;}

.hero-slider .slide:nth-child(4) {/* background-image: url("./images/slide1.jpg"); */
    background-color: #FBE4D6;
    position: relative;}

.hero-slider .slide:nth-child(5) {
    position: relative;}

.hero-slider .slide {
    height: 70vh;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    animation: sliding 2s ease;
    display: none;}

.hero-slider .bg-img-one {/* position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    animation: slideLeft 2s forwards; */
    /* z-index: -1; */
    position: absolute;
    bottom: 0;
    right: 5%;
    width: auto;
    height: auto;
    /* opacity: 0; */
    animation: slideLeft 2s forwards;}

.hero-slider .background-image-two {position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: auto;
    animation: slideLeft 2s forwards;}

.hero-slider .bg-img-three {position: absolute;
    bottom: 0;
    left: 15%;
    width: 45%;
    height: auto;

    animation: slideLeft 2s forwards;}

.hero-slider .bg-img-four {position: absolute;
    position: absolute;
    bottom: 0;
    right: 30%;     

    animation: slideLeft 2s forwards;}

.hero-slider .content-one {
    position: absolute;
    top: 5%;
    right: 5%; /* posisikan ke sisi kanan */
    width: 40%; /* cukup stabil */
    font-size: 2rem;
    font-weight: bold;
    opacity: 0;
    color: #fff;
    animation: slideLeft 2s forwards;
    padding-right: 40px;
    text-align: right;
    text-shadow: 6px 6px 4px rgba(0, 0, 0, 0.2);
}
.hero-slider .content-two {
    position: absolute;
    top: 5%;
    right: 5%;            /* Geser dari sisi kanan */
    max-width: 400px;     /* Batasi lebarnya */
    text-align: right;    /* Rata kanan (opsional) */
    font-size: clamp(2rem, 2vw, 3.4rem);
    font-weight: bold;
    color: white;
    animation: slideLeft 2s forwards;
    text-shadow: 3px 3px 5px rgba(0,0,0,0.3);
}

.hero-slider .banner-one {width: 70%;
    height: auto;
    max-height: 80%;
    object-fit: cover;
    opacity: 0;
    animation: slideRight 2s forwards}

.hero-slider .cover-img-one {width: 100%; 
    height: 60vh;
    object-fit: contain; 
    object-position: right;
    margin-bottom: 0;
    display: block;
    margin: 0;
    padding: 0;
    transition: 3s;}

.hero-slider .cover-banner-one {position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    animation: slideRight 2s forwards;
    /* z-index: -1;  */
    margin-top: 50px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);}

.hero-slider .cover-banner-two {position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 350px;
    width: 80%;
    animation: slideRight 2s ease-out forwards;
    /* z-index: -1;  */
    margin-top: 140px;}

.hero-slider /*banner slide two */
.c-banner-two-1 {position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    width: 750px;
    animation: slideRight 2s forwards;
    z-index: 1; 
    margin-top: 50px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);}

.hero-slider .cover-image-two {
     width: auto;                /* biar tidak melar penuh */
    max-width: 100%;            /* tetap responsif */
    height: 100vh;               /* batas tinggi maksimal */
    object-fit: contain;
    display: block;
    margin: 0 auto;             /* pusatkan gambar */
    transition: 0.3s ease;
}

.hero-slider .cover-img-three {width: auto; 
    height: 60vh;
    object-fit: contain; 
    object-position: left;
    margin-bottom: 0;
    display: block;
    padding: 0;
    transition: 3s;}

.hero-slider .cover-img-four {width: auto; 
    height: 70vh;             /* ⬅️ naikkan dari sebelumnya */
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
    right: 30%;
    transition: 0.3s ease}

.hero-slider .slide-5 {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100%;
    position: relative;
    display: block;
    animation: sliding 2s ease;
}




.hero-slider .slide.active {display: block;}

.hero-slider .slideContainer {
    width: 1140px;
    height: 100%;
    margin: auto;
    padding: 10 10px;
    position: relative;}

.hero-slider .slide .content {height: 100%;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    justify-content: center;
    color: #313131;}

.hero-slider .slide .content h1 {position: absolute;
    top: 0;
    left: 70%;
    right: 0;
    bottom: 0;
    font-size: 2rem;
    width: 40%;
    opacity: 0;
    color: #000;;
    margin-top: 40px;
    animation: captionAnimation 0.5s ease-in-out forwards;
    animation-delay: 0.6s;}

.hero-slider .slide .content p {font-size: 18px;
    margin: 5px 0 30px;
    color: #222222;
    text-align: right;
    opacity: 0;
    animation: captionAnimation 0.5s ease-in-out forwards;
    animation-delay: 0.8s;}

.hero-slider .slide .content a {background-color: #313131;
    color: #fff;
    padding: 7px 15px;
    text-decoration: none;
    opacity: 0;
    animation: captionAnimation 0.5s ease-in-out forwards;
    animation-delay: 1s;}

.hero-slider .title-unsultra {position: absolute;
    /* display: inline-block; */
    padding: 10px 10px;
    /* background-color: #4B0101; */
    font-weight: 900;
    color: white;
    font-size: 70px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
    top: 0;
    left: 10%;
    margin-top: 15px;
    animation: slideRight 2s forwards;}

.hero-slider .kampus {position: absolute;
    display: inline-flex;
    gap: 8px;
    letter-spacing: 6px;
    font-size: 9vh;
    font-weight: 900;
    margin-top: 17vh;
    left: 5%;
    animation: slideRight 2s forwards;}

.hero-slider .text-title {color: #ffd700 ;
    text-shadow: 6px 6px 4px rgba(0, 0, 0, 0.2);}

.hero-slider .text-kampus {color: #ffd700;
    text-shadow: 6px 6px 4px rgba(0, 0, 0, 0.2);
    font-size: inherit;}


.hero-slider .para {
    position: absolute;
    left: 5%;
    margin-top: 30vh;
    font-size: 2.6vh; /*⬅️ lebih besar dari sebelumnya */
    font-weight: 600;
    color: white;
    text-shadow: 4px 8px 4px rgba(0, 0, 0, 0.2);
    animation: slideRight 2s forwards;
}

.hero-slider .para p {
    margin: 10px 0;
    line-height: 1.4;
    font-size: 2rem; 
    left: 15%;
    color: white;
    
}

.hero-slider .text-s {
    color: #FFD700; /* kuning */
    font-weight: bold;
}

.hero-slider .text-e {
    color: limegreen;
    font-weight: bold;
}

.hero-slider .text-k {
    color: darkblue;
    font-weight: bold;
}

.hero-slider .text-ss {
    color: orange;
    font-weight: bold;
}

.hero-slider .text-i {
    color: purple;
    font-weight: bold;
}


.hero-slider .slogan-dua {position: absolute;
    display: inline-block;
    padding: 10px 10px;
    background-color: #4B0101;
    font-weight: 500;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    top: 0;
    left: 3%;
    margin-top: 15px;
    animation: slideRight 2s forwards;}

.hero-slider .top-banner {position: absolute;
    display: inline-block;
    padding: 10px 10px;
    background-color: #4B0101;
    color: white;
    font-weight: 900;
    font-size: 30px;
    /* font-family: sans-serif; */
    transform: skewX(-10deg);
    border-right: 2px solid #FFD700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    top: 5%;
    right: 18%;
    margin-top: 3vh;
    animation: slideRight 2s forwards;}

.hero-slider .top-banner-two {position: absolute;
    display: inline-block;
    padding: 10px 10px;
    background-color: #4B0101;
    color: white;
    font-weight: 900;
    font-size: 27px;
    /* font-family: sans-serif; */
    transform: skewX(-10deg);
    border-right: 2px solid #FFD700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    top: 10%;
    left: 10%;
    margin-top: 3vh;
    animation: slideRight 2s forwards;}

.hero-slider .text-one {color: #fff;
    margin-right: 10px;}

.hero-slider .text-two {color: #ffd700;}





.hero-slider .para-two {position: absolute ;
    top: 35%;
    right: 25%;
    animation: slideRight 2s forwards;}

.hero-slider .text-para {display: block;
    font-size: 30px;
    font-weight: bold;
    color: #fff;}

.hero-slider .slides .controls {
    /* height: 100vh;
    margin: 50vh 0;
    position: absolute;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    top: 50%; 
    transform: translateY(-50%);  */
    width: 100%;
    position: absolute;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    height: auto;
    margin: 0;
    }

.hero-slider .slides .next, .hero-slider .slides .prev {cursor: pointer;
    background-color: #313131;
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 20px;
    border-radius: 50%;
    padding: 5px;
    color: #fff;
    opacity: 0.5;
    transition: 0.5s;
     /* Pastikan tombol berada di atas konten lainnya */}

.hero-slider .slides .next:hover, .hero-slider .slides .prev:hover {opacity: 1;}

.hero-slider .slides .indicatorContainer {width: 100%;
    text-align: center;
    position: absolute;
    bottom: 10px;}

.hero-slider .slides .indicatorContainer > div {border: 3px solid #313131;
    display: inline-block;
    height: 15px;
    width: 15px;
    margin-right: 5px;
    border-radius: 50%;
    cursor: pointer;}

.hero-slider .slides .indicatorContainer > div:last-child {margin: 0;}

.hero-slider .slides .indicatorContainer > div.active {background-color: #313131;}

.hero-slider .slideContainer {width: 100%;
        padding: 0 15px;}

.hero-slider .slide {background-position: 30%;}

.hero-slider .slide controls {display: none;}

@keyframes slideRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes sliding {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes captionAnimation {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
  /* Slide container tetap horizontal layout */
  .hero-slider .slideContainer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 10px;
    transform: scale(0.85);
    transform-origin: center;
  }

  /* Gambar tidak terlalu besar */
  .hero-slider .bg-img-three,
  .hero-slider .bg-img-one,
  .hero-slider .bg-img-four,
  .hero-slider .background-image-two {
    position: relative !important;
    width: 45%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-slider .cover-img-one,
  .hero-slider .cover-img-three,
  .hero-slider .cover-img-four,
  .hero-slider .cover-image-two {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
  }

  /* Konten teks tetap di kanan */
  .hero-slider .top-banner,
  .hero-slider .top-banner-two,
  .hero-slider .slogan-dua,
  .hero-slider .para-two,
  .hero-slider .content-two {
    position: relative !important;
    max-width: 50%;
    font-size: 0.9rem;
    text-align: left;
  }

  .hero-slider .text-para {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  /* Navigasi tetap minimal */
  .hero-slider .controls {
    transform: scale(0.85);
  }
}

