 :root {
            --primary-color: #2d6a4f;
            --secondary-color: #40916c;
            --accent-color: #52b788;
            --light-color: #d8f3dc;
            --dark-color: #081c15;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f8f9fa;
        }
        
        .navbar {
            background-color: var(--primary-color);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .navbar-brand {
            font-weight: 700;
            color: white !important;
        }
        
        .navbar-nav .nav-link {
            color: rgba(255, 255, 255, 0.85) !important;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .navbar-nav .nav-link:hover {
            color: white !important;
        }
        
        .navbar-nav .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background-color: white;
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }
        
        .navbar-nav .nav-link:hover::after {
            width: 70%;
        }
        
        .dropdown-menu {
            border: none;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            border-radius: 0.5rem;
            margin-top: 0.5rem;
        }
        
        .dropdown-item {
            padding: 0.75rem 1.5rem;
            transition: all 0.3s ease;
        }
        
        .dropdown-item:hover {
            background-color: var(--light-color);
            color: var(--primary-color);
        }
        
        body {
        /* Mencegah scrollbar horizontal muncul di seluruh halaman */
        overflow-x: hidden; 
        }

        .hero-section {
            /* Mengatur latar belakang: gradien, gambar, tanpa pengulangan, posisi tengah, dan ukuran 'cover' */
            background: linear-gradient(rgba(8, 28, 21, 0.7), rgba(8, 28, 21, 0.7)), url('https://placehold.co/1920x600/2d6a4f/ffffff?text=Desa+Digital') no-repeat center center/cover;
            /* Mengatur tinggi elemen menjadi 100% dari tinggi viewport (layar) */
            height: 100vh;
            /* Mengatur lebar elemen menjadi 100% dari lebar viewport (layar) */
            width: 100vw;
            /* Menghilangkan margin dan padding bawaan */
            margin: 0;
            padding: 0;
            /* Mengatur posisi relatif. Penting agar konten di dalamnya bisa diposisikan absolut terhadapnya. */
            position: relative;
            /* Menyembunyikan konten yang meluap dari elemen itu sendiri (bisa jadi solusi tambahan) */
            overflow: hidden;
        }
                
        .hero-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            color: white;
            max-width: 800px;
            padding: 2rem;
            z-index: 1;
        }

        .hero-content h1 {
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .hero-content p {
            font-size: 1.25rem;
            margin-bottom: 2rem;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
        }

        .btn-primary {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
            padding: 0.75rem 2rem;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            color: white !important;
        }
        
        .btn-primary:hover {
            background-color: var(--secondary-color);
            border-color: var(--secondary-color);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(45, 106, 79, 0.4);
        }
        
        .section-title {
            position: relative;
            margin: 3rem 0 2rem;
            text-align: center;
        }
        
        .section-title h2 {
            font-size: 2.5rem;
            color: var(--primary-color);
            font-weight: 700;
            display: inline-block;
            padding-bottom: 1rem;
        }
        
        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background-color: var(--accent-color);
            border-radius: 2px;
        }
        
        .card {
            border: none;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            margin-bottom: 2rem;
            background-color: white;
        }
        
        .card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }
        
        .card-img-top {
            height: 200px;
            object-fit: cover;
        }
        
        .card-body {
            padding: 1.5rem;
        }
        
        .card-title {
            color: var(--primary-color);
            font-weight: 600;
            font-size: 1.25rem;
            margin-bottom: 0.75rem;
        }
        
        .card-text {
            color: #555;
            margin-bottom: 1rem;
            text-align: justify;
        }
        
        .stat-card {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            text-align: center;
            padding: 2rem;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }
        
        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }
        
        .stat-number {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        
        .stat-label {
            font-size: 1.1rem;
            font-weight: 500;
        }
        
        .category-section {
            background-color: var(--light-color);
            padding: 4rem 0;
        }
        
        .category-card {
            background-color: white;
            border-radius: 15px;
            padding: 2rem;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            height: 100%;
        }
        
        .category-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }
        
        .category-icon {
            font-size: 3rem;
            color: var(--primary-color);
            margin-bottom: 1.5rem;
        }
        
        .category-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 1rem;
        }
        
        .gallery-section {
            padding: 4rem 0;
            
        }
        
        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 15px;
            height: 250px;
            margin-bottom: 1.5rem;
        }
        
        .gallery-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .gallery-item:hover .gallery-img {
            transform: scale(1.1);
        }
        
        .gallery-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
            padding: 1rem;
            color: white;
            /* Hapus transform dan transition */
        }
                
        
        .news-section {
            padding: 2rem 0;
        }
        
        .news-item {
            border-left: 4px solid var(--primary-color);
            padding: 1.5rem;
            margin-bottom: 2rem;
            background-color: white;
            border-radius: 0 10px 10px 0;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
        }
        
        .news-item:hover {
            transform: translateX(10px);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
        }
        
        .news-date {
            color: var(--secondary-color);
            font-weight: 500;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
        }
        
        .news-title {
            color: var(--primary-color);
            font-weight: 600;
            font-size: 1.25rem;
            margin-bottom: 0.75rem;
        }
        
        .news-excerpt {
            color: #555;
            margin-bottom: 1rem;
        }
        
        .read-more {
            color: var(--primary-color);
            font-weight: 500;
            text-decoration: none;
        }
        
        .read-more:hover {
            text-decoration: underline;
        }
        
           /* Footer Styles */
    
        
        .slider-container {
            position: relative;
            height: 600px;
            overflow: hidden;
            margin-bottom: 3rem;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        }
        
        .slider-item {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1s ease;
        }
        
        .slider-item.active {
            opacity: 1;
        }
        
        .slider-img {
            width: 100%;
            height: 100%;
            object-fit: absolute;
        }
        
        .slider-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 2rem;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
            color: white;
        }
        
        .slider-title {
            font-size: 5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        
        .slider-text {
            font-size: 2rem;
            margin-bottom: 1rem;
        }
        
        .slider-controls {
            position: absolute;
            bottom: 1rem;
            right: 1rem;
            display: flex;
            gap: 0.5rem;
        }
        
        .slider-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .slider-dot.active {
            background-color: white;
            transform: scale(1.2);
        }
        
        @media (max-width: 750px) {
            .hero-section h1 {
                font-size: 2.5rem;
            }
            
            .section-title h2 {
                font-size: 2rem;
            }
            
            .stat-number {
                font-size: 2.5rem;
            }
        }
        /*akhirslider*/
        
    .hero-section {
        background: linear-gradient(rgba(8, 28, 21, 0.7), rgba(8, 28, 21, 0.7)), url('https://placehold.co/1920x600/2d6a4f/ffffff?text=Desa+Digital') no-repeat center center/cover;
        height: 100vh; /* Full height */
        width: 100vw; /* Full width */
        margin: 0;
        padding: 0;
        position: relative;
        overflow: hidden;
    }
    .hero-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        color: white;
        max-width: 800px;
        padding: 2rem;
        z-index: 1;
    }
    .hero-content h1 {
        font-size: 3.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    .hero-content p {
        font-size: 1.25rem;
        margin-bottom: 2rem;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    }
    .btn-primary {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        padding: 0.75rem 2rem;
        border-radius: 50px;
        font-weight: 600;
        transition: all 0.3s ease;
        text-decoration: none;
        display: inline-block;
        color: white !important;
    }
    .btn-primary:hover {
        background-color: var(--secondary-color);
        border-color: var(--secondary-color);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(45, 106, 79, 0.4);
    }


    footer {
            background-color: var(--primary-color);
            color: white;
            padding: 4rem 0 2rem;
        }
        .footer-title {
            color: var(--accent-color);
            font-weight: 600;
            margin-bottom: 1.5rem;
            font-size: 1.25rem;
        }
        .footer-link {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            margin-bottom: 0.5rem;
            display: block;
            transition: all 0.3s ease;
        }
        .footer-link:hover {
            color: var(--accent-color); 
            padding-left: 5px;
        }
        .social-icons a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            color: white;
            border-radius: 50%;
            margin-right: 10px;
            transition: all 0.3s ease;
        }
        .social-icons a:hover {
            background-color: var(--primary-color); /* ✅ Gunakan warna primer saat hover */
            transform: translateY(-3px);
        }
        .copyright {
            background-color: var(accent-color);
            padding: 1.5rem 0;
            margin-top: 3rem;
            text-align: center;
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
        }

        .btn-whatsapp {
            display: inline-block;
            padding: 8px 16px;
            background-color: #25D366;
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-family: sans-serif;
            font-size: 16px;
            font-weight: bold;
            transition: background-color 0.3s ease;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .btn-whatsapp:hover {
            background-color: #128C7E;
        }

        .btn-whatsapp i {
            font-size: 20px;
        }

