    :root {
            --primary-yellow: #fdd30c;
            --primary-red: #DC2626;
            --dark-bg: #1F2937;
            --light-bg: #F9FAFB;
            --text-dark: #111827;
            --text-light: #F9FAFB;
            --text-gray: #6B7280;
            --radius: 8px;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
            background-color: var(--light-bg);
            color: var(--text-dark);
            line-height: 1.6;
        }

        /* Header Styles */
        header {
            background: linear-gradient(135deg, var(--primary-yellow), #eab308);
            padding: 0.8rem 1rem;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: var(--shadow);
        }

        .header-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: var(--text-dark);
            font-weight: 800;
            font-size: 1.6rem;
        }

        .logo img {
            height: 40px;
            margin-right: 10px;
        }

        /* Navigation - Improved with Search */
        .main-nav {
            background: var(--dark-bg);
            position: sticky;
            top: 68px; /* Adjusted based on header height */
            z-index: 999;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .nav-menu {
            display: flex;
            list-style: none;
            align-items: center;
            margin: 0;
            padding: 0;
        }

        .nav-item {
            position: relative;
        }

        .nav-link {
            display: flex;
            align-items: center;
            color: var(--text-light);
            text-decoration: none;
            padding: 1rem 1.2rem;
            font-weight: 500;
            transition: var(--transition);
            white-space: nowrap;
        }

        .nav-link:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .nav-link.active {
            background: var(--primary-yellow);
            color: var(--text-dark);
        }

        .nav-link i {
            margin-right: 8px;
            font-size: 1rem;
        }

        /* Search in Navbar */
        .nav-search-container {
            position: relative;
            margin-left: 1rem;
        }

        .nav-search-box {
            padding: 0.6rem 1rem;
            border: 2px solid transparent;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.15);
            color: var(--text-light);
            font-size: 0.9rem;
            width: 220px;
            transition: var(--transition);
        }

        .nav-search-box:focus {
            outline: none;
            border-color: var(--primary-yellow);
            background: rgba(255, 255, 255, 0.25);
            width: 280px;
        }

        .nav-search-box::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }

        .nav-search-btn {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            background: transparent;
            border: none;
            color: var(--text-light);
            cursor: pointer;
            padding: 0.4rem;
        }

        .menu-toggle {
            display: none;
            background: none;
            border: none;
            color: var(--text-dark);
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
        }

        /* Mobile Navigation */
        .mobile-nav {
            display: none;
            background: var(--dark-bg);
            position: fixed;
            top: 0;
            left: 0;
            width: 280px;
            height: 100vh;
            z-index: 1001;
            transform: translateX(-100%);
            transition: transform 0.3s ease;
            overflow-y: auto;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        }

        .mobile-nav.active {
            transform: translateX(0);
        }

        .mobile-nav-header {
            padding: 1.5rem 1rem;
            background: rgba(0, 0, 0, 0.2);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .mobile-nav-logo {
            color: var(--primary-yellow);
            font-weight: 700;
            font-size: 1.2rem;
        }

        .close-menu {
            background: none;
            border: none;
            color: var(--text-light);
            font-size: 1.5rem;
            cursor: pointer;
        }

        .mobile-nav-menu {
            list-style: none;
            padding: 1rem 0;
        }

        .mobile-nav-item {
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .mobile-nav-link {
            display: flex;
            align-items: center;
            color: var(--text-light);
            text-decoration: none;
            padding: 1rem 1.5rem;
            transition: var(--transition);
        }

        .mobile-nav-link:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .mobile-nav-link.active {
            background: var(--primary-yellow);
            color: var(--text-dark);
        }

        .mobile-nav-link i {
            margin-right: 12px;
            width: 20px;
            text-align: center;
        }

        /* Mobile Search in Nav */
        .mobile-search-container {
            padding: 1rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .mobile-search-box {
            width: 100%;
            padding: 0.8rem 1rem;
            border: 2px solid transparent;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.15);
            color: var(--text-light);
            font-size: 1rem;
        }

        .mobile-search-box:focus {
            outline: none;
            border-color: var(--primary-yellow);
            background: rgba(255, 255, 255, 0.25);
        }

        .mobile-search-box::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }

        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
        }

        .overlay.active {
            display: block;
        }

        /* Ad Banner - Improved Spacing */
 .ad-banner {
  width: 100%;
  height: 90px;
  overflow: hidden;
  margin: 0 auto;
  background: #f5f5f5;
}

