@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Merriweather:wght@400;700&display=swap');

/*
  PALET WARNA YANG DIHALUSKAN
  --primary-blue: Warna biru korporat yang sedikit lebih dalam.
  --primary-green: Hijau yang lebih cerah untuk aksi dan ikon.
  --background-light: Latar belakang yang sangat lembut untuk kedalaman.
  --neutral-gray: Abu-abu untuk batas dan teks sekunder.
*/
:root {
    --primary-blue: #0A4D68;
    --primary-green: #088395;
    --background-light: #f7f9fc;
    --neutral-gray: #e0e0e0;
    --dark-text: #2c3e50;
    --white: #FFFFFF;
    --shadow-light: rgba(0, 0, 0, 0.06);
    --shadow-dark: rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*
  TIPOGRAFI & LATAR BELAKANG GLOBAL
  - Menggunakan font 'Inter' yang modern dan bersih untuk UI.
  - Latar belakang dengan gradien halus untuk memberikan kesan premium.
*/
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, var(--white) 0%, var(--background-light) 100%);
    color: var(--dark-text);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/*
  HEADER YANG DISEMPURNAKAN
  - Bayangan yang lebih lembut dan modern.
  - Transisi halus pada link navigasi.
*/
header {
    background-color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 4px 12px var(--shadow-light);
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.85);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 55px;
    margin-right: 25px;
    transition: transform 0.4s ease;
    transform: scale(1.3);
}

header .logo img:hover {
    transform: rotate(360deg);
}

header .logo h1 {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-blue);

}

header .logo h1 span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark-text);
}

/* NAVIGASI DENGAN INTERAKSI HALUS */
header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    position: relative;
}

header nav ul li a {
    color: var(--dark-text);
    text-decoration: none;
    padding: 10px 18px;
    display: block;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

/* Garis bawah animasi pada hover */
header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 18px;
    right: 18px;
    height: 2px;
    background-color: var(--primary-green);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

header nav ul li a:hover,
.dropdown:hover > a {
    color: var(--primary-green);
}

header nav ul li a:hover::after {
    transform: scaleX(1);
}


/*Untuk membuat Notifikasi*/
/* BACKDROP */
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.55);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.5s ease;
}

/* KOTAK POPUP */
.popup-content {
  background: #fff;
  width: 360px;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  position: relative;
  animation: popUp 0.4s ease;
}

/* GAMBAR */
.promo-image {
  width: 100%;
  border-radius: 10px;
}

/* CLOSE BUTTON */
.close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 30px;
  cursor: pointer;
  color: #333;
}

/* SLIDESHOW */
.slide { display: none; }
.fade { animation: fadeSlide 1s; }

/* NEXT & PREV BUTTON */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  font-size: 30px;
  padding: 10px;
  color: #ff5722;
  font-weight: bold;
  user-select: none;
}
.prev { left: 0; }
.next { right: 0; }

/* COUNTDOWN */
.countdown {
  font-size: 22px;
  font-weight: bold;
  color: #ff5722;
  margin-top: 5px;
}

/* ANIMASI */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes popUp {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes fadeSlide {
  from { opacity: 0.3; }
  to { opacity: 1; }
}


/* MENU DROPDOWN YANG ELEGAN */
/* induk menu */
.dropdown {
    position: relative;       /* jadi patokan posisi absolut anak */
}

/* kotak dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;                /* menempel di bawah .dropdown */
    left: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--neutral-gray);
    border-radius: 8px;
    box-shadow: 0 10px 25px var(--shadow-dark);
    overflow: hidden;
    z-index: 1000;            /* pastikan di atas elemen lain */
    animation: fadeIn 0.25s ease-out;  /* animasi lebih singkat */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* link di dalam dropdown */
.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: var(--dark-text);
    text-decoration: none;
    transition: background 0.3s, padding-left 0.3s;
}

.dropdown-content a:hover {
    background: var(--primary-green);
    color: var(--white);
    padding-left: 25px;
}

/* tampilkan dropdown saat induk atau dropdown sendiri di-hover */
.dropdown:hover .dropdown-content,
.dropdown-content:hover {
    display: block;
}

/* Aksi kanan: login + hamburger */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: 16px;
}

.login-btn {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid transparent;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.login-btn:hover {
    background-color: #077181;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}



/* Button menu baru (konversi dari SCSS ke CSS) */
.btn-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding-left: 0;
    padding-right: 0;
    border: none;
    background-color: transparent;
    color: inherit;
    cursor: pointer;
    transition: .3s ease;
}
.btn-menu:focus { outline: none; }
.btn-menu__text {
    margin-left: 10px;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
}
.btn-menu__bars {
    display: block;
    position: relative;
    width: 41px;
    height: 4px;
    background-color: var(--primary-green);
    transition: .3s;
}
.btn-menu__bars:before,
.btn-menu__bars:after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-green);
    transition: .3s;
}
.btn-menu__bars:before { transform: translate(0, -10px); }
.btn-menu__bars:after  { transform: translate(0, 10px); }

