@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);
}

/* 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;
}


/* 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;
    background-color: var(--white); /* 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);
}