:root {
    --primary-color: #FF6600;
    /* Orange accent */
    --text-color: #1a1a1a;
    --text-light: #666666;
    --bg-white: #ffffff;
    --border-color: #eaeaea;
    --transition-speed: 0.3s;
    --header-height: 60px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: #f8f9fa;
    line-height: 1.6;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

/* Container */
.hprt-nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Header */
.hprt-nav-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) ease;
}

/* Logo */
.hprt-nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.5px;
}

.logo-symbol {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
}

.logo-text {
    color: var(--text-color);
}

/* Main Navigation */
.hprt-nav-main {
    flex: 1;
    display: flex;
    justify-content: center;
    height: 100%;
    /* Force full height */
}

.hprt-nav-list {
    display: flex;
    gap: 32px;
    height: 100%;
    /* Force full height */
}

.hprt-nav-item {
    position: relative;
    height: 100%;
    /* Force full height */
    display: flex;
    /* Allow centering of link */
    align-items: center;
}

.hprt-nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    /*text-transform: uppercase;*/
    letter-spacing: 0.5px;
    /* Remove padding based height, use flex alignment */
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

/* Hover Effect - Orange Line */
.hprt-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    /* Now sits at true bottom of header */
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.hprt-nav-link:hover,
.hprt-nav-link.active,
.hprt-nav-item:hover .hprt-nav-link {
    /* Keep color when hovering hprt-nav-dropdown (child of hprt-nav-item) */
    color: var(--primary-color);
}

.hprt-nav-link:hover::after,
.hprt-nav-item:hover .hprt-nav-link::after {
    width: 100%;
}


/* Dropdown Base */
.hprt-nav-dropdown {
    position: absolute;
    top: 100%;
    /* ... existing styles ... */
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    opacity: 0;
    /* Keep it clean */
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-speed) ease;
    border-top: 1px solid var(--border-color);
    /* Prevent accidental clicks when hidden */
}

/* Invisible Bridge to prevent hprt-nav-dropdown flickering */
.hprt-nav-item.has-hprt-nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 40px;
    /* Increased height for better catch */
    background: transparent;
    /* Removed pointer-events: none to allow hover capture */
}

/* Show Dropdown on Hover */
.hprt-nav-item.has-hprt-nav-dropdown:hover .hprt-nav-dropdown {
    /* ... */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Simple Dropdown (Narrow) */
.hprt-nav-simple-hprt-nav-dropdown {
    width: 200px;
    padding: 10px 0;
    border-radius: 0 0 8px 8px;
    left: 0;
    /* Align to the item now that it is relative */
}

.hprt-nav-simple-hprt-nav-dropdown2 {
    width: 280px;
    padding: 10px 0;
    border-radius: 0 0 8px 8px;
    left: 0;
    /* Align to the item now that it is relative */
}

.hprt-nav-simple-hprt-nav-dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.hprt-nav-simple-hprt-nav-dropdown li a:hover {
    background-color: #fff9f5;
    color: var(--primary-color);
    padding-left: 25px;
    /* Slight movement */
}

/* ... */

/* Mega Menu (Full Width) */
.hprt-nav-mega-menu {
    position: fixed;
    /* Fixed relative to viewport/header */
    top: var(--header-height);
    left: 0;
    width: 100%;
    padding: 40px;
    border-bottom: 5px solid var(--primary-color);
    background: var(--bg-white);
    /* Ensure opacity */
    display: flex;
    /* Centering helper */
    justify-content: center;
}

.hprt-nav-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Columns */
    gap: 40px;
    max-width: 1440px;
    margin: 0 auto;
}

.hprt-nav-mega-col h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    /*text-transform: uppercase;*/
    position: relative;
    padding-bottom: 10px;
}

.hprt-nav-mega-col h3::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.hprt-nav-mega-col ul li {
    margin-bottom: 12px;
}

.hprt-nav-mega-col ul li a {
    font-size: 14px;
    color: var(--text-light);
}

.hprt-nav-mega-col ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Solution Mega Menu - Tabbed Layout */
.hprt-nav-solutions-menu {
    border-top: none;
    padding: 40px;
    /* Matched with Products Menu */
    /* Remove padding override if it existed or set explicitly */
}

.hprt-nav-solutions-layout {
    display: flex;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 300px;
    /* Ensure some height */
    gap: 40px;
}

/* Sidebar */
.hprt-nav-solutions-sidebar {
    width: 200px;
    border-right: 1px solid var(--border-color);
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hprt-nav-sol-tab {
    padding: 12px 15px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
    /* Simulate the look of the reference image sidebar */
}

.hprt-nav-sol-tab:hover {
    color: var(--primary-color);
    background: #fff9f5;
}

.hprt-nav-sol-tab.active {
    color: var(--primary-color);
    background: #fff9f5;
    font-weight: 700;
}

.hprt-nav-sol-tab.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background-color: var(--primary-color);
    border-radius: 0 4px 4px 0;
}


