/* ============================================== */
/* CSS KHUSUS SLIDER BERITA MOBILE & DESKTOP      */
/* ============================================== */
.slider-card-mobile {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 240px; /* Tinggi optimal untuk layar HP */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: #1a1a1a;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Otomatis lebih tinggi kalau dibuka di Laptop/Desktop */
@media (min-width: 768px) {
    .slider-card-mobile {
        height: 350px; 
    }
}

.slider-card-mobile .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.slider-card-mobile .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradasi hitam halus dari bawah ke tengah */
    background: linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(0,0,0,0.95) 100%);
    z-index: 2;
}

.slider-card-mobile .card-content {
    position: relative;
    z-index: 3;
    padding: 20px 20px 35px 20px; /* Padding bawah dilebarkan agar tidak tertutup titik indikator slider */
    color: #fff;
    text-align: left;
}

.slider-card-mobile .news-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Maksimal 2 baris agar rapi */
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

.slider-card-mobile .news-meta {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #e0e0e0;
}

.slider-card-mobile .author-initial {
    width: 22px;
    height: 22px;
    background-color: #0d6efd; /* Warna biru untuk inisial */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: bold;
    margin-right: 6px;
    color: #fff;
}