#carouselExampleFade {
    max-height: 600px;
    overflow: hidden;
    position: relative;
}

#carouselExampleFade .carousel-inner img {
    height: 100%;
    object-fit: contain;
}

#carouselExampleFade .carousel-inner img.img-fluid {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.float-text {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 80%;
    max-width: 600px; /* Set a maximum width if needed */
}

.float-text h1 {
    font-family: 'Courier New', Courier, monospace;
    color: rgb(19, 123, 191);
    font-weight: 1000;
    font-size: 3vw;
}

.float-text p {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: white;
    font-weight: 500;
    font-size: 1.5vw;
}

.sejarah .title {
    font-family: 'Courier New', Courier, monospace;
    color: rgb(19, 123, 191);
    font-weight: 1000;
    font-size: 3vw;
}

/* Add this CSS to your existing stylesheet */
.navbar-nav .nav-item .nav-link {
    position: relative;
    transition: color 0.3s ease-in-out;
  }
  
  .navbar-nav .nav-item .nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #000000;
    transition: width 0.3s ease-in-out;
  }
  
  .navbar-nav .nav-item .nav-link:hover::before {
    width: 100%;
  }
  
  .navbar-nav .nav-item .nav-link:hover {
    color: #000000;
  }
  
  @media (max-width: 654px) {
    .float-text h1 {
        font-size: 10px;
    }
  }

/* Media query for smaller screens */
@media (max-width: 654px) {
    .float-text {
        margin-top: -150px;
    }
    .float-text h1 {
        font-size: 4vw; /* Adjust the viewport width font size as needed */
    }

    .float-text p {
        font-size: 1.8vw; /* Adjust the viewport width font size as needed */
    }
    
}


.carousel-control-prev,
.carousel-control-next {
    display: none;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.614); /* Warna abu-abu dengan tingkat kejernihan (opacity) 0.5 */
}

.section-statistics {
    margin-top: -60px;
    position: relative;
    z-index: 999;
}

.statistic-item {
    background-color: rgb(41, 123, 191);
}

.section-services,
.section-quality {
    padding-top: 11%;
    padding-bottom: 11%;
}

.section-testimoni {
    padding-top: 4%;
    padding-bottom: 4%;
}

.kepsek .title {
    font-weight: 800;
    font-family: 'Courier New', Courier, monospace;
    font-size: 50px;
    text-align: center;
}

.kepsek .img {
    text-align: center;
}

.kepsek .sambutan {
    margin-right: 50px;
    margin-left: 50px;
    text-align: justify;
}

.visiMisi .title {
    font-size: 50px;
    font-weight: 800;
    font-family: 'Courier New', Courier, monospace;
}

.akreditasi .title {
    font-weight: 800;
    font-family: 'Courier New', Courier, monospace;
    font-size: 50px;
    text-align: center;
}

.loading {
    --speed-of-animation: 0.9s;
    --gap: 6px;
    --first-color: #4c86f9;
    --second-color: #49a84c;
    --third-color: #f6bb02;
    --fourth-color: #f6bb02;
    --fifth-color: #2196f3;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8); /* Transparent background overlay */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

.loading span {
    width: 4px;
    height: 50px;
    background: var(--first-color);
    animation: scale var(--speed-of-animation) ease-in-out infinite;
}

.loading span:nth-child(2) {
    background: var(--second-color);
    animation-delay: -0.8s;
}

.loading span:nth-child(3) {
    background: var(--third-color);
    animation-delay: -0.7s;
}

.loading span:nth-child(4) {
    background: var(--fourth-color);
    animation-delay: -0.6s;
}

.loading span:nth-child(5) {
    background: var(--fifth-color);
    animation-delay: -0.5s;
}

@keyframes scale {
    0%, 40%, 100% {
        transform: scaleY(0.05);
    }

    20% {
        transform: scaleY(1);
    }
}