/* Content Area */
.hprt-nav-sol-content {
    flex: 1;
    padding-left: 20px;
}

.hprt-nav-sol-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.hprt-nav-sol-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Grid for links without images (Text Only) */
.hprt-nav-sub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns to fill space */
    gap: 10px;
}

.hprt-nav-sub-grid li a {
    font-size: 15px;
    color: var(--text-light);
    display: block;
    padding: 5px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.hprt-nav-sub-grid li a:hover {
    background-color: #fff9f5;
    color: var(--primary-color);
    border-color: var(--border-color);
    /* Card-like hover effect since we don't have images */
    box-shadow: 1px rgba(243, 111, 47, 0.5);
}

.mt-4 {
    margin-top: 2rem;
}

/* Right Actions */
.hprt-nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hprt-nav-icon-btn,
.hprt-nav-lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 14px;
}

.hprt-nav-icon-btn:hover,
.hprt-nav-lang-btn:hover,
.hprt-nav-lang-selector:hover .hprt-nav-lang-btn {
    color: var(--primary-color);
}

/* Hero Section */
.hprt-hero-demo {
    height: 100vh;
    background: linear-gradient(135deg, #FFF0E6 0%, #FFFFFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
}

.hprt-hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.hprt-hero-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hprt-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.hprt-hprt-btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.hprt-hprt-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
    background-color: #e65c00;
}

/* Language Modal Styles */
.hprt-nav-lang-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.hprt-nav-lang-modal.active {
    opacity: 1;
    visibility: visible;
}

.hprt-nav-hprt-nav-lang-modal-wrap {
    width: 100%;
    max-width: 900px;
    padding: 20px;
    perspective: 1000px;
}

.hprt-nav-hprt-nav-lang-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hprt-nav-lang-modal.active .hprt-nav-hprt-nav-lang-modal-content {
    transform: scale(1);
}

.hprt-nav-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.hprt-nav-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    white-space: nowrap;
}

.hprt-nav-modal-search-container {
    margin-bottom: 0;
    flex: 1;
    max-width: 400px;
    /* Limit width */
}

.hprt-nav-close-modal {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hprt-nav-close-modal:hover {
    background: #f5f5f5;
    color: var(--text-color);
}

/* .hprt-nav-modal-search-container {
    margin-bottom: 30px;
} */

.hprt-nav-modal-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.hprt-nav-search-icon {
    position: absolute;
    left: 15px;
    color: #999;
    pointer-events: none;
}

.hprt-nav-lang-input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    color: var(--text-color);
}

.hprt-nav-lang-input:focus {
    border-color: var(--primary-color);
}

/* Language Grid */
.hprt-nav-lang-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom Scrollbar for grid */
.hprt-nav-lang-grid::-webkit-scrollbar {
    width: 6px;
}

.hprt-nav-lang-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.hprt-nav-lang-grid::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.hprt-nav-lang-grid::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

.hprt-nav-lang-option {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 10px;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: inherit;
}

.hprt-nav-lang-option:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fff9f5;
}

.hprt-nav-lang-option.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.2);
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .hprt-nav-modal-header h2 {
        font-size: 18px;
    }

    .hprt-nav-lang-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hprt-nav-hprt-nav-lang-modal-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hprt-nav-lang-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Search Box Styles */
.hprt-nav-hprt-nav-modal-search-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 900;
    border-top: 1px solid var(--border-color);
}

.hprt-nav-hprt-nav-modal-search-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hprt-nav-hprt-nav-modal-search-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.hprt-nav-hprt-nav-modal-search-wrap .hprt-nav-search-icon {
    position: absolute;
    left: 15px;
    color: var(--text-light);
}

.hprt-nav-search-input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    background-color: #f8f9fa;
    transition: all 0.2s;
    font-family: inherit;
    color: var(--text-color);
}

.hprt-nav-search-input:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.hprt-nav-search-close {
    background: none;
    border: none;
    margin-left: 15px;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s;
}

.hprt-nav-search-close:hover {
    color: var(--primary-color);
    background-color: #fff9f5;
}


/* --- New Mobile Header & Drawer Styles --- */

/* Default States */
.hprt-nav-mobile {
    display: none;
}

.hprt-nav-desktop {
    display: block;
}

