/* GAYA CSS UTAMA UNTUK ARTIKEL */
.artikel-main-container {
    width: 100%;
    padding: 50px 20px;
    margin-top: 60px;
    background-color: var(--ng-main);
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.artikel-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.artikel-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.artikel-item {
    display: flex;
    background-color: var(--bg-header);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.artikel-card-link:hover .artikel-item {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.artikel-card-link:hover .artikel-title {
    color: var(--accent);
}

/* KUNCI GAMBAR DI RASIO 16:9 */
.artikel-thumbnail {
    flex: 0 0 35%;
    position: relative;
    aspect-ratio: 16 / 9;
}

.artikel-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* KONTEN SEBELAH KANAN */
.artikel-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.artikel-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.artikel-title {
    font-size: 20px;
    margin: 0 0 10px 0;
    text-align: justify;
    line-height: 1.4;
    color: var(--text-main);
    transition: color 0.2s ease;
}

.artikel-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* GAYA CSS UNTUK TOMBOL MUAT LAINNYA */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.btn-load-more {
    background-color: var(--accent);
    color: var(--text-fix1);
    font-size: 15px;
    font-weight: bold;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-load-more:hover {
    background-color: var(--accent);
    transform: scale(1.10);
}

.btn-load-more:active {
    transform: scale(0.98);
}

/* RESPONSIVE LAYOUT (UNTUK LAYAR HP) */
@media (max-width: 600px) {
    .artikel-item {
        flex-direction: column;
    }
    .artikel-thumbnail {
        flex: 0 0 100%;
    }
}

/* GAYA CSS UNTUK ANIMASI MASUK DARI KIRI */

.artikel-card-link {
    /* Mengubah opacity menjadi 0 dan menggeser 50px ke kiri di posisi awal */
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

/* Class ini akan ditambahkan oleh JavaScript secara otomatis saat discroll */
.artikel-card-link.terlihat {
    opacity: 1;
    transform: translateX(0);
}
