/* style.css */
:root {
    --primary-color: #2c3e50; /* Warna gelap elegan */
    --accent-color: #f39c12; /* Warna emas untuk aksen game */
    --bg-color: #f4f4f4;
    --text-color: #333;
    --light-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Header & Navigasi */
header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand span {
    color: var(--accent-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Layout Utama */
main {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.content-area {
    flex: 3; /* Lebih lebar untuk konten utama */
}

.sidebar {
    flex: 1; /* Lebih sempit untuk sidebar */
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Card Artikel */
.article-card {
    background: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.article-card:hover {
    transform: translateY(-3px);
}

.card-image {
    width: 100%;
    height: 200px;
    background-color: #ddd; /* Placeholder gambar */
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.card-title a {
    text-decoration: none;
    color: inherit;
}

.btn-read {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* Sidebar Widget */
.widget {
    margin-bottom: 20px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
}

.category-list {
    list-style: none;
}

.category-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.category-list a {
    text-decoration: none;
    color: var(--text-color);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }
    nav {
        flex-direction: column;
        text-align: center;
    }
    .nav-links {
        margin-top: 15px;
    }
}
/* Tambahkan/Update di bagian bawah style.css */

/* Container Utama Kartu Artikel */
.article-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden; /* Agar gambar tidak keluar dari border */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Gambar Utama Konten */
.article-thumb {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #eee; /* Warna placeholder jika gambar belum muncul */
}

/* Box Konten (Judul, Meta, Deskripsi) */
.article-content-box {
    padding: 25px 30px;
}

/* Label Kategori */
.label-category {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* Judul Artikel di List */
.article-title {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.article-title a {
    color: #2c3e50;
    text-decoration: none;
}

.article-title a:hover {
    color: var(--accent-color);
}

/* Deskripsi Konten */
.article-desc {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Info Meta (Author, Tanggal) */
.meta-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-top: auto; /* Mendorong ke bawah jika konten pendek */
}

.meta-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}