/** News General Style **/
#blog {
	text-align: left;
	position: relative;
	border: 0;
	margin: 0;
}

#blog h2 a {
	text-decoration: none;
}

#blog .item {
	display: block;
	margin-bottom: 30px;
}

#blog figure img {
	width: 100%;
	height: auto;
	display: block;
}

#comments {
	margin-top: 100px;
}

#blog span.user-avatar {
	background: #eee;
	width: 64px;
	height: 64px;
	float: left;
	margin-right: 10px;
}

#blog .widget {
	margin-bottom: 30px;
}

/* Merapatkan jarak judul (CATEGORIES) ke daftar di bawahnya */
#blog .widget h4 {
    margin-bottom: 10px !important; /* Sebelumnya 20px */
}
/* Mengatur agar elemen small (tanggal) tidak punya margin atas yang besar */
#blog .widget small {
    margin-top: 2px !important;
    line-height: 1 !important;
}

/* Merapatkan jarak antar item dalam list kategori */
#blog .widget ul.nav-list li {
    margin: 0 !important; 
}

#blog .widget ul.nav-list li a {
    padding: 4px 0 !important; /* Mengecilkan ruang atas-bawah link */
    display: block;
    line-height: 1.2;
}

#blog .widget h3, #blog .widget h4 {
    margin-bottom: 10px !important; /* Jarak judul widget ke kontennya */
}

#blog .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#blog .widget ul li {
	margin: 5px 0;
}

/** Blog Masonry Logic **/
#blog .masonry-item {
	margin: 1%;
	position: relative;
	float: left;
	background-color: #fff;
	width: 31.3%;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#blog .masonry-sidebar .masonry-item {
	width: 48%;
}

/** MODERN CARD REFINEMENT (FIX JARAK RAPAT) **/
.news-card-fix {
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease;
}

.news-card-fix:hover {
    transform: translateY(-5px);
}

.news-content-padding {
    padding: 15px 20px 20px 20px !important; /* Padding sekeliling konten */
}

.news-meta-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px !important; /* Jarak ke bawah (ke arah judul) sangat kecil */
}

.news-meta-date {
    font-size: 11px;
    color: #718096;
}

.news-hashtag-link {
    color: var(--brand-primary, #e62f17) !important;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
}

.news-title-text {
    margin: 0 0 5px 0 !important; /* MARGIN BAWAH JUDUL DIKECILKAN (Merapatkan ke teks isi) */
    line-height: 1.2 !important;
}

.news-title-text a {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #1a202c !important;
    text-decoration: none !important;
    display: block;
}

.news-excerpt-text p {
    margin: 0 !important; /* MENGHAPUS MARGIN DEFAULT PARAGRAF */
    padding: 0 !important;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.4 !important;
}

.news-read-more {
    margin-top: 10px !important; /* Memberi sedikit jarak ke tombol baca selengkapnya */
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-primary, #e62f17) !important;
    text-transform: capitalize;
    text-decoration: none !important;
}

/** Responsive Design **/
@media only screen and (max-width: 991px) {
	#blog .masonry-item, 
    #blog .masonry-sidebar .masonry-item {
		width: 48%;
	}
}

@media only screen and (max-width: 768px) {
    #blog .masonry-item, 
    #blog .masonry-sidebar .masonry-item {
        width: 100%;
        margin: 10px 0;
    }

    #blog .left {
        padding-right: 0 !important;
    }

    .news-title-text a {
        font-size: 16px !important;
    }
}

/* ==========================================================================
   CSS REVISI UNTUK RIGHTLINK (SIDEBAR)
   ========================================================================== */

/* Gaya List Recent Posts agar lebih modern */
.recent-posts-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-modern li {
    padding-bottom: 10px;
    margin-bottom: 10px !important;
    border-bottom: 1px solid #edf2f7;
}

.recent-posts-modern li:last-child {
    border-bottom: none;
}

/* Label Tipe Konten (Video, Publikasi, dll) */
.post-type-tag {
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--brand-primary, #e62f17);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

/* Judul Postingan di Sidebar */
.post-title-sidebar {
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.3;
}

.recent-posts-modern li:hover .post-title-sidebar {
    color: var(--brand-primary, #e62f17); /* Berubah warna saat di-hover */
}

/* Gaya Tanggal */
.recent-posts-modern small {
    font-size: 11px;
    color: #a0aec0;
    display: block;
    margin-top: 4px;
}

/* Perbaikan Ikon List Kategori */
.nav-list li a i {
    font-size: 12px;
    color: var(--brand-primary, #e62f17);
    margin-right: 8px;
}
