/*

 * Nova Theme - Global Styles

 * Simple Magazine & News Theme

 * @package Nova

 */



/* ==========================================================================

   CSS CUSTOM PROPERTIES (LIGHT MODE DEFAULT)

   ========================================================================== */



:root {

    /* Colors */

    --color-primary: #cb0b0b;

    --color-primary-hover: #a30909;

    --color-bg: #ffffff;

    --color-bg-alt: #f7f8fa;

    --color-surface: #ffffff;

    --color-border: #e8eaed;

    --color-text: #1a1a2e;

    --color-text-secondary: #395070;

    --color-text-muted: #515861;

    --color-link: #1a1a2e;

    --color-link-hover: #2e72f5;

    --color-overlay: rgba(0, 0, 0, 0.5);

    --color-menu-text: #000000;

    --color-menu-active: var(--color-link-hover);

    --header-icon-color: #1a1a2e;



    /* Footer Variable Defaults */

    --footer-bg: #ffffff;

    --footer-text: #1a1a2e;

    --footer-border: #e8eaed;

    --footer-accent: #1a1a2e;



    /* Spacing & Layout */

    --header-bg: #ffffff;

    --header-border: #e8eaed;

    --header-height: 118px;

    --header-height-mobile: 155px;



    /* Layout */

    --container-width: 1024px;

    --container-padding: 20px;



    /* Typography */

    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    --font-serif: Georgia, 'Times New Roman', serif;



    /* Transitions */    --container-padding: 15px;

    --transition-fast: 0.2s ease;

    --transition-smooth: 0.3s ease;



    /* Shadows */

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);

    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);

    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);



    /* Z-Index Stack */

    --z-header: 100;

    --z-offcanvas-overlay: 200;

    --z-offcanvas: 210;

    --z-search-dropdown: 90;

}





/* ==========================================================================

   DARK MODE

   ========================================================================== */



[data-theme="dark"] {

    --color-bg: #0f172a;

    --color-bg-alt: #1e293b;

    --color-surface: #1e293b;

    --color-border: #334155;

    --color-text: #e2e8f0;

    --color-text-secondary: #94a3b8;

    --color-text-muted: #64748b;

    --color-link: #e2e8f0;

    --color-link-hover: #ff6b6b;

    --color-menu-text: #e2e8f0;

    --color-menu-active: #e2e8f0;

    --color-primary: #ff6b6b;

    --color-primary-hover: #ff5252;



    --header-bg: #1e293b;

    --header-border: #334155;

    --header-icon-color: #e2e8f0;



    --footer-bg: #0f172a;

    --footer-text: #e2e8f0;

    --footer-border: #334155;

    --footer-accent: #ff6b6b;

    --footer-social: #e2e8f0;

}





/* ==========================================================================

   RESET & BASE

   ========================================================================== */



*, *::before, *::after {

    box-sizing: border-box;

}



html {

    -webkit-text-size-adjust: 100%;

    scroll-behavior: smooth;

    scrollbar-gutter: stable;

    overflow-x: clip;

}



body {

    margin: 0;

    padding: 0;

    font-family: var(--font-sans);

    font-size: 16px;

    line-height: 1.6;

    color: var(--color-text);

    background-color: var(--color-bg);

    -webkit-font-smoothing: antialiased;

    -moz-osx-font-smoothing: grayscale;

    transition: background-color var(--transition-smooth), color var(--transition-smooth);

    overflow-x: clip;

}



a {

    color: var(--color-link);

    text-decoration: none;

    transition: color var(--transition-fast);

}



a:hover {

    color: var(--color-link-hover);

}



img {

    max-width: 100%;

    height: auto;

    display: block;

}



ul, ol {

    list-style: none;

    margin: 0;

    padding: 0;

}



button {

    cursor: pointer;

    font-family: inherit;

}





/* ==========================================================================

   LAYOUT CONTAINER

   ========================================================================== */



.container {

    width: 100%;

    max-width: var(--container-width);

    margin: 0 auto;

    padding: 0;

    box-sizing: border-box;

}



.site-content {

    padding-top: var(--header-height);

}



@media (max-width: 991px) {

    .site-content {

        padding-top: var(--header-height-mobile);

    }

}



/* ==========================================================================

   SINGLE POST CONTAINER LAYOUT (CRITICAL)

   ========================================================================== */



.single-container {

    max-width: var(--container-width, 1200px);

    margin: 0 auto;

    padding: 0 var(--container-padding, 16px);

    box-sizing: border-box;

}



.single-wrapper {

    display: grid;

    padding-top: 10px;

    grid-template-columns: 1fr 300px;

    gap: 32px;

    align-items: start;

}



/* Mobile */

@media (max-width: 991px) {

    .single-wrapper {

        display: block;

        padding-top: 0px;

    }

}





/* ==========================================================================

   SITE HEADER

   ========================================================================== */



/* ==========================================================================

   DESKTOP SMART STICKY BEHAVIOR (MENARA LOGIC)

   ========================================================================== */



.site-header {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    z-index: var(--z-header);

    background: var(--header-bg);

    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    will-change: transform, opacity;

}



/* Admin Bar: offset fixed header so it sits below WP admin bar */

.admin-bar .site-header {

    top: 32px;

}

@media screen and (max-width: 782px) {

    .admin-bar .site-header {

        top: 46px;

    }

}



/* Base header styles */

.site-header:not(.hide-header) {

    opacity: 1;

    transform: translateY(0);

    visibility: visible;

}



/* When scrolling down, JS adds .hide-navbar (desktop) or .hide-mobile-header (mobile) */

