.news-page-section {
    background-color: #fafafa;
    padding: 40px 0 80px;
    width: 100%;
}

/* Ensure background cards look white with crisp shadow like Image 1 */
.news-page-section .news-card-item {
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

/* News Pagination Styling matching Image 1 */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 50px;
}

.news-pagination .page-arrow {
    color: #e51d27;
    font-size: 0.9rem;
    padding: 5px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.news-pagination .page-arrow:hover {
    transform: scale(1.15);
}

.news-pagination .page-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: #666666;
    text-decoration: none;
    background-color: #ededed;
    transition: all 0.25s ease;
}

.news-pagination .page-num:hover {
    background-color: #e0e0e0;
}

.news-pagination .page-num.active {
    background-color: #ffffff;
    border: 1.5px solid #e51d27;
    color: #e51d27;
}

.news-pagination .page-dots {
    color: #888888;
    font-weight: 600;
}
.news-grid-custom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 991px) {
    .news-grid-custom {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid-custom {
        grid-template-columns: 1fr;
    }
    .news-title-box {
        width: 90%;
    }
} 
.news-card-item {
    position: relative;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    overflow: hidden;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
    z-index: 1; /* Membuat stacking context baru */
}

/* 2. Watermark Stroke menggunakan Filter Invert & Opacity */
.news-card-item::after {
    content: "";
    position: absolute;
    right: -40px; /* Menggeser agak keluar kanan */
    bottom: -50px; /* Menggeser agak keluar bawah */
    width: 320px; /* Ukuran diperbesar agar pas seperti gambar acuan */
    height: 320px;
    background-image: url("/assets/global/images/stroke.png"); /* Jalur gambar stroke kamu */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right bottom;

    /* PENTING: Karena stroke.png kamu warna hitam, 
        invert(1) akan mengubahnya jadi PUTIH/TERANG, 
        opacity 0.08 menjadikannya watermark abu-abu tipis presisi */
    filter: invert(1);
    opacity: 0.12;

    pointer-events: none; /* Agar tidak mengganggu klik mouse */
    z-index: 2; /* Ditaruh di atas latar belakang card */
}

/* 3. Elemen Gambar/Foto Berita */
.news-img-wrapper {
    position: relative;
    z-index: 2; /* Agar foto ada di atas */
    height: 220px;
    width: 100%;
    overflow: hidden;
}

/* 4. Kotak Judul Merah */
.news-title-box {
    position: relative;
    z-index: 3; /* Agar kotak merah menimpa foto & stroke */
}

/* 5. Kotak Konten Teks */
.news-content-box {
    position: relative;
    z-index: 3; /* Teks harus berada di paling atas agar terbaca jelas */
    background: transparent !important; /* Wajib transparan agar stroke di bawahnya kelihatan */
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.news-card-item {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    position: relative;
    text-decoration: none;
    color: inherit;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
    /* Memberikan efek background transparan watermark halus jika ada */
    background-image: radial-gradient(
        circle at bottom right,
        rgba(0, 0, 0, 0.02) 0%,
        transparent 60%
    );
}

.news-card-item:hover {
    transform: translateY(-12px); /* Mengambang ke atas */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); /* Efek bayangan membesar */
}

/* Image Wrapper */
.news-img-wrapper {
    height: 220px;
    width: 100%;
    overflow: hidden;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-item:hover .news-img-wrapper img {
    transform: scale(1.05); /* Gambar sedikit nge-zoom saat hover */
}

/* Red Title Box Overlapping Image */
.news-title-box {
    background-color: #e51d27; /* Merah pekat sesuai gambar */
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    padding: 15px 20px;
    width: 85%; /* Tidak full lebar, menyisakan ruang putih di kanan */
    position: relative;
    margin-top: -30px; /* Menarik kotak merah ke atas agar menimpa gambar */
    z-index: 2;
}

/* Content Box (Meta, Description, Read More) */
.news-content-box {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    font-size: 11px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 15px;
}

.news-meta span {
    margin: 0 5px;
    color: #999;
    font-weight: normal;
}

.news-content-box p {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 30px;
    flex-grow: 1; /* Mendorong tombol selengkapnya ke paling bawah */
}

.news-readmore {
    text-align: right;
    font-size: 13px;
    color: #555555;
    font-weight: 500;
    transition: color 0.3s;
}

.news-card-item:hover .news-readmore {
    color: #e51d27;
}

/* View All News Button */
.news-btn-container {
    text-align: center;
    margin-top: 50px;
} 
.news-pagination .page-arrow.disabled {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}