/* ========================================= 
   MODEL 1 – HITAM BLOCK
   ========================================= */
.model1-wrapper {
    margin: 40px 0;
    font-family: 'Poppins', sans-serif;
}

/* Heading merah */
.model1-heading {
    position: relative;
    margin-bottom: -18px;
    z-index: 5;
}

.model1-heading-text {
    display: inline-block;
    background: #e30000;
    color: #fff;
    padding: 6px 18px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px 4px 0 0;
    margin-left: 40px;
}

/* Box hitam utama */
.model1-container {
    background: #050a10;
    padding: 28px 35px 30px;
    border-radius: 8px;
    position: relative;
    overflow: visible !important;         /* ANTI BOCOR */
}

/* Wrapper Swiper */
.model1-container .swiper-wrapper {
    padding-top: 5px;
    box-sizing: border-box;
}

.model1-container .swiper-slide {
    flex-shrink: 0 !important;
}

/* SETIAP SLIDE */
.model1-slide {
    color: #ffffff;
    height: auto;
}

/* Thumbnail */
.model1-thumb {
    margin-bottom: 10px;
}

.model1-thumb img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0;
}

/* Kategori */
.model1-cat {
    color: #ff4f4f;
    font-size: 13px;
    margin: 4px 0 2px;
    text-transform: uppercase;
}

/* Judul */
.model1-title {
    margin: 0;
}

.model1-title a {
    display: -webkit-box;           /* wajib */
    -webkit-line-clamp: 3;          /* batasi 3 baris */
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    text-decoration: none;
}


.model1-title a:hover {
    color: #ff4f4f;
}

/* Meta */
.model1-meta {
    margin-top: 6px;
    font-size: 12px;
    color: #b7c0cc;
}

.model1-meta .meta-author,
.model1-meta .meta-date,
.model1-meta .meta-views {
    display: block;
}

/* NAVIGASI PANAH MODEL-1 */
.model1-container .swiper-button-next,
.model1-container .swiper-button-prev {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,.35);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}
/* SVG ICON */
.model2-container .swiper-button-prev svg,
.model2-container .swiper-button-next svg {
    width: 20px;
    height: 20px;
    stroke: #e30000;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: 0.2s ease;
}
/* Posisi */
.model1-container .swiper-button-prev { left: 10px; }
.model1-container .swiper-button-next { right: 10px; }

/* Icon panah */
.model1-container .swiper-button-prev::after,
.model1-container .swiper-button-next::after {
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

/* HOVER */
.model1-container .swiper-button-prev:hover,
.model1-container .swiper-button-next:hover {
    background: #1E90FF;
    transform: translateY(-50%) scale(1.1);
}

.model1-container .swiper-button-prev:hover svg,
.model1-container .swiper-button-next:hover svg {
    stroke: #fff;
}
/* =====================================================
   RESPONSIVE MODEL-1 — 2 KOLOM TABLET & MOBILE
===================================================== */
@media (max-width: 1024px) {
    .model1-container .swiper-slide {
        width: calc(50% - 14px) !important;
    }

    .model1-container .swiper-wrapper {
        gap: 14px !important;
    }
}


/* =======================================
   FIX FEATURED MOBILE – TAMPIL 1 SAJA
   (punyamu sendiri, tetap dipakai)
   ======================================= */
@media (max-width: 768px) {
    .headline-tiga-mobile {
        display: none;
    }
    .headline-tiga-mobile:first-of-type {
        display: block;
    }
}

/* ============================================
   GLOBAL FIX – pastikan panah Swiper selalu muncul
============================================ */
.swiper-button-next, .swiper-button-prev {
    opacity: 1 !important;
    visibility: visible !important;
}

/* =====================================================
   MODEL-2 — FULL FEATURE
   ===================================================== */

/* WRAPPER */
.model2-wrapper {
    margin: 40px 0;
    font-family: 'Poppins', sans-serif;
}

/* HEADING — gaya OLAHRAGA */
.model2-heading {
    margin-bottom: 18px;
}

.model2-heading-text {
    display: inline-block;
    background: none !important;
    color: #111 !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    padding: 2px 1px 1px 20px;
    border-radius: 0;
    position: relative;
    text-transform: uppercase;
}

.model2-heading-text::after {
    content: "";
    position: absolute;
    left: 20px;
    bottom: -6px;
    width: 70px;
    height: 4px;
    background: #e30000;
    border-radius: 2px;
}

/* CONTAINER */
.model2-container {
    position: relative;
    padding: 7px 0 7px 0;
}

/* SLIDE CARD */
.model2-slide {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: #fff;
    transition: 0.28s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* SHADOW ELEGAN + HOVER */
.model2-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}

/* THUMBNAIL */
.model2-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.model2-thumb img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0;
    background: #000;
    transition: transform 0.45s ease, opacity 0.35s ease;
}

