/* Main Navigation Styles */
.navbar {
    position: relative;
    background-color: #fff;
}

.navbar-brand {
    margin: 0;
}

.navbar-brand-image {
    height: 55px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.navbar-container {
    margin: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-item {
    position: relative;
    
}

.nav-link {
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    position: relative;
    display: inline-block;
}
#diceski-nav.nav-link {
    color: #c8102e;
}

.nav-link::after,
.nav-link.active::after {
    content: attr(data-text);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);  /* Center the text initially */
    color: var(--primary-color);
    font-weight: bold;
    z-index: 1;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.15s ease-in-out;
}

.nav-link:hover,
.nav-link.active:hover {
    color: transparent!important;
}

/* Regular nav links */
.nav-link:hover::after,
.nav-link.active:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
    color: var(--primary-color);
}

.nav-link:not(#diceski-nav):hover::after,
.nav-link:not(#diceski-nav).active:hover::after {
    color: #333;
}

#diceski-nav.nav-link:hover::after,
#diceski-nav.nav-link.active:hover::after {
    color: #c8102e;
}

.nav-link.active {
    font-weight: bold;
    transform: scale(1.2);
    pointer-events: none;
}
.nav-link:not(#diceski-nav).active {
    color: var(--primary-color) !important;

}

#diceski-nav.nav-link.active {
    color: #c8102e !important;

}

.nav-link:not(:hover) {
    color: #333;
}

/* Mobile Menu Toggle */
.navbar-toggler {
    padding: 1rem;
    border: none;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* Responsive Adjustments */
@media (max-width: 991px) {

    .navbar-container {
        margin: 0 1em;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .navbar-brand-image {
        height: 50px;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        padding-left: 1rem;
        padding-right: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-link:not(#diceski-nav):hover,
    .nav-link:not(#diceski-nav).active:hover {
        color: #333 !important;
        /* font-size: 1.2rem; */

        font-weight: bold;
    }

    #diceski-nav.nav-link:hover,
    #diceski-nav.nav-link.active:hover {
        color: #c8102e !important;
        /* font-size: 1.2rem; */

        font-weight: bold;
    }

    .nav-link::after,
    .nav-link.active::after {
        display: none;

    }

    .nav-link.active {
        transform: scale(1);
        font-size: 1.2rem;

    }

    .navbar-nav {
        gap: 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        cursor: pointer;
        display: block;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
    }
}

@media (max-width: 425px) {
    .navbar-container {
        margin: 0 1em;
    }
}