/* State ketika menu terbuka */
body.menu-open .btn-menu__bars {
    background-color: transparent;
}
body.menu-open .btn-menu__bars:before {
    transform: rotate(45deg);
}
body.menu-open .btn-menu__bars:after {
    transform: rotate(-45deg);
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Layout responsif navbar */
@media (max-width: 992px) {
    header .container {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    /* Logo adjustments for mobile */
    header .logo img {
        height: 45px;
        margin-right: 15px;
    }
    
    header .logo h1 {
        font-size: 1.2rem;
    }
    
    header .logo h1 span {
        font-size: 0.85rem;
    }
    
    /* Sembunyikan dropdown hover behavior di mobile */
    .dropdown:hover .dropdown-content,
    .dropdown-content:hover {
        display: none;
    }
    
    /* Nav jadi panel slide-down */
    #site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid #f0f0f0;
        box-shadow: 0 10px 20px var(--shadow-light);
        display: none;
        z-index: 999;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    /* Tampilkan menu saat body memiliki state menu-open */
    body.menu-open #site-nav { 
        display: block; 
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    header nav ul { 
        flex-direction: column; 
        padding: 0;
        margin: 0;
    }
    
    header nav ul li { 
        border-bottom: 1px solid #f0f0f0;
    }
    
    header nav ul li:last-child {
        border-bottom: none;
    }
    
    header nav ul li a { 
        padding: 16px 20px; 
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Dropdown ditampilkan sebagai daftar biasa di bawah item */
    .dropdown-content {
        position: static;
        border: none;
        box-shadow: none;
        border-radius: 0;
        display: none;
        background: #f8f9fa;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        opacity: 0;
        visibility: hidden;
    }
    
    .dropdown-content.show {
        display: block !important;
        max-height: 300px !important;
        opacity: 1 !important;
        visibility: visible !important;
        animation: slideDown 0.3s ease-out;
    }
    
    .dropdown-content a {
        padding: 12px 20px 12px 40px;
        border-bottom: 1px solid #e9ecef;
        font-size: 0.95rem;
        display: block;
        color: var(--dark-text);
        text-decoration: none;
        transition: background-color 0.3s ease;
    }
    
    .dropdown-content a:hover {
        background-color: #e9ecef;
        color: var(--primary-green);
    }
    
    .dropdown-content a:last-child {
        border-bottom: none;
    }
    
    .dropdown > a i { 
        margin-left: 6px; 
        transition: transform 0.3s ease;
    }
    
    .dropdown.active > a i {
        transform: rotate(180deg);
    }
    
    /* Ensure dropdown is visible when active */
    .dropdown.active .dropdown-content {
        display: block !important;
        max-height: 300px !important;
    }
    
    /* Additional mobile dropdown fixes */
    .dropdown.active .dropdown-content.show {
        display: block !important;
        max-height: 300px !important;
    }
    
    /* Make sure dropdown links are clickable */
    .dropdown-content a {
        pointer-events: auto;
        cursor: pointer;
    }
    
    /* Debug: Add visual indicator for active dropdown */
    .dropdown.active > a {
        background-color: #e9ecef;
        color: var(--primary-green);
    }

    /* Tampilkan tombol menu di mobile */
    .btn-menu { 
        display: flex; 
        margin-left: auto;
    }
    
    /* Login button adjustments */
    .login-btn {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) {
    .btn-menu { display: none; }
}


/* JUDUL UTAMA YANG MENONJOL */
main.container {
    padding-top: 60px;
    padding-bottom: 60px;
}

.main-title {
    text-align: center;
    margin-bottom: 50px;
}

.main-title h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

/* Garis pemisah dekoratif */
.main-title h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary-green);
    margin: 15px auto 0;
    border-radius: 2px;
}

.main-title p {
    font-size: 1.15rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* KARTU LAYANAN YANG MEWAH (PREMIUM CARDS) */
.page-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border: 1px solid var(--neutral-gray);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    text-decoration: none;
    color: var(--dark-text);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 30px var(--shadow-dark);
    border-color: var(--primary-green);
}

.card .card-icon {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 20px;
    background-color: var(--background-light);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.card h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.card p {
    font-size: 1rem;
    color: #666;
}

/* Efek panah pada hover kartu */
.card::after {
    content: '→';
    position: absolute;
    right: 25px;
    bottom: 25px;
    font-size: 1.5rem;
    color: var(--primary-green);
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* FOOTER YANG BERSIH DAN MODERN */
footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 40px 0;
    margin-top: 60px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

footer p {
    opacity: 0.8;
}

.social-media a {
    color: var(--white);
    margin-left: 18px;
    font-size: 1.4rem;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-media a:hover {
    color: var(--primary-green);
    transform: translateY(-3px);
}

/* ======================================= */
/* === STYLING BARU & PENYEMPURNAAN ====== */
/* ======================================= */

/* --- STYLING BARU UNTUK BANNER --- */
.banner {
    position: relative;
    height: 65vh;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('img/banner.jpg') no-repeat center center/cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-blue);
    opacity: 0.75;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    animation: slideInUp 1s ease-out;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.banner-content h1 {
    font-family: 'Merriweather', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-button {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: #077181; /* Warna hijau sedikit lebih gelap */
    transform: translateY(-3px);
}


/* --- PENYESUAIAN SECTION & JUDUL --- */
.content-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary-green);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-title p {
    font-size: 1.15rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* Menghilangkan margin atas dari elemen main agar menempel ke banner */
main.container {
    padding-top: 0;
}


/* --- STYLING BARU UNTUK KEUNGGULAN SECTION --- */
.keunggulan-section {
    background-color: var(--background-light);
    padding: 80px 0;
    margin-top: 60px;
    border-radius: 20px;
}

.keunggulan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.keunggulan-item {
    text-align: center;
    padding: 20px;
}

.keunggulan-item i {
    font-size: 3rem;
    color: var(--primary-green);
    background: var(--white);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, color 0.3s;
}

.keunggulan-item:hover i {
    transform: scale(1.1);
    color: var(--primary-blue);
}

.keunggulan-item h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

/* --- PENYESUAIAN FOOTER --- */
footer {
    border-radius: 20px 20px 0 0;
}
footer p {
    text-align: center;
    flex-grow: 1;
}

/* ======================================= */
/* === STYLING KONTEN TAMBAHAN =========== */
/* ======================================= */

/* --- STYLING BARU UNTUK PROGRAM UNGGULAN --- */
.program-section {
    padding: 80px 0;
    background-color: var(--white);
}

.program-item {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
}

/* Mengatur layout selang-seling */
.program-item:nth-child(even) {
    flex-direction: row-reverse;
}

.program-item:last-child {
    margin-bottom: 0;
}

.program-image {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.program-item:hover .program-image img {
    transform: scale(1.05);
}

.program-text {
    flex: 1.2;
}

.program-text h3 {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.program-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.learn-more {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}
.learn-more i {
    margin-left: 8px;
    transition: transform 0.3s;
}
.learn-more:hover {
    color: var(--primary-blue);
}
.learn-more:hover i {
    transform: translateX(5px);
}

/* --- STYLING BARU UNTUK ALUR PELAYANAN --- */
.alur-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

.alur-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
}

.alur-langkah {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    border: 1px solid var(--neutral-gray);
    transition: transform 0.3s, box-shadow 0.3s;
}
.alur-langkah:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.alur-nomor {
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -60px auto 20px auto;
    border: 5px solid var(--background-light);
    box-shadow: 0 0 0 5px var(--primary-green);
}

.alur-langkah h4 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

/* --- STYLING BARU UNTUK SAMBUTAN KEPALA DINAS --- */
.sambutan-section {
    padding: 80px 0;
    background-color: var(--primary-blue);
    color: var(--white);
}

.sambutan-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.sambutan-foto {
    flex: 0 0 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid var(--primary-green);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.sambutan-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sambutan-teks {
    flex: 1;
}

.sambutan-teks blockquote {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
    line-height: 1.6;
    border-left: 5px solid var(--primary-green);
    padding-left: 30px;
    position: relative;
    font-style: italic;
    margin-bottom: 25px;
}

.sambutan-teks blockquote i {
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 2.5rem;
    color: var(--primary-green);
    opacity: 0.5;
}

.sambutan-teks cite {
    font-style: normal;
}

.sambutan-teks cite strong {
    display: block;
    font-size: 1.2rem;
}

.sambutan-teks cite span {
    font-size: 1rem;
    opacity: 0.8;
}

/* --- PENYESUAIAN SECTION KEUNGGULAN (jika di dalam .container) --- */
.keunggulan-section.container {
    padding: 80px 20px;
    margin-top: 0;
     /* menyesuaikan jika tidak lagi full-width */
}

@media (max-width: 992px) {
    .sambutan-container {
        flex-direction: column;
        text-align: center;
    }
    .sambutan-teks blockquote {
        border-left: none;
        padding-left: 0;
        text-align: center;
    }
    .sambutan-teks blockquote i {
        display: none;
    }
    .program-item, .program-item:nth-child(even) {
        flex-direction: column;
    }
}

/* ========================================= */
/* === STYLING UNTUK HALAMAN SEJARAH ======= */
/* ========================================= */

/* Hero Banner untuk Halaman Internal */
.page-hero {
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

.page-hero h1 {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Penanda Navigasi Aktif */
nav ul li a.active {
    color: var(--primary-green);
}
.dropdown-content a.active-sub {
    background-color: var(--primary-green);
    color: var(--white) !important;
}


/* Wrapper Konten Utama Halaman */
.content-wrapper {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-intro {
    text-align: center;
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto 60px auto;
    line-height: 1.8;
    color: #555;
}

/* Styling Linimasa (Timeline) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Garis vertikal di tengah */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-green);
    opacity: 0.3;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 4px;
}

/* Kontainer untuk setiap item (date, content, dot) */
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box; /* Penting untuk perhitungan lebar */
}

/* ===== Penataan Kiri & Kanan ===== */

/* Item di sisi KIRI */
.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 30px; /* Jarak dari garis tengah */
    text-align: right;
}

/* Item di sisi KANAN */
.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 30px; /* Jarak dari garis tengah */
}


/* ===== Titik (Dot) di Garis Tengah ===== */

.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-green);
    border: 4px solid var(--white);
    top: 32px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--primary-green);
    transition: transform 0.3s ease;
}

/* Posisi dot untuk item KIRI */
.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px; /* Setengah dari lebar dot */
}

/* Posisi dot untuk item KANAN */
.timeline-item:nth-child(even) .timeline-dot {
    left: -10px; /* Setengah dari lebar dot */
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
}


/* ===== Konten Timeline (Box Teks) ===== */

.timeline-content {
    padding: 20px 30px;
    background-color: var(--white);
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-content {
     box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.timeline-content h3 {
    font-family: 'Merriweather', serif;
    margin-bottom: 10px;
    color: var(--primary-blue);
    font-size: 1.4rem;
}

.timeline-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 10px;
    display: inline-block;
}


/* ===== PANAH KECIL DARI BOX KE GARIS TENGAH ===== */

.timeline-content::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    border: medium solid var(--white);
}

/* Panah untuk item di KIRI (menunjuk ke KANAN) */
.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--white);
}

