            /* Universal mobile fix: header always transparent at top, overlays banner, and banner has enough height/padding */
            @media (max-width: 640px) {
                header.modern-header {
                    background: transparent !important;
                    z-index: 1000;
                }
                header.modern-header.scrolled {
                    background: var(--header-bg-scroll) !important;
                }
                .contact-hero, .hero, .banner, .bg-half-170 {
                    position: relative;
                    min-height: 220px;
                    padding-top: 56px;
                    z-index: 1;
                }
                body {
                    padding-top: 0 !important;
                }
            }
        /* Ensure mobile header is transparent at top and overlays banner */
        @media (max-width: 640px) {
            header.modern-header {
                background: transparent !important;
                z-index: 1000;
            }
            header.modern-header.scrolled {
                background: var(--header-bg-scroll) !important;
            }
            /* Ensure hero/banner section has enough height and is under header */
            .contact-hero, .hero, .banner, .bg-half-170 {
                position: relative;
                min-height: 220px;
                padding-top: 56px;
                z-index: 1;
            }
            /* Remove extra body padding on mobile for pages with banner */
            body.page-has-banner {
                padding-top: 0 !important;
            }
        }
    /* Mobile: header background transparent at top */
    @media (max-width: 640px) {
        header.modern-header {
            background: transparent !important;
        }
        header.modern-header.scrolled {
            background: var(--header-bg-scroll) !important;
        }
    }
 :root {
        --primary-color: #b20101;
        --primary-dark: #8f0000;
        --text-dark: #1a1a1a;
        --text-white: #ffffff;
        --header-bg-scroll: #ffffff;
    }


    header.modern-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        background: transparent;
        transition: all 0.3s ease;
        border-bottom: none;
        padding: 0.55rem 0;
        overflow: visible;
    }

    header.modern-header.scrolled {
        background: var(--header-bg-scroll);
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
        padding: 0.75rem 0;
    }

    .header-container {
        max-width: 1470px;
        margin: 0 auto;
        padding: 0 2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
        overflow: visible;
        min-height: 70px;
    }

    header.modern-header .logo-section,
    /* header.modern-header .nav-menu a, */
    header.modern-header .nav-menu button,
    header.modern-header .btn-post,
    header.modern-header .btn-primary,
    header.modern-header .text-links a,
    /* header.modern-header .logo-text, */
    header.modern-header .mobile-menu-btn {
        color: var(--text-white) ;
    }

    header.modern-header.scrolled .logo-section,
    header.modern-header.scrolled .nav-menu a,
    header.modern-header.scrolled .nav-menu button,
    header.modern-header.scrolled .btn-post,
    header.modern-header.scrolled .btn-primary,
    header.modern-header.scrolled .text-links a,
    header.modern-header.scrolled .mobile-menu-btn {
        color: var(--text-dark) !important;
    }

    header.modern-header.scrolled .logo-text {
        color: var(--primary-color) !important;
    }

    header.modern-header.scrolled .logo-text .highlight,
    header.modern-header.scrolled .logo-section .logo-text .highlight {
        color: var(--text-dark) !important;
    }

    header.modern-header.scrolled .nav-menu a:hover {
        color: var(--primary-color) !important;
    }

    header.modern-header.scrolled .text-links a:hover {
        color: var(--primary-color) !important;
    }

    /* Duplicate .header-container removed; merged above */

    .logo-section {
        display: flex;
        align-items: center;
        /* gap: 0.5rem; */
        text-decoration: none;
        flex-shrink: 0;
        color: var(--text-white);
        transition: all 0.3s ease;
    }

    .logo-icon {
        width: 120px !important;
        height: auto !important;
        border-radius: 0.1rem;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        transition: transform 0.3s ease;
        font-weight: 700;
        font-size: 1.5rem;
    }

    .logo-section:hover .logo-icon {
        transform: scale(1.05);
    }

    .logo-text {
        font-weight: 700;
        font-size: 1.1rem;
        letter-spacing: 0.5px;
        color: var(--primary-color);
    }

    .logo-text .highlight {
        color: var(--text-white) !important;
    }

    .logo-img {
        width: 120px !important;
        height: auto !important;
        object-fit: contain;
        object-position: center;
        display: block;
        border-radius: 0.1rem;
    }

    /* Desktop Navigation */
    .nav-wrapper.desktop {
        display: none;
        flex: 1;
    }

    @media (min-width: 1024px) {
        .nav-wrapper.desktop {
            display: flex;
            align-items: center;
            overflow: visible;
        }
    }

    .nav-menu {
        display: flex;
        align-items: center;
        gap: 2.0rem;
        list-style: none;
        margin: 0;
        padding: 0;
        flex: 1;
        overflow: visible;
    }

    .nav-menu a,
    .nav-menu button {
        font-weight: 500;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        color: var(--text-white);
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0;
        text-decoration: none;
    }

    .nav-menu a:hover,
    .nav-menu button:hover {
        color: var(--primary-color);
    }

    .dropdown {
        position: relative;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
        border-radius: 1rem;
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2);
        min-width: 200px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px) scale(0.98);
        transition: opacity 0.34s ease, visibility 0.34s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
        margin-top: 0.8rem;
        padding: 0.55rem;
        border: 1px solid rgba(226, 232, 240, 0.9);
        z-index: 9999;
        display: block;
        pointer-events: none;
        backdrop-filter: blur(8px);
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
        animation: buyDropdownIn 0.28s ease;
    }

    .dropdown-menu a:not(.subcategory-link):not(.category-direct-link) {
        color: #000000 !important;
        padding: 0.62rem 0.85rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-weight: 600;
        font-size: 0.9rem;
        transition: all 0.2s ease;
        border-radius: 0.6rem;
        background: #ffffff;
        border: 1px solid #edf2f7;
        margin-bottom: 0.35rem;
    }

    .dropdown-menu a:not(.subcategory-link):not(.category-direct-link):last-child {
        margin-bottom: 0;
    }

    .dropdown-menu a:not(.subcategory-link):not(.category-direct-link)::after {
        content: '›';
        margin-left: 0.5rem;
        opacity: 0;
        transform: translateX(-3px);
        transition: all 0.16s ease;
        color: black !important;
    }

    .dropdown-menu a:not(.subcategory-link):not(.category-direct-link):hover {
        background: #fff7f5;
        color: #000000 !important;
        border-color: #ffd7cf;
        transform: translateX(2px);
        box-shadow: 0 4px 12px rgba(240, 74, 35, 0.12);
    }

    .dropdown-menu a:not(.subcategory-link):not(.category-direct-link):hover::after {
        opacity: 1;
        transform: translateX(0);
        color:#000000 !important;
    }

    /* Header Right Section */
    .header-actions {
        display: none;
        align-items: center;
        gap: 1.5rem;
    }

    @media (min-width: 1024px) {
        .header-actions {
            display: flex;
        }
    }

    .btn-post {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.25rem 0.7rem;
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
        border-radius: 9999px;
        background: transparent;
        transition: all 0.3s ease;
        cursor: pointer;
        text-decoration: none;
    }

    .btn-post:hover {
        background: rgba(245, 158, 11, 0.08);
        color: var(--primary-dark);
        border-color: var(--primary-dark);
    }

    header.modern-header.scrolled .btn-post {
        color: var(--primary-color);
        border-color: var(--primary-color);
    }

    .text-links {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .text-links a {
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--text-white);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .text-links a:hover {
        color: var(--primary-color);
    }

    .btn-primary {
        padding: 0.65rem 1.5rem;
        border-radius: 9999px;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        color: white;
        font-size: 0.9rem;
        font-weight: 600;
        border: none;
        box-shadow: 0 4px 12px rgba(245, 19, 11, 0.3);
        transition: all 0.3s ease;
        cursor: pointer;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .btn-primary:hover {
        box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
        transform: translateY(-2px);
    }

    header.modern-header.scrolled .btn-primary {
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
    }

    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex;
        padding: 0.5rem;
        border-radius: 0.5rem;
        background: transparent;
        border: none;
        color: var(--text-white);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    header.modern-header.scrolled .mobile-menu-btn {
        color: var(--text-dark);
    }

    header.modern-header.scrolled .mobile-menu-btn:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    @media (min-width: 1024px) {
        .mobile-menu-btn {
            display: none;
        }
    }

    /* Chevron Icon */
    .chevron {
        width: 16px;
        height: 16px;
        transition: transform 0.3s ease;
    }

    .dropdown:hover .chevron {
        transform: rotate(180deg);
    }

    .dropdown.open .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) scale(1) !important;
        pointer-events: auto !important;
        animation: buyDropdownIn 0.28s ease;
    }

    .buy-dropdown-menu {
        --category-col-width: clamp(132px, 15vw, 160px);
        min-width: calc(var(--category-col-width) + clamp(40px, 5vw, 40px)) !important;
        max-width: min(80vw, 540px);
        padding: 0.55rem !important;
        overflow: visible;
        border-radius: 1rem;
        border: 1px solid rgba(226, 232, 240, 0.9);
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2);
        background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
        backdrop-filter: blur(8px);
        animation: buyDropdownIn 0.28s ease;
    }

    @keyframes buyDropdownIn {
        from {
            opacity: 0;
            transform: translateY(8px) scale(0.98);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @keyframes subcategoryIn {
        from {
            opacity: 0;
            transform: translateX(8px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .category-item {
        position: static;
        width: var(--category-col-width);
    }

    .category-label {
        padding: 0.5rem 0.72rem;
        color: #000000;
        font-weight: 600;
        font-size: 0.85rem;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 0.6rem;
        margin: 0.1rem 0.16rem 0.24rem;
        min-height: 42px;
        box-sizing: border-box;
        border: 1px solid #edf2f7;
        transition: all 0.2s ease;
        background: #ffffff;
    }

    .category-direct-link {
        color: inherit;
        text-decoration: none;
        flex: 1;
        display: block;
        padding: 0;
        margin: 0;
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .buy-dropdown-menu .category-direct-link,
    .buy-dropdown-menu .category-direct-link:hover,
    .buy-dropdown-menu .category-direct-link:focus,
    .buy-dropdown-menu .category-label .category-direct-link {
        color: #000000 !important;
    }

    .buy-dropdown-menu .category-label:hover .category-direct-link,
    .buy-dropdown-menu .category-label:hover {
        color: var(--primary-color) !important;
    }

    .category-direct-link:hover,
    .category-direct-link:visited {
        color: inherit;
    }

    .category-item.open .category-label {
        background: #ffffff;
        color: #000000;
        border-color: #e5e7eb;
        transform: none;
        box-shadow: none;
    }

    .category-label:hover {
        background: #fff7f5;
        color: var(--primary-color);
        border-color: #ffd7cf;
        transform: translateX(2px);
        box-shadow: 0 4px 12px rgba(240, 74, 35, 0.12);
    }

    .buy-btn:focus-visible,
    .category-label:focus-visible,
    .subcategory-link:focus-visible {
        outline: 2px solid rgba(176, 1, 1, 0.75);
        outline-offset: 2px;
    }

    .category-item .category-label .chevron {
        width: 11px !important;
        height: 11px !important;
        transition: transform 0.2s ease, opacity 0.2s ease;
        opacity: 0.8;
    }

    .category-item.open .category-label .chevron {
        transform: rotate(90deg);
        opacity: 1;
    }

    .subcategory-menu {
        display: none;
        position: absolute;
        left: var(--category-col-width);
        top: 0;
        width: clamp(180px, 27vw, 280px);
        min-height: auto;
        padding: 0.85rem 0.9rem;
        background: #ffffff;
        border: 1px solid #dde6f0;
        border-radius: 1rem;
        margin: 0.22rem 0.22rem 0.22rem 0;
        max-height: 380px;
        overflow-y: auto;
        grid-template-columns: 1fr;
        gap: 0.3rem;
        align-content: start;
        animation: subcategoryIn 0.2s ease;
    }

    .subcategory-menu::-webkit-scrollbar {
        width: 6px;
    }

    .subcategory-menu::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 999px;
    }

    .category-item.open .subcategory-menu {
        display: grid;
    }

    .subcategory-title {
        grid-column: 1 / -1;
        font-size: 0.9rem;
        font-weight: 700;
        color: #000000;
        margin: 0.05rem 0 0.35rem;
        padding-bottom: 0.45rem;
        border-bottom: 1px solid #e4e7eb;
        letter-spacing: 0.01em;
    }

    .buy-dropdown-menu .subcategory-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.56rem 0.72rem;
        color: #000000;
        text-decoration: none;
        font-size: 0.88rem;
        font-weight: 600;
        border-radius: 0.6rem;
        margin: 0;
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        line-height: 1.25;
        transition: all 0.18s ease;
        white-space: normal;
        opacity: 1;
    }

    .buy-dropdown-menu .subcategory-link:visited {
        color: #000000 !important;
    }

    .buy-dropdown-menu .subcategory-link::after {
        content: '›';
        margin-left: 0.5rem;
        opacity: 0;
        transform: translateX(-3px);
        transition: all 0.16s ease;
    }

    .buy-dropdown-menu .subcategory-link:hover {
        background: #fff7f5;
        color: #000000;
        transform: translateX(2px);
        border-color: #ffd7cf;
        box-shadow: 0 4px 12px rgba(240, 74, 35, 0.12);
    }

    .buy-dropdown-menu .subcategory-link:hover::after {
        opacity: 1;
        transform: translateX(0);
    }

    .subcategory-empty {
        grid-column: 1 / -1;
        color: #9ca3af;
        font-size: 0.9rem;
        padding: 0.45rem 0.35rem;
    }

    @media (max-width: 1200px) {
        .buy-dropdown-menu {
            min-width: 320px !important;
            max-width: 430px;
            --category-col-width: clamp(120px, 15vw, 145px);
        }

        .subcategory-menu {
            left: var(--category-col-width);
            width: clamp(160px, 23vw, 220px);
            grid-template-columns: 1fr;
        }

        .subcategory-link {
            font-size: 0.86rem;
        }
    }

    /* Mobile Menu */
    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem;
    }

    .mobile-menu.active {
        display: block;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .mobile-nav a {
        padding: 0.75rem 1rem;
        color: var(--text-white);
        text-decoration: none;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
    }

    .mobile-nav a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--primary-color);
    }

    .mobile-collapse-group {
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        margin-top: 0.5rem;
    }

    .mobile-collapse-toggle,
    .mobile-category-toggle {
        width: 100%;
        text-align: left;
        color: var(--text-white);
        background: transparent;
        border: none;
        padding: 0.75rem 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
    }

    .mobile-collapse-toggle:hover,
    .mobile-category-toggle:hover {
        background: rgba(255, 255, 255, 0.12);
        color: var(--primary-color);
    }

    .mobile-collapse-toggle::after,
    .mobile-category-toggle::after {
        content: '+';
        font-weight: 700;
        transition: transform 0.2s ease;
    }

    .mobile-collapse-toggle[aria-expanded='true']::after,
    .mobile-category-toggle[aria-expanded='true']::after {
        content: '-';
        transform: rotate(0deg);
    }

    .mobile-collapse-content,
    .mobile-category-content {
        display: none;
        padding-left: 1rem;
        margin-bottom: 0.75rem;
    }

    .mobile-collapse-content.open,
    .mobile-category-content.open {
        display: block;
    }

    .mobile-submenu-item {
        display: block;
        padding: 0.55rem 1rem;
        color: var(--text-white);
        text-decoration: none;
        font-size: 0.92rem;
        border-radius: 0.4rem;
        transition: all 0.2s ease;
    }

    .mobile-submenu-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--primary-color);
    }

    .mobile-category-group {
        margin-bottom: 0.45rem;
    }

    @media (min-width: 1024px) {
        .mobile-menu {
            display: none !important;
        }
    }

    /* Body padding for fixed header */
    body {
        padding-top: 0;
        margin-top: 0;
    }

    /* Responsive */

    @media (max-width: 1023px) {
        .header-container {
            padding: 0 0.5rem;
            gap: 0.5rem;
            min-height: 56px;
        }
        .logo-text {
            font-size: 0.95rem;
        }
        .logo-icon {
            width: 44px;
            height: 44px;
            font-size: 1.1rem;
        }
        .logo-img {
            width: 44px !important;
            height: 44px !important;
        }
        .nav-wrapper.desktop,
        .header-actions {
            display: none !important;
        }
        .mobile-menu-btn {
            display: flex !important;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            font-size: 1.5rem;
            padding: 0;
            margin-left: auto;
        }
        .mobile-menu {
            display: block;
            position: fixed;
            top: 56px;
            left: 0;
            right: 0;
            width: 100vw;
            background: rgba(26, 26, 26, 0.97);
            backdrop-filter: blur(10px);
            border-top: 1px solid rgba(255,255,255,0.08);
            z-index: 2000;
            padding: 1.2rem 0.5rem 2rem 0.5rem;
            max-height: calc(100vh - 56px);
            overflow-y: auto;
            transition: top 0.3s;
        }
        .mobile-menu:not(.active) {
            display: none !important;
        }
        .mobile-nav {
            gap: 0.2rem;
        }
        .mobile-nav a {
            font-size: 1rem;
            padding: 0.9rem 1rem;
        }
        .mobile-menu-btn:focus {
            outline: 2px solid var(--primary-color);
        }
    }

    @media (max-width: 640px) {
        .header-container {
            padding: 0 0.3rem;
        }
        .logo-text {
            font-size: 0.85rem;
        }
        .logo-icon {
            width: 36px;
            height: 36px;
            font-size: 0.95rem;
        }
        .logo-img {
            width: 36px !important;
            height: 36px !important;
        }
        body {
            padding-top: 56px;
        }
        header.modern-header {
            padding: 0.5rem 0;
        }
        .mobile-menu {
            top: 56px;
            padding: 1rem 0.2rem 2rem 0.2rem;
        }
        body.header-scrolled {
            padding-top: 70px;
        }
    }