.ad-slider {
  display: flex;
  width: max-content;
  animation: slide 20s linear infinite;
}

.ad-slider img {
  width: 728px;
  height: 90px;
  object-fit: cover;
  
  margin: 0;     /* buang margin antar gambar */
  padding: 0;    /* buang padding */
  border: none;  /* pastikan ga ada border */
}





        /* Main Content */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 1.5rem;
        }

        .section-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 3px solid var(--primary-yellow);
            display: inline-block;
        }

        /* Grid Layouts */
        .grid-large {
            display: grid;
            gap: 1.5rem;
        }

        .grid-small {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
        }

        /* News Cards */
        .news-card-large, .news-card-small {
            background: white;
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            text-decoration: none;
            color: var(--text-dark);
            display: block;
            height: 100%;
        }

        .news-card-large:hover, .news-card-small:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        }

        /* Large Card */
        .card-img-large {
            height: 250px;
            overflow: hidden;
        }

        .card-img-large img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .news-card-large:hover .card-img-large img {
            transform: scale(1.05);
        }

        .card-content-large {
            padding: 1.5rem;
        }

        .card-title-large {
            font-size: 1.4rem;
            margin-bottom: 0.75rem;
            font-weight: 700;
            line-height: 1.3;
        }

        .card-excerpt-large {
            color: var(--text-gray);
            margin-bottom: 1rem;
            line-height: 1.5;
        }

        .card-date-large {
            font-size: 0.85rem;
            color: var(--text-gray);
        }

        /* Small Card */
        .card-img-small {
            height: 180px;
            overflow: hidden;
        }

        .card-img-small img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .news-card-small:hover .card-img-small img {
            transform: scale(1.05);
        }

        .card-content-small {
            padding: 1.2rem;
        }

        .card-title-small {
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
            font-weight: 600;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .card-date-small {
            font-size: 0.8rem;
            color: var(--text-gray);
        }

        /* Article Card */
        .article-card {
            background: white;
            border-radius: var(--radius);
            padding: 1.5rem;
            box-shadow: var(--shadow);
            transition: var(--transition);
            text-decoration: none;
            color: var(--text-dark);
            border-left: 4px solid var(--primary-yellow);
            display: block;
        }

        .article-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
        }

        .article-title {
            font-size: 1.2rem;
            margin-bottom: 0.75rem;
            font-weight: 600;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .article-excerpt {
            color: var(--text-gray);
            margin-bottom: 1rem;
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .article-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            color: var(--text-gray);
            border-top: 1px solid #eee;
            padding-top: 0.75rem;
        }

        .no-results {
            background: white;
            padding: 2rem;
            text-align: center;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            color: var(--text-gray);
            grid-column: 1 / -1;
        }

        /* Footer - Improved Layout */
        footer {
            background: var(--dark-bg);
            color: var(--text-light);
            padding: 3rem 1rem 1.5rem;
            margin-top: 3rem;
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
        }

        .footer-brand {
            font-size: 1.8rem;
            font-weight: 800;
            margin-bottom: 1rem;
            color: var(--primary-yellow);
        }

        .footer-about {
            color: #d1d5db;
            line-height: 1.6;
            margin-bottom: 1.5rem;
        }

        .footer-heading {
            font-size: 1.2rem;
            margin-bottom: 1.2rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--primary-yellow);
            display: inline-block;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.8rem;
        }

        .footer-links a {
            color: #d1d5db;
            text-decoration: none;
            transition: var(--transition);
            display: flex;
            align-items: center;
        }

        .footer-links a:hover {
            color: var(--primary-yellow);
        }

        .footer-links i {
            margin-right: 10px;
            width: 16px;
        }

        .footer-bottom {
            text-align: center;
            margin-top: 3rem;
            padding-top: 1.5rem;
            border-top: 1px solid #374151;
            color: #9ca3af;
            grid-column: 1 / -1;
        }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-light);
            transition: var(--transition);
        }

        .social-links a:hover {
            background: var(--primary-yellow);
            color: var(--text-dark);
        }

        /* Responsive Styles */
        @media (max-width: 1024px) {
            .nav-search-box {
                width: 180px;
            }
            
            .nav-search-box:focus {
                width: 220px;
            }
            
            .grid-small {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 900px) {
            .nav-search-container {
                display: none;
            }
            
            .nav-link {
                padding: 1rem 0.7rem;
                font-size: 0.9rem;
            }
            
            .nav-link i {
                font-size: 0.9rem;
            }

            .footer-container {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .menu-toggle {
                display: block;
            }
            
            .main-nav {
                display: none;
            }
            
            .mobile-nav {
                display: block;
            }
            
            /* === CHANGED: Berita Lainnya menjadi 3 kolom di mobile === */
            .grid-small {
                grid-template-columns: repeat(3, 1fr);
                gap: 0.75rem; /* Perkecil jarak agar pas */
            }
            .grid-large { /* Grid berita terbaru tetap 1 kolom */
                 grid-template-columns: 1fr;
            }
            
            /* === CHANGED: Tinggi card mobile dikurangi === */
            .card-img-large {
                height: 180px;
            }
            .card-img-small {
                height: 120px;
            }
            
            .card-content-large {
                padding: 1rem;
            }
            .card-title-large {
                font-size: 1.2rem;
            }
            
            /* Penyesuaian konten untuk card 3 kolom di mobile */
            .card-content-small {
                padding: 0.75rem;
            }
            .card-title-small {
                font-size: 0.8rem;
                line-height: 1.2;
                -webkit-line-clamp: 3;
                margin-bottom: 0.25rem;
            }
            .card-date-small {
                font-size: 0.7rem;
            }
            
            .article-card {
                padding: 1rem;
            }
            
            .article-title {
                font-size: 1.1rem;
            }
            
            /* === CHANGED: Footer mobile dirapikan === */
            .footer-container {
                grid-template-columns: 1fr;
                text-align: left; /* Ubah dari center ke left */
                gap: 2rem;
            }
            
            .footer-links a {
                justify-content: flex-start; /* Ubah dari center */
            }
            .social-links {
                 justify-content: flex-start; /* Ubah dari center */
            }

            .footer-bottom {
                text-align: center; /* Teks copyright tetap di tengah */
            }
            
            footer {
                padding: 2rem 1rem 1rem;
            }
        }

        @media (max-width: 640px) {
            .container {
                padding: 1rem;
            }
            
            .section-title {
                font-size: 1.5rem;
            }

            .ad-banner {
                padding: 0.5rem;
            }
            
            .ad-banner img {
                height: 80px;
            }
        }

        @media (max-width: 480px) {
            .logo {
                font-size: 1.3rem;
            }
            
            .logo img {
                height: 35px;
            }
            
            /* === CHANGED: Penyesuaian tinggi card di layar sangat kecil === */
            .card-img-large {
                height: 160px;
            }
            
            .card-img-small {
                height: 110px;
            }
            
            .footer-brand {
                font-size: 1.5rem;
            }
            
            .footer-heading {
                font-size: 1.1rem;
            }
            
            .footer-about, .footer-links a {
                font-size: 0.9rem;
            }
        }
        /* === Running Ads Banner === */
.ad-banner {
  max-width: 1200px;
}

.ad-slider {
  display: flex;

  width: max-content; /* biar panjangnya sesuai isi */
  animation: slideAds 25s linear infinite;
}



/* Animasi iklan jalan kanan ➝ kiri */
@keyframes slideAds {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%); /* karena isinya diduplikasi */
  }
}
