/* --- Hide footer social widget on single posts (CTA box already has social links) --- */
body.single-post .footer-sidebar #newscrunch_social_icons-5,
body.single-post .footer-sidebar .widget_newscrunch_social_icons { display: none !important; }

/* --- Hide top bar (date/time row) for clean look --- */
.header-sidebar .spnc-left .head-contact-info,
.header-sidebar .spnc-left .head-contact-info li.header-date,
.header-sidebar .spnc-left .head-contact-info li.header-time {
    display: none !important;
}

/* --- Top bar: minimal social strip --- */
.header-sidebar {
    background: #0f172a !important;
    border: none !important;
    padding: 6px 0 !important;
    min-height: auto !important;
}
.header-sidebar .widget .custom-social-icons li a {
    color: #94a3b8 !important;
    font-size: 13px !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    background: transparent !important;
    border: none !important;
    transition: color 0.2s, transform 0.2s !important;
}
.header-sidebar .widget .custom-social-icons li a:hover {
    color: #fff !important;
    background: transparent !important;
    transform: translateY(-1px);
}

/* --- Main header area --- */
.spnc-menu-full,
.spnc-menu-default,
#spnc-header {
    background: var(--ak-header-bg, #ffffff) !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    padding: 0 !important;
    transition: background 0.3s ease !important;
}

