        :root {
            --primary: #2563eb;
            --primary-dark: #1d4ed8;
            --secondary: #475569;
            --light: #f8fafc;
            --dark: #0f172a;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --gray-100: #f1f5f9;
            --gray-200: #e2e8f0;
            --gray-300: #cbd5e1;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Poppins', sans-serif;
            font-size: 16px;
            line-height: 1.5;
            color: var(--dark);
            background-color: var(--light);
        }
        
        a {
            text-decoration: none;
            color: var(--primary);
            transition: all 0.3s ease;
        }
        
        a:hover {
            color: var(--primary-dark);
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Header Styles */
        .header {
            background-color: #fff;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
        }
        
        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 0;
        }
        
        .logo {
            display: flex;
            align-items: center;
        }
        
        .logo img {
            height: 40px;
            margin-right: 10px;
        }
        
        .logo-text {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
        }
        
        .logo-text span {
            color: var(--dark);
            font-weight: 400;
        }
        
        .nav-links {
            display: flex;
            align-items: center;
        }
        
        .nav-links a {
            margin-left: 1.5rem;
            font-weight: 500;
            color: var(--secondary);
        }
        
        .nav-links a:hover {
            color: var(--primary);
        }
        
        .nav-links .btn {
            margin-left: 1.5rem;
        }
        
        .btn {
            display: inline-block;
            padding: 0.5rem 1.5rem;
            border-radius: 5px;
            font-weight: 500;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .btn-primary {
            background-color: var(--primary);
            color: white;
        }
        
        .btn-primary:hover {
            background-color: var(--primary-dark);
            color: white;
        }
        
        .btn-outline {
            border: 1px solid var(--primary);
            color: #000000;
            background-color: transparent;
        }
        
        .btn-outline:hover {
            background-color: var(--primary);
            color: white;
        }
        
        .mobile-menu {
            display: none;
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        /* Hero Section */
        .hero {
            padding-top: 120px;
            padding-bottom: 80px;
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            position: relative;
            overflow: hidden;
        }
        
        .hero-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .hero-text {
            max-width: 600px;
        }
        
        .hero-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--dark);
        }
        
        .hero-subtitle {
            font-size: 1.1rem;
            color: var(--secondary);
            margin-bottom: 2rem;
        }
        
        .hero-buttons {
            display: flex;
            gap: 1rem;
        }
        
        .hero-image {
            width: 45%;
            animation: float 3s ease-in-out infinite;
        }
        
        .hero-image img {
            max-width: 100%;
        }
        
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-15px); }
            100% { transform: translateY(0px); }
        }
        
        /* Features Section */
        .features {
            padding: 10px 0;
            background-color: #fff;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 3rem;
        }
        
        .section-title h2 {
            font-size: 2rem;
            color: var(--dark);
            margin-bottom: 1rem;
        }
        
        .section-title p {
            color: var(--secondary);
            max-width: 700px;
            margin: 0 auto;
        }
        
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }
        
        .feature-card {
            background-color: var(--light);
            border-radius: 10px;
            padding: 2rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        }
        
        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        }
        
        .feature-icon {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 1rem;
        }
        
        .feature-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }
        
        .feature-description {
            color: var(--secondary);
        }
        
        /* How It Works */
        .how-it-works {
            padding: 10px 0;
            background-color: var(--gray-100);
        }
        
        .steps {
            display: flex;
            justify-content: space-between;
            margin-top: 3rem;
        }
        
        .step {
            flex: 1;
            text-align: center;
            padding: 0 1rem;
            position: relative;
        }
        
        .step:not(:last-child):after {
            content: "";
            position: absolute;
            top: 30px;
            right: -15px;
            width: 30px;
            height: 2px;
            background-color: var(--gray-300);
        }
        
        .step-number {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 60px;
            height: 60px;
            background-color: var(--primary);
            color: white;
            border-radius: 50%;
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }
        
        .step-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }
        
        .step-description {
            color: var(--secondary);
            font-size: 0.9rem;
        }
        
        /* Testimonials */
        .testimonials {
            padding: 10px 0;
            background-color: #fff;
        }
        
        .testimonial-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }
        
        .testimonial-card {
            background-color: var(--light);
            border-radius: 10px;
            padding: 2rem;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        }
        
        .testimonial-content {
            margin-bottom: 1.5rem;
            color: var(--secondary);
            font-style: italic;
        }
        
        .testimonial-author {
            display: flex;
            align-items: center;
        }
        
        .author-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            overflow: hidden;
            margin-right: 1rem;
        }
        
        .author-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .author-info h4 {
            font-size: 1rem;
            margin-bottom: 0.2rem;
        }
        
        .author-info p {
            font-size: 0.9rem;
            color: var(--secondary);
        }
        
        /* CTA Section */
        .cta {
            padding: 40px 0;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            text-align: center;
        }
        
        .cta h2 {
            font-size: 2rem;
            margin-bottom: 1rem;
        }
        
        .cta p {
            max-width: 700px;
            margin: 0 auto 2rem;
            opacity: 0.9;
        }
        padding: 10px
        .cta-buttons {
            display: flex;
            justify-content: center;
            gap: 1rem;
        }
        
        .btn-light {
            background-color: white;
            color: var(--primary);
        }
        
        .btn-light:hover {
            background-color: var(--gray-100);
            color: var(--primary-dark);
        }
        
        /* Footer */
        .footer {
            padding: 60px 0 20px;
            background-color: var(--dark);
            color: white;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }
        
        .footer-column h3 {
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
            color: white;
        }
        
        .footer-column p {
            color: var(--gray-300);
            margin-bottom: 1rem;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 0.8rem;
        }
        
        .footer-links a {
            color: var(--gray-300);
        }
        
        .footer-links a:hover {
            color: white;
        }
        
        .social-links {
            display: flex;
            gap: 1rem;
        }
        
        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: rgba(255,255,255,0.1);
            color: white;
            transition: all 0.3s ease;
        }
        
        .social-links a:hover {
            background-color: var(--primary);
            transform: translateY(-3px);
        }
        
        .footer-bottom {
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 20px;
            text-align: center;
            color: var(--gray-300);
            font-size: 0.9rem;
        }
        
        /* Responsive Styles */
        @media (max-width: 992px) {
            .hero-content {
                flex-direction: column;
                text-align: center;
            }
            
            .hero-text {
                margin-bottom: 2rem;
            }
            
            .hero-buttons {
                justify-content: center;
            }
            
            .hero-image {
                width: 70%;
            }
            
            .steps {
                flex-direction: column;
                gap: 2rem;
            }
            
            .step:not(:last-child):after {
                display: none;
            }
        }

         /* Leaders Section */
         .leaders {
            padding: 10px 0;
            background-color: #fff;
        }
        
        .leaders-container {
            display: flex;
            justify-content: center;
            gap: 2rem;
            flex-wrap: wrap;
            margin-top: 3rem;
        }
        
        .leader-card {
            background-color: var(--light);
            border-radius: 15px;
            overflow: hidden;
            width: 300px;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            text-align: center;
        }
        
        .leader-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        }
        
        .leader-photo {
            width: 100%;
            height: 300px;
            overflow: hidden;
            position: relative;
        }
        
        .leader-photo img {
            width: 100%;
          
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .leader-card:hover .leader-photo img {
            transform: scale(1.05);
        }
        
        .leader-info {
            padding: 1.5rem;
        }
        
        .leader-position {
            display: inline-block;
            background-color: var(--primary);
            color: white;
            padding: 0.3rem 1rem;
            border-radius: 20px;
            font-size: 0.8rem;
            margin-bottom: 0.8rem;
            font-weight: 500;
        }
        
        .leader-name {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--dark);
        }
        
        .leader-title {
            color: var(--secondary);
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }
        
        .leader-contact {
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid var(--gray-200);
        }
        
        .leader-contact a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: var(--gray-100);
            color: var(--primary);
            margin: 0 0.2rem;
            transition: all 0.3s ease;
        }
        
        .leader-contact a:hover {
            background-color: var(--primary);
            color: white;
            transform: translateY(-3px);
        }

        @media (max-width: 768px) {
    .leaders-container {
        display: flex;
        flex-direction: column;
        align-items: center; /* agar anak-anaknya center */
    }

    .leader-card.bupati {
        order: 1;
    }

    .leader-card.wakil {
        order: 2;
    }

    .leader-card.sekda {
        order: 3;
    }
}

        
        @media (max-width: 768px) {
            .navbar {
                position: relative;
            }
            
            .nav-links {
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background-color: white;
                flex-direction: column;
                align-items: flex-start;
                padding: 1rem;
                box-shadow: 0 5px 10px rgba(0,0,0,0.1);
                display: none;
            }
            
            .nav-links.active {
                display: flex;
            }
            
            .nav-links a {
                margin: 0.5rem 0;
            }
            
            .mobile-menu {
                display: block;
            }
            
            .hero-title {
                font-size: 2rem;
            }
        }
       

