/* NAVIGATION */

.nav-link {
    padding: 12px 10px !important;
}

.nav-item a {
    color: var(--color);
}

.dropdown-menu .dropdown-item {
    color: #666;
    padding: 12px 20px;
}

.nav-link.is-active,
.dropdown-item.is-active,
.nav-link:hover,
.dropdown-item:hover {
    background: var(--bgcolor);
    color: var(--color);
    height: 54px;
}

.nav-item.dropdown a:hover {
    color: #eee;
}

.navbar-nav li.dropdown-menu {
    padding: 0;
    border: none;
}

.navbar-nav .dropdown-menu {
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    border-radius: 0;
    padding: 0;
    border: none;
}

.navbar-brand {
    background: white;
    margin: -0;
    padding-right: 15px;
    height: 54px;
}

.navbar-brand img {
    max-height: 54px;
}

.navbar-toggler {
    border: none;
    border-radius: 0;
    box-shadow: none !important;
    background-color: transparent !important;
}

@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: none;
    }

    .navbar .nav-item:hover .dropdown-menu {
        display: block;
    }

    .navbar .nav-item .dropdown-menu {
        margin-top: 0;
    }
    .navbar .mobile-only {
        display: none !important;
    }
}

@media (max-width: 1200px) {

    /* Main menu container */
    #block-dempo-custom-main-menu {
        height: 40px;
        background: transparent !important;
        display: flex;
        justify-content: center;
        position: absolute;
        right: 0;
        top: 0;
        z-index: 100;
        width: 40px;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    /* Hamburger button styling */
    .navbar-toggler {
        background: transparent !important;
        margin: 0;
        border-radius: 0;
        width: 40px;
        height: 40px;
        position: absolute;
        right: 0;
        top: 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 999;
        border: none;
        outline: none;
        box-shadow: none;
        line-height: 1;
    }

    /* Make sure the hamburger icon is visible and properly styled */
    .navbar-toggler .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        width: 26px;
        height: 26px;
    }

    /* Menu items styling */
    .navbar-nav.dempo-navbar-nav {
        background: transparent;
        width: 100%;
        margin-top: 20px;
    }

    /* Improve menu item appearance */
    .navbar-nav.dempo-navbar-nav .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0 15px;
    }

    .navbar-nav.dempo-navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .navbar-nav.dempo-navbar-nav .nav-link {
        color: white !important;
        font-weight: 500;
        padding: 15px 10px !important;
        transition: all 0.3s ease;
    }

    .navbar-nav.dempo-navbar-nav .nav-link:hover,
    .navbar-nav.dempo-navbar-nav .nav-link:focus {
        background-color: rgba(255, 255, 255, 0.1);
        color: white !important;
    }

    .nav-link.dropdown-toggle.show:hover {
        margin-bottom: -2px;
    }

    /* Make sure hamburger icon is visible */
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        display: inline-block !important;
        width: 1.5em;
        height: 1.5em;
    }

    /* Fix for the offcanvas menu background */
    .navbar {
        background-color: transparent !important;
    }

    /* Ensure the offcanvas menu has a proper background */
    .offcanvas.offcanvas-end {
        background-color: rgba(0, 0, 0, 0.85) !important;
        width: 100% !important;
        max-width: 100% !important;
        backdrop-filter: blur(5px);
    }

    .offcanvas-header {
        background-color: rgba(0, 0, 0, 0.85) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .offcanvas-body {
        background-color: transparent !important;
    }
}

/* Improve close button styling */
.btn-close.btn-close-white {
    margin-right: 15px;
    border: solid 1px rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    padding: 10px;
    opacity: 1;
    transition: all 0.3s ease;
}

.btn-close.btn-close-white:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Hero image text improvements - ensure visibility at all screen sizes */
/* Base styles for all screen sizes */
.field--name-field-hero-text {
    display: block !important;
    font-size: 1rem;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 10;
    margin-top: -40px;
}

@media (max-width: 768px) {

    /* Additional styles for mobile */
    .field--name-field-hero-text {
        margin-top: -60px;
    }

    /* Adjust search icon for mobile */
    /* .search-icon {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    .search-icon .fa-search {
        font-size: 1.5rem;
    } */

    /* Hide search bar text input on mobile, show only icon */
    /* .search-contents {
        display: none;
    }

    .search-icon {
        cursor: pointer;
    } */

    /* Show search form when icon is clicked */
    /* .search-active .search-contents {
        display: block;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        z-index: 100;
        background-color: white;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    } */
}