/* --- Site branding / title --- */
.custom-logo-link-url,
.spnc-site-branding {
    padding: 16px 0 !important;
}
.custom-logo-link-url .site-title,
.spnc-site-branding .site-title {
    margin: 0 !important;
}
.custom-logo-link-url .site-title a,
.spnc-site-branding .site-title a {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: var(--ak-header-nav-text, #0f172a) !important;
    letter-spacing: -0.03em !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}
.custom-logo-link-url .site-title a:hover,
.spnc-site-branding .site-title a:hover {
    color: #0078D4 !important;
}
body.dark-mode .custom-logo-link-url .site-title a:hover,
body.dark-mode .spnc-site-branding .site-title a:hover {
    color: #38bdf8 !important;
}
.custom-logo-link-url .site-description,
.spnc-site-branding .site-description {
    display: none !important;
}

/* --- Navigation bar --- */
.spnc-custom {
    background: var(--ak-header-bg, #ffffff) !important;
    border-top: 1px solid var(--ak-header-border, #f1f5f9) !important;
    border-bottom: 1px solid var(--ak-header-border, #e2e8f0) !important;
    border-radius: 0 !important;
    padding: 0 !important;
    transition: background 0.3s ease, border-color 0.3s ease !important;
}
body.dark-mode .spnc-custom {
    --ak-header-bg: #0f172a;
    --ak-header-border: rgba(255,255,255,0.08);
    --ak-header-nav-text: #e2e8f0;
    --ak-header-nav-hover: rgba(56,189,248,0.1);
}
.spnc-custom .spnc-nav {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
}
.spnc-custom .spnc-nav > li > a {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--ak-header-nav-text, #475569) !important;
    padding: 12px 16px !important;
    margin: 4px 2px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border: none !important;
    border-radius: 8px !important;
    background: transparent !important;
    transition: all 0.2s cubic-bezier(0.4,0,0.2,1) !important;
    position: relative !important;
}
.spnc-custom .spnc-nav > li > a:hover,
.spnc-custom .spnc-nav > li.active > a,
.spnc-custom .spnc-nav > li.current-menu-item > a {
    color: #0078D4 !important;
    background: var(--ak-header-nav-hover, #f0f7ff) !important;
}
body.dark-mode .spnc-custom .spnc-nav > li > a:hover,
body.dark-mode .spnc-custom .spnc-nav > li.active > a,
body.dark-mode .spnc-custom .spnc-nav > li.current-menu-item > a {
    color: #38bdf8 !important;
}
/* Active indicator line - disabled in favor of pill background */
.spnc-custom .spnc-nav > li.active > a::after,
.spnc-custom .spnc-nav > li.current-menu-item > a::after {
    display: none !important;
}
/* Hide old active indicators */
.spnc-custom .spnc-nav > li > a::before {
    display: none !important;
}

/* --- Dropdown / Submenu --- */
.spnc-custom .spnc-nav .dropdown-menu {
    border: 1px solid var(--ak-header-border, #e2e8f0) !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12) !important;
    padding: 8px 0 !important;
    margin-top: 4px !important;
    background: var(--ak-header-bg, #ffffff) !important;
    min-width: 240px !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}
.spnc-custom .spnc-nav .dropdown-menu > li > a {
    font-size: 14.5px !important;
    font-weight: 500 !important;
    color: var(--ak-header-nav-text, #475569) !important;
    padding: 10px 20px !important;
    transition: all 0.2s !important;
    border: none !important;
}
.spnc-custom .spnc-nav .dropdown-menu > li > a:hover {
    color: #0078D4 !important;
    background: var(--ak-header-nav-hover, #f0f7ff) !important;
    padding-left: 26px !important;
}
body.dark-mode .spnc-custom .spnc-nav .dropdown-menu > li > a:hover {
    color: #38bdf8 !important;
}

/* Nav logo area only exists on homepage; hidden here keeps menu right-aligned on all pages */
.spnc-navbar .spnc-header{display:none!important}

/* --- Search icon in nav --- */
.spnc-search-icon a,
.spnc-custom .search-toggle {
    color: #475569 !important;
    font-size: 15px !important;
}
.spnc-search-icon a:hover,
.spnc-custom .search-toggle:hover {
    color: #0078D4 !important;
}

/* --- Dark mode toggle (theme native .spnc-dark-layout) --- */
.spnc-mode-switch {
    display: none !important;
}
.spnc-dark-layout {
    display: inline-flex !important;
    align-items: center !important;
}
.spnc-dark-layout .spnc-dark-icon {
    color: #475569 !important;
    font-size: 16px !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
    padding: 6px !important;
}
.spnc-dark-layout .spnc-dark-icon:hover {
    color: #0078D4 !important;
    transform: scale(1.15) !important;
}
body.dark-mode .spnc-dark-layout .spnc-dark-icon {
    color: #fbbf24 !important;
}
body.dark-mode .spnc-dark-layout .spnc-dark-icon:hover {
    color: #f59e0b !important;
    transform: scale(1.15) !important;
}

/* --- Modern sticky header (our own) --- */
.header-fixed .spnc-menu-full,
.header-fixed .spnc-menu-default,
.header-fixed #spnc-header {
    background: var(--ak-sticky-bg, rgba(255,255,255,0.92)) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    border-bottom: 1px solid var(--ak-header-border, rgba(0,0,0,0.05)) !important;
}
body.dark-mode .header-fixed .spnc-menu-full,
body.dark-mode .header-fixed .spnc-menu-default,
body.dark-mode .header-fixed #spnc-header {
    --ak-sticky-bg: rgba(15,23,42,0.92);
}

/* --- Clean up news-style borders/decorations --- */
.header-border-bottom,
.header-border-top,
.spnc-top-bar-border {
    display: none !important;
    border: none !important;
}

/* --- Mobile hamburger clean --- */
.spnc-toggle-menu {
    border: none !important;
    background: transparent !important;
    color: #0f172a !important;
    font-size: 22px !important;
}

/* --- Remove "Powered By SpiceThemes" --- */
.footer-copyright a[href*="spicethemes"] {
    display: none !important;
}

/* --- Highlights section title (SEÇTİKLERİMİZ -> İlginizi Çekebilir) --- */
.spnc-highlights-title {
    border-bottom: 2px solid #0078D4 !important;
    display: block !important;
    margin-bottom: 0 !important;
}
.spnc-highlights-title h3 {
    background-color: #0078D4 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 8px 16px !important;
    margin: 0 !important;
    display: inline-block !important;
    border-radius: 4px 4px 0 0 !important;
    border-bottom: none !important;
}

/* --- Banner area (homepage featured) --- */
.spnc-bnr-1 .spnc-entry-title a {
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}
.spnc-bnr-1 .spnc-post .spnc-post-content .spnc-cat-links a {
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    background: #0078D4 !important;
    color: #fff !important;
    padding: 3px 10px !important;
    border-radius: 4px !important;
}

/* --- Menu icons (SVG inline via ::before) --- */
.spnc-custom .spnc-nav > li.menu-icon-home > a::before,
.spnc-custom .spnc-nav > li.menu-icon-cloud > a::before,
.spnc-custom .spnc-nav > li.menu-icon-code > a::before,
.spnc-custom .spnc-nav > li.menu-icon-ai > a::before,
.spnc-custom .spnc-nav > li.menu-icon-shield > a::before,
.spnc-custom .spnc-nav > li.menu-icon-user > a::before {
    content: "" !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    opacity: 0.7 !important;
    transition: opacity 0.2s !important;
}
.spnc-custom .spnc-nav > li[class*="menu-icon-"] > a:hover::before,
.spnc-custom .spnc-nav > li[class*="menu-icon-"].current-menu-item > a::before {
    opacity: 1 !important;
}
/* Home */
.spnc-custom .spnc-nav > li.menu-icon-home > a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23475569%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8%27/%3E%3Cpath d=%27M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z%27/%3E%3C/svg%3E") !important;
}
/* Cloud */
.spnc-custom .spnc-nav > li.menu-icon-cloud > a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23475569%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z%27/%3E%3C/svg%3E") !important;
}
/* Code */
.spnc-custom .spnc-nav > li.menu-icon-code > a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23475569%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpolyline points=%2716 18 22 12 16 6%27/%3E%3Cpolyline points=%278 6 2 12 8 18%27/%3E%3C/svg%3E") !important;
}
/* AI */
.spnc-custom .spnc-nav > li.menu-icon-ai > a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23475569%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M12 16v5%27/%3E%3Cpath d=%27M16 14v7%27/%3E%3Cpath d=%27M20 10v11%27/%3E%3Cpath d=%27m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.708 0L2 15%27/%3E%3Cpath d=%27M4 18v3%27/%3E%3Cpath d=%27M8 14v7%27/%3E%3C/svg%3E") !important;
}
/* Shield */
.spnc-custom .spnc-nav > li.menu-icon-shield > a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23475569%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z%27/%3E%3Cpath d=%27m9 12 2 2 4-4%27/%3E%3C/svg%3E") !important;
}
/* User */
.spnc-custom .spnc-nav > li.menu-icon-user > a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23475569%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Ccircle cx=%2712%27 cy=%278%27 r=%275%27/%3E%3Cpath d=%27M20 21a8 8 0 0 0-16 0%27/%3E%3C/svg%3E") !important;
}
/* Hover: colorize icons */
.spnc-custom .spnc-nav > li.menu-icon-home > a:hover::before,
.spnc-custom .spnc-nav > li.menu-icon-home.current-menu-item > a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%230078D4%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8%27/%3E%3Cpath d=%27M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z%27/%3E%3C/svg%3E") !important;
}
.spnc-custom .spnc-nav > li.menu-icon-cloud > a:hover::before,
.spnc-custom .spnc-nav > li.menu-icon-cloud.current-menu-item > a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%230078D4%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z%27/%3E%3C/svg%3E") !important;
}
.spnc-custom .spnc-nav > li.menu-icon-code > a:hover::before,
.spnc-custom .spnc-nav > li.menu-icon-code.current-menu-item > a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%230078D4%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpolyline points=%2716 18 22 12 16 6%27/%3E%3Cpolyline points=%278 6 2 12 8 18%27/%3E%3C/svg%3E") !important;
}
.spnc-custom .spnc-nav > li.menu-icon-ai > a:hover::before,
.spnc-custom .spnc-nav > li.menu-icon-ai.current-menu-item > a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%230078D4%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M12 16v5%27/%3E%3Cpath d=%27M16 14v7%27/%3E%3Cpath d=%27M20 10v11%27/%3E%3Cpath d=%27m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.708 0L2 15%27/%3E%3Cpath d=%27M4 18v3%27/%3E%3Cpath d=%27M8 14v7%27/%3E%3C/svg%3E") !important;
}
.spnc-custom .spnc-nav > li.menu-icon-shield > a:hover::before,
.spnc-custom .spnc-nav > li.menu-icon-shield.current-menu-item > a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%230078D4%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z%27/%3E%3Cpath d=%27m9 12 2 2 4-4%27/%3E%3C/svg%3E") !important;
}
.spnc-custom .spnc-nav > li.menu-icon-user > a:hover::before,
.spnc-custom .spnc-nav > li.menu-icon-user.current-menu-item > a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%230078D4%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Ccircle cx=%2712%27 cy=%278%27 r=%275%27/%3E%3Cpath d=%27M20 21a8 8 0 0 0-16 0%27/%3E%3C/svg%3E") !important;
}