.site-header.hide-navbar,

.site-header.hide-mobile-header {

    transform: translateY(-100%) !important;

}



/* If the trending tags bar is present, leave it visible (it is 42px tall) */

.site-header:has(.trending-tags-bar).hide-navbar,

.site-header:has(.trending-tags-bar).hide-mobile-header {

    transform: translateY(calc(-100% + 42px)) !important;

}



/* ==========================================================================

   HEADER ROW 1: NAVBAR (70px)

   ========================================================================== */

.header-navbar-wrapper {

    margin: 0 !important;

    padding: 0 !important;

    background: var(--header-bg);

    height: 70px;

    position: relative;

    z-index: 1001;

    display: flex;

    align-items: center;

}



.header-navbar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    height: 100%;

    width: 100%;

    margin: 0 auto;

    max-width: var(--container-width);

    padding: 0 var(--container-padding);

}



/* Logo — class matches customizer output: .header-logo .custom-logo */

.header-logo {

    flex-shrink: 0;

}

.header-logo .custom-logo {

    max-width: 160px;

    height: auto;

}

.site-title {

    font-size: 26px;

    font-weight: 800;

    color: var(--color-text);

}



/* Right Section (Search & Actions) */

.header-navbar-right {

    display: flex;

    align-items: center;

    gap: 16px;

    flex-grow: 1;

    justify-content: flex-end;

}



/* Nova Search Form */

.search-form-Nova {

    display: flex;

    align-items: center;

    position: relative;

    width: 100%;

    max-width: 300px;

    height: 44px;

    margin: 0;

    padding: 2px;

    border-radius: 22px;

}



/* Border animasi gradient SELALU TERLIHAT */

.search-form-Nova::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    border-radius: 22px;

    padding: 2px;

    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff, #5f27cd, #ff6b6b);

    background-size: 300% 100%;

    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;

    mask-composite: exclude;

    animation: borderRotate 10s linear infinite;

    opacity: 1;

    z-index: 1;

    pointer-events: none;

}



.search-input-Nova {

    width: 100%;

    height: 100%;

    border: none;

    border-radius: 20px;

    padding: 0 100px 0 20px;

    font-size: 14px;

    color: #333;

    outline: none;

    box-sizing: border-box;

    position: relative;

    z-index: 2;

    transition: background var(--transition-fast);

}



.search-input-Nova:focus {

    background: #fff;

}



[data-theme="dark"] .search-input-Nova {

    background: #1a1a1a;

    color: #fff;

}



[data-theme="dark"] .search-input-Nova:focus {

    background: #242424;

}



.search-submit-Nova {

    position: absolute;

    right: 6px;

    top: 50%;

    transform: translateY(-50%);

    width: 36px;

    height: 36px;

    background: transparent;

    color: #555;

    border: none;

    border-radius: 50%;

    padding: 0;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    transition: color var(--transition-fast);

    z-index: 3;

}



.search-submit-Nova:hover {

    color: var(--color-primary);

}



.search-submit-Nova svg {

    width: 22px;

    height: 22px;

}



[data-theme="dark"] .search-submit-Nova {

    color: var(--color-text);

}



[data-theme="dark"] .search-input-Nova {

    background: var(--color-bg-alt);

    border-color: var(--color-border);

    color: var(--color-text);

}



/* Action Buttons */

.icon-btn {

    width: 40px;

    height: 40px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    border: none;

    background: transparent;

    color: var(--header-icon-color);

    cursor: pointer;

    transition: background var(--transition-fast), color var(--transition-fast);

}



.icon-btn:hover {

    background: rgba(0,0,0,0.05);

}



[data-theme="dark"] .icon-btn {

    background: transparent;

    color: var(--color-text);

}



[data-theme="dark"] .icon-moon { display: none !important; }

[data-theme="dark"] .icon-sun  { display: block !important; }

:root .icon-moon { display: block; }

:root .icon-sun  { display: none; }



.header-mobile-actions {

    display: flex;

    align-items: center;

    gap: 8px;

}



/* ==========================================================================

   HEADER ROW 2: DESKTOP MENU (48px)

   ========================================================================== */

.menu-wrapper {

    margin: 0 !important;

    padding: 0 !important;

    background: var(--header-bg);

    height: 48px;

    position: relative;

    z-index: 1000;

    display: flex;

    align-items: center;

}



.menu-wrapper .container {

    max-width: var(--container-width);

    margin: 0 auto;

    width: 100%;

    height: 100%;

}



.menu-inner {

    display: flex;

    align-items: center;

    justify-content: space-between;

    height: 100%;

}



.menu-actions {

    display: flex;

    align-items: center;

    gap: 4px;

    flex-shrink: 0;

}



.menu-actions .icon-btn {

    width: 36px;

    height: 36px;

    color: var(--header-icon-color);

}



.desktop-nav {

    height: 100%;

}



.nav-menu.desktop-menu {

    display: flex;

    align-items: center;

    height: 100%;

    margin: 0;

    gap: 0;

}



.nav-menu.desktop-menu li {

    height: 100%;

    display: flex;

    align-items: center;

    position: relative;

}



.nav-menu.desktop-menu li a {

    display: flex;

    align-items: center;

    height: 100%;

    padding: 0 16px;

    font-size: 13px;

    font-weight: 700;

    text-transform: uppercase;

    color: var(--color-menu-text);

    text-decoration: none;

    position: relative;

    transition: color var(--transition-fast);

}



