:root {
    /* Theme Colors from skin-4.css */
    --primary: #8CC633;
    --primary-dark: #1B2D00;
    --primary-light: #A9DE59;
    --secondary: #1C1A1B;
    --body-bg: #131F00;
    --body-text: #77775B;
    --title-color: #1C1A1B;
    --white: #ffffff;
    --bg-light: #ECECDE;

    /* Fonts */
    --font-family-title: "Space Grotesk", sans-serif;
    --font-family-base: "Space Grotesk", sans-serif;

    /* Animations */
    --transition-speed: 0.3s;
}

/* Preloader Styles */
.preloader-wrapper-4 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    background-color: var(--body-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Header Base Structure */
.site-header {
    width: 100%;
    z-index: 999;
    position: relative;
}

.site-header.header-transparent {
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
}

.main-bar {
    background: #fff;
    width: 100%;
    position: relative;
    transition: all 0.5s;
}

.is-fixed .main-bar {
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 0 50px 0 rgba(0, 0, 0, 0.1);
    z-index: 999;
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-nav>li {
    position: relative;

    padding: 5px 5px;
}

.navbar-nav>li>a {
    color: var(--title-color);

    font-family: var(--font-family-title);
    font-weight: 500;
    text-transform: capitalize;
    font-size: 15px;
}

/* Mobile Responsive Styles */
@media only screen and (max-width: 991px) {
    .header-nav.xmenu {
        display: block !important;
        background: #fff;
        padding-top: 20px;
    }
    .header-nav.xmenu .nav {
        display: block !important;
        float: none !important;
        width: 100% !important;
        padding: 0 20px !important;
        left: 0 !important; /* Ensure it's not shifted off-screen */
    }
    .header-nav.xmenu .nav > li {
        display: block !important;
        width: 100% !important;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .header-nav.xmenu .nav > li > a {
        padding: 12px 0 !important;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        color: var(--title-color) !important;
    }
    .header-nav.xmenu .sub-menu {
        padding-left: 15px !important;
        background: rgba(0,0,0,0.02) !important;
    }
    
    /* Ensure toggler is visible and positioned correctly */
    .xmenu-toggler {
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }
}