/* Hover thumbnail (Zoom + Darken) */
.model2-thumb:hover img {
    transform: scale(1.08);
    opacity: 0.92;
}

/* OVERLAY GRADIENT (background layer) */
.model2-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.90) 0%,
        rgba(0,0,0,0.70) 40%,
        rgba(0,0,0,0.25) 70%,
        rgba(0,0,0,0.0) 100%
    );
    z-index: 1;
}

/* WRAPPER TEKS DI ATAS OVERLAY */
.model2-info {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 18px;
    z-index: 2;
}

/* KATEGORI */
.model2-cat {
    display: inline-block;
    background: #e30000;
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #fff;
}

/* JUDUL */
.model2-title {
    margin: 0;
}

.model2-title a {
    display: -webkit-box;           /* penting untuk line-clamp */
    -webkit-line-clamp: 3;          /* maksimal 3 baris */
    -webkit-box-orient: vertical;   /* wajib vertical */
    overflow: hidden;
    text-overflow: ellipsis;

    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0px 1px 3px rgba(0,0,0,0.5);
}

.model2-title a:hover {
    color: #ff4f4f;
}

/* PANAH NAVIGASI MODEL-2 */
.model2-container .swiper-button-prev,
.model2-container .swiper-button-next {
    width: 34px;
    height: 34px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,.35);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: 0.2s ease;
}

/* Position */
.model2-container .swiper-button-prev { left: 10px; }
.model2-container .swiper-button-next { right: 10px; }

/* SVG ICON */
.model2-container .swiper-button-prev svg,
.model2-container .swiper-button-next svg {
    width: 20px;
    height: 20px;
    stroke: #e30000;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: 0.2s ease;
}

/* HOVER */
.model2-container .swiper-button-prev:hover,
.model2-container .swiper-button-next:hover {
    background: #e30000;
    transform: translateY(-50%) scale(1.1);
}

.model2-container .swiper-button-prev:hover svg,
.model2-container .swiper-button-next:hover svg {
    stroke: #fff;
}

/* DARK MODE MODEL-2 */
.model2-wrapper.model2-dark .model2-slide {
    background: #0d0f12;
    box-shadow: 0 4px 18px rgba(0,0,0,0.55);
}

.model2-wrapper.model2-dark .model2-slide:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.8);
}

.model2-wrapper.model2-dark .model2-title a {
    color: #ffffff;
}

.model2-wrapper.model2-dark .model2-cat {
    background: #ff3a3a;
}

/* Overlay sedikit lebih gelap di dark mode */
.model2-wrapper.model2-dark .model2-overlay {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.97),
        rgba(0,0,0,0.70),
        rgba(0,0,0,0.15)
    );
}

