/* Prevent horizontal scrolling */
body {
    overflow-x: hidden !important;
    max-width: 100%;
}

html {
    overflow-x: hidden !important;
}

.container, .container-fluid, .row {
    max-width: 100%;
    overflow-x: hidden;
}

/* Sticky Header Styles */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    transition: all 0.3s ease;
    padding: 0 !important;
}

.sticky-header .header-main {
    padding: 15px 0 !important;
}

.sticky-header.header-scrolled {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sticky-header.header-scrolled nav {
    background-color: #fff;
}

/* Footer Styles - Match Index Page */
footer {
    background-image: url("img/BG-footer.png") !important;
    background-position: -288px -335px !important;
    height: 855px !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
}

footer .info-footer {
    padding-top: 280px !important;
}

footer .new-letter {
    padding-bottom: 150px !important;
}

footer .new-letter .form-new {
    background-image: url("img/new-letter.jpg");
    background-position: 0 0;
    height: 300px;
    background-repeat: no-repeat;
    margin-top: 300px;
}

footer .footer-logo {
    border-top: 1px solid rgba(136, 136, 136, 0.15) !important;
}

/* Mobile Menu Styles */
.navbar-toggle {
    background-color: transparent;
    border: 2px solid #333;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    display: none;
}

.navbar-toggle:hover {
    background-color: #f0f0f0;
}

.navbar-toggle i {
    font-size: 20px;
    color: #333;
}

#mobile-menu {
    background-color: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    display: none !important;
    margin-top: 120px;
}

#mobile-menu.in {
    display: block !important;
}

#mobile-menu .mobile-nav {
    width: 100%;
    padding: 0;
    margin: 0;
}

#mobile-menu .mobile-nav li {
    border-bottom: 1px solid #eee;
    list-style: none;
}

#mobile-menu .mobile-nav li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s;
}

#mobile-menu .mobile-nav li a:hover {
    background-color: #f5f5f5;
    color: #000;
}

#mobile-menu .mobile-nav li a i {
    margin-right: 8px;
}

/* Hide desktop menu on mobile */
@media (max-width: 991px) {
    .nav-left,
    .menu-main-left,
    .header-main .nav-left,
    .nav-left ul,
    .menu-main-left li {
        display: none !important;
        visibility: hidden !important;
    }
    
    .logo-center {
        order: 1;
    }
    
    .icons-right {
        order: 2;
    }
    
    .navbar-toggle {
        display: inline-block !important;
    }
    
    .header-main {
        justify-content: space-between;
    }
    
    #mobile-menu {
        display: none !important;
    }
    
    #mobile-menu.in {
        display: block !important;
    }
}

/* Hide mobile menu toggle on desktop */
@media (min-width: 992px) {
    .navbar-toggle {
        display: none !important;
    }
    
    #mobile-menu {
        display: none !important;
    }
    
    #mobile-menu.in {
        display: none !important;
    }
    
    .mobile-nav {
        display: none !important;
    }
}