/* Panah untuk item di KANAN (menunjuk ke KIRI) */
.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--white) transparent transparent;
}


/* Penyesuaian untuk Mobile */
@media screen and (max-width: 768px) {
    /* Garis pindah ke kiri */
    .timeline::after {
        left: 31px;
    }

    /* Semua item pindah ke sisi kanan */
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    /* Dot pindah ke garis kiri */
    .timeline-item .timeline-dot {
        left: 21px;
    }

    /* Panah selalu menunjuk ke kiri */
    .timeline-item .timeline-content::before {
        left: -10px;
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--white) transparent transparent;
    }
}

/* Styling Visi Pendiri */
.visi-pendiri {
    background-color: var(--background-light);
    border-left: 5px solid var(--primary-green);
    padding: 40px;
    margin: 60px auto;
    text-align: center;
    position: relative;
}
.visi-pendiri i {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 3rem;
    color: var(--primary-green);
    opacity: 0.2;
}
.visi-pendiri p {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--dark-text);
    margin-bottom: 20px;
}
.visi-pendiri span {
    font-size: 1.1rem;
    color: #555;
}

/* Styling Galeri Mini Momen Penting */
.milestone-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.milestone-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease;
}
.milestone-item:hover {
    transform: translateY(-8px);
}

.milestone-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.milestone-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 30px 20px 20px 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