@media (max-width: 991px) {
    .hprt-nav-mobile {
        display: block;
    }
    .hprt-nav-desktop {
        display: none !important;
    }

    /* Mobile Header Layout */
    .hprt-nav-mobile-header {
        height: var(--header-height);
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        box-shadow: var(--shadow-sm);
    }

    .hprt-nav-mobile-left, .hprt-nav-mobile-right {
        width: 40px; /* Allocate space for icons */
        display: flex;
        justify-content: center;
    }

    .hprt-nav-mobile-center {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .hprt-nav-mobile-logo img {
        height: 28px;
        width: auto;
    }

    .hprt-nav-icon-btn {
        padding: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Mobile Drawer */
    .hprt-nav-drawer {
        position: fixed;
        top: 0;
        bottom: 0;
        width: 85%;
        max-width: 350px;
        background: #fff;
        z-index: 1200;
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }

    .hprt-nav-drawer-product {
        left: 0;
        transform: translateX(-100%);
    }

    .hprt-nav-drawer-menu {
        right: 0;
        transform: translateX(100%);
    }

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

    .hprt-nav-drawer-header {
        height: var(--header-height);
        border-bottom: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        background: #f9f9f9;
    }

    .hprt-nav-drawer-header h2 {
        font-size: 18px;
        font-weight: 700;
        color: var(--text-color);
    }

    .hprt-nav-drawer-close {
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text-light);
    }

    .hprt-nav-drawer-content {
        flex: 1;
        overflow-y: auto;
        padding: 20px 0;
    }

    /* Overlay */
    .hprt-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1100;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        backdrop-filter: blur(2px);
    }

    .hprt-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Accordion Styles */
    .hprt-nav-accordion {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .hprt-nav-drawer-content > .hprt-nav-accordion {
        border-top: 1px solid var(--border-color);
    }

    .hprt-nav-acc-item {
        border-bottom: 1px solid var(--border-color);
    }

    .hprt-nav-acc-header, .hprt-nav-drawer-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        font-size: 15px;
        font-weight: 600;
        color: var(--text-color);
        cursor: pointer;
        background: #fff;
        width: 100%;
        text-align: left;
        border: none;
    }
    
    .hprt-nav-drawer-link {
        text-decoration: none;
        display: block;
    }

    .hprt-nav-acc-header::after {
        content: '+';
        font-size: 20px;
        font-weight: 400;
        color: var(--text-light);
    }

    .hprt-nav-acc-header.active::after {
        content: '-';
        color: var(--primary-color);
    }

    .hprt-nav-acc-header.active {
        color: var(--primary-color);
        background: #fff9f5;
    }

    .hprt-nav-acc-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: #fcfcfc;
    }

    .hprt-nav-acc-body ul li a {
        display: block;
        padding: 12px 20px 12px 35px;
        font-size: 14px;
        color: var(--text-light);
        border-left: 3px solid transparent;
    }

    .hprt-nav-acc-body ul li a:hover {
        color: var(--primary-color);
        background: #f0f0f0;
        border-left-color: var(--primary-color);
    }

    /* Nested Accordion Styles (Level 3) */
    .hprt-nav-level-3 {
        background: #fcfcfc;
        padding-left: 30px; /* Indent */
        font-size: 14px;
        color: var(--text-color);
        border-top: 1px solid #f0f0f0;
    }

    .hprt-nav-level-3::after {
        font-size: 16px; /* Slightly smaller icon */
    }

    /* Level 4 Links */
    .nested-accordion .hprt-nav-acc-body {
        background: #f5f5f5; /* Slightly darker for nested content */
    }

    .nested-accordion .hprt-nav-acc-body ul li a {
        padding-left: 45px; /* Deeper indent for Level 4 */
        font-size: 13px;
    }

    /* Mobile Search Styles */
    .hprt-nav-mob-search {
        padding: 20px 20px 10px 20px;
        display: flex;
        gap: 10px;
    }

    .hprt-nav-mob-search-wrap {
        position: relative;
        flex: 1;
    }

    .hprt-nav-mob-search-wrap .hprt-nav-search-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-light);
        width: 18px;
        height: 18px;
    }

    .hprt-nav-mob-hprt-nav-search-input {
        width: 100%;
        padding: 10px 10px 10px 40px;
        font-size: 14px;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        outline: none;
        background-color: #f9f9f9;
        color: var(--text-color);
        transition: all 0.2s;
    }

    .hprt-nav-mob-hprt-nav-search-input:focus {
        border-color: var(--primary-color);
        background-color: #fff;
    }

    .hprt-nav-mob-search-btn {
        padding: 0 15px;
        background-color: var(--primary-color);
        color: #fff;
        border: none;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.2s;
        white-space: nowrap;
    }

    .hprt-nav-mob-search-btn:hover {
        background-color: #e65c00; /* Darker shade of orange */
    }
}