        /* --- Global Styles & Variables --- */
        :root {
            --primary-color: #0D47A1; /* Biru Tua */
            --secondary-color: #1976D2; /* Biru Lebih Terang */
            --text-color: #333;
            --gray-text: #5f6368;
            --light-gray: #f8f9fa;
            --white-color: #fff;
            --font-family: 'Poppins', sans-serif;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--font-family);
            color: var(--text-color);
            line-height: 1.6;
            background: url("frontend/img/bg/Bg 2.png") repeat center center / contain;
        }

        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 20px;

        }

        a {
            text-decoration: none;
            color: var(--secondary-color);
        }

        h1, h2, h3 {
            font-weight: 600;
            margin-bottom: 1rem;
        }

        /* --- Header Minimalis --- */
        .main-header {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            padding: 1.5rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 100;
        }

        .header-logo img {
            height: 60px;
        }
        
        /* --- New Hero Section (Tampilan Utama) --- */
        .hero-section {
            height: 100vh;
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 2rem;
            background: url("bg/Bg 2.png") no-repeat center center / cover;
        }

        .main-logo {
            font-size: 4rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
            letter-spacing: -2px;
        }

        .main-logo span {
            display: inline-block;
            opacity: 0;
            transform: translateY(20px);
            animation: fadeUpLetter 0.6s ease-out forwards;
        }

        @keyframes fadeUpLetter {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .main-logo .char1 { color: #4285F4; animation-delay: 0.1s; }
        .main-logo .char2 { color: #EA4335; animation-delay: 0.2s; }
        .main-logo .char3 { color: #FBBC05; animation-delay: 0.3s; }
        .main-logo .char4 { color: #4285F4; animation-delay: 0.4s; }
        .main-logo .char5 { color: #34A853; animation-delay: 0.5s;}
        .main-logo .char6 { color: #EA4335; animation-delay: 0.6s;}
        .main-logo .char7 { color: #FBBC05; animation-delay: 0.7s;}
        .main-logo .char8 { color: #4285F4; animation-delay: 0.8s;}
        .main-logo .char9 { color: #34A853; animation-delay: 0.9s;}

        .tagline {
            color: var(--gray-text);
            margin-bottom: 2rem;
            font-size: 1.2rem;
            opacity: 0;
            animation: fadeIn 1s ease-out 1.2s forwards;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        .search-container {
            width: 100%;
            max-width: 580px;
            margin-bottom: 2rem;
            position: relative;
        }

        .search-input {
            width: 100%;
            padding: 1rem 3.5rem 1rem 1.5rem;
            border: 1px solid #dfe1e5;
            border-radius: 100px;
            font-size: 1rem;
            font-family: var(--font-family);
        }

        .search-input:focus {
            outline: none;
            box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
        }
        
        .search-button {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            font-size: 1.2rem;
            color: var(--primary-color);
        }
        
        .quick-links-grid {
            display: flex;
            gap: 1.5rem;
            justify-content: center;
            flex-wrap: wrap;

        }

        .quick-links-grid-content {
            display: flex;
            gap: 1.5rem;
            justify-content: center;
            flex-wrap: wrap;
            background-color: var(--white-color);
            padding: 0.5rem;
            border-radius: 9999px;
            box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);

        }

        .quick-link-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: var(--text-color);
            font-size: 0.9rem;
            text-align: center;
            cursor: pointer;
            width: 80px;
        }

        .quick-link-item .icon-wrapper {
            width: 60px;
            height: 60px;
            border-radius: 15px;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 0.75rem;
            font-size: 1.8rem;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        
        .quick-link-item:hover .icon-wrapper {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px -5px var(--color-shadow);
        }
        
        .quick-link-item:nth-child(1) .icon-wrapper { --color-shadow: rgba(26,115,232,0.4); background-color: #e8f0fe; color: #1a73e8; }
        .quick-link-item:nth-child(2) .icon-wrapper { --color-shadow: rgba(52,168,83,0.4); background-color: #e6f4ea; color: #34a853; }
        .quick-link-item:nth-child(3) .icon-wrapper { --color-shadow: rgba(251,188,5,0.4); background-color: #fff8e1; color: #fbbc05; }
        .quick-link-item:nth-child(4) .icon-wrapper { --color-shadow: rgba(234,67,53,0.4); background-color: #fce8e6; color: #ea4335; }
        .quick-link-item:nth-child(5) .icon-wrapper { --color-shadow: rgba(110,121,133,0.4); background-color: #e8eaed; color: #6e7985; }

        .scroll-down-indicator {
            position: absolute;
            bottom: 2rem;
            font-size: 1.5rem;
            color: var(--gray-text);
            animation: bounce 2s infinite;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-15px);
            }
            60% {
                transform: translateY(-8px);
            }
        }


        /* --- Content Sections (Layanan, Berita, etc) --- */
        .content-section {
            background: var(--white-color);
            background: url("bg/Bg 2.png") no-repeat center center / cover;
            
        }
        
        #layanan {
            background: url("bg/Bg 2.png") no-repeat center center / cover;
            min-height: 100vh;
        }

        .section-title {
            text-align: center;
            margin-bottom: 2rem;
        }

        .section-title h2 {
            font-size: 2.2rem;
            color: var(--primary-color);
        }

        .slider-container {
            position: relative;
            display: flex;
            align-items: center;
            overflow: hidden;
        }

        .section-title p {
            font-size: 1.1rem;
            color: #666;
        }

        .btn {
            display: inline-block;
            background: var(--primary-color);
            color: var(--white-color);
            padding: 12px 25px;
            border-radius: 5px;
            font-weight: 500;
            transition: background 0.3s ease;
        }

        .btn:hover {
            background: var(--secondary-color);
        }
        
        .btn-secondary {
            background: #6c757d;
        }
        .btn-secondary:hover {
            background: #5a6268;
        }

        .text-center {
            text-align: center;
            margin-top: 2rem;
        }
        
        .layanan-grid {
            display: flex;
            grid-template-columns: repeat(4, 1fr);
            gap: 2rem;
            overflow-x: auto;
            scroll-behavior: smooth;
            scrollbar-width: none;
            padding: 20px 10px;
        }

        .layanan-grid-coba {
            display: flex;
            grid-template-columns: repeat(4, 1fr);
            gap: 2rem;
            overflow-x: auto;
            scroll-behavior: smooth;
            scrollbar-width: none;
            padding: 20px 10px;
        }

        .layanan-grid-loket {
            display: flex;
            grid-template-columns: repeat(4, 1fr);
            gap: 2rem;
            overflow-x: auto;
            scroll-behavior: smooth;
            scrollbar-width: none;
            padding: 20px 10px;
        }

        .layanan-grid-statistik {
            display: flex;
            grid-template-columns: repeat(4, 1fr);
            gap: 2rem;
            overflow-x: auto;
            scroll-behavior: smooth;
            scrollbar-width: none;
            padding: 20px 10px;
        }

        .layanan-grid::-webkit-scrollbar {
            display: none;
        }

        .layanan-grid-coba::-webkit-scrollbar {
            display: none;
        }

        .layanan-grid-loket::-webkit-scrollbar {
            display: none;
        }

        .layanan-grid-statistik::-webkit-scrollbar {
            display: none;
        }

        .layanan-card {
            background: var(--white-color);
            padding: 2rem;
            text-align: center;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
            min-width: 300px;
            padding: 2.5rem 2rem;
        }

        .layanan-card:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        }

        .layanan-card i {
            color: var(--primary-color);
            margin-bottom: 1rem;
        }

        .prev-btn, .next-btn, .prev-btn-coba, .next-btn-coba, .prev-btn-loket, .next-btn-loket {
            background-color: #10ad49;
            border: none;
            color: #fff;
            padding: 10px 15px;
            font-size: 20px;
            border-radius: 50%;
            cursor: pointer;
            transition: 0.3s;
            z-index: 1;
        }


        .prev-btn:hover, .next-btn:hover, .prev-btn-coba:hover, .next-btn-coba:hover, .prev-btn-loket:hover, .next-btn-loket:hover {
            background-color: #cf711f;
        }


        .prev-btn, .prev-btn-coba, .prev-btn-loket {
            left: 20px;
        }


        .next-btn, .next-btn-coba, .next-btn-loket {
            right: 50px;
        }


        .layanan-grid-coba img {
            width: 100%;
            height: 140px;
            border-radius: 15px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.15);
            object-fit: contain;
        }

        .layanan-grid img {
            width: 100%;
            height: 140px;
            border-radius: 15px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.15);
            object-fit: contain;
        }

        .layanan-grid-loket img {
            width: 100%;
            height: 140px;
            border-radius: 15px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.15);
            object-fit: contain;
        }

        .layanan-grid-statistik img {
            width: 100%;
            height: 140px;
            border-radius: 15px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.15);
            object-fit: contain;
        }

        .berita-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
        }

        .berita-card {
            background: var(--white-color);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;

        }

        .berita-card:hover {
            transform: translateY(-5px);
        }

        .berita-card img {
            width: 100%;
            height: 400px;
            object-fit: cover;
        }
        
        .card-content {
            padding: 1.5rem;
        }

        .card-content .category {
            display: inline-block;
            background: var(--accent-color);
            color: var(--text-color);
            padding: 2px 10px;
            font-size: 0.8rem;
            font-weight: 600;
            border-radius: 20px;
            margin-bottom: 0.5rem;
        }

        .card-content h3 {
            font-size: 1.1rem;
            line-height: 1.4;
            margin-bottom: 0.5rem;
        }
        
        .card-content .meta {
            font-size: 0.85rem;
            color: #777;
            margin-bottom: 0.5rem;
        }
        
        .card-content .excerpt {
            font-size: 0.9rem;
            color: #555;
        }

        /* --- Footer --- */
        footer {
            background: #10ad49;
            color: #e0e0e0;
            padding-top: 3rem;
        }

        .footer-container {
            display: grid;
            grid-template-columns: 2fr 1.5fr 1.5fr;
            gap: 1rem;
            padding-bottom: 3rem;
        }

        .footer-about .logo img {
            height: 50px;
            margin-right: 15px;
        }
        .footer-about .logo-text {
             display: flex;
             flex-direction: column;
        }
        .footer-about .logo-text span, .footer-about .logo-text strong {
            color: var(--white-color);
        }
        .footer-about .logo {
            display:flex;
            align-items:center;
        }
        .footer-about p {
            margin-top: 1rem;
            max-width: 300px;
        }

        .footer-links h4, .footer-kontak h4 {
            color: var(--white-color);
            margin-bottom: 1rem;
        }
        
        .footer-links ul {
            list-style: none;
        }

        .footer-links ul li a {
            color: #e0e0e0;
            margin-bottom: 0.5rem;
            display: inline-block;
        }
        .footer-links ul li a:hover {
            color: var(--accent-color);
        }
        
        .footer-kontak p {
            margin-bottom: 0.5rem;
        }
        .footer-kontak i {
            margin-right: 10px;
        }

        .social-media a {
            color: var(--white-color);
            font-size: 1.5rem;
            margin-right: 15px;
        }
        .social-media a:hover {
            color: var(--accent-color);
        }
        
        .footer-bottom {
            text-align: center;
            padding: 1rem 0;
            border-top: 1px solid #009a38;
        }

        /* Popup Overlay */
        .popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 1000;

        }


        /* Popup Box */
        .popup-box {
        background: #fff;
        border-radius: 16px;
        padding: 30px;
        width: 70%;
        height:70vh;
        max-width: 900px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        text-align: center;
        position: relative;
        animation: fadeIn 0.3s ease;
        max-height: 70vh; 
        overflow-y: auto; 
    
        }


        @keyframes fadeIn {
        from { opacity: 0; transform: scale(0.9); }
        to { opacity: 1; transform: scale(1); }
        }


        /* Tombol Tutup */
        .close-btn {
        position: absolute;
        top: 10px;
        right: 15px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #333;
        }


        /* Isi Popup */
        .popup-content {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
        margin-top: 20px;

        }


        .popup-item {
        background: #f9f9f9;
        border-radius: 12px;
        padding: 15px;
        transition: 0.3s;
                /* Menengahkan semua item di dalamnya (flex) */
    display: flex;
    flex-direction: column;
    align-items: center;
        }


        .popup-item:hover {
        background: #e0f2f1;
        transform: scale(1.05);
        }


        .popup-item img {
        width: 40px;
        height: 40px;
        }


        .popup-item p {
        margin-top: 8px;
        font-size: 14px;
        font-weight: 500;
        }

        iframe {
        width: 100%;
        height: 400px;
        border: 0;
        border-radius: 12px;
        }


        /* Pengumuman*/
        .modal-container {
            background-color: #1e3a8a; /* bg-blue-900 */
            color: white;
            border-radius: 0.75rem; /* rounded-xl */
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* shadow-2xl */
            width: 100%;
            max-width: 42rem; /* max-w-2xl */
            overflow: hidden;
            /* TAMBAHAN UNTUK KE TENGAH */
            margin-left: auto;
            margin-right: auto;
            /* TAMBAHAN UNTUK JARAK BAWAH */
            margin-bottom: 2rem;
            margin-top: 2rem;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem; /* p-3 */
            background-color: rgba(23, 37, 84, 0.5); /* bg-blue-950 bg-opacity-50 */
        }
        .modal-header span {
            font-weight: 600; /* font-semibold */
        }
        .modal-controls {
            display: flex;
            gap: 0.5rem; /* space-x-2 */
        }
        .modal-controls button {
            padding: 0.25rem; /* p-1 */
            border-radius: 9999px; /* rounded-full */
            border: none;
            background-color: transparent;
            color: white;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        .modal-controls button:hover {
            background-color: #2563eb; /* hover:bg-blue-700 */
        }
        .modal-controls button.close-btn:hover {
            background-color: #ef4444; /* hover:bg-red-500 */
        }
        .modal-controls button i {
            width: 1rem; /* w-4 */
            height: 1rem; /* h-4 */
        }

        .modal-body {
            padding: 1rem; /* p-4 */
            display: flex;
            flex-direction: column;
            gap: 0.75rem; /* space-y-3 */
            max-height: 70vh;
            overflow-y: auto;
        }

        .article-item {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem; /* space-x-3 */
            padding: 0.75rem; /* p-3 */
            background-color: #1e40af; /* bg-blue-800 */
            border-radius: 0.5rem; /* rounded-lg */
            transition: background-color 0.2s;
            cursor: pointer;
            text-decoration: none;
            color: white;
        }
        .article-item:hover {
            background-color: #1d4ed8; /* hover:bg-blue-700 */
        }

        .article-icon {
            flex-shrink: 0;
            background-color: #1d4ed8; /* bg-blue-700 */
            padding: 0.5rem; /* p-2 */
            border-radius: 9999px; /* rounded-full */
        }
        .article-icon i {
            width: 1.5rem; /* w-6 */
            height: 1.5rem; /* h-6 */
            display: block;
        }

        .article-content {
            flex: 1; /* flex-1 */
            overflow: hidden; /* MENCEGAH KONTEN 'BOCOR' */
        }
        .article-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.75rem; /* text-xs */
            color: #93c5fd; /* text-blue-300 */
            margin-bottom: 0.25rem; /* mb-1 */
        }
        .article-title {
            font-weight: 500; /* font-medium */
            font-size: 0.875rem; /* text-sm */
            margin: 0;

            /* TAMBAHAN UNTUK MEMOTONG TEKS (2 BARIS) */
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2; /* Atur jumlah baris */
            -webkit-box-orient: vertical;
        }

        /* STYLE BARU UNTUK DESKRIPSI SINGKAT */
        .article-excerpt {
            font-size: 0.8rem;
            color: #dbeafe; /* Sedikit lebih redup (biru muda) */
            margin-top: 0.25rem;
            
            /* UNTUK MEMOTONG TEKS (2 BARIS) */
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2; /* Atur jumlah baris */
            -webkit-box-orient: vertical;
        }
.stats-grid {
            display: grid;
            grid-template-columns: repeat(1, minmax(0, 1fr)); /* grid-cols-1 */
            gap: 2rem; /* gap-8 */
        }

        .stat-card {
            background-color: #ffffff; /* bg-white */
            padding: 2rem; /* p-8 */
            border-radius: 1rem; /* rounded-2xl */
            box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); /* shadow-lg */
            border: 1px solid #f3f4f6; /* border border-gray-100 */
            text-align: center;
            transition-property: all;
            transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
            transition-duration: 300ms; /* transition-all duration-300 */
        }

        .stat-card:hover {
            box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); /* hover:shadow-xl */
            transform: translateY(-0.25rem); /* hover:-translate-y-1 */
        }

        .icon-wrapper {
            margin-left: auto;
            margin-right: auto;
            display: flex;
            height: 4rem; /* h-16 */
            width: 4rem; /* w-16 */
            align-items: center;
            justify-content: center;
            border-radius: 9999px; /* rounded-full */
        }

        .icon-wrapper.blue {
            background-color: #dbeafe; /* bg-blue-100 */
            color: #2563eb; /* text-blue-600 */
        }
        
        .icon-wrapper.green {
            background-color: #d1fae5; /* bg-green-100 */
            color: #059669; /* text-green-600 */
        }

        .icon-wrapper.purple {
            background-color: #ede9fe; /* bg-purple-100 */
            color: #7c3aed; /* text-purple-600 */
        }
        
        .icon-wrapper svg {
            height: 2rem; /* h-8 */
            width: 2rem; /* w-8 */
        }

        .card-label {
            margin-top: 1.5rem; /* mt-6 */
            font-size: 1rem; /* text-base */
            line-height: 1.5rem;
            font-weight: 600; /* font-semibold */
            color: #6b7280; /* text-gray-500 */
            text-transform: uppercase;
            letter-spacing: 0.05em; /* tracking-wider */
            margin-bottom: 0;
        }

        .card-number {
            margin-top: 0.5rem; /* mt-2 */
            font-size: 3rem; /* text-5xl */
            line-height: 1;
            font-weight: 700; /* font-bold */
            color: #111827; /* text-gray-900 */
            margin-bottom: 0;
        }

        /* --- Responsive Design --- */
        @media (max-width: 992px) {
            .layanan-grid, .berita-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .footer-container {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 768px) {
            .main-logo { font-size: 3rem; }
            .layanan-grid, .berita-grid {
                grid-template-columns: 1fr;
            }
            .footer-container {
                grid-template-columns: 1fr;
                text-align: center;
            }
            .footer-about .logo { justify-content: center; }
            .footer-about p {
                margin-left: auto;
                margin-right: auto;
            }
            .quick-links-grid { gap: 1rem; }
            .quick-link-item .icon-wrapper { width: 50px; height: 50px; font-size: 1.5rem; }
            .quick-link-item { font-size: 0.8rem; }
        }