.nav-menu.desktop-menu li a::after {

    content: '';

    position: absolute;

    bottom: 7px;

    left: 16px;

    right: 16px;

    height: 3px;

    background: var(--color-primary);

    transform: scaleX(0);

    transform-origin: left center;

    transition: transform 0.25s ease;

}



.nav-menu.desktop-menu li a:hover,

.nav-menu.desktop-menu li.current-menu-item > a,

.nav-menu.desktop-menu li.current-menu-ancestor > a {

    color: var(--color-primary);

}



.nav-menu.desktop-menu li a:hover::after,

.nav-menu.desktop-menu li.current-menu-item > a::after,

.nav-menu.desktop-menu li.current-menu-ancestor > a::after {

    transform: scaleX(1);

}



/* Dropdown styling */

.nav-menu.desktop-menu .sub-menu {

    position: absolute;

    top: 100%;

    left: 0;

    background: var(--header-bg);

    box-shadow: var(--shadow-md);

    min-width: 200px;

    opacity: 0;

    visibility: hidden;

    transform: translateY(10px);

    transition: all 0.2s ease;

    z-index: 100;

    border-radius: 0 0 8px 8px;

    border: 1px solid var(--header-border);

    border-top: none;

}



.nav-menu.desktop-menu li.submenu-open > .sub-menu {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

    pointer-events: auto;

}



.nav-menu.desktop-menu .sub-menu li {

    height: auto;

    display: block;

}



.nav-menu.desktop-menu .sub-menu li a {

    display: block;

    padding: 10px 16px;

    font-size: 13px;

    font-weight: 600;

    text-transform: none;

    color: var(--color-text-secondary);

    transition: background 0.15s ease, color 0.15s ease;

}

.nav-menu.desktop-menu .sub-menu li a::after { display: none; }



.nav-menu.desktop-menu .sub-menu li a:hover {

    background: var(--color-bg-alt);

    color: var(--color-primary);

}



/* Submenu arrow icon — CSS-generated chevron */

.nav-menu.desktop-menu li.menu-item-has-children > a {

    gap: 4px;

}

.nav-menu.desktop-menu li.menu-item-has-children > a::before {

    content: '';

    display: inline-block;

    width: 10px;

    height: 10px;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    background-size: contain;

    background-repeat: no-repeat;

    flex-shrink: 0;

    transition: transform 0.2s ease;

    order: 1;

    opacity: 0.5;

}

.nav-menu.desktop-menu li.menu-item-has-children:hover > a::before,

.nav-menu.desktop-menu li.menu-item-has-children.submenu-open > a::before {

    transform: rotate(180deg);

    opacity: 1;

}



/* ==========================================================================

   HEADER ROW 3: TRENDING TAGS

   ========================================================================== */

.trending-tags-bar {

    background: #f5f6f8;

    border: none;

    position: relative;

    z-index: 999;

    box-shadow: 0px 5px 6px -1px rgb(55 54 54 / 10%), 0 2px 4px -2px var(--tw-shadow-color, rgb(57 52 52 / 10%));

}





.trending-tags-bar .container {

    max-width: var(--container-width);

    margin: 0 auto;

    padding: 0 var(--container-padding);

}



.trending-tags-inner {

    display: flex;

    align-items: center;

    height: 42px;

    padding: 0;

    position: relative;

}



.trending-tags-label {

    display: flex;

    align-items: center;

    gap: 6px;

    padding-right: 16px;

    font-weight: 700;

    font-size: 11px;

    text-transform: uppercase;

    color: #ffffff;

    position: relative;

    z-index: 2;

    background: var(--color-primary);

    border-radius: 4px;

    padding: 5px 10px;

    line-height: 1;

}



/* Label separator removed */



.trending-tags-icon {

    width: 14px;

    height: 14px;

}



.trending-tags-list {

    display: flex;

    align-items: center;

    overflow-x: auto;

    scrollbar-width: none;

    -ms-overflow-style: none;

    padding-left: 12px;

}



.trending-tags-list::-webkit-scrollbar { display: none; }



/* Right fade gradient on trending tags scroll */

