/* ============================================================
   Website NU - Tema Dinamis (CSS Variables)
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: var(--text-color);
    background: linear-gradient(180deg, #f4f5f6 0%, #eceef0 100%);
    background-attachment: fixed;
    line-height: 1.6;
}

a { color: var(--link-color); text-decoration: none; transition: all .2s; }
a:hover { color: var(--link-hover); }

img { max-width: 100%; height: auto; }
.clear { clear: both; }

.container {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======= TOP BAR ======= */
#topmenu-wrapper, #top-header { width: 100%; background: #e4e5e6; border-bottom: 1px solid #dcdcdc; }
#topmenu-wrapper .top-container, #top-header .top-container { display: flex; align-items: center; width: 100%; position: relative; background: #e4e5e6; }
.topblack {
    background: var(--topbar-bg, #111111);
    color: #ffffff;
    padding: 8px 30px 8px 16px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
    flex-shrink: 0;
    margin-right: -12px;
    position: relative;
    z-index: 2;
}
.topblack i { margin-right: 6px; color: #ffffff; }
.topgry {
    background: #e4e5e6;
    flex: 1;
    min-width: 0;
    color: #494949;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.newsticker { flex: 1; min-width: 0; padding: 0 16px; color: #333333; font-size: 13px; font-weight: 500; }
.newsticker marquee { display: block; }
.shortingmenu { margin-left: auto; flex-shrink: 0; }
.shortingmenu ul { list-style: none; display: flex; align-items: center; margin: 0; padding: 0; }
.shortingmenu ul li a {
    display: block;
    padding: 8px 14px;
    color: #444444;
    font-size: 12.5px;
    font-weight: 500;
    border-left: none;
    transition: color .2s ease;
}
.shortingmenu ul li a:hover { color: var(--primary); background: transparent; text-decoration: underline; }

/* ======= HEADER ======= */
.header { background: var(--header-bg); }
.header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 15px; }

/* Brand (logo) */
.site-brand {
    display: flex;
    align-items: center;
    padding: 4px 0;
}
.site-brand a.brand-header-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: opacity .2s ease;
}
.site-brand a.brand-header-link:hover {
    opacity: 0.94;
}
.site-brand a.brand-header-link.brand-layout-right {
    flex-direction: row;
    align-items: center;
}
.site-brand a.brand-header-link.brand-layout-left {
    flex-direction: row;
    align-items: center;
}
.site-brand a.brand-header-link.brand-layout-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.site-brand a.brand-header-link.brand-layout-top {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
}
.site-brand a.brand-header-link.brand-layout-none .brand-org-text {
    display: none !important;
}

.logo-box-white {
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform .2s ease, box-shadow .2s ease;
    flex-shrink: 0;
}
.logo-box-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}
.site-brand .logo-img { height: 52px; max-height: 56px; width: auto; max-width: 220px; object-fit: contain; display: block; border-radius: 3px; }

/* Teks Identitas Organisasi 2 Baris */
.brand-org-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.brand-org-text.text-align-left { text-align: left; }
.brand-org-text.text-align-right { text-align: right; }
.brand-org-text.text-align-center { text-align: center; align-items: center; }

.org-line-1 {
    line-height: 1.2;
    margin: 0;
    padding: 0;
}
.org-line-2 {
    line-height: 1.25;
    margin: 0;
    padding: 0;
}