/* ========================================= */
/* === STYLING UNTUK HALAMAN VISI & MISI === */
/* ========================================= */

/* Bagian Visi */
.visi-section {
    padding: 80px 20px;
    background-color: var(--background-light);
    text-align: center;
}

.visi-section .section-title h2::after {
    display: none; /* Menghilangkan garis bawah pada judul Visi */
}

.visi-section blockquote {
    font-family: 'Merriweather', serif;
    font-size: 2.2rem;
    line-height: 1.6;
    color: var(--primary-blue);
    max-width: 900px;
    margin: 0 auto;
    font-style: italic;
    position: relative;
    padding: 0 40px;
}

/* Tanda kutip dekoratif */
.visi-section blockquote::before {
    content: '\f10d';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--primary-green);
    opacity: 0.2;
}
.visi-section blockquote::after {
    content: '\f10e';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    bottom: -10px;
    font-size: 3rem;
    color: var(--primary-green);
    opacity: 0.2;
}

/* Bagian Misi */
.misi-wrapper {
    padding: 80px 0;
    background: var(--white);
}

.misi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.misi-card {
    background-color: var(--white);
    border: 1px solid var(--neutral-gray);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.misi-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(4, 129, 204, 0.1);
    border-color: var(--primary-green);
}

.misi-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px auto;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    color: var(--white);
    font-size: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.misi-card h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.misi-card p {
    line-height: 1.7;
    color: #555;
}

/* Bagian Tata Nilai */
.tata-nilai-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

.nilai-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
}

.nilai-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.nilai-image img {
    width: 100%;
    display: block;
}

.nilai-list {
    flex: 1.2;
    list-style: none;
}

.nilai-item {
    padding-left: 40px;
    position: relative;
    margin-bottom: 25px;
}

.nilai-item h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.nilai-item h3 span {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-green);
    opacity: 0.4;
    position: absolute;
    left: -10px;
    top: -5px;
}

.nilai-item p {
    color: #555;
}

/* Penyesuaian untuk mobile */
@media (max-width: 992px) {
    .nilai-content {
        flex-direction: column;
    }
}

/* ================================================== */
/* === STYLING UNTUK HALAMAN STRUKTUR ORGANISASI ==== */
/* ================================================== */

/* Kontainer untuk Org Chart agar bisa di-scroll di mobile */
.org-chart-container {
    width: 100%;
    overflow-x: auto; /* Memungkinkan scroll horizontal */
    padding: 20px 0;
}

.org-chart {
    display: inline-block; /* Membuat chart tidak full-width agar scroll bekerja */
    min-width: 1000px; /* Lebar minimum chart */
    text-align: center;
}

.org-chart ul {
    padding-top: 20px;
    position: relative;
    transition: all 0.5s;
}

.org-chart li {
    float: left;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 5px 0 5px;
    transition: all 0.5s;
}

/* Membuat konektor/garis */
.org-chart li::before, .org-chart li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid var(--primary-green);
    width: 50%;
    height: 20px;
}
.org-chart li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid var(--primary-green);
}
.org-chart li:only-child::after, .org-chart li:only-child::before {
    display: none;
}
.org-chart li:only-child {
    padding-top: 0;
}
.org-chart li:first-child::before, .org-chart li:last-child::after {
    border: 0 none;
}
.org-chart li:last-child::before {
    border-right: 2px solid var(--primary-green);
    border-radius: 0 5px 0 0;
}
.org-chart li:first-child::after {
    border-radius: 5px 0 0 0;
}
.org-chart ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid var(--primary-green);
    width: 0;
    height: 20px;
}

/* Styling Kartu/Node */
.org-chart .node {
    padding: 15px 20px;
    text-decoration: none;
    color: var(--dark-text);
    background-color: var(--white);
    border-radius: 8px;
    display: inline-block;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    border: 1px solid var(--neutral-gray);
    transition: transform 0.3s, border-color 0.3s;
}
.org-chart .node:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
}

.org-chart .node h4 {
    font-size: 1.1rem;
    font-family: 'Merriweather', serif;
    color: var(--primary-blue);
    margin-bottom: 5px;
}
.org-chart .node span {
    font-size: 0.9rem;
    color: #555;
}

/* Styling untuk level yang lebih tinggi */
.org-chart #kepala-dinas {
    background: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-green);
}
.org-chart #kepala-dinas h4 {
    color: var(--white);
}
.org-chart #kepala-dinas span {
    color: rgba(255,255,255,0.8);
}
.org-chart #sekretariat, .org-chart #bidang {
    background-color: #e8f5e9; /* Hijau muda */
}
.org-chart .sub-node h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

