/* ============================================
   DIKSI.CO – HEADER, NAVIGATION & OFFCANVAS
   Identik dengan Konsep Visual Diksi.co
============================================ */

@media screen {
    .diksi-print-branding {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }
}

/* ─── 2. MAIN HEADER ───────────────────────── */
.diksi-header {
    background: #FFFFFF;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 90;
    padding: 12px 0;
}

.diksi-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.diksi-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.diksi-logo a {
    display: inline-block;
    line-height: 1;
}

.diksi-logo img {
    height: 42px;
    width: auto;
    display: block;
}

/* ─── Header Search (Desktop) ──────────────── */
.diksi-header-search {
    flex: 1;
    max-width: 580px;
    margin: 0 auto;
}

.diksi-search-form {
    display: flex;
    align-items: center;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-full);
    padding: 0 16px;
    height: 44px;
    transition: var(--transition);
}

.diksi-search-form:focus-within {
    background: #FFFFFF;
    border-color: #0284C7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.diksi-search-icon {
    font-size: 18px;
    color: #64748B;
    margin-right: 10px;
    flex-shrink: 0;
}

.diksi-search-input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 13.5px;
    color: #1E293B;
    font-family: var(--font-sans);
}

.diksi-search-input::placeholder {
    color: #94A3B8;
}

/* ─── Header Actions (Right) ───────────────── */
.diksi-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.diksi-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #334155;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.diksi-action-btn:hover {
    background: #F8FAFC;
    color: #0284C7;
    border-color: #CBD5E1;
}

.diksi-badge-counter {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 999px;
    padding: 0 4px;
}

.diksi-badge-dot {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 8px;
    height: 8px;
    background: #0284C7;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
}

.diksi-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #1E293B;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.diksi-user-pill:hover {
    border-color: #0284C7;
    color: #0284C7;
    background: #F0F9FF;
}

.diksi-user-pill i {
    font-size: 16px;
}

/* ─── Hamburger (Mobile) ───────────────────── */
.diksi-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.diksi-hamburger__bar {
    display: block;
    width: 100%;
    height: 2.5px;
    background: #0B132B;
    border-radius: 2px;
    transition: var(--transition);
}

/* ─── 3. PRIMARY NAVBAR (Desktop) ──────────── */
.diksi-navbar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 80;
}

.diksi-navbar__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 48px;
}

.diksi-nav-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 34px;
    background: #0284C7;
    color: #FFFFFF;
    border-radius: 8px;
    font-size: 18px;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.diksi-nav-home-btn:hover {
    background: #0369A1;
    transform: translateY(-1px);
}

.diksi-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    flex: 1;
    overflow: visible;
}

.diksi-nav-list > li {
    position: relative;
    list-style: none;
    display: flex;
    align-items: center;
    height: 48px;
}

.diksi-nav-list > li > a {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #1E293B;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
    padding: 6px 0;
}

.diksi-nav-list > li > a:hover,
.diksi-nav-list > li.current-menu-item > a {
    color: #0284C7;
}

/* Hide duplicate text "Beranda" when home icon button exists */
.diksi-nav-list .diksi-menu-home {
    display: none !important;
}

/* Dropdown Sub-menu */
.diksi-nav-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    padding: 6px 0;
    list-style: none;
    margin: 0;
    z-index: 120;
}

.diksi-nav-list li:hover > .sub-menu,
.diksi-nav-list li:focus-within > .sub-menu {
    display: block;
    animation: diksiDropdownFade 0.18s ease;
}