/* NEWS SECTION STYLES */

.news-section {
    padding: 10px 0;
    background-color: var(--light);
}

.news-layout {
    display: flex;
    gap: 30px;
}

.news-sidebar-left {
    width: 25%;
    min-width: 250px;
    background-color: var(--primary); /* Warna biru gelap */
    color: white;
    border-radius: 10px;
    padding: 20px 10px;
    height: fit-content;
}

.news-sidebar-left h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px; /* Batasi tinggi list */
    overflow-y: auto; /* Aktifkan scrollbar */
}

/* Scrollbar Customization (Opsional) */
.news-list::-webkit-scrollbar {
    width: 8px;
    border-radius: 4px;
}

.news-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.news-item-left {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.news-item-left:last-child {
    border-bottom: none;
}

.news-icon {
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
    background-color: white;
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.news-meta-left {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.news-title-left {
    font-size: 0.9rem;
    line-height: 1.3;
    font-weight: 500;
    color: white;
    display: block; /* Agar link memenuhi ruang */
}

.news-title-left:hover {
    color: var(--gray-200);
}

.caption-meta {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.caption-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.caption-details {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.btn-read {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.btn-read:hover {
    background-color: var(--primary-dark);
}


/* RIGHT TABS/LIST STYLES */
.news-sidebar-right {
    width: 30%;
    min-width: 280px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.news-header h2 {
    font-size: 2rem;
    color: var(--dark);
}

.news-tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.news-tab-btn {
    padding: 10px 15px;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.news-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.news-tab-content {
    display: none;
}

.news-tab-content.active {
    display: block;
}

.news-item-right {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
}

.news-item-right:last-child {
    border-bottom: none;
}

.news-item-right a {
    font-weight: 600;
    color: var(--dark);
    display: block;
    line-height: 1.4;
}

.news-item-right a:hover {
    color: var(--primary);
}

.news-meta-right {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-top: 5px;
}

/* NEWS MAIN/SLIDER SECTION */
.news-main {
    /* Atur tinggi eksplisit untuk news-main */
    /* Ganti 450px dengan tinggi yang Anda inginkan */
    height: 500px; 
    position: relative; 
    flex-grow: 1;
    width: 45%; 
    min-width: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.main-slider-container {
    height: 100%; /* Penting: Isi tinggi news-main */
}

.slider-item {
    position: relative;
    height: 100%; /* Penting: Isi tinggi main-slider-container */
}

.slider-item img {
    width: 100%;
    height: 100%; /* Penting: Gambar mengisi tinggi slide item */
    object-fit: cover;
    display: block;
}

.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* Ubah background gradient agar lebih menutup judul */
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 40%, transparent 100%); 
    padding: 2rem 1.5rem;
    color: white;
}

.caption-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem; /* Kurangi margin agar judul lebih naik */
    line-height: 1.2;
    /* Tambahkan ini agar judul berada di atas segalanya */
    position: relative; 
    z-index: 5;
}

/* SLIDER ARROWS (Panah Navigasi) */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4); 
    color: white; 
    border: none;
    padding: 10px 15px; 
    cursor: pointer;
    z-index: 30; /* Tingkatkan Z-index agar pasti terlihat di atas caption */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.slider-arrow:hover {
    opacity: 1;
}

.slider-prev {
    left: 10px; 
    border-radius: 50%; /* Membuat tombol menjadi bulat (opsional) */
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-next {
    right: 10px; 
    border-radius: 50%; /* Membuat tombol menjadi bulat (opsional) */
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Fix untuk tombol panah yang menumpuk di gambar yang Anda kirim sebelumnya */
.slider-item button:first-child {
    left: 10px;
    right: auto; /* Pastikan tombol prev tidak mendapatkan properti right */
}

.slider-item button:last-child {
    right: 10px;
    left: auto; /* Pastikan tombol next tidak mendapatkan properti left */
}

/* ========================================================== */
/* ==== CSS BARU UNTUK RESPONSIVITAS BAGIAN BERITA ==== */
/* ========================================================== */

/* Aturan dasar untuk layout berita */
.news-layout {
    display: grid;
    grid-template-columns: 1fr; /* Default: satu kolom untuk mobile */
    gap: 2rem;
}

/* Aturan untuk layar besar (desktop) */
@media (min-width: 992px) {
    .news-layout {
        /* Layout tiga kolom di desktop */
        grid-template-columns: 3fr 5fr 4fr; /* Rasio kolom kiri, tengah, kanan */
    }
}

/* Penyesuaian untuk Kolom Kiri */
.news-sidebar-left h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

/* Penyesuaian untuk Slider */
.main-slider-container {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    height: 450px; /* Beri tinggi tetap agar tidak "loncat" saat gambar dimuat */
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tombol Navigasi Slider */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}
.slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.6);
}
.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }

/* Indikator Dots Slider */
.slider-indicator-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.dot.active {
    background-color: white;
}

/* Aturan untuk layar kecil (tablet & mobile) */
@media (max-width: 991px) {
    .news-layout {
        /* Urutan bisa diatur jika perlu, tapi defaultnya sudah benar (kiri, tengah, kanan) */
    }

    .main-slider-container {
        height: 350px; /* Perkecil tinggi slider di tablet */
    }
}

@media (max-width: 767px) {
    .main-slider-container {
        height: 250px; /* Perkecil lagi tinggi slider di HP */
    }
    
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}