/* 1. Reset & Global Style */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* 2. Header & Navigasi (Minimalis) */
#masthead {
    background: #ffffff;
    padding: 20px 5%;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-branding .site-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

#site-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

#site-navigation a {
    font-weight: 500;
    font-size: 0.95rem;
    color: #64748b;
}

#site-navigation a:hover {
    color: #3b82f6;
}



/* 4. Tampilan Kartu Artikel */
article.post {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

article.post:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Thumbnail */
.post-thumbnail {
    width: 100%;
    height: 200px;
    background: #e2e8f0; /* warna cadangan jika tak ada gambar */
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Judul & Meta */
.entry-header {
    padding: 20px 20px 10px;
}

.entry-title {
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 700;
    margin: 0;
}

.entry-title a:hover {
    color: #3b82f6;
}

.entry-meta {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ringkasan Teks */
.entry-content {
    padding: 0 20px 20px;
    font-size: 0.95rem;
    color: #475569;
    flex-grow: 1;
}

/* Footer Post */
.entry-footer {
    padding: 15px 20px;
    background: #f1f5f9;
    font-size: 0.8rem;
}

/* 1. Container Utama (Grid Blog) */
#primary.content-area {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.site-main {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

/* 2. Kartu Artikel (Post Card) */
article.post {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    width: calc(33.333% - 20px); /* 3 Kolom */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

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

/* 3. Gambar Thumbnail */
.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* 4. Merapikan Judul & Teks */
.entry-header {
    padding: 20px 20px 10px;
}

.entry-title {
    font-size: 1.15rem;
    line-height: 1.5;
    font-weight: 700;
}

.entry-content {
    padding: 0 20px 20px;
    font-size: 0.9rem;
    color: #475569;
    flex-grow: 1;
}

/* 5. Responsif (HP & Tablet) */
@media (max-width: 1024px) {
    article.post { width: calc(50% - 20px); } /* 2 Kolom */
}

@media (max-width: 640px) {
    article.post { width: 100%; } /* 1 Kolom */
}