/* ==========================================
   SERAGAMKAN GAMBAR BERITA & PENGUMUMAN
   TEMPLATE SHAPER NEWEDGE
   ========================================== */

/* 1. CATEGORY BLOG (BERITA, PENGUMUMAN, OPINI, PROFIL) */

/* Kartu artikel */
body.view-category .blog .items-row .item,
body.view-category .blog .items-leading .item {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

body.view-category .blog .items-row .item:hover,
body.view-category .blog .items-leading .item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Area gambar artikel intro */
body.view-category .blog .entry-image {
    width: 100% !important;
    height: 210px !important;
    overflow: hidden !important;
    position: relative;
    background-color: #d81414;
    background-size: cover !important;
    background-position: center !important;
}

/* Leading article di kategori (jika ada) */
body.view-category .blog .items-leading .entry-image {
    height: 360px !important;
}

/* Area untuk artikel tanpa gambar: brand green background */
body.view-category .blog .entry-image.no-image {
    background: linear-gradient(135deg, #e61717 0%, #cf0a0a 100%) !important;
    min-height: 210px !important;
}

/* Link gambar */
body.view-category .blog .entry-image>a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Semua thumbnail sama ukuran dan proporsi */
body.view-category .blog .entry-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.4s ease;
}

body.view-category .blog .entry-image-wrap:hover .entry-image img {
    transform: scale(1.05);
}

/* Judul artikel pada blog */
body.view-category .blog .entry-header h2 {
    font-size: 16px !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

body.view-category .blog .entry-header h2 a {
    color: #ffffff !important;
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

body.view-category .blog .entry-header h2 a:hover {
    color: #ff0000 !important;
}

/* 2. SINGLE ARTICLE (HALAMAN DETAIL ARTIKEL) */

/* Gambar utama halaman detail */
body.view-article .entry-image img,
body.view-article .article-full-image img,
body.view-article .full-image img {
    display: block;
    width: 100% !important;
    max-width: 780px !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: cover !important;
    object-position: center;
    margin: 0 auto 25px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Gambar di dalam teks artikel (introtext / fulltext) */
body.view-article .article-details img,
body.view-article .item-page img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 20px auto;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Galeri foto di dalam artikel */
.article-gallery .thumbnail {
    border: none;
    padding: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-gallery .thumbnail:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* 3. MODUL BERITA DI HOMEPAGE (mod_jm_articles_category) */
.jmm-image.mod-article-image {
    width: 100%;
    height: 190px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 12px;
}

.jmm-image.mod-article-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* 4. RESPONSIVE */

@media (max-width: 991px) {
    body.view-category .blog .entry-image {
        height: 190px !important;
    }

    body.view-category .blog .entry-image.no-image {
        min-height: 190px !important;
    }
}

@media (max-width: 767px) {
    body.view-category .blog .entry-image {
        height: 220px !important;
    }

    body.view-category .blog .entry-image.no-image {
        min-height: 220px !important;
    }

    body.view-article .entry-image img,
    body.view-article .article-full-image img,
    body.view-article .full-image img {
        max-width: 100% !important;
    }
}