.model2-wrapper.model2-dark .model2-thumb:hover img {
    opacity: 0.85;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
============================================ */

/* Tablet Landscape / Small Desktop */
@media screen and (max-width: 1024px) {
    .model2-thumb {
        aspect-ratio: 3 / 6;
    }
}

/* Tablet Portrait */
@media screen and (max-width: 768px) {
    .model2-thumb {
        aspect-ratio: 3 / 6;
    }

    .model2-title a {
        -webkit-line-clamp: 2; /* Lebih pendek di tablet */
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    .model2-thumb {
        aspect-ratio: 3 / 6;
    }

    .model2-cat {
        padding: 4px 10px;
        font-size: 11px;
    }

    .model2-title a {
        font-size: 15px;
        -webkit-line-clamp: 2;
    }

    .model2-info {
        padding: 14px;
    }
}
/* ============================================
   MODEL 3 — WAWASANNEWS BLOCK MODEL 3 THEME
============================================== */

/* Wrapper utama */
#model3-wawasannews {
    margin: 40px 0;
}

/* Heading Judul */
#model3-wawasannews .rt-block-heading__title {
    font-size: 22px;
    font-weight: 700;
    padding-bottom: 6px;
    position: relative;
    margin-bottom: 16px;
}

#model3-wawasannews .rt-block-heading__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: #e30613;
}

/* ==== SWIPER CONTAINER ==== */
#model3-wrap .swiper {
    overflow: hidden;
    padding-bottom: 25px;
    margin-top: 8px;
}

/* Setiap slide sama tinggi */
#model3-wrap .swiper-slide {
    display: flex;
    flex-direction: column;
    height: auto;
}

#model3-wrap .rt-swiper-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ==== THUMBNAIL 3:2 KOTAK ==== */
#model3-wrap .rt-post__thumbnail {
    position: relative;
    aspect-ratio: 3 / 2;
    background: #f2f2f2;
    overflow: hidden;
    border-radius: 0;
}

#model3-wrap .rt-post__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==== BADGE KATEGORI DALAM THUMBNAIL ==== */
#model3-wrap .rt-post-terms {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 5;
}
/* Nasional = Merah Tua */
#model3-wrap .rt-post-terms a.category-nasional {
    background: #b50000 !important;
}

/* Politik = Merah */
#model3-wrap .rt-post-terms a.category-politik {
    background: #e30613 !important;
}

/* Ekonomi = Hijau */
#model3-wrap .rt-post-terms a.category-ekonomi {
    background: #28a745 !important;
}

/* Pendidikan = Ungu */
#model3-wrap .rt-post-terms a.category-pendidikan {
    background: #6f42c1 !important;
}

/* Teknologi = Biru Muda */
#model3-wrap .rt-post-terms a.category-teknologi {
    background: #3399ff !important;
}

/* Opini = Hitam Abu */
#model3-wrap .rt-post-terms a.category-opini {
    background: #444444 !important;
}

/* Sport = Biru */
#model3-wrap .rt-post-terms a.category-sport,
#model3-wrap .rt-post-terms a.category-olahraga {
    background: #007bff !important;
}

/* Default kategori lainnya tetap MERAH */
#model3-wrap .rt-post-terms a {
    background: #e30613;
}

#model3-wrap .rt-post-terms a {
    background: #e30613;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    color: #fff;
    font-weight: 600;
}

/* ==== TITLE 3 BARIS ==== */
#model3-wrap .rt-post__title a {
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
    color: #111;
    line-height: 1.35;
    text-decoration: none;
}

/* ==== META ==== */
#model3-wrap .rt-post-meta {
    margin-top: 10px;
    font-size: 12px;
    color: #6c757d;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ==== PAGINATION ==== */
#model3-wrap .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: #ccc;
    opacity: 1;
    transition: 0.2s;
    border-radius: 20px;
}

#model3-wrap .swiper-pagination-bullet-active {
    width: 16px;
    background: #e30613;
}

/* ==== CUSTOM ARROWS (SVG) ==== */
#model3-wrap {
    position: relative;
}

#model3-wrap .swiper-button-prev,
#model3-wrap .swiper-button-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    top: 35%;
    transform: translateY(-50%);
    z-index: 10 !important;
    cursor: pointer;
    transition: 0.2s ease;
}

/* Posisi panah */
#model3-wrap .swiper-button-prev { left: 10px; }
#model3-wrap .swiper-button-next { right: 10px; }