.trending-tags-inner::after {

    content: '';

    position: absolute;

    right: 0;

    top: 0;

    bottom: 0;

    width: 40px;

    background: linear-gradient(to right, rgba(245,246,248,0), #f5f6f8);

    pointer-events: none;

    z-index: 3;

}



[data-theme="dark"] .trending-tags-bar {

    background: var(--color-surface);

}

[data-theme="dark"] .trending-tags-label {

    background: var(--color-primary);

    color: #ffffff;

}

[data-theme="dark"] .trending-tags-inner::after {

    background: linear-gradient(to right, transparent, var(--color-surface));

}



.trending-tag-item {

    padding: 2px 12px;

    font-size: 14px;

    font-weight: 600;

    color: var(--color-link);

    white-space: nowrap;

    position: relative;

    text-decoration: none;

    background: var(--color-bg);

    border: 1px solid var(--color-border, #e8eaed);

    border-radius: 20px;

    margin: 0 4px;

    transition: all 0.2s ease;

    line-height: 1.6;

}



.trending-tag-item:hover {

    color: var(--color-primary);

    border-color: var(--color-primary);

    background: rgba(var(--color-primary-rgb, 0,123,255), 0.06);

    box-shadow: 0 1px 4px rgba(0,0,0,0.08);

}



.trending-tag-item::after {

    display: none;

}



.trending-tag-item:last-child::after {

    display: none;

}



/* ==========================================================================

   MOBILE HORIZONTAL SCROLLABLE MENU BAR

   ========================================================================== */

.mobile-menu-bar {

    background: var(--header-bg);

    border-top: 1px solid var(--color-border);

    position: relative;

    z-index: 999;

    overflow: hidden;

}



.mobile-menu-scroll {

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;

    -ms-overflow-style: none;

}



.mobile-menu-scroll::-webkit-scrollbar {

    display: none;

}



.mobile-horizontal-menu {

    display: flex;

    align-items: center;

    height: 42px;

    gap: 0;

    white-space: nowrap;

    margin: 0;

    padding: 0;

    list-style: none;

}



.mobile-horizontal-menu li {

    flex-shrink: 0;

}



.mobile-horizontal-menu li a {

    display: block;

    padding: 6px 14px;

    font-size: 14px;

    font-weight: 600;

    color: var(--color-menu-text);

    text-decoration: none;

    white-space: nowrap;

    transition: color var(--transition-fast);

}



.mobile-horizontal-menu li a:hover,

.mobile-horizontal-menu li.current-menu-item > a,

.mobile-horizontal-menu li.current-menu-ancestor > a,

.mobile-horizontal-menu li.current_page_item > a {

    color: var(--color-primary);

}



[data-theme="dark"] .mobile-menu-bar {

    border-top-color: var(--color-border);

}





@media (min-width: 992px) {

    .mobile-only { display: none !important; }

}



@media (max-width: 991px) {

    .desktop-only { display: none !important; }



    .header-navbar-wrapper {

        height: 60px; /* Mobile header height */

    }

    .header-logo .custom-logo {

        max-width: 140px;

    }

}

.nav-menu li .sub-menu {

    display: block;

    position: absolute;

    top: 100%;

    left: 0;

    min-width: 200px;

    background: var(--color-surface);

    border: 1px solid var(--color-border);

    border-top: 3px solid var(--color-primary);

    border-radius: 0 0 4px 4px;

    padding: 8px 0;

    box-shadow: var(--shadow-md);

    z-index: 10;

    opacity: 0;

    visibility: hidden;

    transform: translateY(-4px);

    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;

    pointer-events: none;

}

.nav-menu li.submenu-open > .sub-menu {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

    pointer-events: auto;

}

.nav-menu li .sub-menu li {

    height: auto;

}

.nav-menu li .sub-menu li a {

    padding: 10px 16px;

    height: auto;

    font-size: 13px;

    font-weight: 500;

    text-transform: none;

    color: var(--color-text-secondary);

}

.nav-menu li .sub-menu li a::after {

    display: none; /* No bottom border line for submenu */

}

.nav-menu li .sub-menu li a:hover {

    background: var(--color-bg-alt);

    color: var(--color-primary);

}





/* ==========================================================================

   MOBILE HEADER ADJUSTMENTS

   ========================================================================== */



@media (max-width: 991px) {

    /* Hide desktop-only elements */

    .header-search-desktop,

    .header-actions-desktop,

    .header-bottom-nav {

        display: none;

    }



    /* Show mobile elements */

    .header-mobile-actions {

        display: flex;

        align-items: center;

        gap: 4px;

    }



    .header-main .header-inner {

        height: 50px; /* Mobile Row 1 Height */

        gap: 16px;

        padding: 0 16px;

    }

}





/* ==========================================================================

   OFF-CANVAS MENU (MOBILE)

   ========================================================================== */



.offcanvas-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.5);

    z-index: var(--z-offcanvas-overlay);

    opacity: 0;

    visibility: hidden;

    transition: opacity 0.5s cubic-bezier(0.5, 0, 0.2, 1), visibility 0.5s cubic-bezier(0.5, 0, 0.2, 1);

    backdrop-filter: blur(10px);

}



.offcanvas-overlay.is-active {

    opacity: 1;

    visibility: visible;

}



.offcanvas-panel {

    position: fixed;

    top: 0;

    right: 0;

    width: 280px;

    max-width: 85vw;

    height: 100%;

    background: var(--header-bg, var(--color-surface));

    z-index: var(--z-offcanvas);

    transform: translateX(100%);

    transition: all 0.3s cubic-bezier(0.7, 0, 0.3, 1);

    display: flex;

    flex-direction: column;

    overflow-y: auto;

    -webkit-overflow-scrolling: touch;

}



.offcanvas-panel.is-open {

    transform: translateX(0);

    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);

}



/* Prevent body scroll when offcanvas is open */

body.offcanvas-active {

    overflow: hidden;

}



/* Off-canvas header */

.offcanvas-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 14px 16px;

    border-bottom: 1px solid var(--color-border);

    flex-shrink: 0;

}



.offcanvas-title {

    font-size: 16px;

    font-weight: 700;

    color: var(--header-icon-color, var(--color-text));

}



.offcanvas-close {

    width: 36px;

    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    background: transparent;

    border-radius: 50%;

    color: var(--header-icon-color, var(--color-text-secondary));

    transition: all var(--transition-fast);

    padding: 0;

}



.offcanvas-close:hover {

    background: rgba(128, 128, 128, 0.1);

    color: var(--color-link-hover);

}



/* Off-canvas search */

.offcanvas-search {

    padding: 15px;

    border-bottom: 1px solid var(--color-border);

    flex-shrink: 0;

}



/* =====================================================

   Animated Border for Offcanvas Search Form

   ===================================================== */



.offcanvas-search-form {

  position: relative;

  padding: 2px;

  border-radius: 50px;

}



/* Wrapper styling */

.offcanvas-search-form .search-wrapper {

  position: relative;

  display: flex;

  align-items: center;

  border-radius: 50px;

  overflow: hidden;

}



/* Hapus border bawaan pada input */

