/* 1. ZÁKLADNÝ KONTAJNER */
.custom-nav {
    position: relative;
    width: 100%;
    z-index: 1080;
    transition: padding 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.3s ease, box-shadow 0.3s ease;
    padding-top: 1.2rem !important;
    padding-bottom: 1.2rem !important;
}

/* 1.1 STICKY LOGIKA (Vrátená späť) */
.custom-nav.sticky-top {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
}

/* 1.2 STAV PRI SCROLLOVANÍ */
.custom-nav.nav-scrolled {
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.custom-nav.nav-scrolled .nav-logo-img {
    height: 38px !important;
}

/* 2. LOGO A ODKAZY */
.nav-logo-img {
    height: 50px !important; 
    width: auto;
    object-fit: contain;
    display: block;
    transition: height 0.4s ease;
}

.custom-nav .nav-link {
    padding: 0.5rem 1.2rem !important;
    position: relative;
    transition: opacity 0.2s ease;
}

.custom-nav .nav-link:hover {
    opacity: 0.7;
}

/* Aktívny link - zelená čiara len pod textom aktívnej položky */
.custom-nav .active-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 1.2rem;
    right: 1.2rem;
    height: 3px;
    background-color: var(--primary-brand-color);
    border-radius: 2px;
}

/* 3. MOBILNÉ MENU */
@media (max-width: 991.98px) {
    .custom-nav .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--nav-bg, #ffffff) !important; 
        padding: 1.5rem 2rem !important;
        border-radius: 0 0 30px 30px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        z-index: 999;
    }

    .custom-btn-logic {
        width: 100%; 
        margin-top: 1.5rem;
    }
}