/* ========================================================================
   MODERN MOBILE EXPERIENCE
   Full-screen overlay menu with glassmorphism, smooth animations,
   and proper touch targets. Hamburger breakpoint: 1100px.
   Two navs: .spnc-nav.spnc-right (main 6-item menu in collapse)
             .spnc-header-right .spnc-nav (search icon only)
   ======================================================================== */

/* Body scroll lock when menu is open (JS adds .off-canvas on openNav) */
body.off-canvas {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 1100px) {
    /* ----------------------------------------------------------------
       TOPBAR: hide social icons bar on mobile for cleaner header
       ---------------------------------------------------------------- */
    .spnc-topbar {
        display: none !important;
    }

    /* ----------------------------------------------------------------
       HEADER BAR: clean, flat, minimal
       ---------------------------------------------------------------- */
    .header-sidebar.header-1 .spnc-custom .spnc-navbar {
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .header-sidebar.header-1 .spnc-navbar .spnc-container {
        border-radius: 0 !important;
        padding: 0 12px !important;
        box-shadow: 0 1px 0 rgba(0,0,0,0.06) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 56px !important;
        gap: 8px !important;
    }
    .spnc-custom {
        border-radius: 0 !important;
        border-top: none !important;
    }

    /* Show logo area */
    .spnc-navbar .spnc-header {
        display: flex !important;
        align-items: center !important;
        flex: 1 !important;
        min-width: 0 !important;
        padding: 0 !important;
        float: none !important;
    }

    /* Header-right: compact icon row next to hamburger */
    .spnc-head-wrap {
        display: flex !important;
        align-items: center !important;
        order: 2 !important;
        flex-shrink: 0 !important;
    }
    .spnc-header-right {
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
    }
    /* Search icon — compact */
    .spnc-header-right .spnc-nav {
        display: flex !important;
        align-items: center !important;
        background: transparent !important;
        margin: 0 !important;
    }
    .spnc-header-right .spnc-nav > li > a {
        color: var(--ak-header-nav-text, #64748b) !important;
        background: transparent !important;
        padding: 8px !important;
        margin: 0 !important;
        border-bottom: none !important;
        border-radius: 10px !important;
        font-size: 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        height: 38px !important;
        transition: all 0.2s ease !important;
    }
    .spnc-header-right .spnc-nav > li > a:hover {
        background: rgba(0,0,0,0.05) !important;
    }
    /* Search dropdown panel */
    .spnc-header-right .spnc-nav .dropdown-menu.search-panel {
        position: absolute !important;
        background: var(--ak-header-bg, #fff) !important;
        box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
        border-radius: 14px !important;
        border: 1px solid rgba(0,0,0,0.08) !important;
        padding: 12px !important;
        min-width: 280px !important;
        right: 0 !important;
        left: auto !important;
    }
    .spnc-header-right .spnc-nav .dropdown-menu.search-panel > li > a,
    .spnc-header-right .spnc-nav .dropdown-menu.search-panel > li {
        color: inherit !important;
        padding: 0 !important;
        border-bottom: none !important;
        background: transparent !important;
    }
    /* Dark mode toggle — compact */
    .spnc-dark-layout {
        margin: 0 !important;
        padding: 0 !important;
    }
    .spnc-dark-layout .spnc-dark-icon {
        color: var(--ak-header-nav-text, #64748b) !important;
        width: 38px !important;
        height: 38px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 10px !important;
        font-size: 15px !important;
        padding: 0 !important;
    }
    /* Hide sidebar panel toggle (redundant with hamburger) */
    .spnc-widget-toggle {
        display: none !important;
    }

    /* ----------------------------------------------------------------
       HAMBURGER BUTTON: modern pill with icon
       ---------------------------------------------------------------- */
    button.spnc-toggle,
    button.spnc-menu-open {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 42px !important;
        height: 42px !important;
        border: none !important;
        border-radius: 12px !important;
        background: rgba(0,120,212,0.08) !important;
        color: #0078D4 !important;
        font-size: 18px !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
        order: 3 !important;
        padding: 0 !important;
        margin: 0 0 0 4px !important;
        float: none !important;
        transition: all 0.2s ease !important;
    }
    button.spnc-toggle:active {
        transform: scale(0.92) !important;
        background: rgba(0,120,212,0.15) !important;
    }
    body.dark-mode button.spnc-toggle,
    body.dark-mode button.spnc-menu-open {
        background: rgba(56,189,248,0.12) !important;
        color: #38bdf8 !important;
    }

    /* ----------------------------------------------------------------
       FULL-SCREEN OVERLAY MENU — LIGHT by default, dark in dark-mode
       ---------------------------------------------------------------- */
    #spnc-menu-open {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: #ffffff !important;
        backdrop-filter: blur(24px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
        z-index: 999999 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border-top: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.35s cubic-bezier(0.16,1,0.3,1),
                    visibility 0.35s cubic-bezier(0.16,1,0.3,1) !important;
    }
    body.dark-mode #spnc-menu-open {
        background: rgba(15, 23, 42, 0.97) !important;
    }
    #spnc-menu-open.open {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Close button (X) */
    #spnc-menu-open .spnc-menu-close {
        position: fixed !important;
        top: 16px !important;
        right: 16px !important;
        width: 48px !important;
        height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        background: rgba(0,0,0,0.08) !important;
        border: 1px solid rgba(0,0,0,0.1) !important;
        color: #1e293b !important;
        font-size: 20px !important;
        text-decoration: none !important;
        transition: all 0.25s ease !important;
        z-index: 10 !important;
    }
    #spnc-menu-open .spnc-menu-close:hover,
    #spnc-menu-open .spnc-menu-close:active {
        background: rgba(0,0,0,0.1) !important;
        transform: rotate(90deg) scale(1.05) !important;
    }
    body.dark-mode #spnc-menu-open .spnc-menu-close {
        background: rgba(255,255,255,0.1) !important;
        border-color: rgba(255,255,255,0.08) !important;
        color: #e2e8f0 !important;
    }
    body.dark-mode #spnc-menu-open .spnc-menu-close:hover {
        background: rgba(255,255,255,0.18) !important;
    }

    /* Hide the empty .spnc-header inside collapse panel */
    #spnc-menu-open > .spnc-header {
        display: none !important;
    }

    /* Menu content area */
    #spnc-menu-open .ml-auto {
        padding: 80px 20px 100px !important;
        max-width: 440px !important;
        margin: 0 auto !important;
    }

    /* ----------------------------------------------------------------
       MAIN MENU ITEMS (6 top-level items)
       ---------------------------------------------------------------- */
    #spnc-menu-open .spnc-nav.spnc-right {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        background: transparent !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
    }
    #spnc-menu-open .spnc-nav.spnc-right > li {
        float: none !important;
        display: block !important;
        opacity: 0;
        animation: akMenuItemIn 0.4s cubic-bezier(0.16,1,0.3,1) forwards;
    }
    #spnc-menu-open .spnc-nav.spnc-right > li:nth-child(1) { animation-delay: 0.06s; }
    #spnc-menu-open .spnc-nav.spnc-right > li:nth-child(2) { animation-delay: 0.10s; }
    #spnc-menu-open .spnc-nav.spnc-right > li:nth-child(3) { animation-delay: 0.14s; }
    #spnc-menu-open .spnc-nav.spnc-right > li:nth-child(4) { animation-delay: 0.18s; }
    #spnc-menu-open .spnc-nav.spnc-right > li:nth-child(5) { animation-delay: 0.22s; }
    #spnc-menu-open .spnc-nav.spnc-right > li:nth-child(6) { animation-delay: 0.26s; }

    /* Menu item link — LIGHT mode: soft gray cards
       #spnc-menu-open prefix needed to beat theme .spnc-nav li > a { color:#fff } */
    #spnc-menu-open .spnc-nav.spnc-right > li > a {
        color: #1e293b !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px !important;
        padding: 15px 18px !important;
        margin: 0 !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        letter-spacing: 0.01em !important;
        display: flex !important;
        align-items: center !important;
        gap: 14px !important;
        white-space: normal !important;
        text-decoration: none !important;
        transition: all 0.25s cubic-bezier(0.16,1,0.3,1) !important;
    }
    #spnc-menu-open .spnc-nav.spnc-right > li > a:hover,
    #spnc-menu-open .spnc-nav.spnc-right > li > a:active {
        color: #0078D4 !important;
        background: #eff6ff !important;
        border-color: #bfdbfe !important;
        transform: translateX(4px) !important;
    }
    #spnc-menu-open .spnc-nav.spnc-right > li.active > a,
    #spnc-menu-open .spnc-nav.spnc-right > li.current-menu-item > a {
        color: #0078D4 !important;
        background: #eff6ff !important;
        border-color: rgba(0,120,212,0.3) !important;
        box-shadow: 0 0 16px rgba(0,120,212,0.08) !important;
    }
    /* DARK mode overrides for menu items */
    body.dark-mode #spnc-menu-open .spnc-nav.spnc-right > li > a {
        color: #f1f5f9 !important;
        background: rgba(255,255,255,0.06) !important;
        border-color: rgba(255,255,255,0.08) !important;
    }
    body.dark-mode #spnc-menu-open .spnc-nav.spnc-right > li > a:hover,
    body.dark-mode #spnc-menu-open .spnc-nav.spnc-right > li > a:active {
        color: #fff !important;
        background: rgba(0,120,212,0.2) !important;
        border-color: rgba(0,120,212,0.35) !important;
    }
    body.dark-mode #spnc-menu-open .spnc-nav.spnc-right > li.active > a,
    body.dark-mode #spnc-menu-open .spnc-nav.spnc-right > li.current-menu-item > a {
        color: #fff !important;
        background: rgba(0,120,212,0.18) !important;
        border-color: rgba(0,120,212,0.3) !important;
    }

    /* Dropdown arrow */
    #spnc-menu-open .spnc-nav.spnc-right > li > a > i.fa-angle-down {
        margin-left: auto !important;
        color: #94a3b8 !important;
        font-size: 13px !important;
        transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), color 0.2s !important;
        flex-shrink: 0 !important;
    }
    #spnc-menu-open .spnc-nav.spnc-right > li.open > a > i.fa-angle-down {
        transform: rotate(180deg) !important;
        color: #0078D4 !important;
    }
    body.dark-mode #spnc-menu-open .spnc-nav.spnc-right > li > a > i.fa-angle-down {
        color: rgba(255,255,255,0.35) !important;
    }
    body.dark-mode #spnc-menu-open .spnc-nav.spnc-right > li.open > a > i.fa-angle-down {
        color: #38bdf8 !important;
    }

    /* ----------------------------------------------------------------
       DROPDOWN SUB-MENUS (accordion)
       ---------------------------------------------------------------- */
    #spnc-menu-open .spnc-nav.spnc-right .dropdown-menu {
        position: static !important;
        border: none !important;
        border-radius: 0 0 14px 14px !important;
        box-shadow: none !important;
        background: rgba(0,0,0,0.02) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 4px 0 6px 24px !important;
        margin: -4px 0 6px !important;
        min-width: unset !important;
        float: none !important;
        width: auto !important;
    }
    body.dark-mode #spnc-menu-open .spnc-nav.spnc-right .dropdown-menu {
        background: rgba(255,255,255,0.03) !important;
    }
    #spnc-menu-open .spnc-nav.spnc-right .dropdown-menu > li {
        padding: 0 !important;
        margin: 2px 0 !important;
    }
    #spnc-menu-open .spnc-nav.spnc-right .dropdown-menu > li > a {
        color: #64748b !important;
        padding: 11px 16px !important;
        font-size: 14.5px !important;
        font-weight: 400 !important;
        border-radius: 10px !important;
        border-bottom: none !important;
        border: none !important;
        transition: all 0.2s ease !important;
        display: block !important;
    }
    #spnc-menu-open .spnc-nav.spnc-right .dropdown-menu > li > a:hover,
    #spnc-menu-open .spnc-nav.spnc-right .dropdown-menu > li > a:active {
        color: #0078D4 !important;
        background: rgba(0,120,212,0.06) !important;
        padding-left: 20px !important;
    }
    body.dark-mode #spnc-menu-open .spnc-nav.spnc-right .dropdown-menu > li > a {
        color: rgba(255,255,255,0.65) !important;
    }
    body.dark-mode #spnc-menu-open .spnc-nav.spnc-right .dropdown-menu > li > a:hover {
        color: #38bdf8 !important;
        background: rgba(56,189,248,0.08) !important;
    }

    /* ----------------------------------------------------------------
       MENU ICONS — original color on light, inverted on dark
       ---------------------------------------------------------------- */
    #spnc-menu-open .spnc-nav.spnc-right > li[class*="menu-icon-"] > a::before {
        display: inline-block !important;
        opacity: 0.75 !important;
        width: 20px !important;
        height: 20px !important;
        flex-shrink: 0 !important;
        transition: opacity 0.2s !important;
        filter: none !important;
    }
    #spnc-menu-open .spnc-nav.spnc-right > li[class*="menu-icon-"] > a:hover::before,
    #spnc-menu-open .spnc-nav.spnc-right > li[class*="menu-icon-"].active > a::before,
    #spnc-menu-open .spnc-nav.spnc-right > li[class*="menu-icon-"].current-menu-item > a::before {
        opacity: 1 !important;
    }
    body.dark-mode #spnc-menu-open .spnc-nav.spnc-right > li[class*="menu-icon-"] > a::before {
        filter: brightness(0) invert(1) !important;
    }

    /* ----------------------------------------------------------------
       MENU OVERLAY BACKDROP (theme native, not needed)
       ---------------------------------------------------------------- */
    .spnc-nav-menu-overlay {
        display: none !important;
    }
}

/* Staggered item entrance animation */
@keyframes akMenuItemIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------------
   SMALL PHONES (767px and below)
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
    .custom-logo-link-url .site-title a,
    .spnc-site-branding .site-title a {
        font-size: 19px !important;
    }
    #spnc-menu-open .spnc-nav.spnc-right > li[class*="menu-icon-"] > a::before {
        width: 18px !important;
        height: 18px !important;
    }
    .header-sidebar.header-1 .spnc-navbar .spnc-container {
        padding: 0 10px !important;
        min-height: 52px !important;
    }
    #spnc-menu-open .spnc-nav.spnc-right > li > a {
        padding: 13px 16px !important;
        font-size: 15px !important;
    }
    #spnc-menu-open .ml-auto {
        padding: 72px 16px 80px !important;
    }
}
