body{
    font-family:"Segoe UI",sans-serif;
    background:#f8f9fa;
}
html,body{
    overflow-x:hidden;
    width:100%;
    margin:0;
    padding:0;
}
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* ================= NAVBAR ================= */
.navbar{
    background:#0d6efd !important;
    box-shadow:0 5px 15px rgba(0,0,0,.12);
    transition:.3s;
}
.navbar-brand{
    font-size:20px;
    font-weight:700;
    letter-spacing:.5px;
    color:#fff !important;
}
.navbar-nav .nav-link{
    color:#dbe8ff !important;
    font-weight:500;
    margin-left:8px;
    transition:.3s;
}
.navbar-nav .nav-link:hover{
    color:#FFD54F !important;
}
.navbar-nav .nav-link.active{
    color:#FFD54F !important;
    font-weight:700;
}
.dropdown-menu{
    border:none;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(0,0,0,.12);
}
.dropdown-item{
    padding:10px 18px;
}
.dropdown-item:hover{
    background:#0d6efd;
    color:#fff;
}

/* ================= HERO ================= */
.hero{
    min-height:580px;
    display:flex;
    align-items:center;
    color:#fff;
    padding:80px 0 50px;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}
.hero h1{
    font-size:64px;
    font-weight:700;
    line-height:1.15;
}
.hero h3{
    font-size:34px;
    font-weight:600;
    margin-bottom:20px;
}
.hero p{
    font-size:22px;
    line-height:1.8;
}
.hero-logo{
    width:250px;
    max-width:100%;
    height:auto;
    filter:drop-shadow(0 10px 20px rgba(0,0,0,.35));
    transition:.3s;
}
.hero-logo:hover{
    transform:scale(1.05);
}
.hero .btn{
    padding:12px 28px;
    font-size:20px;
    border-radius:10px;
}

.sambutan{
    background:#fff;
    padding-top:20px !important;
    padding-bottom:70px;
    margin-top:0 !important;
}
.hero + .sambutan{
    margin-top:0 !important;
}

.section-title{
    font-size:38px;
    font-weight:700;
    text-align:center;
    margin-bottom:45px;
}
.section-title::after{
    content:"";
    width:80px;
    height:4px;
    background:#0d6efd;
    display:block;
    margin:15px auto 0;
    border-radius:10px;
}
.sambutan .section-title{
    width:100%;
}
.sambutan .img-camat{
    margin-bottom:20px;
}

section.bg-light{
    padding:70px 0;
}
section{
    padding:50px 0;
}
.hero{
    padding:90px 0;
    margin:0;
}
.sambutan{
    padding:55px 0;
    margin:0;
    background:#fff;
}
#layanan{
    padding:65px 0;
}
.bg-light{
    padding:65px 0;
}

.card{
    border:none;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:.3s;
}
.card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 30px rgba(0,0,0,.15);
}
.card img{
    transition:.4s;
}
.card:hover img{
    transform:scale(1.05);
}
.card-img-top{
    width:100%;
    height:220px;
    object-fit:cover;
}
.card-body{
    padding:25px;
}
.card-body h5{
    font-weight:700;
    margin-bottom:15px;
}
.card-body p{
    color:#666;
    line-height:1.8;
}
.card-img-top{
    width:100%;
    height:220px;
    object-fit:cover;
}

.gallery-card{
    position:relative;
    overflow:hidden;
    margin-bottom:10px;
    border-radius:15px;
}
.gallery-card img{
    width:100%;
    height:230px;
    object-fit:cover;
    transition:.4s;
}
.gallery-card:hover img{
    transform:scale(1.08);
}
.gallery-overlay{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    padding:18px;
    background:linear-gradient(transparent,rgba(0,0,0,.75));
    color:#fff;
}

.page-header{
    min-height:300px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    text-align:center;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    background:rgba(0,50,120,.65);
}

.page-header h1{
    font-size:48px;
    font-weight:700;
    margin-bottom:15px;
}
.page-header p{
    font-size:20px;
    opacity:.95;
}

footer{
    background:#0d6efd;
    color:#fff;
    padding:35px 0;
    margin:0;
}

#backTop{
    position:fixed;
    right:25px;
    bottom:25px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:#0d6efd;
    color:#fff;
    display:none;
    z-index:999;
    transition:.3s;
}
#backTop:hover{
    background:#084298;
}

.img-camat{
    width:300px;
    height:400px;
    object-fit:cover;
    border-radius:15px;
}
.sambutan .row{
    align-items:center;
}
.sambutan p{
    text-align:justify;
}

.berita-section{
    padding:55px 0;
}
.galeri-section{
    padding:55px 0;
}
.maps-section{
    padding:55px 0;
}
.berita-section .section-title,
.galeri-section .section-title,
.maps-section .section-title{
    margin-bottom:30px;
}
.galeri-section .row{
    row-gap:20px;
}
.berita-section .row{
    row-gap:20px;
}
.maps-section iframe{
    border-radius:15px;
}

