body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f7f9fb;
  color: #333;
}

.container {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 20px;
}

.intro {
  margin-bottom: 30px;
}

.intro h1 {
  font-size: 36px;
  color: #1d3557;
  text-align: left;
}

.subtitle {
  font-size: 20px;
  color: #555;
  text-align: left;
}

.highlight {
  color: #1d70b8;
  font-weight: bold;
}

.dinas-logo {
  height: 200px;
  margin: 20px auto;
  display: block;
}

.intro p {
  text-align: left;
  font-size: 16px;
  margin-bottom: 0.5rem;
}

.dinas-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== DINAS CARD ===== */
.dinas-card {
  background: white;
  padding: 25px;
  border-left: 6px solid #1d70b8;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.07);
  border-radius: 6px;
}

/* ✅ Singkatan Besar di Tengah Atas */
.singkatan-dinas {
  text-align: center;
  margin-bottom: 15px;
}

.singkatan-dinas a {
  font-size: 30px;
  font-weight: 900;
  color: #1d3557;
  text-decoration: none;
  line-height: 1.1;
}

.singkatan-dinas a:hover {
  text-decoration: underline;
}

/* Informasi dinas di bawah singkatan */
.dinas-info {
  text-align: left;
}

.dinas-info h3.judul-dinas,
.dinas-info h3.judul-dinas a {
  font-size: 18px !important;
  font-weight: 900 !important;
  color: #1d70b8 !important;
  margin-bottom: 12px;
  line-height: 1.3;
  text-decoration: none;
}

.dinas-info h3.judul-dinas a:hover {
  text-decoration: none;
}

.dinas-info p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.dinas-info a {
  font-size: 15px;
  color: #1d3557;
  text-decoration: none;
}

.dinas-info a:hover {
  text-decoration: underline;
}
.info-baris {
  display: flex;
  margin-bottom: 4px;
  align-items: flex-start;
}

.label {
  width: 130px;
  font-weight: 500;
}

.titik-dua {
  margin-right: 6px;
}

.nilai {
  flex: 1;
}


/* ===== Responsive Mobile ===== */
@media (max-width: 600px) {
  .dinas-logo {
    height: 90px;
  }

  .container {
    padding: 0 16px;
  }

  .intro h1 {
    font-size: 18px;
  }

  .subtitle {
    font-size: 14px;
  }

  .intro p {
    font-size: 13px;
  }

  .dinas-card {
    padding: 20px;
  }

  .singkatan-dinas a {
    font-size: 20px;
  }

  .dinas-info h3.judul-dinas,
  .dinas-info h3.judul-dinas a {
    font-size: 15px !important;
  }
.info-baris {
  display: flex;
  margin-bottom: 4px;
  align-items: flex-start;
    font-size: 12px;
}
.label {
  width: 100px;
  font-weight: 500;
}

.titik-dua {
  margin-right: 6px;
}

.nilai {
  flex: 1;
}
  .dinas-info p,
  .dinas-info a {
    font-size: 13px;
  }
}
/* Box Gambar */
.box-pimpinan {
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
}

.bupati-img {
  max-width: 100%;
  height: auto;
  width: 400px;
}

/* Box Visi Misi */
.box-visimisi {
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
}

/* Judul */
.visi-title,
.misi-title {
  color: navy;
  font-weight: bold;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

/* Isi visi */
.visi-isi {
  font-size: 1.6rem;
  font-weight: bold;
  color: #b10000;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

/* Misi */
.misi-list {
  max-width: 100%;
  padding: 0 1.2rem;
  list-style-position: outside;
  margin-top: 1.5rem;
}

.misi-list li {
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.7;
  font-size: 1rem;
  text-align: justify;
  text-justify: inter-word;
}

/* Responsiveness */
@media (max-width: 576px) {
  .bupati-img {
    width: 100%;
  }

  .visi-isi {
    font-size: 1.3rem;
  }

  .misi-list li {
    font-size: 0.95rem;
  }
}
.profil-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.profil-label {
  min-width: 170px;
  font-weight: bold;
}

.profil-value {
  flex: 1;
}

.profil-section-title {
  font-weight: bold;
  font-size: 1rem;
  margin-top: 1rem;
}

.profil-list {
  font-size: 1rem;
}

@media (max-width: 576px) {
  .profil-label,
  .profil-value,
  .profil-section-title,
  .profil-list {
    font-size: 0.82rem;
  }
.profil-label {
  min-width: 135px;
  font-weight: bold;
}
}

/* ==================================
   GRID DINAS
================================== */

.dinas-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
    gap:20px;
    margin-top:30px;
}

/* ==================================
   CARD DINAS
================================== */

.dinas-card{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    text-decoration:none;

    background:#fff;
    color:#212529;

    min-height:145px;
    padding:20px 15px;

    border-radius:16px;

    /* garis biru hanya atas dan kiri */
    border-top:2px solid #0d6efd;
    border-left:2px solid #0d6efd;
    border-right:2px solid #0d6efd;
    border-bottom:2px solid #0d6efd;
    
    box-shadow:0 4px 12px rgba(0,0,0,.08);

    transition:all .3s ease;
}

.dinas-card:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 25px rgba(0,0,0,.12);

    border-top-color:#084298;
    border-left-color:#084298;

    text-decoration:none;
    color:#212529;
}

/* ==================================
   ICON
================================== */

.dinas-card i{
    font-size:32px;
    color:#0d6efd;
    margin-bottom:12px;
    transition:.3s;
}

.dinas-card:hover i{
    color:#084298;
    transform:scale(1.1);
}

/* ==================================
   JUDUL
================================== */

.dinas-card h5{
    margin:0;
    font-size:14px;
    line-height:1.5;
    font-weight:600;
    color:#212529;
}

/* ==================================
   INTRO
================================== */

.intro{
    text-align:center;
    margin-bottom:25px;
}

.intro h1{
    color:#1e3a5f;
    font-weight:700;
}

.subtitle{
    color:#6c757d;
}

.highlight{
    color:#0d6efd;
    font-weight:600;
}

.dinas-logo{
    width:80px;
    height:auto;
}

/* ==================================
   DESKTOP
================================== */

@media (min-width:1200px){
    .dinas-grid{
        grid-template-columns:repeat(5,1fr);
    }
}

/* ==================================
   TABLET
================================== */

@media (max-width:992px){
    .dinas-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

/* ==================================
   MOBILE
================================== */

@media (max-width:768px){

    .dinas-grid{
        grid-template-columns:repeat(2,1fr);
        gap:15px;
    }

    .dinas-card{
        min-height:120px;
        padding:15px 10px;
    }

    .dinas-card i{
        font-size:26px;
    }

    .dinas-card h5{
        font-size:12px;
    }

    .intro h1{
        font-size:1.6rem;
    }
}

@media (max-width:480px){

    .dinas-grid{
        grid-template-columns:1fr;
    }

    .dinas-card{
        min-height:110px;
    }
}