/* ==========================================================================
   CUSTOM CSS - PORTAL RESMI BAPPERIDA KABUPATEN MUSI BANYUASIN
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. QUICK ACCESS CARDS (WIDGET LAYANAN UTAMA)
   -------------------------------------------------------------------------- */
.quick-access-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.quick-access-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}


/* --------------------------------------------------------------------------
   2. HERO CAROUSEL BANNER (BERANDA)
   -------------------------------------------------------------------------- */
#heroCarousel .carousel-item {
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    height: 336px;
    min-height: 336px;
}

.banner-img-wrapper {
    height: 336px;
}

.banner-img {
    object-fit: fill;
    filter: none !important;
    opacity: 1 !important;
}

.carousel-caption-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.text-shadow {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

#heroCarousel .slide-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease !important;
}

#heroCarousel:hover .slide-btn {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.carousel-item-next.carousel-item-start .slide-title,
.carousel-item-next.carousel-item-start .slide-subtitle,
.carousel-item.active .slide-title,
.carousel-item.active .slide-subtitle {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.carousel-item.active .slide-title {
    animation-name: slideInLeftText;
    animation-delay: 0.2s;
}

.carousel-item.active .slide-subtitle {
    animation-name: slideInLeftText;
    animation-delay: 0.4s;
}

@keyframes slideInLeftText {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}


/* --------------------------------------------------------------------------
   3. BERITA TERKINI CARDS & MINI CAROUSEL THUMBNAIL (BERANDA)
   -------------------------------------------------------------------------- */
.berita-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.berita-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.thumb-carousel .carousel-item {
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.berita-thumb-img {
    object-fit: cover;
    transition: transform 0.6s ease-in-out;
}

.berita-card:hover .berita-thumb-img {
    transform: scale(1.05);
}


/* --------------------------------------------------------------------------
   4. DOKUMENTASI FOTO & VIDEO BERANDA (5 FOTO PER BARIS & TRANSISI SLIDE)
   -------------------------------------------------------------------------- */

/* Utility Class Bootstrap 5: Grid 5 Kolom Per Baris (20% Width) */
@media (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* Transisi Geser Kesamping Halus untuk Carousel Foto Beranda */
.foto-home-carousel .carousel-item {
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.galeri-home-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeri-home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.galeri-home-img {
    transition: transform 0.5s ease;
}

.galeri-home-card:hover .galeri-home-img {
    transform: scale(1.08);
}

.galeri-home-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galeri-home-card:hover .galeri-home-overlay {
    opacity: 1;
}

/* Transisi Geser Kesamping Halus untuk Carousel Video Beranda */
.video-home-carousel .carousel-item {
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.video-home-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}
/* Styling Khusus Tampilan Misi Elegan */
.content-misi-style ol {
    list-style: none;
    counter-reset: misi-counter;
    padding-left: 0;
}

.content-misi-style ol li {
    counter-increment: misi-counter;
    position: relative;
    padding-left: 60px;
    margin-bottom: 24px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #334155;
}

.content-misi-style ol li::before {
    content: counter(misi-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    background-color: #198754;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(25, 135, 84, 0.25);
}

.content-misi-style ol li strong {
    color: #0f172a;
    font-weight: 700;
}
/* Styling Khusus Tampilan Poin Fungsi Tupoksi */
.hover-shadow {
    transition: all 0.25s ease-in-out;
}

.hover-shadow:hover {
    background-color: #ffffff !important;
    box-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.08) !important;
    transform: translateX(4px);
}
/* Animasi Slide Pergeseran Thumbnail Berita Kesamping */
.carousel-item {
    transition: transform 0.8s ease-in-out !important;
}

/* Hover Efek Pada Judul Berita */
.hover-success {
    transition: color 0.2s ease-in-out;
}
.hover-success:hover {
    color: #198754 !important;
}