﻿.header .container {
    position: relative;
}

.topmenu {
    position: relative;
    z-index: 998;
}

.dropdown .submenu-1 {
    position: absolute;
    z-index: 997;
}

/* Fix for menu button display issues */
#cssmenu #menu-button {
    display: none !important;
}

#cssmenu ul {
    display: block !important;
}

/* Ensure proper menu styling */
.topmenu ul.dropdown {
    display: block !important;
    visibility: visible !important;
}

/* Desktop: show menu by default */
@media (min-width: 768px) {
    #cssmenu ul {
        display: block !important;
    }

    #cssmenu #menu-button {
        display: none !important;
    }
}

/* Mobile: hide menu by default, show when .open is added */
@media (max-width: 767px) {
    #cssmenu ul {
        display: none !important;
    }

        #cssmenu ul.open {
            display: block !important;
        }

    #cssmenu #menu-button {
        display: block !important;
        cursor: pointer;
    }
}
/* Hide the responsive select dropdown completely */
#topm-select,
.topmenu select.select_styled {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Ensure the regular dropdown menu is visible on desktop */
@media (min-width: 768px) {
    .topmenu ul.dropdown {
        display: block !important;
        visibility: visible !important;
    }

    #topm-select,
    .topmenu select.select_styled {
        display: none !important;
    }
}

/* Only show select on mobile when needed */
@media (max-width: 767px) {
    .topmenu ul.dropdown {
        display: none !important;
    }

    #topm-select.select_styled {
        display: block !important;
        visibility: visible !important;
        position: static !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
    }
}

/* Scroll to Top Button Styles - Using Background Image */
#scrollup {
    background: url('../images/scroll.png') no-repeat center center;
    background-size: contain; /* This ensures the image fits properly */
    width: 50px;
    height: 50px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    text-align: center;
    line-height: 50px;
    color: transparent; /* Hide any text/icon since we're using background image */
    font-size: 0; /* Hide font awesome icon */
    border-radius: 8px;
    text-decoration: none;
    z-index: 2147483647;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-indent: -9999px; /* Hide any text content */
}

    #scrollup:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        opacity: 0.8; /* Slight opacity change on hover */
    }

    #scrollup i {
        display: none; /* Hide the font awesome icon completely */
    }

/* Responsive adjustments for scroll-up button */
@media (max-width: 768px) {
    #scrollup {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    #scrollup {
        width: 40px;
        height: 40px;
        bottom: 10px;
        right: 10px;
        border-radius: 5px;
    }
}