.running-text{
    background:#FFD54F;
    color:#000;
    font-weight:600;
    padding:8px 0;
}

.gallery-card{
position:relative;
overflow:hidden;
border-radius:15px;
box-shadow:0 10px 25px rgba(0,0,0,.12);
}
.gallery-card img{
width:100%;
height:260px;
object-fit:cover;
transition:.4s;
}
.gallery-card:hover img{
transform:scale(1.08);
}
.gallery-overlay{
position:absolute;
left:0;
right:0;
bottom:0;
padding:15px;
display:flex;
justify-content:flex-end;
background:linear-gradient(
transparent,
rgba(0,0,0,.75)
);
opacity:0;
transition:.3s;
}
.gallery-card:hover .gallery-overlay{
opacity:1;
}

.carousel{
    margin-bottom:40px;
}
.carousel-item img{
    border-radius:15px;
}
.carousel-control-prev-icon,
.carousel-control-next-icon{
    background-color:rgba(0,0,0,.45);
    border-radius:50%;
    padding:25px;
}
.carousel img{
    transition:.3s;
}
.carousel img:hover{
    transform:scale(1.01);
}

@media(max-width:992px){
.hero{
    min-height:480px;
    text-align:center;
}
.hero h1{
    font-size:42px;
}
.hero h3{
    font-size:26px;
}
.hero-logo{
    width:170px;
    margin-top:30px;
}
.section-title{
    font-size:32px;
}
.img-camat{
    width:100%;
    max-width:300px;
    height:380px;
    object-fit:cover;
    border-radius:15px;
}
}

@media(max-width:768px){
section{
    padding:70px 0;
}
.page-header{
    min-height:220px;
}
.page-header h1{
    font-size:34px;
}
.hero h1{
    font-size:34px;
}
.hero p{
    font-size:18px;
}
.card{
    margin-bottom:20px;
}
.gallery-card img{
    height:200px;
}
}

@media(max-width:576px){
.hero{
    padding:80px 0;
}
.hero-logo{
    width:140px;
}
.section-title{
    font-size:28px;
}
.contact-item{
    flex-direction:column;
    text-align:center;
}
.contact-item i{
    margin:auto;
}
}
.list-group-item{
    padding:14px 22px;
    color:#fff;
    transition:.3s;
}
.list-group-item:hover{
    background:rgba(255,255,255,.18)!important;
    color:#FFD54F!important;
    padding-left:28px;
}
.list-group-item.active{
    background:#ffffff!important;
    color:#0d6efd!important;
    font-weight:700;
    border-left:5px solid #FFD54F!important;
}
.list-group-item.active i{
    color:#0d6efd!important;
}
.sidebar{
    position:fixed;
    top:0;
    left:0;
    width:250px;
    height:100vh;
    overflow-y:auto;
    z-index:1000;
}
.main-content{
    margin-left:250px;
}
.pegawai-foto{
    width:150px;
    height:150px;
    border-radius:12px;
    object-fit:cover;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
}
.modal .list-group-item{
    border:none;
    padding:12px 0;
    color:#212529;
    font-weight:500;
    background:#fff;
}
.website-link{
    text-decoration:none;
    color:#0d6efd;
    font-weight:500;
    transition:.3s;
}
.website-link:hover{
    color:#084298;
    text-decoration:underline;
}
.contact-map{
    width:100%;
}
.contact-map iframe{
    width:100% !important;
    height:500px !important;
    border:0;
    border-radius:12px;
    display:block;
}
.detail-img{
    width:100%;
    max-height:450px;
    object-fit:cover;
    border-radius:15px;
    display:block;
    margin:auto;
}
.album-slide{
    width:100%;
    height:500px;
    object-fit:contain;
    background:#f8f9fa;
    border-radius:15px;
}

@media(max-width:768px){
    .album-slide{
        height:300px;
    }
}
/* Struktur Organisasi Responsive */
@media (max-width:768px){

    .pegawai-foto{
        width:110px;
        height:110px;
        margin:0 auto;
        display:block;
    }

    /* Ubah layout menjadi vertikal */
    .card .row{
        flex-direction:column;
    }

    .card .col-4,
    .card .col-8{
        width:100%;
        max-width:100%;
        flex:0 0 100%;
    }

    .card-body{
        text-align:center;
        padding-top:0;
    }

    .card-body h4,
    .card-body h5{
        font-size:18px;
        line-height:1.4;
        margin-bottom:8px;
        word-break:break-word;
    }

    .card-body p{
        margin-bottom:12px;
    }
}
@media (max-width:768px){

    .pegawai-foto{
        width:120px;
        height:120px;
        margin:auto;
        display:block;
    }

    .card-body{
        text-align:center;
    }

    .card-body h4,
    .card-body h5,
    .card-body p{
        margin-left:0 !important;
        padding-left:0 !important;
        text-align:center !important;
    }

}