.logo img { height: 52px; width: auto; max-width: 220px; object-fit: contain; }
.headerright img { height: 56px; width: auto; border-radius: 4px; }
.footer-mini-logo {
    width: 24px;
    height: 24px;
    background: #ffffff;
    padding: 2px;
    border-radius: 4px;
    object-fit: contain;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ======= MENU (3D Timbul Ramping & Elegan) ======= */
.menubar {
    background: linear-gradient(180deg,
        var(--menu-grad-start, #2ba84a) 0%,
        var(--menu-grad-end, #003d06) 100%);
    position: relative;
    z-index: 999;
    border-top: 1px solid rgba(255,255,255,.25);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.35),
        inset 0 -2px 5px rgba(0,0,0,.35),
        0 4px 12px rgba(0,0,0,.28);
}
.menubar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    position: relative;
}
.sitenav {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}
.sitenav ul { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
.sitenav ul li { position: relative; }
.sitenav ul li a {
    display: block;
    color: #fff;
    padding: 8px 11px;
    font-size: 13.5px;
    border-right: 1px solid rgba(255,255,255,.15);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .2px;
    text-shadow: 0 1px 2px rgba(0,0,0,.55);
    transition: all .2s ease;
    line-height: 1.3;
}
.sitenav ul li:first-child a {
    border-left: 1px solid rgba(255,255,255,.10);
}
.sitenav ul li a:hover,
.sitenav ul li.current_page_item > a {
    background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.06));
    color: #fff;
    box-shadow:
        inset 0 1px 3px rgba(255,255,255,.35),
        inset 0 -1px 3px rgba(0,0,0,.25),
        0 2px 4px rgba(0,0,0,.2);
}
.sitenav ul li.haschild > a::after {
    content: ' ▾';
    font-size: 10px;
    opacity: .7;
}
.sitenav ul li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(180deg, #222 0%, #0a0a0a 100%);
    min-width: 190px;
    display: none;
    border-top: 2px solid var(--menu-grad-start, #2ba84a);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12),
        0 6px 18px rgba(0,0,0,.5);
}
.sitenav ul li:hover > ul.sub-menu { display: block; }
.sitenav ul li ul.sub-menu li { width: 100%; }
.sitenav ul li ul.sub-menu li a {
    padding: 8px 14px;
    border-bottom: 1px solid #333;
    border-right: none;
    border-left: none;
    font-size: 13px;
    text-transform: none;
    color: #fff;
    font-weight: 500;
}
.sitenav ul li ul.sub-menu li a:hover {
    background: linear-gradient(180deg,
        var(--menu-grad-start, #2ba84a) 0%,
        var(--menu-grad-end, #003d06) 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.sitenav ul li ul.sub-menu li ul.sub-menu { top: 0; left: 100%; }

.nav-item-row { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.submenu-toggle-btn { display: none; }
.toggle { display: none; }
.mobile-only-topmenu-divider, .mobile-only-topmenu-item { display: none !important; }

/* Bagian Searchbox Selalu Rata Kanan */
.searchbox {
    margin-left: auto;
    padding: 0 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.searchbox .search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 20px;
    padding: 2px 4px 2px 12px;
    border: 1px solid rgba(0,0,0,0.15);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.searchbox .search-form input[type='search'] {
    border: none;
    outline: none;
    background: transparent;
    font-size: 12.5px;
    color: #333;
    padding: 4px 0;
    width: 140px;
}
.searchbox .search-form button[type='submit'] {
    border: none;
    background: var(--menu-grad-start, #017f0b);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: transform .15s ease, filter .15s ease;
}
.searchbox .search-form button[type='submit']:hover {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* ======= SLIDER / 3 KOLOM ======= */
#threeCatWrap { padding: 20px 0; }
#threeCatWrap .container { display: flex; flex-wrap: nowrap; gap: 12px; align-items: stretch; }
.cat-3-col { flex: 1; min-width: 0; }
.cat-3-col.catwrapleft, .cat-3-col.catwrapright { display: flex; flex-direction: column; gap: 12px; flex: 0 0 260px; min-width: 0; }
.cat-3-col.catwrapslider { flex: 1 1 auto; min-width: 0; display: flex; max-width: 100%; }
.cat-3-col.catwrapslider .owl-carousel { width: 100%; align-self: stretch; display: flex; min-width: 0; }
.cat-3-col.catwrapslider .owl-carousel .owl-stage, .cat-3-col.catwrapslider .owl-carousel {
    overflow: hidden;
}
.cat-3-col.catwrapslider .owl-carousel .owl-stage { align-items: stretch; }
.catleft-1 {
    background: #000;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    flex: 1;
    min-height: 0;
    border: 1px solid rgba(255,255,255,.6);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.4),
        0 8px 20px rgba(0,0,0,.3);
}
.catleft-1 .catleft-img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: .4s; }
.catleft-1:hover .catleft-img { opacity: 1; transform: scale(1.04); }
.catleft-1:hover a img { opacity: 1; transform: scale(1.04); }
.catleft-1 h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,.6);
    color: #fff;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}
.catleft-1 h3 span { font-weight: 400; }
.catbx {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
}
.catbx a { color: #fff; }
.catbx1 { background: #5a4182; }
.catbx2 { background: #fda32f; }
.catbx3 { background: #80bc00; }

.catwrapslider { min-height: 320px; }
.owl-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.6);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.5),
        0 10px 30px rgba(0,0,0,.35);
}
.owl-carousel .owl-stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
}
.slidesection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: scale(1.02);
    z-index: 1;
    box-sizing: border-box;
    overflow: hidden;
}
.slidesection.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}
.slidesection > a {
    display: block;
    width: 100%;
    height: 100%;
}
.slidesection img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}
.slide-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .4px;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.slidesection h3 {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    color: #fff;
    padding: 40px 16px 14px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    z-index: 3;
}
.owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.6);
    color: #fff;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    z-index: 10;
    font-size: 16px;
    transition: background .2s;
}
.owl-prev { left: 0; border-radius: 0 4px 4px 0; }
.owl-next { right: 0; border-radius: 4px 0 0 4px; }
.owl-nav button:hover { background: var(--primary); }
.owl-dots { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; z-index: 10; }
.owl-dot { display: inline-block; width: 10px; height: 10px; margin: 0 4px; background: #fff; border-radius: 50%; cursor: pointer; opacity: .6; transition: all .2s; }
.owl-dot.active { background: var(--primary); opacity: 1; transform: scale(1.2); }

/* ======= HOMEPAGE WRAPPER ======= */
#homepagewrapper { padding: 0 0 30px; }
#homepagewrapper .container { display: flex; flex-wrap: wrap; gap: 15px; }
#sidebar { width: 250px; flex-shrink: 0; }
.sidebar-left, .sidebar-right { }
#contentpart { flex: 1; min-width: 280px; }
.content h6 { color: var(--primary); text-transform: uppercase; margin-bottom: 12px; font-size: 14px; }

/* ======= MODEL TAMPILAN KORAN & JURNALISTIK (NEWSPAPER EDITORIAL LAYOUT) ======= */
.article-newspaper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

/* Judul Artikel Ala Koran */
.newspaper-head {
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 16px;
}
.newspaper-category {
    display: inline-block;
    background: var(--primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-decoration: none;
}
.newspaper-title {
    font-family: 'Georgia', 'Merriweather', serif;
    font-size: 30px;
    line-height: 1.35;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px 0;
    letter-spacing: -0.3px;
}
.newspaper-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #64748b;
}
.newspaper-meta span { display: flex; align-items: center; gap: 6px; }

/* Content Body Ala Portal Berita Koran Modern (100% Persis Screenshot User) */
.newspaper-body, .post-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15.5px;
    line-height: 1.6;
    color: #333333;
    text-align: left;
}
.newspaper-body p, .post-content p {
    margin-bottom: 16px;
    color: #333333;
}
.newspaper-body strong, .post-content strong,
.newspaper-body b, .post-content b {
    color: #111111;
    font-weight: 700;
}

/* Gambar Koran dengan Text Wrap (Floating & Resizing Persis Screenshot) */
.newspaper-body img, .post-content img, .article-body img, .page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

/* Seluruh Gambar di dalam Paragraf Otomatis Melayang di Kiri (Top Aligned Float Left) */
.newspaper-body p img, .post-content p img {
    float: left !important;
    margin: 4px 16px 8px 0 !important;
    max-width: 220px !important;
    height: auto !important;
    vertical-align: top !important;
}

.newspaper-body img[style*="float: left"], .post-content img[style*="float: left"],
.newspaper-body img.alignleft, .post-content img.alignleft {
    float: left !important;
    margin: 4px 16px 8px 0 !important;
    max-width: 220px !important;
}

.newspaper-body img[style*="float: right"], .post-content img[style*="float: right"],
.newspaper-body img.alignright, .post-content img.alignright {
    float: right !important;
    margin: 4px 0 8px 16px !important;
    max-width: 220px !important;
}

.newspaper-body img[style*="display: block"], .post-content img[style*="display: block"],
.newspaper-body img.aligncenter, .post-content img.aligncenter {
    float: none !important;
    display: block !important;
    margin: 16px auto !important;
    max-width: 100% !important;
}

/* Blockquote Ala Koran */
.newspaper-body blockquote, .post-content blockquote {
    font-style: italic;
    border-left: 4px solid var(--primary);
    background: #f8fafc;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    color: #334155;
    font-size: 18px;
    line-height: 1.6;
}

/* Clearfix */
.newspaper-body::after, .post-content::after {
    content: "";
    display: table;
    clear: both;
}

#sidebar .widget {
    background: linear-gradient(180deg, #ffffff 0%, #f7f8f9 100%);
    border: 1px solid #e0dede;
    padding: 16px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.8),
        0 6px 14px rgba(0,0,0,.12);
}
h3.widget-title {
    font-size: 16px;
    color: #363636;
    border-bottom: 2px solid #edecec;
    padding-bottom: 10px;
    margin-bottom: 12px;
    text-transform: uppercase;
}
#sidebar .widget ul { list-style: none; }
#sidebar .widget ul li {
    padding: 7px 0;
    border-bottom: 1px solid #f3f2f2;
    font-size: 13px;
}
#sidebar .widget ul li a { display: block; }
.widget-calendar iframe { width: 100%; height: 300px; border: 1px solid #ddd; }

/* Widget Pengumuman */
.empty-announcement-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    padding: 18px 12px;
    text-align: center;
    color: #64748b;
    margin: 4px 0;
}
.announcement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.announcement-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}
.announcement-list li:last-child {
    border-bottom: none;
}
.announcement-list li a {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-decoration: none;
    color: #1e293b;
    transition: color .2s ease;
}
.announcement-list li a:hover {
    color: var(--primary);
}
.announcement-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}
.announcement-date {
    font-size: 11px;
    color: #94a3b8;
}