@keyframes diksiDropdownFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.diksi-nav-list .sub-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.diksi-nav-list .sub-menu li a {
    display: block;
    padding: 9px 16px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.diksi-nav-list .sub-menu li a:hover {
    background: #F0F9FF;
    color: #0284C7;
}

.diksi-nav-list .menu-item-has-children > a::after {
    content: "\ea4e";
    font-family: 'remixicon' !important;
    font-size: 12px;
    font-weight: normal;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.diksi-nav-list .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* ─── 4. MOBILE CATEGORY STRIP ─────────────── */
.diksi-mobile-cat-strip {
    display: none;
    background: #FFFFFF;
    border-bottom: 1px solid var(--color-border);
    padding: 8px 12px;
}

.diksi-mobile-cat-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}

.diksi-mobile-cat-scroll::-webkit-scrollbar {
    display: none;
}

.diksi-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #334155;
    background: #F1F5F9;
    text-decoration: none;
    transition: var(--transition);
}

.diksi-cat-pill.active {
    background: #10B981;
    color: #FFFFFF;
}

/* ─── 5. TRENDING TOPICS BAR ───────────────── */
.diksi-trending-bar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--color-border);
    padding: 8px 0;
    font-size: 12.5px;
}

.diksi-trending-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.diksi-trending-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #EF4444;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

.diksi-trending-label i {
    font-size: 16px;
}

.diksi-trending-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}

.diksi-trending-tags::-webkit-scrollbar {
    display: none;
}

.diksi-tag-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: #F1F5F9;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.diksi-tag-pill:hover {
    background: #E0F2FE;
    color: #0284C7;
}

.diksi-trending-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #64748B;
    cursor: pointer;
    flex-shrink: 0;
}

/* ─── 6. MOBILE OFFCANVAS DRAWER (sidebar-menu-mobile.png) ─ */
.diksi-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 19, 43, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.diksi-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.diksi-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 440px;
    background: #FFFFFF;
    z-index: 1050; /* above bottom bar (990) and header (1000) */
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 8px 0 32px rgba(11, 19, 43, 0.2);
}

.diksi-drawer.active {
    transform: translateX(0);
}

/* Drawer Header with Banner Graphic */
.diksi-drawer-header {
    position: relative;
    background: #FFFFFF url('../banner-sidebarmenu.webp') no-repeat top right / contain;
    padding: 24px 20px 16px;
    border-bottom: 1px solid #F1F5F9;
}

.diksi-drawer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0284C7;
    color: #FFFFFF;
    border: none;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.diksi-drawer-brand {
    max-width: 280px;
}

.diksi-drawer-tagline {
    font-size: 12px;
    color: #64748B;
    line-height: 1.4;
    margin: 8px 0 0;
}

.diksi-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px 30px;
    scrollbar-width: thin;
}

/* Drawer Search */
.diksi-drawer-search form {
    display: flex;
    align-items: center;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-full);
    padding: 0 16px;
    height: 44px;
    margin-bottom: 20px;
}

.diksi-drawer-search i {
    color: #64748B;
    font-size: 18px;
    margin-right: 10px;
}

.diksi-drawer-search input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 13px;
    color: #1E293B;
}

/* Drawer Section Header */
.diksi-drawer-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.diksi-drawer-section-head h3 {
    font-size: 17px;
    font-weight: 800;
    color: #0B132B;
    margin: 0;
}

.diksi-see-all {
    font-size: 12px;
    font-weight: 700;
    color: #0284C7;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 2-Column Category Grid */
.diksi-cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 24px;
}

.diksi-cat-card {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #FFFFFF;
    border: 1px solid #F1F5F9;
    border-radius: 10px;
    text-decoration: none;
    gap: 10px;
    transition: var(--transition);
}

.diksi-cat-card:hover {
    background: #F8FAFC;
    border-color: #E2E8F0;
}