.offcanvas-search-form .search-field {

  position: relative;

  z-index: 2;

  background: white !important;

  border: none !important;

  outline: none !important;

  box-shadow: none !important;

}



/* Border animasi gradient SELALU TERLIHAT */

.offcanvas-search-form::before {

  content: '';

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  bottom: 0;

  border-radius: 50px;

  padding: 2px;

  background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff, #5f27cd, #ff6b6b);

  background-size: 300% 100%;

  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;

  mask-composite: exclude;

  animation: borderRotate 10s linear infinite;

  opacity: 1; /* SELALU TAMPAK */

  z-index: 1;

  pointer-events: none;

}



/* Keyframes untuk animasi rotasi warna */

@keyframes borderRotate {

  0% { background-position: 0% 50%; }

  100% { background-position: 300% 50%; }

}



/* =====================================================

   Dark Mode Support (Opsional)

   ===================================================== */



[data-theme="dark"] .offcanvas-search-form .search-field {

  background: #1a1a1a !important;

  color: #fff !important;

}





.search-wrapper {

    display: flex;

    align-items: center;

    position: relative;

    width: 100%;

    height: 42px;

    border: 1px solid #e0e0e0;

    border-radius: 22px;

    overflow: hidden;

    transition: border-color var(--transition-fast);

}



.search-wrapper:focus-within {

    border-color: #d0d0d0;

    background: #fff;

    box-shadow: 0 0 0 1px rgba(0,0,0,0.05);

}



.search-wrapper .search-field {

    flex: 1;

    border: none;

    background: transparent;

    padding: 0 16px;

    height: 100%;

    font-size: 14px;

    font-family: var(--font-sans);

    color: var(--color-text);

    outline: none;

    min-width: 0;

}



.search-wrapper .search-field::placeholder {

    color: var(--color-text-muted);

}



.search-wrapper .search-submit-btn {

    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    background: transparent;

    color: #555;

    cursor: pointer;

    border-radius: 50%;

    margin-right: 2px;

    flex-shrink: 0;

    padding: 0;

    transition: color var(--transition-fast);

}



.search-wrapper .search-submit-btn:hover {

    color: var(--color-primary);

}



[data-theme="dark"] .search-wrapper:focus-within {

    background: var(--color-surface);

    border-color: var(--color-text-muted);

}



[data-theme="dark"] .search-wrapper .search-submit-btn {

    color: var(--color-text);

}



/* Off-canvas menu items */

.offcanvas-nav {

    flex: 1;

    overflow-y: auto;

    -webkit-overflow-scrolling: touch;

    overscroll-behavior: contain;

}



.offcanvas-menu {

    padding: 8px 0;

}



.offcanvas-menu > li {

    position: relative;

}



