/* Warna Latar dan Teks */
.bg-green {
    background-color: #28a745 !important;
}

.text-green {
    color: #28a745 !important;
}

/* Navbar */
.navbar-light .navbar-nav .nav-link {
    color: white;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #c3e6cb;
}

/* Navbar Fixed Position */
.navbar.fixed-top {
    top: 0;
    width: 100%;
    z-index: 1030;
}

/* Footer Fixed Position */
.fixed-bottom {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1030;
}

/* Dropdown Hover Menu */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

/* Konten Offset untuk Navbar */
body {
    padding-top: 56px; /* Sesuaikan dengan tinggi navbar */
}

/* Carousel Customization */
.custom-carousel {
    height: 400px; /* Ukuran default */
    transition: all 0.5s ease; /* Animasi transisi */
}

.custom-carousel .carousel-inner {
    height: 100%;
}

.custom-carousel .carousel-item img.slider-img {
    height: 100%;
    object-fit: cover;
    opacity: 0.8; /* Transparansi gambar */
}

/* Overlay Gelap untuk Carousel */
.carousel-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Overlay warna hitam dengan transparansi */
    z-index: 1;
}

/* Teks pada Carousel */
.carousel-caption {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2; /* Teks di atas overlay */
    opacity: 0; /* Mulai transparan */
    animation: fadeInText 3s ease-in forwards; /* Animasi teks */
}

.carousel-caption h5 {
    font-size: 2rem;
    font-weight: bold;
}

.carousel-caption p {
    font-size: 1.25rem;
}

/* Animasi untuk Teks pada Carousel */
@keyframes fadeInText {
    from {
        opacity: 0; /* Awal transparan */
    }
    to {
        opacity: 1; /* Akhir sepenuhnya terlihat */
    }
}

/* Animasi hanya untuk Slide Pertama */
.carousel-item.active .carousel-caption {
    opacity: 0; /* Set awal untuk animasi */
    animation: fadeInText 3s ease-in forwards;
}

/* Carousel dalam Mode Mini */
.custom-carousel.mini {
    height: 100px; /* Ukuran mini */
    margin-top: 0; /* Posisi atas */
}

.custom-carousel.mini .carousel-inner {
    height: 100%;
}

.custom-carousel.mini .carousel-item img {
    height: 100px;
    object-fit: cover;
}