/* SVG icon */
#model3-wrap .swiper-button-prev svg,
#model3-wrap .swiper-button-next svg {
    width: 23px;
    height: 23px;
    stroke: #e30613;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: 0.2s ease;
    
}

/* Hover arrow */
#model3-wrap .swiper-button-prev:hover,
#model3-wrap .swiper-button-next:hover {
    background: #e30613;
}

#model3-wrap .swiper-button-prev:hover svg,
#model3-wrap .swiper-button-next:hover svg {
    stroke: #fff;
}

/* =======================================================
   MODEL 4 – WAWASANNEWS BIG POST (FINAL COMPACT STYLE)
   ======================================================= */

/* Wrapper & basic reset */
#model4-wawasannews {
    width: 100%;
    display: block;
    position: relative;
}
#model4-wawasannews * {
    box-sizing: border-box;
}

/* ============================
   HEADING SECTION
   ============================ */
#model4-wawasannews .rt-block-heading {
    padding-left: 15px;
    margin: 0 0 16px;
}
#model4-wawasannews .rt-block-heading__title {
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
}
#model4-wawasannews .rt-heading-line {
    display: block;
    width: 40px;
    height: 2.5px;
    background: #e30613;
    margin-left: 15px;
    border-radius: 999px;
}

/* ================
   MAIN GRID
   ================ */
#model4-wawasannews .model4-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 45%) minmax(0, 55%);
    align-items: stretch;
    gap: 24px;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* ============================
   LEFT – BIG FEATURED POST
   ============================ */
.model4-bigpost {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.25s ease;
}
.model4-bigpost:hover {
    transform: translateY(-3px);
}

.model4-thumb,
.model4-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}
.model4-thumb img.big-thumb-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.35s ease, filter 0.35s ease;
}
.model4-bigpost:hover .model4-thumb img.big-thumb-img {
    transform: scale(1.05);
    filter: brightness(0.9);
}

/* =================================================
   FIX PATCH: Kategori bigpost hilang → perbaikan
   ================================================= */
.model4-cat-overlay {
    position: absolute;
    top: 16px !important;
    left: 16px !important;
    display: flex;
    gap: 6px;
    z-index: 25 !important;
}
.model4-cat-overlay a {
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    background: #e30613;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}
.model4-cat-overlay a:hover {
    opacity: 0.9;
}

/* Title overlay bigpost */
.model4-title-overlay {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 16px 18px 18px;
    background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.6));
    border-radius: 0 0 14px 14px;
    transition: opacity 0.3s ease;
}
.model4-bigpost:hover .model4-title-overlay {
    opacity: 0.96;
}

.model4-title {
    margin: 0 0 6px;
    padding: 0;
}

/* =================================================
   FIX PATCH: underline mengikuti teks (bukan block)
   ================================================= */
.model4-title a {
    font-family: inherit;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.32;
    color: #fff;
    text-decoration: underline transparent;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}
.model4-title a:hover {
    opacity: 0.88;
    text-decoration-color: #fff;
}

/* ============================
   META COMPACT (BIGPOST + LIST)
   ============================ */

.model4-meta.meta-compact,
.model4-list-meta.meta-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.95);
}

.model4-list-meta.meta-compact {
    color: #666;
}

.meta-compact .m-author {
    white-space: nowrap;
}
.meta-compact .m-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.meta-compact .m-date svg {
    display: inline-block;
    vertical-align: middle;
    opacity: 0.85;
}
.meta-compact .m-views {
    white-space: nowrap;
    opacity: 0.9;
}

/* =================================================
   FIX PATCH: META LIST 1 BARIS AUTO SHRINK
   ================================================= */
