:root {
    --primary: #2563eb;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

body { 
    background-color: var(--light); 
    color: var(--dark); 
    line-height: 1.6; 
}

/* Navbar */
nav { 
    background-color: white; 
    padding: 1rem 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}
.logo { 
    font-size: 1.5rem; 
    font-weight: bold; 
    color: var(--primary); 
    text-decoration: none; 
}
.logo span {
    color: var(--dark);
}
.nav-links a { 
    margin-left: 2rem; 
    text-decoration: none; 
    color: var(--dark); 
    font-weight: 500; 
    transition: color 0.3s; 
}
.nav-links a:hover { 
    color: var(--primary); 
}

/* ==========================================================================
   PERBAIKAN HERO SECTION: Menambahkan Gambar Online & Overlay Transparan
   ========================================================================== */
.hero { 
    position: relative; /* Wajib agar overlay berada tepat di atas background */
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    padding: 120px 5%; 
    
    /* Memuat gambar coding/teknologi secara online */
    background-image: url('https://images.unsplash.com/photo-1605379399642-870262d3d051?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efek paralaks halus saat di-scroll */
    
    color: white; 
    min-height: 70vh; 
}

/* Lapisan Gelap Transparan di atas gambar agar tulisan putih mudah dibaca */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 1;
}

/* Pembungkus teks hero agar naik ke atas lapisan overlay */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 { 
    font-size: 3rem; 
    margin-bottom: 1.5rem; 
    font-weight: 700;
    letter-spacing: -0.5px;
}
.hero p { 
    font-size: 1.2rem; 
    color: #cbd5e1; 
    margin-bottom: 2.5rem; 
    max-width: 650px; 
    margin-left: auto; 
    margin-right: auto; 
}

/* Desain Button */
.btn { 
    padding: 12px 30px; 
    background-color: var(--primary); 
    color: white; 
    text-decoration: none; 
    border-radius: 6px; 
    font-weight: bold; 
    transition: all 0.3s ease; 
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.btn:hover { 
    background-color: #1d4ed8; 
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Container & Sections */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 60px 5%; 
}
.section-title { 
    text-align: center; 
    font-size: 2rem; 
    margin-bottom: 40px; 
    color: var(--dark); 
    position: relative;
    padding-bottom: 10px;
}
/* Aksen garis biru kecil di bawah judul section */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* Grid Artikel */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}
.card { 
    background: white; 
    padding: 30px; 
    border-radius: 8px; 
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); 
    transition: all 0.3s ease; 
}
.card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}
.card h3 { 
    margin-bottom: 15px; 
    color: var(--dark); 
    font-size: 1.3rem;
    transition: color 0.2s;
}
.card:hover h3 {
    color: var(--primary);
}
.card p { 
    color: var(--gray); 
    font-size: 0.95rem; 
    margin-bottom: 20px; 
}
.read-more { 
    color: var(--primary); 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 0.95rem;
}
.read-more:hover {
    text-decoration: underline;
}

/* Single Article Reader */
.article-content { 
    background: white; 
    padding: 40px; 
    border-radius: 8px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    max-width: 800px; 
    margin: 40px auto; 
}
.article-content h1 { 
    margin-bottom: 20px; 
    color: var(--dark); 
}
.article-content .meta { 
    color: var(--gray); 
    font-size: 0.9rem; 
    margin-bottom: 30px; 
    border-bottom: 1px solid #e2e8f0; 
    padding-bottom: 10px; 
}
.article-content p { 
    margin-bottom: 20px; 
    font-size: 1.05rem; 
    color: #334155;
}

/* Footer */
footer { 
    background-color: var(--dark); 
    color: #94a3b8; 
    text-align: center; 
    padding: 25px; 
    margin-top: 60px; 
    font-size: 0.9rem;
    border-top: 1px solid #1e293b;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { 
        display: none; 
    }
    .hero h1 {
        font-size: 2.25rem;
    }
    .hero p {
        font-size: 1rem;
    }
}