/* Bagian Unit Tambahan */
.unit-tambahan-section {
    padding: 80px 0;
    background-color: var(--background-light);
    margin-top: 40px;
}

.unit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.unit-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--neutral-gray);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.unit-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.unit-card h3 {
    font-family: 'Merriweather', serif;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

/* ================================================== */
/* === STYLING UNTUK HALAMAN PERIZINAN NAKES ======== */
/* ================================================== */

/* Bagian Persyaratan Dokumen */
.persyaratan-section {
    padding: 80px 0;
    background-color: var(--white);
}

.persyaratan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.syarat-card {
    background: var(--background-light);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--neutral-gray);
}

.syarat-card h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 15px;
}
.syarat-card h3 i {
    margin-right: 15px;
    color: var(--primary-green);
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.checklist li i {
    color: var(--primary-green);
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 5px;
}

/* Bagian Standar Pelayanan */
.standar-pelayanan-section {
    padding: 80px 0;
    background: var(--background-light);
}

.standar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.standar-box {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(4, 129, 204, 0.3);
}

.standar-box i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.standar-box h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.standar-box p {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.standar-box span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Bagian CTA Unduh Formulir */
.cta-unduh-section {
    padding: 80px 20px;
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
    margin-top: 80px;
}

.cta-unduh-section i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.cta-unduh-section h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-unduh-section p {
    max-width: 600px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
    line-height: 1.7;
}

.tombol-unduh {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 18px 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 2px solid var(--white);
}

.tombol-unduh:hover {
    background-color: var(--white);
    color: var(--primary-green);
    transform: translateY(-5px);
}

/* ================================================== */
/* === STYLING UNTUK HALAMAN INFO PUSKESMAS ========= */
/* ================================================== */

/* Filter Pencarian */
.puskesmas-filter {
    margin-bottom: 40px;
}

.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1.2rem;
}

#searchInput {
    width: 100%;
    padding: 18px 20px 18px 60px;
    font-size: 1.1rem;
    border-radius: 50px;
    border: 1px solid var(--neutral-gray);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: border-color 0.3s, box-shadow 0.3s;
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 4px 20px rgba(4, 129, 204, 0.15);
}

/* Grid Kartu Puskesmas */
.puskesmas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.puskesmas-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid var(--neutral-gray);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}
.puskesmas-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.card-image {
    height: 200px;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-header {
    background: var(--primary-blue);
    padding: 15px 20px;
}
.card-header h3 {
    color: var(--white);
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    margin: 0;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
}
.card-body p {
    display: flex;
    align-items: flex-start;
    color: #555;
    margin-bottom: 12px;
}
.card-body p i {
    color: var(--primary-green);
    margin-right: 12px;
    width: 20px;
    text-align: center;
    margin-top: 4px;
}

.card-services {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--neutral-gray);
}
.card-services h4 {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-text);
}
.card-services ul {
    list-style: none;
    padding: 0;
}
.card-services ul li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #555;
}
.card-services ul li i {
    color: var(--primary-green);
    margin-right: 10px;
}

.card-footer {
    background: var(--background-light);
    padding: 15px 20px;
    font-size: 0.9rem;
    color: #555;
    border-top: 1px solid var(--neutral-gray);
}
.card-footer p {
    margin: 0;
    display: flex;
    align-items: center;
}
.card-footer p i {
     margin-right: 10px;
     color: var(--primary-blue);
}


/* Pesan jika tidak ada hasil */
.no-results-message {
    display: none; /* Sembunyikan secara default */
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.no-results-message i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ccc;
}

.no-results-message p {
    font-size: 1.5rem;
    font-weight: 600;
}
.no-results-message span {
    font-size: 1rem;
}

/* ======================================================= */
/* === STYLING UNTUK HALAMAN PROGRAM KESMAS ============== */
/* ======================================================= */

.program-page-main {
    background-color: var(--white);
}

/* Detail setiap program */
.program-detail {
    padding: 80px 0;
    border-bottom: 1px solid var(--neutral-gray);
}
.program-detail:nth-child(odd) {
     background-color: var(--background-light);
}

.program-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.program-detail.layout-reverse .program-container {
    flex-direction: row-reverse;
}

.program-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.program-image img {
    width: 100%;
    height: auto;
    display: block;
}

.program-text {
    flex: 1.2;
}

.program-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    color: var(--white);
    font-size: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.program-text h3 {
    font-family: 'Merriweather', serif;
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.program-text > p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.program-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-top: 25px;
    margin-bottom: 15px;
}

.kegiatan-list {
    list-style: none;
    padding-left: 0;
}
.kegiatan-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1.05rem;
}
.kegiatan-list li i {
    color: var(--primary-green);
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.program-text h4 + p {
    font-style: italic;
    color: #555;
}

/* CTA Partisipasi */
.cta-partisipasi {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--primary-blue);
    color: var(--white);
}

.cta-partisipasi i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.cta-partisipasi h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-partisipasi p {
    max-width: 700px;
    margin: 0 auto 30px auto;
    line-height: 1.7;
    opacity: 0.9;
}

/* Penyesuaian untuk mobile */
@media (max-width: 992px) {
    .program-container,
    .program-detail.layout-reverse .program-container {
        flex-direction: column;
        gap: 40px;
    }
}

/* ======================================================= */
/* === STYLING UNTUK HALAMAN DATA & INFORMASI ============ */
/* ======================================================= */