.offcanvas-menu li a {

    display: block;

    padding: 13px 20px;

    color: var(--header-icon-color, #000000);

    font-size: 15px;

    font-weight: 500;

    border-bottom: 1px solid rgba(128, 128, 128, 0.15);

    transition: all var(--transition-fast);

}



.offcanvas-menu li a:hover {

    background: var(--color-bg-alt);

    color: var(--color-link-hover);

}



/* Active menu item: no background, boldly match icon menu text */

.offcanvas-menu li.current-menu-item > a,

.offcanvas-menu li.current_page_item > a {

    color: var(--header-icon-color, #000000);

    font-weight: 600;

}



/* Off-canvas submenu toggle button */

.offcanvas-menu > li.menu-item-has-children {

    display: flex;

    flex-wrap: wrap;

}



.offcanvas-menu > li.menu-item-has-children > a {

    flex: 1;

    min-width: 0;

}



.offcanvas-submenu-toggle {

    width: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    background: transparent;

    border-bottom: 1px solid var(--color-bg-alt);

    cursor: pointer;

    padding: 0;

    flex-shrink: 0;

    transition: background var(--transition-fast);

}



.offcanvas-submenu-toggle:hover {

    background: var(--color-bg-alt);

}



.offcanvas-submenu-toggle .submenu-arrow {

    width: 20px;

    height: 20px;

    display: block;

    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'><path d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z'/></svg>");

    background-size: contain;

    background-repeat: no-repeat;

    transition: transform 0.25s ease;

}



[data-theme="dark"] .offcanvas-submenu-toggle .submenu-arrow {

    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'><path d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z'/></svg>");

}



.offcanvas-submenu-toggle.is-toggled .submenu-arrow {

    transform: rotate(180deg);

}



/* Submenu inside offcanvas — collapse/expand */

.offcanvas-menu .sub-menu {

    width: 100%;

    max-height: 0;

    overflow: hidden;

    transition: max-height 0.3s ease;

    background: var(--color-bg-alt);

}



.offcanvas-menu > li.submenu-open > .sub-menu {

    max-height: 500px; /* large enough for any submenu */

}



.offcanvas-menu .sub-menu li a {

    padding: 11px 20px 11px 36px;

    font-size: 14px;

    font-weight: 400;

    color: var(--header-icon-color, var(--color-text-secondary));

    border-bottom: 1px solid rgba(128, 128, 128, 0.15);

}



.offcanvas-menu .sub-menu li:last-child a {

    border-bottom: none;

}



.offcanvas-menu .sub-menu li a:hover {

    color: var(--color-primary);

}





/* ==========================================================================

   SITE FOOTER

   ========================================================================== */



.site-footer {

    background: var(--footer-bg, #ffffff);

    border-top: 1px solid var(--footer-border, #e8eaed);

    padding: 20px 0 32px; /* Increased top padding for breathing room */

    color: var(--footer-text, #4b5563); /* Softer gray text */

}



.site-footer a:not(.footer-social-link) {

    color: var(--color-link, #1a1a2e);

    transition: color 0.3s ease-out, transform 0.3s ease-out;

}



.site-footer a:hover {

    color: var(--color-link-hover, #cb0b0b);

}



.footer-inner {

    max-width: var(--container-width);

    margin: 0 auto;

    padding: 0 var(--container-padding);

    display: grid;

    grid-template-columns: 2fr 1.25fr 1.25fr; /* Shifted grid slightly for better balance */

    gap: 48px; /* Increased gap */

    align-items: start;

}



/* Column titles */

.footer-col-title {

    font-size: 18px; /* Larger column title */

    font-weight: 700;

    color: var(--footer-text, #1f2937); /* Darker heading */

    margin: 0 0 15px 0; /* More space below heading */

    letter-spacing: -0.02em;

}



/* --- Brand column --- */

.footer-col--brand {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 20px; /* Better spacing between logo, contact, and socials */

}



.footer-brand-wrapper {

    display: flex;

    align-items: center;

    gap: 5x;

    flex-wrap: nowrap; /* Mencegah logo turun ke bawah pada layar HP */

}



.footer-logo {

    line-height: 1;

    flex-shrink: 1; /* Diizinkan mengecil jika di layar ekstra sempit */

    min-width: 0;

}



.footer-partner-logo {

    line-height: 1;

    flex-shrink: 1;

    min-width: 0;

    margin-left: 10px;

}



.footer-partner-img {

    display: block;

    height: auto;

    width: auto;

}



.footer-logo-img {

    display: block;

    height: auto;

    width: auto;

    max-height: 40px; /* Restrict logo height nicely */

}



/* Footer Contact Info */

.footer-contact {

    list-style: none;

    margin: 0;

    padding: 0;

    display: flex;

    flex-direction: column;

    gap: 12px; /* More breathable contact items */

}



.footer-contact__item {

    display: flex;

    align-items: center;

    gap: 12px;

    font-size: 14px;

    line-height: 1.6;

    color: var(--footer-text);

}



.footer-contact__item a {

    color: var(--footer-text);

    transition: color var(--transition-fast);

}



.footer-contact__item a:hover {

    color: var(--footer-accent);

}



.footer-contact__icon {

    flex-shrink: 0;

    width: 18px; /* Slightly larger icon */

    height: 18px;

    color: var(--footer-text);

    opacity: 0.6; /* Softer icon color */

}



/* Social icons row */

.footer-socials {

    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;

    margin-top: 8px; /* Push socials down a bit from contact info */

}



.footer-social-link {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 36px;

    height: 36px;

    border-radius: 50%;

    background: #f1f5f9;

    color: var(--footer-social, #4b5563);

    transition: all var(--transition-fast);

}



[data-theme="dark"] .footer-social-link {

    background: #343c45;

    color: #d1d5db;

}



[data-theme="dark"] .site-footer a:not(.footer-social-link) {

    color: var(--color-link, #1a1a2e);

}



[data-theme="dark"] .site-footer a:not(.footer-social-link):hover {

    color: var(--color-link-hover, #cb0b0b);

}



[data-theme="dark"] .footer-list li a {

    color: var(--color-link, #1a1a2e);

}



[data-theme="dark"] .footer-list li a:hover {

    color: var(--color-link-hover, #cb0b0b);

}



.site-footer a.footer-social-link:hover {

    color: #ffffff;

    background: var(--footer-accent, #2563eb);

    transform: translateY(-2px); /* Modern lift effect */

}



.footer-social-link svg {

    display: block;

    width: 16px;

    height: 16px;

    fill: currentColor;

}



.footer-social-link svg path {

    fill: currentColor;

}



/* Copyright bottom bar */

.footer-bottom {

    max-width: var(--container-width);

    margin: 0 auto;

    padding: 24px var(--container-padding) 0;

    margin-top: 48px; /* Push copyright down */

    border-top: 1px solid var(--footer-border);

}



.footer-copyright {

    font-size: 13px;

    color: #6b7280; /* Neutral gray for copyright */

    line-height: 1.5;

    text-align: center;

}



/* --- List columns (category + info) --- */

.footer-list {

    margin: 0;

    padding: 0;

    list-style: none;

}



.footer-list--multi-col {

    columns: 2;

    column-gap: 24px; /* More gap between columns */

}



.footer-list li {

    break-inside: avoid-column; /* Standards compliant */

    page-break-inside: avoid;

    margin-bottom: 0;

}



.footer-list li a {

    display: block;

    padding: 8px 0; /* More clickable area */

    font-size: 14px;

    line-height: 1.1;

    color: var(--color-link, #1a1a2e);

    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    position: relative;

    transform: translateZ(0); /* Force hardware acceleration */

    will-change: transform;

}



.footer-list li a:hover {

    color: var(--color-link-hover, #cb0b0b);

    transform: translateX(4px); /* Gunakan transform alih-alih padding agar tidak memicu layout shift */

}





/* ==========================================================================

   RESPONSIVE — MOBILE (max-width: 768px)

   ========================================================================== */



@media (max-width: 768px) {

    .header-inner {

        height: var(--header-height-mobile);

        padding: 0 16px;

    }



    /* Hide desktop nav + actions */

    .header-right {

        display: none;

    }



    /* Show mobile actions */

    .header-mobile-actions {

        display: flex;

    }



    .site-title {

        font-size: 22px;

    }



    /* Hide desktop search dropdown on mobile (use offcanvas search) */

    .header-search-dropdown {

        display: none;

    }



    /* Footer mobile */

    .footer-inner {

        grid-template-columns: 1fr;

        gap: 15px; /* Reverted to tight spacing */

        text-align: center;

    }



    .footer-col--brand {

        align-items: center;

    }



    .footer-contact {

        align-items: center;

        gap: 10px; /* Reduced gap as requested */

    }



    .footer-contact__item {

        display: block; /* Override flex */

        text-align: center; /* Center the entire wrapped text */

        max-width: 100%;

    }



    .footer-contact__item .footer-contact__icon {

        display: inline-block; /* Behave like text character */

        vertical-align: middle;

        margin-right: 6px;

        margin-top: -3px; /* Visual tweak so icon aligns properly with first line of text */

    }



    .footer-socials {

        justify-content: center;

    }



    .footer-col-title {

        text-align: center;

    }



    .footer-list {

        display: flex;

        flex-wrap: wrap;

        justify-content: center;

        align-items: center;

        gap: 1px 12px; /* Reverted */

    }



    .footer-list--multi-col {

        columns: auto;

    }



    .footer-list li {

        display: block;

        width: auto;

        max-width: 100%;

        flex: 0 0 auto;

    }



    .footer-list li a {

        display: inline-block;

        text-align: center;

        white-space: normal;

        line-height: 1.5;

        word-break: break-word;

        padding: 3px 0;

        font-size: 13px; /* Reduced font size to 13px */

    }



    .footer-list li::after {

        display: none;

    }



    .site-footer {

        padding: 20px 0 24px; /* Reverted padding */

        margin-top: 0px;

    }



    .widget_nova_recent_posts {

        padding-bottom: 0px !important;

    }



    .footer-bottom{

        margin-top: 15px;

    }



}



/* Tablet adjustments */

@media (min-width: 769px) and (max-width: 1024px) {

    .footer-list li a {

        padding: 4px 0;

        font-size: 13px;

    }



    .footer-inner {

        grid-template-columns: 1fr 1fr; /* Switch to 2 columns on tablet */

        gap: 40px;

    }



    .footer-col--brand {

        grid-column: 1 / -1; /* Make brand span full width on tablet */

        align-items: center;

        text-align: center;

    }



    .footer-contact {

        align-items: center;

    }



    .footer-contact__item {

        justify-content: center;

    }



    .footer-socials {

        justify-content: center;

    }

}



/* ==========================================================================

   POPULAR POSTS WIDGET (GLOBAL)

   ========================================================================== */



.Nova-popular-widget-list {

    display: flex;

    flex-direction: column;

    gap: 0;

}



.Nova-popular-item {

    display: flex;

    align-items: center;

    gap: 16px;

    padding: 13px 0;

    text-decoration: none;

    color: var(--color-link, var(--color-text));

    border-bottom: 1px solid var(--color-border);

    transition: background var(--transition-fast);

}



.Nova-popular-item:first-child {

    padding-top: 0;

}



.Nova-popular-item:last-child {

    border-bottom: none;

    padding-bottom: 0;

}



.Nova-popular-item-number {

    font-size: 45px;

    font-weight: 900;

    line-height: 0.8;

    color: transparent;

    -webkit-text-stroke: 1.5px var(--color-primary);

    opacity: 0.8;

    flex-shrink: 0;

    width: 48px;

    text-align: center;

    font-family: var(--typo-title-font, sans-serif);

    transition: all 0.3s ease;

}



.Nova-popular-item:hover .Nova-popular-item-number {

    opacity: 1;

    color: rgba(229, 62, 62, 0.08); /* slight tint of primary */

}



.Nova-popular-item-content {

    display: flex;

    flex-direction: column;

    gap: 8px;

    flex-grow: 1;

}



.Nova-popular-item-title {

    font-family: var(--typo-title-font, inherit);

    font-size: var(--pop-fs-desk, 16px) !important;

    font-weight: var(--typo-title-weight, 700);

    line-height: var(--typo-title-lh, 1.4);

    margin: 0;

    color: inherit;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;

    transition: color var(--transition-fast);

}



.Nova-popular-item:hover .Nova-popular-item-title {

    color: var(--color-link-hover);

}



.Nova-popular-item-date {

    font-family: var(--typo-meta-font, inherit);

    font-size: var(--typo-meta-size-desktop, 11px);

    font-weight: var(--typo-meta-weight, 400);

    line-height: var(--typo-meta-lh, 1.5);

}



.widget_nova_popular_posts,

.widget_nova_recent_posts {

    margin-bottom: 30px;

}



.widget_nova_popular_posts:not(:last-child),

.widget_nova_recent_posts:not(:last-child) {

    margin-bottom: 40px;

}



/* Mobile responsive */

@media (max-width: 768px) {

    .Nova-popular-item-title {

        font-size: var(--pop-fs-mob, 15px);

    }

    .Nova-popular-item-number {

        font-size: 35px;

        width: 40px;

    }

    .Nova-popular-item-date {

        font-size: var(--typo-meta-size-mobile, 11px);

    }

}





/* ==========================================================================

   Nova LIST WIDGET (.jlw-*)

   Compact list: 1:1 thumbnail (left) + category label + title (right)

   Font settings follow homepage title customizer vars (--typo-title-*)

   ========================================================================== */



.jlw-list {

    display: flex;

    flex-direction: column;

    gap: 0;

    padding-top: 4px;

}



.jlw-item {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    padding: 12px 0;

    text-decoration: none;

    color: inherit;

    border-bottom: 1px solid var(--color-border, #f0f0f0);

    transition: background .15s ease;

}



.jlw-item:first-child {

    padding-top: 0;

}



.jlw-item:last-child {

    border-bottom: none;

    padding-bottom: 0;

}



.jlw-item:hover {

    opacity: 0.85;

}



.jlw-thumb {

    flex-shrink: 0;

    width: 85px;

    height: 85px;

    border-radius: 6px;

    overflow: hidden;

    background: var(--color-surface-alt, #f3f4f6);

    margin: 0;

}



.jlw-img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    aspect-ratio: 16 / 9;

}



img.attachment-Nova-list.size-Nova-list {

    aspect-ratio: 16 / 9;

    width: 100%;

    height: auto;

    object-fit: cover;

}



.jlw-placeholder {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    height: 100%;

    color: #d1d5db;

}



/* Body — category + title */

.jlw-body {

    flex: 1;

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 3px;

    padding-top: 2px;

}



.jlw-cat {

    font-family: var(--typo-list-cat-font, inherit);

    font-size: var(--typo-list-cat-size-desktop, 11px);

    font-weight: var(--typo-list-cat-weight, 600);

    line-height: var(--typo-list-cat-lh, 1.2);

    text-transform: uppercase;

    letter-spacing: 0.5px;

    color: var(--color-primary);

}



.jlw-date {

    font-family: var(--typo-meta-font, inherit);

    font-size: var(--typo-meta-size-desktop, 11px);

    font-weight: var(--typo-meta-weight, 400);

    line-height: var(--typo-meta-lh, 1.5);

    color: var(--color-text-muted, #6b7280);

    display: block;

    margin-top: 4px;

}



.jlw-title {

    font-family: var(--typo-title-font, inherit);

    font-size: var(--jlw-fs-desk, 15px) !important;

    font-weight: var(--typo-title-weight, 600);

    line-height: var(--typo-title-lh, 1.4);

    color: var(--color-link, #1a1a2e);

    margin: 0;



    /* Line clamp — 3 baris */

    display: -webkit-box;

    -webkit-line-clamp: 3;

    line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;

}



.jlw-item:hover .jlw-title {

    color: var(--color-link-hover, #cb0b0b);

}



/* Dark mode */

[data-theme="dark"] .jlw-thumb {

    background: var(--color-surface-alt, #1f2937);

}



[data-theme="dark"] .jlw-title {

    color: var(--color-link, #1a1a2e);

}



[data-theme="dark"] .jlw-item:hover .jlw-title {

    color: var(--color-link-hover, #cb0b0b);

}



/* Mobile — thumbnail mengikuti ukuran archive (100px) */

@media (max-width: 768px) {

    .jlw-thumb {

        width: 100px;

        height: 100px;

    }



    .jlw-item {

        gap: 14px;

    }



    .jlw-title {

        font-size: var(--jlw-fs-mob, 14px) !important;

    }



    .jlw-cat {

        font-size: var(--typo-list-cat-size-mobile, 11px);

    }



    .jlw-date {

        font-size: var(--typo-meta-size-mobile, 11px);

    }

}





/* ==========================================================================

   AD CONTAINERS (merged from ads.css)

   ========================================================================== */



.Nova-ad {

    display: block;

    width: 100%;

    text-align: center;

    clear: both;

}



.Nova-ad__inner {

    display: block;

    margin: 0 auto;

    width: 100%;

}



/* Fallback protection if user forgets style="display:block" in AdSense code */

.Nova-ad__inner ins.adsbygoogle {

    display: block !important;

    width: 100% !important;

}



/* Header Below Ad */

.Nova-ad--header_below {

    max-width: var(--container-width, 1200px);

    margin: 0 auto;

    background: var(--color-bg);

}



/* Homepage Ad Slots */

.Nova-ad--home_before_posts {

    margin: 0 auto 24px;

    max-width: var(--container-width, 1200px);

}



.Nova-ad--home_before_footer {

    margin: 32px auto 0;

    max-width: var(--container-width, 1200px);

    padding: 16px var(--container-padding, 20px);

    border-top: 1px solid var(--color-border);

}



/* Single Post Ad Slots */

.Nova-ad--single_before {

    margin: 0 0 24px;

}



.Nova-ad--single_middle {

    margin: 24px 0;

}



.Nova-ad--single_after {

    margin: 24px 0 0;

}



/* Auto-collapse empty or blocked ads to prevent gaps */

.Nova-ad:empty,

.Nova-ad:has(ins.adsbygoogle:empty),

.Nova-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) {

    display: none !important;

    margin: 0 !important;

    padding: 0 !important;

}



/* Ad Content — Scale & Lazy */

.Nova-ad iframe,

.Nova-ad img,

.Nova-ad ins {

    max-width: 100%;

}



.Nova-ad--lazy .Nova-ad__lazy-wrap {

    display: flex;

    align-items: center;

    justify-content: center;

}



@media (max-width: 768px) {

    .Nova-ad--header_below {

        padding: 8px 16px;

    }



    /* On single posts, ad is already inside .single-container which has its own padding */

    .single .Nova-ad--header_below {

        padding: 8px 0;

    }





    .Nova-ad--home_before_footer {

        padding-left: 16px;

        padding-right: 16px;

    }



    .Nova-ad--single_before,

    .Nova-ad--single_middle,

    .Nova-ad--single_after {

        margin-top: 16px;

        margin-bottom: 16px;

    }

}



[data-theme="dark"] .Nova-ad--home_before_footer {

    border-top-color: var(--color-border);

}