.model4-list-meta.meta-compact {
    font-size: 11px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* ============================
   RIGHT – LIST POSTS
   ============================ */
.model4-list {
    display: flex;
    flex-direction: column;
    gap: 4px !important; /* patch: lebih padat */
    padding-right: 10px;
}

/* Item list kanan */
.model4-list-item {
    display: grid;
    grid-template-columns: 135px auto;
    gap: 10px !important; /* patch */
    align-items: flex-start;
    padding-bottom: 8px !important; /* patch */
    margin-bottom: 6px !important; /* patch */
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.model4-list-item:last-child {
    border-bottom: none;
}
.model4-list-item:hover {
    transform: translateY(-2px);
}

/* Thumbnail list */
.model4-list-thumb img {
    display: block;
    width: 135px;
    height: 90px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.25s ease;
}
.model4-list-item:hover .model4-list-thumb img {
    transform: scale(1.04);
}

/* Category list */
.model4-list-cat {
    margin-bottom: 5px;
}
.model4-list-cat a {
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    margin-right: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #e30613;
    transition: opacity 0.2s ease, filter 0.2s ease;
}
.model4-list-cat a:hover {
    opacity: 0.9;
}

/* =================================================
   FIX PATCH: TITLE LIST MAX 3 BARIS + ELLIPSIS
   ================================================= */
.model4-list-title {
    margin: 0 0 4px;
}
.model4-list-title a {
    font-family: inherit;
    font-size: 12 px;
    font-weight: 500;
    line-height: 1.35;
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;

    display: -webkit-box;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
}
.model4-list-item:hover .model4-list-title a {
    color: #dd6600;
}

/* ===================================
   CATEGORY COLORS (DEFAULT & CUSTOM)
   =================================== */

#model4-wawasannews .model4-cat-overlay a,
#model4-wawasannews .model4-list-cat a {
    background-color: #e30613;
}

/* Nasional */
#model4-wawasannews .model4-cat-overlay a.category-nasional,
#model4-wawasannews .model4-list-cat a.category-nasional {
    background-color: #b50000;
}

/* Politik */
#model4-wawasannews .model4-cat-overlay a.category-politik,
#model4-wawasannews .model4-list-cat a.category-politik {
    background-color: #e30613;
}

/* Ekonomi */
#model4-wawasannews .model4-cat-overlay a.category-ekonomi,
#model4-wawasannews .model4-list-cat a.category-ekonomi {
    background-color: #28a745;
}

/* Pendidikan */
#model4-wawasannews .model4-cat-overlay a.category-pendidikan,
#model4-wawasannews .model4-list-cat a.category-pendidikan {
    background-color: #6f42c1;
}

/* Teknologi */
#model4-wawasannews .model4-cat-overlay a.category-teknologi,
#model4-wawasannews .model4-list-cat a.category-teknologi {
    background-color: #3399ff;
}

/* Opini */
#model4-wawasannews .model4-cat-overlay a.category-opini,
#model4-wawasannews .model4-list-cat a.category-opini {
    background-color: #444444;
}

/* Sport / Olahraga */
#model4-wawasannews .model4-cat-overlay a.category-sport,
#model4-wawasannews .model4-cat-overlay a.category-olahraga,
#model4-wawasannews .model4-list-cat a.category-sport,
#model4-wawasannews .model4-list-cat a.category-olahraga {
    background-color: #007bff;
}

/* FALLBACK kategori tanpa class */
#model4-wawasannews .model4-list-cat a:not([class*="category-"]),
#model4-wawasannews .model4-cat-overlay a:not([class*="category-"]) {
    background-color: #e30613 !important;
}

/* ============================
   DARK MODE
   ============================ */

html.dark #model4-wawasannews .model4-list-item,
body.dark-mode #model4-wawasannews .model4-list-item {
    border-bottom-color: rgba(255,255,255,0.22);
}
html.dark #model4-wawasannews .model4-list-meta.meta-compact,
body.dark-mode #model4-wawasannews .model4-list-meta.meta-compact {
    color: rgba(255,255,255,0.85);
}
html.dark #model4-wawasannews .model4-list-title a,
body.dark-mode #model4-wawasannews .model4-list-title a {
    color: #f4f4f4;
}
html.dark #model4-wawasannews .model4-list-item:hover .model4-list-title a,
body.dark-mode #model4-wawasannews .model4-list-item:hover .model4-list-title a {
    color: #ffb15a;
}