.data-page-main {
    background-color: var(--background-light);
}
.data-page-main .content-wrapper {
    background-color: var(--white);
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Sorotan Data Utama */
.data-highlight-section {
    padding-bottom: 60px;
}
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.highlight-card {
    background-color: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid var(--neutral-gray);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-bottom: 5px solid var(--primary-green);
    transition: transform 0.3s, box-shadow 0.3s;
}
.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}
.highlight-card i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}
.highlight-card .data-value {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}
.highlight-card h4 {
    font-family: 'Merriweather', serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.highlight-card p {
    color: #555;
    font-size: 0.95rem;
}

/* Laporan Unggulan */
.featured-report {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: var(--background-light);
    padding: 50px;
    border-radius: 12px;
    margin: 40px 0;
}
.report-image {
    flex: 0 0 250px;
}
.report-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.report-text {
    flex: 1;
}
.report-text span {
    display: inline-block;
    background-color: var(--primary-green);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.report-text h3 {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}
.tombol-unduh-laporan {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: background-color 0.3s, transform 0.3s;
}
.tombol-unduh-laporan:hover {
    background-color: #083c5a;
    transform: translateY(-3px);
}
.tombol-unduh-laporan i {
    margin-right: 8px;
}


/* Pustaka Dokumen (Tabs) */
.document-library {
    padding-top: 60px;
}
.tabs {
    display: flex;
    border-bottom: 2px solid var(--neutral-gray);
    margin-bottom: 30px;
}
.tab-button {
    padding: 15px 30px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: #888;
    position: relative;
    transition: color 0.3s;
}
.tab-button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary-green);
    transform: scaleX(0);
    transition: transform 0.3s ease-out;
}
.tab-button.active {
    color: var(--primary-blue);
}
.tab-button.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}
.tab-content.active {
    display: block;
}
.document-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: var(--white);
    border: 1px solid var(--neutral-gray);
    border-radius: 8px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s, border-color 0.3s;
}
.document-item:hover {
    border-color: var(--primary-green);
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}
.document-item i {
    font-size: 2rem;
    color: var(--primary-green);
    margin-right: 20px;
    width: 40px;
}
.doc-info {
    flex-grow: 1;
}
.doc-info h4 {
    font-size: 1.2rem;
    color: var(--dark-text);
    margin-bottom: 3px;
}
.doc-info span {
    font-size: 0.9rem;
    color: #666;
}
.doc-download-btn {
    background-color: var(--background-light);
    color: var(--primary-blue);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--neutral-gray);
    transition: background-color 0.3s, color 0.3s;
}
.doc-download-btn:hover {
    background-color: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

/* Berita Section */
.berita-section {
    background: var(--background-light);
    padding: 60px 0;
}

.berita-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.berita-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.berita-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-dark);
}

.berita-image {
    height: 200px;
    overflow: hidden;
}

.berita-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.berita-item:hover .berita-image img {
    transform: scale(1.05);
}

.berita-content {
    padding: 25px;
}

