.main-content {
    padding: 80px 0;
    background-color: #ffffff;
}

.kegiatan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.news-card {
    background: white;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(133, 47, 106, 0.2);
    border-left: 10px solid #f7e018;
}

/* ==================== BAGIAN YANG DIUBAH ==================== */
.news-img {
    height: 230px;
    position: relative;
    overflow: hidden;
    background: #f9f9f9; /* Background abu-abu terang jika ukuran gambar tidak standar */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; /* Jeda sedikit agar gambar tidak langsung menempel ke tepi kartu */
}

.news-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Seluruh bagian foto dipaksa masuk tanpa terpotong */
    transition: 0.6s;
}
/* ============================================================ */

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.yt-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ff0000;
    color: white;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-body {
    padding: 30px;
}

.news-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: #852F6A;
    margin-bottom: 12px;
    display: block;
}

.news-body h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-body p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

.btn-selengkapnya {
    text-decoration: none;
    color: #852F6A;
    font-weight: 800;
    font-size: 0.85rem;
    transition: 0.3s;
    margin-top: auto;
}

.btn-selengkapnya:hover {
    color: #C158A0;
    padding-left: 8px;
}