/* Widget Hari-Hari Besar Islam */
.widget-islamic-days {
    background: #ffffff;
    border-radius: 8px;
}
.islamic-days-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}
.islamic-days-subtitle {
    background: linear-gradient(135deg, rgba(1,127,11,0.08) 0%, rgba(1,127,11,0.02) 100%);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 10px;
    border: 1px solid rgba(1,127,11,0.15);
}
.islamic-days-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.islamic-day-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #f1f5f9;
}
.islamic-day-item:last-child {
    border-bottom: none;
}
.islamic-day-item .day-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(1,127,11,0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 2px;
}
.islamic-day-item .day-content {
    flex: 1;
    min-width: 0;
}
.islamic-day-item .day-name {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    display: block;
    margin-bottom: 2px;
}
.islamic-day-item .day-dates {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10.5px;
    color: #64748b;
    gap: 4px;
}
.islamic-day-item .day-hijri {
    color: var(--primary);
    font-weight: 600;
}
.islamic-day-item .day-masehi {
    color: #94a3b8;
}
.islamic-days-footer {
    border-top: 1px dashed #e2e8f0;
    margin-top: 10px;
    padding-top: 8px;
    text-align: center;
    font-size: 10.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.islamic-days-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.islamic-days-footer a:hover {
    text-decoration: underline;
}

/* Featured carousel */
.featuredPostbx { flex: 0 0 100%; width: 100%; min-width: 100%; max-width: 100%; box-sizing: border-box; }
.featuredPostbx img { width: 100%; height: 340px; object-fit: cover; border-radius: 8px 8px 0 0; }
.featuredPostbx .contentBX {
    background: linear-gradient(180deg, #ffffff 0%, #f7f8f9 100%);
    border: 1px solid #e0dede;
    border-top: none;
    padding: 16px;
    border-radius: 0 0 8px 8px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.8),
        0 6px 14px rgba(0,0,0,.12);
}
.featuredPostbx .contentBX h3 { font-size: 18px; line-height: 1.4; margin-bottom: 8px; }
.featuredPostbx .contentBX .date { color: #999; font-size: 13px; margin-bottom: 8px; }
.featuredPostbx .contentBX p { font-size: 14px; color: #666; }

/* List Berita Terbaru 2 Kolom x 5 Baris */
#multicatWrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 18px;
}
.lists_cats {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.lists_cats:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}
.lists_cats .catThumb {
    position: relative;
    overflow: hidden;
}
.lists_cats .catThumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.lists_cats:hover .catThumb img {
    transform: scale(1.04);
}
.card-cat-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: var(--primary);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.lists_cats .contentCAT {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.lists_cats .contentCAT h5 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 6px;
}
.lists_cats .contentCAT h5 a {
    color: #1e293b;
    text-decoration: none;
    transition: color .2s;
}
.lists_cats .contentCAT h5 a:hover {
    color: var(--primary);
}
.PostMeta {
    color: #94a3b8;
    font-size: 11.5px;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.PostMeta i { margin-right: 3px; }
.lists_cats .contentCAT p {
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
}

@media (max-width: 768px) {
    #multicatWrap { grid-template-columns: 1fr; }
}

/* ======= WRAPPER FIRST (POPULER & FEATURED GRID) ======= */
#wrapperfirst {
    padding: 30px 0;
}
#wrapperfirst .container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.one_half { width: 48%; float: left; margin-right: 4%; }
.one_half.last_column { margin-right: 0; }
.one_half h5 { 
    font-size: 17px; 
    font-weight: 700;
    color: var(--heading-color, #1e293b); 
    border-bottom: 2px solid #e2e8f0; 
    padding-bottom: 10px; 
    margin-bottom: 15px; 
    display: flex;
    align-items: center;
}

.thumbgrid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.thumbview {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}
.thumbview:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
.thumbview a {
    display: block;
    position: relative;
    text-decoration: none;
}
.thumbview img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.thumbview:hover img {
    transform: scale(1.06);
}
.thumbview .thumb-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 75%, transparent 100%);
    color: #ffffff;
    padding: 8px 7px 5px;
}
.thumbview .thumb-caption h6 {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 0 2px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.thumbview .thumb-views,
.thumbview .thumb-date {
    display: block;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.75);
}

/* ======= LATEST POSTS (wrapperfourth) ======= */
#wrapperfourth { background: var(--footer-bg); padding: 30px 0; margin-top: 30px; }
#wrapperfourth h2.section-title { font-size: 24px; color: #fff; margin-bottom: 20px; }
.one_fifth { width: 19%; float: left; margin-right: 1.25%; }
.one_fifth.last_column { margin-right: 0; }
.one_fifth img { width: 100%; height: 120px; object-fit: cover; border-radius: 4px; }
.one_fifth h4 { font-size: 13px; margin: 10px 0; line-height: 1.4; }
.one_fifth h4 a { color: #fff; }
.one_fifth h4 a:hover { color: var(--primary); }
.one_fifth .PostContent { color: #8e8d8d; font-size: 12px; }

/* ======= FOOTER KOMPAK ======= */
#footer-wrapper { background: var(--footer-bg); border-top: 3px solid var(--primary); color: #9c9c9c; font-size: 13.5px; }
.footer-main { padding: 32px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1.4fr; gap: 28px; }
.footer-box .footer-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    padding-bottom: 7px;
    border-bottom: 2px solid rgba(255,255,255,0.08);
    letter-spacing: .3px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.footer-box .footer-title i { color: var(--primary); font-size: 14px; }
.footer-desc { font-size: 13px; line-height: 1.6; color: #8e8d8d; margin-bottom: 14px; }

/* Social Icons */
.social-icon { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.social-icon a {
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    transition: all .25s ease;
}
.social-icon a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); border-color: var(--primary); }

/* Tautan Cepat */
.footer-nav-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; }
.footer-nav-list li a { color: #b8b8b8; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 0; transition: all .2s; }
.footer-nav-list li a i { font-size: 9px; opacity: 0.6; color: var(--primary); }
.footer-nav-list li a:hover { color: var(--primary); transform: translateX(3px); }

/* Kontak Redaksi */
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.contact-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #a5a5a5; line-height: 1.5; }
.contact-list li i { color: var(--primary); font-size: 13px; margin-top: 3px; flex-shrink: 0; }
.contact-list li a { color: #fff; transition: color .2s; }
.contact-list li a:hover { color: var(--primary); }

/* Copyright Bar */
.copyright-wrapper { background: rgba(0,0,0,0.5); border-top: 1px solid rgba(255,255,255,0.06); padding: 11px 0; font-size: 12.5px; color: #888; }
.copyright-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.copyright-txt strong { color: #ddd; }
.copyright-txt a, .copyright-links a { color: #999; transition: color .2s; }
.copyright-txt a:hover, .copyright-links a:hover { color: var(--primary); }
.copyright-links { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.copyright-links .sep { color: #555; }
.admin-login-link { display: inline-flex; align-items: center; gap: 4px; color: #777; }
.admin-login-link:hover { color: var(--primary); }

/* ======= HALAMAN BERITA / KATEGORI ======= */
.page-wrap { padding: 30px 0; }
.page-wrap .container { display: flex; flex-wrap: wrap; gap: 15px; }
.page-content { flex: 1; min-width: 280px; }
.page-content .page-title { font-size: 26px; color: var(--heading-color); margin-bottom: 20px; }
.article {
    background: linear-gradient(180deg, #ffffff 0%, #f7f8f9 100%);
    border: 1px solid #e0dede;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.8),
        0 6px 14px rgba(0,0,0,.12);
}
.article img.article-img { width: 100%; height: 380px; object-fit: cover; }
.article .article-body { padding: 20px; }
.article .article-body h2 { font-size: 22px; margin-bottom: 8px; }
.article .article-body h2 a { color: var(--heading-color); }
.article .article-body h2 a:hover { color: var(--primary); }
.article .article-body p { margin: 10px 0; color: #555; }
.article .article-body .meta { color: #999; font-size: 13px; margin-bottom: 10px; }
.post-list-item {
    background: linear-gradient(180deg, #ffffff 0%, #f7f8f9 100%);
    border: 1px solid #e0dede;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex; flex-wrap: wrap;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.8),
        0 6px 14px rgba(0,0,0,.12);
}
.post-list-item img { width: 260px; height: 170px; object-fit: cover; }
.post-list-item .item-body { flex: 1; padding: 15px; min-width: 260px; }
.post-list-item .item-body h3 { font-size: 18px; margin-bottom: 6px; }
.post-list-item .item-body h3 a { color: var(--heading-color); }
.post-list-item .item-body h3 a:hover { color: var(--primary); }
.post-list-item .item-body p { color: #666; font-size: 13px; }

.sidebar-right .widget img { width: 100%; border-radius: 4px; }

.breadcrumb { font-size: 13px; color: #999; margin-bottom: 15px; }
.breadcrumb a { color: var(--link-color); }

/* ======= EXACT BOOTSTRAP 5 PAGINATION VISUAL (PUBLIC SITE) ======= */
.pagination {
    display: inline-flex !important;
    padding-left: 0 !important;
    margin: 32px 0 16px !important;
    list-style: none !important;
    border-radius: 0.375rem !important;
    border: 1px solid #dee2e6 !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.pagination a, 
.pagination span {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 7px 14px !important;
    min-width: 36px !important;
    height: 38px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    color: #0d6efd !important;
    text-decoration: none !important;
    background-color: #ffffff !important;
    border: none !important;
    border-right: 1px solid #dee2e6 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    transition: background-color .15s ease-in-out, color .15s ease-in-out !important;
}

.pagination a:last-child, 
.pagination span:last-child {
    border-right: none !important;
}

.pagination a:hover {
    z-index: 2 !important;
    color: #0a58ca !important;
    background-color: #e9ecef !important;
}

.pagination .current, 
.pagination .active,
.pagination span.current {
    z-index: 3 !important;
    color: #ffffff !important;
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    font-weight: 600 !important;
}

.pagination .disabled, 
.pagination span.disabled {
    color: #6c757d !important;
    pointer-events: none !important;
    background-color: #e9ecef !important;
    cursor: default !important;
    opacity: 1 !important;
}

/* ======= WIDGET JADWAL SHOLAT (SERAGAM PERSIS HARI BESAR ISLAM) ======= */
.widget-sholat {
    background: #ffffff;
    border-radius: 8px;
}
.sholat-card-uniform {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}
.sholat-subtitle-uniform {
    background: linear-gradient(135deg, rgba(1,127,11,0.08) 0%, rgba(1,127,11,0.02) 100%);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 8px;
    border: 1px solid rgba(1,127,11,0.15);
}
.sholat-city-uniform-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 5px 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}
.sholat-city-uniform-wrapper label {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin: 0;
    white-space: nowrap;
}
.sholat-city-uniform-select {
    flex: 1;
    min-width: 0;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    color: #1e293b;
    border-radius: 4px;
    padding: 3px 6px;
    outline: none;
    cursor: pointer;
}
.sholat-list-uniform {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.sholat-item-uniform {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 6px;
    transition: background-color .15s ease;
}
.sholat-item-uniform:last-child {
    border-bottom: none;
}
.sholat-item-uniform:hover {
    background-color: #f8fafc;
}
.sholat-item-uniform.highlight {
    background: rgba(1, 127, 11, 0.08);
}
.sholat-icon-uniform {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(1,127,11,0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}
.sholat-item-uniform.highlight .sholat-icon-uniform {
    background: var(--primary);
    color: #ffffff;
}
.sholat-content-uniform {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sholat-name-uniform {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
}
.sholat-item-uniform.highlight .sholat-name-uniform {
    color: var(--primary);
    font-weight: 700;
}
.sholat-time-uniform {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary);
    font-family: monospace, system-ui, sans-serif;
    letter-spacing: -0.2px;
}
.sholat-item-uniform.highlight .sholat-time-uniform {
    background: var(--primary);
    color: #ffffff;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 12px;
}
.sholat-footer-uniform {
    border-top: 1px dashed #e2e8f0;
    margin-top: 8px;
    padding-top: 8px;
    text-align: center;
    font-size: 10.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.sholat-footer-uniform a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.sholat-footer-uniform a:hover {
    text-decoration: underline;
}

/* ======= WIDGET HARI BESAR ISLAM (SIDE SLIDER) ======= */
.widget-islamic-days {
    background: #ffffff;
    border-radius: 8px;
}
.islamic-days-slider-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.slider-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    background: linear-gradient(135deg, rgba(1, 127, 11, 0.08) 0%, rgba(1, 127, 11, 0.02) 100%);
    border-bottom: 1px solid #e2e8f0;
}
.slider-badge-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary, #017f0b);
}
.slider-nav-btns {
    display: flex;
    align-items: center;
    gap: 5px;
}
.slider-btn {
    width: 22px;
    height: 22px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.slider-btn:hover {
    background: var(--primary, #017f0b);
    border-color: var(--primary, #017f0b);
    color: #ffffff;
}
.slide-indicator {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    padding: 0 4px;
    min-width: 28px;
    text-align: center;
}

.islamic-slides-wrapper {
    position: relative;
    min-height: 115px;
    background: #ffffff;
}
.islamic-slide-item {
    display: none;
    padding: 12px;
    animation: fadeInSlide 0.3s ease;
}
.islamic-slide-item.active {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
@keyframes fadeInSlide {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: translateX(0); }
}
.slide-badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary, #017f0b) 0%, #015c08 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(1, 127, 11, 0.25);
}
.slide-content-text {
    flex: 1;
    min-width: 0;
}
.slide-day-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
    margin: 0 0 4px 0;
}
.slide-date-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}
.slide-date-hijri {
    font-size: 11px;
    font-weight: 600;
    color: #166534;
    background: #f0fdf4;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #bbf7d0;
}
.slide-date-masehi {
    font-size: 10.5px;
    font-weight: 500;
    color: #64748b;
}
.slide-day-desc {
    font-size: 11px;
    color: #64748b;
    line-height: 1.35;
    margin: 0;
}

/* ======= WIDGET DAWUH ULAMA / MUTIARA HIKMAH ======= */
.widget-quote {
    background: #ffffff;
    border-radius: 8px;
}
.quote-card-sidebar {
    position: relative;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 14px 12px;
    overflow: hidden;
}
.quote-icon-watermark {
    position: absolute;
    right: 8px;
    bottom: -10px;
    font-size: 55px;
    color: rgba(1, 127, 11, 0.08);
    pointer-events: none;
}
.quote-text-body {
    position: relative;
    z-index: 1;
    font-size: 12px;
    line-height: 1.55;
    color: #14532d;
    font-style: italic;
    margin: 0 0 8px;
    font-weight: 500;
}
.quote-author-badge {
    position: relative;
    z-index: 1;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary, #017f0b);
    display: inline-block;
    border-top: 1px dashed rgba(1, 127, 11, 0.3);
    padding-top: 5px;
    width: 100%;
}

/* ======= WIDGET LAYANAN CEPAT & SALURAN WA ======= */
.widget-services {
    background: #ffffff;
    border-radius: 8px;
}
.services-list-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.service-btn-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.service-btn-item:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* Warna Merah */
.service-btn-item.red,
.service-btn-item.ambulance {
    background: #fef2f2;
    border-color: #fecaca;
}
.service-btn-item.red .service-icon,
.service-btn-item.ambulance .service-icon {
    background: #ef4444;
    color: #ffffff;
}
.service-btn-item.red:hover,
.service-btn-item.ambulance:hover {
    background: #fee2e2;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15);
}

/* Warna Hijau */
.service-btn-item.green,
.service-btn-item.lazisnu {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.service-btn-item.green .service-icon,
.service-btn-item.lazisnu .service-icon {
    background: var(--primary, #017f0b);
    color: #ffffff;
}
.service-btn-item.green:hover,
.service-btn-item.lazisnu:hover {
    background: #dcfce7;
    box-shadow: 0 2px 6px rgba(1, 127, 11, 0.15);
}

/* Warna Hijau Terang / Emerald / WA */
.service-btn-item.emerald,
.service-btn-item.channel {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.service-btn-item.emerald .service-icon,
.service-btn-item.channel .service-icon {
    background: #25d366;
    color: #ffffff;
}
.service-btn-item.emerald:hover,
.service-btn-item.channel:hover {
    background: #f1f5f9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Warna Biru */
.service-btn-item.blue {
    background: #f0f9ff;
    border-color: #bae6fd;
}
.service-btn-item.blue .service-icon {
    background: #0284c7;
    color: #ffffff;
}
.service-btn-item.blue:hover {
    background: #e0f2fe;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.15);
}

/* Warna Oranye */
.service-btn-item.orange {
    background: #fff7ed;
    border-color: #fed7aa;
}
.service-btn-item.orange .service-icon {
    background: #ea580c;
    color: #ffffff;
}
.service-btn-item.orange:hover {
    background: #ffedd5;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.15);
}

.service-btn-item .service-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.service-btn-item .service-info {
    flex: 1;
    min-width: 0;
}
.service-btn-item .service-title {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}
.service-btn-item .service-desc {
    display: block;
    font-size: 10px;
    color: #64748b;
    line-height: 1.2;
}
.service-btn-item .service-arrow {
    font-size: 13px;
    color: #94a3b8;
    flex-shrink: 0;
}
.service-btn-item:hover .service-arrow {
    color: var(--primary, #017f0b);
}

/* ======= WIDGET GALERI MULTI-VIDEO YOUTUBE & MODAL POPUP ======= */
.widget-youtube {
    background: #ffffff;
    border-radius: 8px;
}
.youtube-gallery-card {
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}
.youtube-main-player {
    background: #000000;
}
.main-player-thumb {
    position: relative;
    width: 100%;
    height: 155px;
    background: #000;
    cursor: pointer;
    overflow: hidden;
}
.main-player-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.88;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.main-player-thumb:hover img {
    transform: scale(1.05);
    opacity: 0.75;
}
.play-btn-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(220, 38, 38, 0.9);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    transition: all 0.2s ease;
}
.main-player-thumb:hover .play-btn-pulse {
    background: #dc2626;
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.8);
}
.play-modal-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease;
}
.main-player-thumb:hover .play-modal-badge {
    background: var(--primary, #017f0b);
}

.main-video-caption {
    background: #1e293b;
    color: #ffffff;
    padding: 8px 10px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.youtube-playlist-container {
    padding: 10px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}
.playlist-header {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}
.youtube-playlist-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
}
.yt-playlist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.yt-playlist-item:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    transform: translateX(2px);
}
.yt-thumb-wrapper {
    position: relative;
    width: 65px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #000;
}
.yt-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.yt-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: rgba(220, 38, 38, 0.85);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
}
.yt-item-info {
    flex: 1;
    min-width: 0;
}
.yt-item-title {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.yt-playlist-item:hover .yt-item-title {
    color: #dc2626;
}
.yt-item-status {
    display: block;
    font-size: 9.5px;
    color: #64748b;
    margin-top: 2px;
}
.yt-playlist-item:hover .yt-item-status {
    color: #dc2626;
    font-weight: 600;
}

/* =========================================
   MODAL POPUP LIGHTBOX PURE VIDEO STYLING
   ========================================= */
body.yt-modal-open {
    overflow: hidden !important;
}
.yt-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.yt-video-modal.show {
    opacity: 1;
    visibility: visible;
}
.yt-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
}
.yt-modal-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: auto;
    transform: scale(0.94);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.yt-video-modal.show .yt-modal-dialog {
    transform: scale(1);
}
.yt-modal-close-btn {
    position: absolute;
    top: -44px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}
.yt-modal-close-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: rotate(90deg) scale(1.1);
}
.yt-modal-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Rasio 16:9 Murni */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.yt-modal-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Penyesuaian Mobile Screen */
@media (max-width: 767px) {
    .yt-video-modal {
        padding: 10px;
    }
    .yt-modal-dialog {
        max-width: 100%;
    }
    .yt-modal-close-btn {
        top: -40px;
        right: 4px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    .yt-modal-video-wrapper {
        border-radius: 8px;
    }
}

/* ======= WIDGET ARSIP BERITA (ACCORDION TAHUN & BULAN) ======= */
.widget-archive {
    background: #ffffff;
    border-radius: 8px;
}
.archive-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.archive-year-group {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.2s ease;
}
.archive-year-group.open {
    border-color: #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.archive-year-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background 0.15s ease;
}
.archive-year-btn:hover {
    background: #f1f5f9;
}
.archive-year-group.open .archive-year-btn {
    background: #f0fdf4;
    border-bottom: 1px solid #e2e8f0;
}
.archive-year-btn .year-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
}
.archive-year-group.open .archive-year-btn .year-label {
    color: var(--primary, #017f0b);
}
.archive-year-btn .year-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}
.archive-year-btn .year-count {
    font-size: 10.5px;
    font-weight: 600;
    color: #64748b;
    background: #e2e8f0;
    padding: 2px 7px;
    border-radius: 10px;
}
.archive-year-group.open .archive-year-btn .year-count {
    background: rgba(1, 127, 11, 0.12);
    color: var(--primary, #017f0b);
}
.archive-year-btn .chevron-icon {
    font-size: 11px;
    color: #94a3b8;
    transition: transform 0.2s ease;
}
.archive-year-group.open .archive-year-btn .chevron-icon {
    transform: rotate(180deg);
    color: var(--primary, #017f0b);
}
.archive-month-collapse {
    display: none;
    padding: 6px;
    background: #ffffff;
}
.archive-year-group.open .archive-month-collapse {
    display: block;
}
.archive-month-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.archive-month-list li {
    margin: 0;
    padding: 0;
}
.archive-month-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 4px;
    color: #475569;
    font-size: 11.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}
.archive-month-item:hover {
    background: #f8fafc;
    color: var(--primary, #017f0b);
    transform: translateX(2px);
}
.archive-month-item.active {
    background: var(--primary, #017f0b);
    color: #ffffff;
    font-weight: 700;
}
.archive-month-item.active i {
    color: #ffffff !important;
}
.archive-month-item .month-name {
    display: flex;
    align-items: center;
}
.archive-month-item .month-badge {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 8px;
}
.archive-month-item:hover .month-badge {
    background: rgba(1, 127, 11, 0.12);
    color: var(--primary, #017f0b);
}
.archive-month-item.active .month-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ======= RESPONSIVE ======= */
/* Laptop kecil / tablet */
@media (max-width: 1200px) {
    .sitenav ul li a { padding: 8px 8px; font-size: 12.5px; }
}

/* Tablet */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
    .footer-brand { grid-column: span 2; }
    .column-4 { width: 48%; margin-bottom: 20px; }
    .one_fifth { width: 32%; margin-bottom: 15px; }
    #sidebar { width: 200px; }
    #sidebar .widget { width: 100%; }
    .featuredPostbx img { height: 320px; }
    .sitenav ul li a { padding: 7px 6px; font-size: 11.5px; }
}

/* Mobile landscape & portrait */
@media (max-width: 768px) {
    .container { padding: 0 12px; }

    /* Ticker top mobile - Clean single-line layout */
    #topmenu-wrapper, #top-header { width: 100%; background: #e4e5e6; border-bottom: 1px solid #dcdcdc; }
    #topmenu-wrapper .top-container, #top-header .top-container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        height: 38px !important;
        overflow: hidden !important;
        position: relative;
        background: #e4e5e6;
        padding: 0 !important;
    }
    .topblack {
        background: var(--topbar-bg, #111111) !important;
        color: #ffffff !important;
        padding: 6px 18px 6px 12px !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        font-size: 11px !important;
        letter-spacing: 0.5px !important;
        display: flex !important;
        align-items: center !important;
        clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%) !important;
        flex-shrink: 0 !important;
        margin-right: -8px !important;
        height: 100% !important;
        z-index: 2;
    }
    .topblack i { margin-right: 4px; font-size: 11px; }
    .topgry {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 100% !important;
        background: transparent !important;
        padding: 0 !important;
    }
    .newsticker {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 0 10px !important;
        color: #333333 !important;
        font-size: 12px !important;
    }
    .shortingmenu {
        display: flex !important;
        flex-shrink: 0;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .shortingmenu ul {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .shortingmenu ul li a {
        display: inline-block;
        padding: 6px 8px;
        font-size: 11.5px;
        color: #444;
        white-space: nowrap;
    }

    /* Header Mobile */
    .header .container {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        text-align: left;
        padding: 10px 12px;
    }
    .site-brand {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
    }
    .site-brand a.brand-header-link {
        justify-content: flex-start;
        align-items: center;
        text-align: left;
        gap: 10px;
    }
    .site-brand a.brand-header-link.brand-layout-right,
    .site-brand a.brand-header-link.brand-layout-left {
        flex-direction: row;
        align-items: center;
    }
    .site-brand a.brand-header-link.brand-layout-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .site-brand a.brand-header-link.brand-layout-top {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    .brand-org-text,
    .brand-org-text.text-align-left,
    .brand-org-text.text-align-right,
    .brand-org-text.text-align-center {
        text-align: left !important;
        align-items: flex-start !important;
    }
    .org-line-1 { font-size: 15px !important; line-height: 1.2; }
    .org-line-2 { font-size: 11px !important; line-height: 1.2; }
    .site-brand .logo-img { height: 44px; max-height: 48px; }
    .logo img { height: 44px; }
    .headerright { display: none; }

    /* Menu mobile modern & ringkas */
    .menubar .container { flex-direction: column; padding: 0; }
    .toggle {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: linear-gradient(180deg, var(--menu-grad-start, #2ba84a) 0%, var(--menu-grad-end, #003d06) 100%);
    }
    .toggle a.toggleMenu {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #ffffff;
        padding: 11px 16px;
        font-size: 13.5px;
        font-weight: 700;
        letter-spacing: .5px;
        text-decoration: none;
    }
    .toggle a.toggleMenu .nav-arrow-icon {
        transition: transform .25s ease;
        font-size: 12px;
    }
    .toggle a.toggleMenu.active .nav-arrow-icon {
        transform: rotate(180deg);
    }
    .mobile-search-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 42px;
        background: rgba(0,0,0,0.15);
        border: none;
        border-left: 1px solid rgba(255,255,255,0.15);
        color: #ffffff;
        font-size: 14px;
        cursor: pointer;
    }
    .sitenav {
        display: none;
        width: 100%;
        background: #181818;
    }
    .sitenav.show { display: block; }
    .sitenav ul { flex-direction: column; width: 100%; margin: 0; padding: 0; float: none !important; }
    .sitenav ul li {
        width: 100% !important;
        float: none !important;
        display: block !important;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        margin: 0 !important;
        position: relative;
    }
    .sitenav ul li a {
        border-right: none !important;
        border-left: none !important;
        padding: 11px 16px;
        font-size: 13.5px;
        font-weight: 600;
        text-transform: none;
        color: #f1f5f9;
        flex: 1;
        float: none !important;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }
    .sitenav ul li a:hover {
        background: rgba(255,255,255,0.06);
    }
    .submenu-toggle-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        background: transparent;
        border: none;
        border-left: 1px solid rgba(255,255,255,0.08);
        color: rgba(255,255,255,0.7);
        font-size: 11px;
        cursor: pointer;
        position: absolute;
        top: 0;
        right: 0;
    }
    .submenu-toggle-btn i {
        transition: transform .25s ease;
    }
    li.haschild.open > .submenu-toggle-btn i {
        transform: rotate(180deg);
        color: var(--secondary, #fda32f);
    }
    .sitenav ul li ul.sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        width: 100% !important;
        background: #0f0f0f;
        border-top: none;
        padding-left: 12px;
        float: none !important;
    }
    .sitenav ul li.open > ul.sub-menu { display: block; }
    .sitenav ul li ul.sub-menu li a {
        padding: 10px 16px;
        font-size: 13px;
        color: #cbd5e1;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }



    .searchbox {
        width: 100%;
        padding: 10px 16px;
        background: #111111;
        border-top: 1px solid rgba(255,255,255,0.08);
        margin: 0;
    }
    .searchbox .search-form {
        display: flex;
        width: 100%;
        background: #ffffff;
        border-radius: 20px;
        padding: 2px 4px 2px 12px;
    }
    .searchbox .search-form input[type='search'] {
        flex: 1;
        width: 100%;
        font-size: 13px;
        color: #333;
    }

    /* Slider 3 kolom -> 1 kolom */
    #threeCatWrap .container { flex-direction: column; }
    .cat-3-col.catwrapleft, .cat-3-col.catwrapright { flex-direction: row; flex: 1 1 100%; }
    .cat-3-col.catwrapslider { flex: 1 1 100%; }
    .cat-3-col.catwrapleft .catleft-1, .cat-3-col.catwrapright .catleft-1 { flex: 1; min-height: 160px; }
    .slidesection img { height: 240px; }
    .slidesection h3 { font-size: 15px; }

    /* Sidebar memanjang penuh */
    #sidebar { width: 100%; }

    /* Featured */
    .featuredPostbx img { height: 220px; }

    /* Kolom */
    .one_half { width: 100%; margin-right: 0; float: none; }
    .column-4 { width: 100%; margin-right: 0; float: none; }
    .one_fifth { width: 48%; float: left; }
    .one_fifth:nth-child(odd) { margin-right: 2%; }
    .one_fifth img { height: 110px; }

    /* Post list */
    .post-list-item img { width: 100%; height: 200px; }

    /* Artikel */
    .article img.article-img { height: 240px; }

    /* Footer Mobile */
    .footer-main { padding: 22px 0 14px; }
    .footer-grid { grid-template-columns: 1fr; gap: 18px; }
    .footer-brand { grid-column: span 1; }
    .copyright-flex { flex-direction: column; text-align: center; gap: 6px; }
    .copyright-links { justify-content: center; flex-wrap: wrap; }
}

/* Mobile kecil (<= 480) */
@media (max-width: 480px) {
    .footer-nav-list { grid-template-columns: 1fr 1fr; gap: 4px 8px; }
    .footer-box .footer-title { font-size: 14px; margin-bottom: 9px; }
    .one_fifth { width: 100%; float: none; margin-right: 0 !important; }
    .thumbview, .thumbview.last_column { width: 100%; }
    .topblack { width: 100%; }
    .site-brand .logo-img, .logo img { height: 40px; max-height: 44px; }
    .org-line-1 { font-size: 13.5px !important; }
    .org-line-2 { font-size: 10px !important; }
    .article .article-body { padding: 14px; }
}