.berita-content h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.berita-content p {
    color: var(--dark-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--primary-blue);
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* ======================================================= */
/* === MOBILE RESPONSIVENESS IMPROVEMENTS ================ */
/* ======================================================= */

/* Mobile-first responsive breakpoints */
@media (max-width: 768px) {
    /* Container adjustments */
    .container {
        padding: 0 15px;
    }
    
    /* Hero section mobile optimization */
    .hero {
        padding: 40px 0 !important;
        min-height: auto !important;
    }
    
    .hero .container {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 40px 15px !important;
    }
    
    .hero-text h1 {
        font-size: clamp(24px, 6vw, 32px) !important;
        line-height: 1.2 !important;
        margin: 12px 0 16px !important;
    }
    
    .hero-text p {
        font-size: 1rem !important;
        margin-bottom: 24px !important;
        max-width: 100% !important;
    }
    
    .hero-text .cta-button {
        padding: 12px 20px !important;
        font-size: 1rem !important;
        margin-bottom: 12px !important;
        display: block !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .hero-text a:not(.cta-button) {
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        margin-top: 8px !important;
    }
    
    .hero-stats {
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 20px !important;
    }
    
    .hero-stats > div {
        min-width: auto !important;
        width: 100% !important;
        padding: 12px 16px !important;
    }
    
    .hero-visual {
        order: -1 !important;
    }
    
    .hero-visual img {
        height: 250px !important;
    }
    
    .hero-visual > div:last-child {
        right: 10px !important;
        bottom: 10px !important;
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
    }
    
    /* Service cards mobile layout */
    .page-links {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .card {
        padding: 20px !important;
        text-align: center !important;
    }
    
    .card .card-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.8rem !important;
        margin: 0 auto 15px !important;
    }
    
    .card h3 {
        font-size: 1.3rem !important;
        margin-bottom: 12px !important;
    }
    
    .card p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    /* Program section mobile */
    .program-item {
        flex-direction: column !important;
        gap: 30px !important;
        margin-bottom: 40px !important;
    }
    
    .program-item:nth-child(even) {
        flex-direction: column !important;
    }
    
    .program-image {
        order: -1 !important;
    }
    
    .program-text h3 {
        font-size: 1.6rem !important;
        text-align: center !important;
    }
    
    .program-text p {
        font-size: 1rem !important;
        text-align: center !important;
    }
    
    .learn-more {
        display: block !important;
        text-align: center !important;
        margin-top: 15px !important;
    }
    
    /* Alur section mobile */
    .alur-wrapper {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .alur-langkah {
        padding: 20px !important;
    }
    
    .alur-nomor {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.4rem !important;
        margin: -50px auto 15px !important;
    }
    
    .alur-langkah h4 {
        font-size: 1.1rem !important;
    }
    
    /* Sambutan section mobile */
    .sambutan-container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 30px !important;
    }
    
    .sambutan-foto {
        flex: none !important;
        width: 200px !important;
        height: 200px !important;
        margin: 0 auto !important;
    }
    
    .sambutan-teks blockquote {
        font-size: 1.2rem !important;
        padding-left: 0 !important;
        border-left: none !important;
        text-align: center !important;
    }
    
    .sambutan-teks blockquote i {
        display: none !important;
    }
    
    /* Keunggulan section mobile */
    .keunggulan-split {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .keunggulan-list {
        gap: 15px !important;
    }
    
    .keunggulan-card {
        padding: 15px !important;
        grid-template-columns: 50px 1fr !important;
        gap: 12px !important;
    }
    
    .keunggulan-card > div:first-child {
        width: 50px !important;
        height: 50px !important;
    }
    
    .keunggulan-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 5px !important;
    }
    
    .keunggulan-card p {
        font-size: 0.9rem !important;
    }
    
    .keunggulan-illustration {
        justify-self: center !important;
    }
    
    .keunggulan-illustration img {
        max-width: 300px !important;
    }
    
    /* News section mobile */
    .berita-preview {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .berita-item {
        margin-bottom: 0 !important;
    }
    
    .berita-image {
        height: 180px !important;
    }
    
    .berita-content {
        padding: 20px !important;
    }
    
    .berita-content h3 {
        font-size: 1.2rem !important;
        margin-bottom: 12px !important;
    }
    
    .berita-content p {
        font-size: 0.95rem !important;
        margin-bottom: 15px !important;
    }
    
    /* Section titles mobile */
    .section-title h2 {
        font-size: 2rem !important;
        margin-bottom: 10px !important;
    }
    
    .section-title p {
        font-size: 1rem !important;
        padding: 0 10px !important;
    }
    
    /* Page hero mobile */
    .page-hero {
        padding: 40px 15px !important;
    }
    
    .page-hero h1 {
        font-size: 2.2rem !important;
        margin-bottom: 8px !important;
    }
    
    .page-hero p {
        font-size: 1rem !important;
    }
    
    /* Footer mobile */
    footer .container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }
    
    .social-media a {
        margin: 0 10px !important;
        font-size: 1.2rem !important;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .page-links {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .berita-preview {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .alur-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-text h1 {
        font-size: 22px !important;
    }
    
    .hero-text p {
        font-size: 0.9rem !important;
    }
    
    .card {
        padding: 15px !important;
    }
    
    .card h3 {
        font-size: 1.1rem !important;
    }
    
    .card p {
        font-size: 0.85rem !important;
    }
    
    .section-title h2 {
        font-size: 1.8rem !important;
    }
    
    .page-hero h1 {
        font-size: 1.8rem !important;
    }
}

/* Mobile improvements for other pages */
@media (max-width: 768px) {
    /* Berita list page mobile */
    .berita-preview {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .berita-item {
        margin-bottom: 0 !important;
    }
    
    .berita-image {
        height: 180px !important;
    }
    
    .berita-content {
        padding: 20px !important;
    }
    
    .berita-content h3 {
        font-size: 1.2rem !important;
        margin-bottom: 12px !important;
    }
    
    .berita-content p {
        font-size: 0.95rem !important;
        margin-bottom: 15px !important;
    }
    
    /* Search form mobile */
    .search-wrapper {
        margin-bottom: 20px !important;
    }
    
    #searchInput {
        padding: 15px 15px 15px 50px !important;
        font-size: 1rem !important;
    }
    
    /* Pagination mobile */
    .pagination {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .pagination .page-link {
        padding: 8px 12px !important;
        font-size: 0.9rem !important;
    }
    
    /* Puskesmas cards mobile */
    .puskesmas-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .puskesmas-card {
        margin-bottom: 0 !important;
    }
    
    .card-image {
        height: 180px !important;
    }
    
    .card-header h3 {
        font-size: 1.2rem !important;
    }
    
    .card-body {
        padding: 15px !important;
    }
    
    .card-body p {
        font-size: 0.9rem !important;
        margin-bottom: 10px !important;
    }
    
    .card-services h4 {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }
    
    .card-services ul li {
        font-size: 0.85rem !important;
        margin-bottom: 6px !important;
    }
    
    .card-footer {
        padding: 12px 15px !important;
        font-size: 0.8rem !important;
    }
    
    /* Program page mobile */
    .program-container {
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    .program-detail.layout-reverse .program-container {
        flex-direction: column !important;
    }
    
    .program-image {
        order: -1 !important;
    }
    
    .program-text h3 {
        font-size: 1.6rem !important;
        text-align: center !important;
    }
    
    .program-text > p {
        font-size: 1rem !important;
        text-align: center !important;
    }
    
    .program-text h4 {
        font-size: 1.1rem !important;
        text-align: center !important;
    }
    
    .kegiatan-list li {
        font-size: 0.95rem !important;
        margin-bottom: 10px !important;
    }
    
    /* Perizinan page mobile */
    .persyaratan-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .syarat-card {
        padding: 25px !important;
    }
    
    .syarat-card h3 {
        font-size: 1.4rem !important;
        margin-bottom: 20px !important;
    }
    
    .checklist li {
        font-size: 0.95rem !important;
        margin-bottom: 15px !important;
    }
    
    .standar-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .standar-box {
        padding: 25px !important;
    }
    
    .standar-box i {
        font-size: 2.5rem !important;
    }
    
    .standar-box h3 {
        font-size: 1.2rem !important;
    }
    
    .standar-box p {
        font-size: 2rem !important;
    }
    
    .tombol-unduh {
        padding: 15px 30px !important;
        font-size: 1rem !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    /* CTA sections mobile */
    .cta-unduh-section,
    .cta-partisipasi {
        padding: 50px 15px !important;
    }
    
    .cta-unduh-section h2,
    .cta-partisipasi h2 {
        font-size: 2rem !important;
    }
    
    .cta-unduh-section p,
    .cta-partisipasi p {
        font-size: 1rem !important;
    }
    
    /* News article page mobile */
    .news-content {
        font-size: 1rem !important;
        line-height: 1.7 !important;
    }
    
    .news-content h1,
    .news-content h2,
    .news-content h3,
    .news-content h4,
    .news-content h5,
    .news-content h6 {
        font-size: 1.3rem !important;
        margin-top: 1.5rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .news-content p {
        margin-bottom: 1.2rem !important;
    }
    
    .news-content img {
        margin: 0.8rem 0 !important;
    }
    
    .news-content blockquote {
        padding: 15px !important;
        margin: 1.2rem 0 !important;
    }
    
    /* Share buttons mobile */
    .card-body .d-flex {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .card-body .btn {
        width: 100% !important;
        text-align: center !important;
    }
    
    /* Related news mobile */
    .card-body .d-flex.mb-3 {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .card-body .d-flex.mb-3 img {
        margin: 0 auto 10px !important;
        width: 100% !important;
        height: 120px !important;
    }
}

/* Banner: diagonal overlay + card headline */
.home-variant .banner {
    height: 70vh;
    background-position: center;
}
.home-variant .banner-overlay {
    background: linear-gradient(120deg, rgba(10,77,104,0.9) 0%, rgba(8,131,149,0.85) 60%, rgba(8,131,149,0.0) 60%);
}
.home-variant .banner-content {
    max-width: 900px;
}
.home-variant .banner-content h1 {
    font-size: 3.2rem;
}
.home-variant .banner-content p {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 12px 18px;
    display: inline-block;
}

/* Layanan: glassmorphism cards + hover tilt */
.home-variant #layanan.content-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--background-light) 100%);
    border-radius: 24px;
    margin-top: -40px;
    padding: 80px 20px;
    box-shadow: 0 20px 40px var(--shadow-light);
}
.home-variant .page-links {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.home-variant .card {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.6);
    transform: perspective(800px) rotateX(0) rotateY(0);
}
.home-variant .card:hover {
    transform: translateY(-8px) perspective(800px) rotateX(1deg) rotateY(-1deg);
}
.home-variant .card .card-icon {
    background: linear-gradient(135deg, rgba(8,131,149,0.12), rgba(10,77,104,0.08));
}

/* Berita: layout dua kolom asimetris untuk preview teratas */
.home-variant .berita-preview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}
.home-variant .berita-preview .berita-item:first-child {
    grid-row: span 2;
    display: grid;
    grid-template-rows: 260px 1fr;
}
.home-variant .berita-preview .berita-item:first-child .berita-image { height: 100%; }
.home-variant .berita-preview .berita-item:first-child .berita-content { padding: 28px; }

@media (max-width: 992px) {
    .home-variant .berita-preview { grid-template-columns: 1fr; }
    .home-variant .berita-preview .berita-item:first-child { grid-row: auto; grid-template-rows: 200px 1fr; }
}

/* Program: ubah menjadi grid cards */
.home-variant .program-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}
.home-variant .program-item {
    display: block;
    background: var(--white);
    border: 1px solid var(--neutral-gray);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px var(--shadow-light);
    transition: transform .3s, box-shadow .3s;
}
.home-variant .program-item:hover { transform: translateY(-8px); box-shadow: 0 16px 32px var(--shadow-dark); }
.home-variant .program-item .program-image { height: 220px; border-radius: 0; box-shadow: none; }
.home-variant .program-item .program-text { padding: 22px; }
.home-variant .program-item .program-text h3 { font-size: 1.6rem; }

/* Alur: ubah jadi garis vertikal timeline sederhana */
.home-variant .alur-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.home-variant .alur-wrapper::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--primary-green), transparent);
    opacity: .35;
}
.home-variant .alur-langkah {
    text-align: left;
}
.home-variant .alur-nomor {
    margin: 0 0 14px 0;
    box-shadow: 0 0 0 4px rgba(8,131,149,0.15);
}
@media (max-width: 768px) {
    .home-variant .alur-wrapper::before { left: 24px; transform: none; }
}

/* Sambutan: karta tengah dengan layout kolom tunggal */
.home-variant .sambutan-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0b5d7a 100%);
}
.home-variant .sambutan-container {
    flex-direction: column;
    text-align: center;
}
.home-variant .sambutan-foto {
    border-radius: 24px;
    width: 320px;
    height: 220px;
}
.home-variant .sambutan-teks blockquote {
    border-left: none;
    padding-left: 0;
}

/* Keunggulan: kartu berbingkai gradien */
.home-variant .keunggulan-section.container {
    background: var(--background-light);
    border-radius: 20px;
}
.home-variant .keunggulan-item {
    background: var(--white);
    border: 1px solid var(--neutral-gray);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 8px 24px var(--shadow-light);
    position: relative;
}
.home-variant .keunggulan-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(8,131,149,0.45), rgba(10,77,104,0.25));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
}