/* ============================
   RESPONSIVE
   ============================ */

/* Tablet */
@media (max-width: 1024px) {
    #model4-wawasannews .model4-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Mobile */
@media (max-width: 600px) {

    #model4-wawasannews .rt-block-heading__title {
        font-size: 18px;
    }

    #model4-wawasannews .model4-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-inline: 15px;
    }

    .model4-title a {
        font-size: 19px;
        line-height: 1.3;
    }

    .model4-list-item {
        grid-template-columns: 90px auto;
        gap: 8px !important;
        margin-bottom: 8px !important;
    }
    .model4-list-thumb img {
        width: 90px;
        height: 70px;
    }
    .model4-list-title a {
        font-size: 14px;
    }
    .model4-list-meta.meta-compact {
        font-size: 11px;
    }
}


/* ============================================================ 
   MODEL 5 – GIRD POST WAWASANNEWS
============================================================ */
.model5-wrapper {
    margin-top: 10px;
    padding-top: 0;
    margin-bottom: 40px;
    border-top: none !important;
}

/* Heading WawasanNews + DOUBLE UNDERLINE */
.model5-wrapper .rt-block-heading {
    padding-left: 15px;
    margin-bottom: 18px;
    position: relative;
}

.model5-wrapper .rt-block-heading__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: inherit;
}

/* Hilangkan heading-line bawaan */
.model5-wrapper .rt-heading-line {
    display: none !important;
}

/* Garis merah 15% */
.model5-wrapper .rt-block-heading::before {
    content: "";
    position: absolute;
    left: 0px;
    bottom: -6px;
    width: 10%;
    height: 3px;
    background: #e30613;
    border-radius: 3px;
}

/* Garis hitam tipis 85% */
.model5-wrapper .rt-block-heading::after {
    content: "";
    position: absolute;
    left: calc(10% + 15px);
    bottom: -4.5px;
    width: calc(85% - 15px);
    height: 1px;
    background: #000;
    opacity: 0.25;
}

/* ============================================================
   GRID 3 → 2 → 2
============================================================ */
.model5-wrapper .model5-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 26px !important;
}

@media (max-width: 1024px) {
    .model5-wrapper .model5-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .model5-wrapper .model5-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px !important;
    }
}

/* ============================================================
   MOBILE SAFE-PADDING (NEW)
============================================================ */
@media (max-width: 600px) {
    .model5-wrapper {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .model5-wrapper .rt-post__title {
        font-size: 14px !important;
        line-height: 1.3;
    }

    .model5-wrapper .rt-post-meta {
        font-size: 11px !important;
    }
}

/* ============================================================
   CARD
============================================================ */
.model5-wrapper .model5-post {
    border-radius: 10px;
}

/* THUMBNAIL */
.model5-wrapper .rt-post__thumbnail {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.model5-wrapper .rt-post__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   CATEGORY BADGE OVERLAY (FINAL)
============================================================ */
.model5-wrapper .model5-cat {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 20;
}

.model5-wrapper .model5-cat a {
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #fff !important;
    border-radius: 6px;
    background: var(--wp--custom--badges--background, #e30613);
    display: inline-block;
}

/* ============================================================
   BODY
============================================================ */
.model5-wrapper .rt-post__body {
    margin-top: 12px;
    padding: 0 4px;
}

/* ============================================================
   TITLE – clamp 3 baris
============================================================ */
.model5-wrapper .rt-post__title {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 0 8px;
    line-height: 1.35;
}

.model5-wrapper .rt-post__title a {
    color: inherit !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   META
============================================================ */
.model5-wrapper .rt-post-meta {
    font-size: 12px !important;
    color: #555 !important;
    gap: 6px;
}

.model5-wrapper .rt-post-meta svg {
    width: 12px;
    height: 12px;
}

