/* SLIDE FIX FINAL - KECIL & RAPI */
#hero {
  max-width: 1200px;
  margin: auto;
}

#hero .carousel-inner,
#hero .carousel-item {
  height: 120px !important; /* UBAH DI SINI jika mau */
}

.hero-img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Pelayanan Online */
.layanan-card {
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid #e5e5e5;
}

.layanan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.layanan-img {
  max-width: 120px;
  height: auto;
}
.layanan-card img{
  max-height:80px;
  object-fit:contain;
}
.layanan-icon{
  width: 80px;
  height: 80px;
  object-fit: contain;
}
<style>
.layanan-icon{
  width: 90px;
  height: 90px;
  object-fit: contain;
  display: block;
}
</style>
.footer{
  background:#0b3c5d;
  color:#fff;
  padding:30px 0;
}

.footer p{
  margin-bottom:4px;
}

.footer-link{
  color:#ffd369;
  text-decoration:none;
}

.footer-link:hover{
  text-decoration:underline;
}

.footer hr{
  border-color:rgba(255,255,255,.2);
}
.galeri-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
  gap:15px;
}

.galeri-item{
  position:relative;
  border-radius:12px;
  overflow:hidden;
  background:#000;
  box-shadow:0 4px 10px rgba(0,0,0,.1);
}

.galeri-item img,
.galeri-item video{
  width:100%;
  height:140px;
  object-fit:cover;
  display:block;
}

.galeri-caption{
  position:absolute;
  bottom:0;
  width:100%;
  padding:6px 8px;
  font-size:12px;
  background:linear-gradient(to top, rgba(0,0,0,.7), transparent);
  color:#fff;
}
/* ===== FIX GALERI HOMEPAGE ===== */
.galeri-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
  gap:16px;
  margin-bottom:30px;
}

.galeri-item{
  position:relative;
  height:140px;
  overflow:hidden;
  border-radius:12px;
  background:#eee;
}

.galeri-item img,
.galeri-item video{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block;
}

/* CAPTION */
.galeri-caption{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  background:linear-gradient(transparent, rgba(0,0,0,.75));
  color:#fff;
  font-size:13px;
  padding:6px 8px;
}
/* ===== FOOTER SOCIAL MEDIA ===== */
.footer-social{
  display:flex;
  gap:16px;
  margin-top:12px;
}

/* ICON BASE */
.footer-social a{
  width:52px;
  height:52px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:26px;
  color:#fff !important;
  text-decoration:none;
  transition:all .3s ease;
}

/* WARNA ASLI RESMI */
.footer-social a:nth-child(1){
  background:#1877F2 !important; /* FACEBOOK */
}

.footer-social a:nth-child(2){
  background:linear-gradient(45deg,
    #F58529,
    #DD2A7B,
    #8134AF,
    #515BD4
  ) !important; /* INSTAGRAM */
}

.footer-social a:nth-child(3){
  background:#FF0000 !important; /* YOUTUBE */
}

/* HOVER */
.footer-social a:hover{
  transform:translateY(-4px) scale(1.08);
  box-shadow:0 8px 20px rgba(0,0,0,.35);
}
.layanan-link{
  text-decoration:none;
  color:inherit;
}

.layanan-card{
  border:1px solid #e5e5e5;
  border-radius:16px;
  padding:25px 20px;
  transition:all .3s ease;
  background:#fff;
  height:100%;
}

.layanan-card:hover{
  transform:translateY(-8px);
  box-shadow:0 12px 30px rgba(0,0,0,.12);
}

.layanan-icon{
  width:90px;
  height:90px;
  object-fit:contain;
}

.layanan-card .btn{
  border-radius:20px;
}
body{
    background:#f0f2f5;
    font-family:'Segoe UI',sans-serif;
}

.section-title{
    font-weight:800;
    margin-bottom:40px;
    text-align:center;
    letter-spacing:1px;
}

/* BAGAN */
.kepala-wrapper{
    background:#f3f3f3;
    padding:40px;
    border-radius:10px;
    margin-bottom:40px;
    text-align:center;   /* pusatkan isi */
}

.kepala-box{
    display:flex;
    flex-direction:column;   /* ubah jadi vertikal */
    align-items:center;
}

.foto-kepala{
    width:160px;
    height:190px;
    margin-bottom:20px;
}

.foto-kepala img{
    width:100%;
    height:100%;
    object-fit:cover;
}


/* KEPALA DINAS */
.kepala-card{
    border-radius:30px;
    padding:60px;
    text-align:center;
    background:#ffffff;
    box-shadow:0 20px 50px rgba(0,0,0,0.08);
    margin-bottom:80px;
}

.kepala-card img{
    width:210px;
    height:260px;
    object-fit:cover;
    border-radius:20px;
    margin-bottom:20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

/* PEGAWAI */
.pegawai-card{
    background:#ffffff;
    border-radius:20px;
    padding:25px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    text-align:center;
    transition:.3s;
}

.pegawai-card:hover{
    transform:translateY(-8px);
}

/* BADGE */
.badge-kepala { background:#0b3c5d; }
.badge-sekretaris { background:#198754; }
.badge-kabid { background:#dc3545; }
.badge-kasub { background:#6f42c1; }
.badge-staff { background:#6c757d; }

.filter-box{
    max-width:350px;
    margin:0 auto 50px auto;
}
/* ================= TAMBAHAN WARNA NAVY ================= */

.header{
    background:#17496d !important;
    height:70px;
    width:100%;
}

/* ================= TAMBAHAN FOOTER ================= */

.footer{
    background:#17496d;
    color:#fff;
    margin-top:60px;
}

.footer-content{
    max-width:1100px;
    margin:auto;
    padding:30px 0;
    display:flex;
    justify-content:space-between;
    font-size:13px;
}

.footer-bottom{
    background:#123b58;
    text-align:center;
    padding:10px;
    font-size:12px;
}
/* ============================= */
/* WARNA PALING ATAS JADI NAVY */
/* ============================= */

.header-section{
    background:#17496d !important;
}

/* ============================= */
/* FOOTER NAVY & TENGAH */
/* ============================= */

.footer{
    background:#17496d !important;
    color:#fff;
    text-align:center;
}

.footer-content{
    display:block !important;
    text-align:center;
}

.footer-content div{
    margin-bottom:10px;
}

.footer-bottom{
    background:#123b58 !important;
    text-align:center;
}
/* ================= GALERI FIX ================= */

.section-galeri {
    background: #f8f9fa;
}

.galeri-card {
    border-radius: 12px;
    overflow: hidden;
}

.galeri-card img {
    width: 100%;
    height: auto;
    display: block;
}

.galeri-card video {
    width: 100%;
    height: auto;
    display: block;
}
.video-card{
  overflow:hidden;
  transition:0.3s;
}
.video-card:hover{
  transform:translateY(-4px);
}

.play-icon{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  background:rgba(0,0,0,0.6);
  width:40px;
  height:40px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:14px;
}