.diksi-cat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.diksi-cat-icon.green  { background: #ECFDF5; color: #10B981; }
.diksi-cat-icon.blue   { background: #EFF6FF; color: #3B82F6; }
.diksi-cat-icon.teal   { background: #F0FDFA; color: #0D9488; }
.diksi-cat-icon.red    { background: #FEF2F2; color: #EF4444; }
.diksi-cat-icon.orange { background: #FFF7ED; color: #F97316; }
.diksi-cat-icon.cyan   { background: #ECFEFF; color: #06B6D4; }
.diksi-cat-icon.pink   { background: #FDF2F8; color: #EC4899; }
.diksi-cat-icon.purple { background: #FAF5FF; color: #A855F7; }
.diksi-cat-icon.gray   { background: #F1F5F9; color: #64748B; }

.diksi-cat-text {
    flex: 1;
    min-width: 0;
}

.diksi-cat-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0B132B;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.diksi-cat-text span {
    display: block;
    font-size: 10.5px;
    color: #94A3B8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.diksi-arrow {
    color: #CBD5E1;
    font-size: 16px;
}

/* Drawer Utility Menu */
.diksi-drawer-utility {
    border-top: 1px solid #F1F5F9;
    padding-top: 12px;
    margin-bottom: 20px;
}

.diksi-util-item {
    display: flex;
    align-items: center;
    padding: 10px 4px;
    color: #334155;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--transition);
}

.diksi-util-item i:first-child {
    font-size: 18px;
    color: #64748B;
    margin-right: 14px;
}

.diksi-util-item span {
    flex: 1;
}

.diksi-util-item:hover {
    color: #0284C7;
}

/* Promo Card */
.diksi-drawer-promo {
    background: #0B132B url('../banner-ads04.webp') no-repeat center / cover;
    border-radius: 14px;
    padding: 20px;
    color: #FFFFFF;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(11, 19, 43, 0.15);
}

.diksi-drawer-promo h4 {
    font-size: 15px;
    font-weight: 800;
    margin: 12px 0 0;
    line-height: 1.3;
    max-width: 240px;
}

.diksi-promo-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #FFFFFF;
    color: #0284C7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Drawer Footer */
.diksi-drawer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #F1F5F9;
}

.diksi-drawer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.diksi-drawer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #334155;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
}

.diksi-drawer-socials a:hover {
    background: #0284C7;
    color: #FFFFFF;
}

.diksi-drawer-copy {
    font-size: 11px;
    color: #94A3B8;
    line-height: 1.3;
    margin: 0;
    text-align: right;
}

/* ─── RESPONSIVE BREAKPOINTS ───────────────── */
@media (max-width: 991px) {
.diksi-hamburger {
        display: flex;
    }
    .diksi-header-search {
        display: none;
    }
    .diksi-navbar {
        display: none;
    }
    .diksi-mobile-cat-strip {
        display: block;
    }
    .diksi-user-pill span,
    .diksi-notif-btn {
        display: none;
    }
}



/* Unified sticky masthead. All offsets are measured by main.js to avoid overlap. */
:root { --diksi-header-height: 0px; --diksi-nav-height: 0px; --diksi-mobile-categories-height: 0px; }
.diksi-header { position: sticky; top: 0; z-index: 930; box-shadow: 0 3px 12px rgba(15, 23, 42, .06); }
.diksi-navbar { position: sticky; top: var(--diksi-header-height); z-index: 920; }
.diksi-trending-bar { position: sticky; top: calc(var(--diksi-header-height) + var(--diksi-nav-height)); z-index: 910; box-shadow: 0 4px 10px rgba(15, 23, 42, .04); }
@media (max-width: 991px) {
  .diksi-header { padding: 8px 0; }
  .diksi-header__inner { flex-wrap: wrap; gap: 8px 12px; }
  .diksi-header-search { display: block; order: 2; flex-basis: 100%; max-width: none; }
  .diksi-search-form { height: 38px; }
  .diksi-hamburger { order: 0; }
  .diksi-logo { order: 1; margin-right: auto; }
  .diksi-logo img { height: 34px; }
  .diksi-header-actions { order: 1; gap: 6px; }
  .diksi-header-actions .diksi-action-btn { display: inline-flex; width: 34px; height: 34px; font-size: 16px; }
  .diksi-header-actions .diksi-notif-btn { display: inline-flex; }
  .diksi-user-pill { padding: 7px 10px; }
  .diksi-mobile-cat-strip { position: sticky; top: var(--diksi-header-height); z-index: 920; }
  .diksi-trending-bar { top: calc(var(--diksi-header-height) + var(--diksi-mobile-categories-height)); z-index: 910; }
}

/* Mobile concept: the compact masthead owns navigation; category/topic strips stay hidden. */
@media (max-width: 991px) {
  .diksi-mobile-cat-strip,
  .diksi-trending-bar { display: none !important; }
  .diksi-header { z-index: 1000; }
  /* These selectors isolate the navigation drawer from the bookmark drawer rules
     supplied by diksi-features.css, which otherwise made the panel look blurred. */
  #diksi-mobile-overlay.diksi-drawer-overlay {
    z-index: 1049;   /* just below the drawer itself */
    background: rgba(11, 19, 43, .48);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  #diksi-mobile-drawer.diksi-drawer {
    z-index: 1050;   /* above bottom bar (990) and overlay (1049) */
    background: #fff;
    filter: none;
    opacity: 1;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    isolation: isolate;
    /* Body scrolls inside drawer, not affected by bottom bar */
    padding-bottom: 0;
  }
  #diksi-mobile-drawer .diksi-drawer-header {
    display: block;
    position: relative;
    min-height: 110px;
    background-color: #fff;
    opacity: 1;
    filter: none;
  }
  #diksi-mobile-drawer .diksi-drawer-body {
    display: block;
    background: #fff;
    opacity: 1;
    filter: none;
    /* Extra bottom padding so content clears the bottom nav bar */
    padding-bottom: 72px;
  }
}

/* --- BANNER IKLAN ATAS ---
   Banner bersifat STATIS/DIAM di top: 0 (position: sticky; top: 0; z-index: 1).
   Saat scroll dimulai, header yang bergerak naik menutup banner dari atas
   karena posisi banner ada di belakang header (z-index header: 930). */
.diksi-top-ad-band {
    position: sticky;
    top: 0;
    z-index: 1;
    width: 100%;
    background: #000;
    overflow: hidden;
}

.diksi-top-ad-content {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* Above-header advertisement: the only layout source for every public page. */
.diksi-top-ad-banner,
.diksi-ad--top {
    box-sizing: border-box;
    display: block;
    width: 79%;
    max-width: 79%;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #000;
    color: #fff;
}

.diksi-top-ad-banner__meta {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 14px;
    background: #000;
    color: #fff;
    font: 700 11px/1.35 "Plus Jakarta Sans", sans-serif;
    letter-spacing: .01em;
}

.diksi-top-ad-banner__meta span {
    padding: 3px 7px;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 999px;
    color: #fff;
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.diksi-top-ad-banner__meta strong {
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.diksi-top-ad-banner__image,
.diksi-ad--top .diksi-ad__image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    background: #000;
}

.diksi-ad--top .diksi-ad__inner {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    background: #000;
}

.diksi-top-ad-banner__ticker {
    min-height: 34px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, .25);
    background: #000;
}

.diksi-top-ad-banner__track {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 22px;
    padding-left: 100%;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .2px;
    white-space: nowrap;
    animation: diksi-banner-marquee 22s linear infinite;
}

.diksi-top-ad-banner__track span:nth-child(even) {
    color: #38bdf8;
}

@keyframes diksi-banner-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 767px) {
    .diksi-top-ad-banner,
    .diksi-ad--top {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .diksi-top-ad-banner__meta {
        padding: 6px 10px;
        font-size: 10px;
    }

    .diksi-top-ad-banner__meta strong {
        max-width: 68%;
    }

    .diksi-top-ad-banner__ticker {
        min-height: 30px;
    }

    .diksi-top-ad-banner__track {
        gap: 15px;
        font-size: 10.5px;
        animation-duration: 19s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .diksi-top-ad-banner__track {
        padding-left: 16px;
        animation: none;
    }
}




