﻿@font-face {
    font-family: 'GIP';
    src: url('/fonts/GIP/GIP-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


.navbar {
    background: #ffffff;
    font-family: GIP !important;
    font-size: 16px !important;
}

.navbar-custom {
    z-index: 100;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex-wrap: nowrap;
    justify-content: flex-start;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 16px;
    padding-top: 20.5px !important;
    padding-bottom: 18.5px !important; 
    text-align: start;
}

    .navbar-custom > .container {
        display: flex;
        flex-wrap: inherit;
        align-items: center;
        justify-content: space-between;
    }

.navAguulah {
    background: #E8EFF6;
    border-radius: 8px;
    /*    padding: 4px 4px;*/
    /*    gap: 12px;*/
}

.nav-towch {
    color: #175AA7;
    padding: 8px 60px;
    border-radius: 8px;
    margin: 4px;
    transition: background 0.25s, color 0.25s;
    text-decoration: none;
    background: none;
    font-weight: 500;
    line-height: 24px !important;
    font-family: GIP !important;
    font-size: 16px !important;
    letter-spacing: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .nav-towch.active {
        background: #175AA7;
        color: #fff !important;
        /* Жаахан "shadow" нэмбэл илүү мэдрэмжтэй болно */
        box-shadow: 0 2px 12px rgba(23,90,167,0.1);
        transition: background 0.25s, color 0.25s;
    }

    .nav-towch:hover {
        color: #1793d1;
    }
/* hover-ийг бүр хассан тул hover-д ямар ч өөрчлөлт орохгүй */

/* Mobile hamburger menu button */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    background: transparent;
    display: none;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.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(23, 90, 167, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

/* Responsive styles */
@media (min-width: 992px) {
    /* Show collapsed content on desktop */
    .navbar-collapse {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-basis: auto !important;
        flex-grow: 0 !important;
    }
    
    .navbar .container {
        flex-direction: row !important;
    }
    
    .navbar-toggler {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .navbar-custom > .container {
        flex-wrap: wrap;
    }
    
    .navbar-brand {
        order: 1;
    }
    
    .navbar-toggler {
        display: block;
        order: 2;
    }
    
    .navbar-collapse {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }
    
    .navAguulah {
        width: 100%;
        flex-direction: column;
        background: transparent;
        border-radius: 0;
        padding: 0;
    }
    
    .nav-towch {
        padding: 12px 20px;
        margin: 2px 0;
        border-radius: 6px;
        font-size: 14px !important;
        width: 100%;
        justify-content: flex-start;
        background: #E8EFF6;
    }
    
    .nav-towch.active {
        background: #175AA7;
        color: #fff !important;
    }
}

@media (max-width: 575.98px) {
    .navbar-custom {
        padding-top: 15px;
        padding-bottom: 15px;
    }
    
    .navbar-brand img {
        height: 30px !important;
    }
    
    .nav-towch {
        padding: 10px 16px;
        font-size: 13px !important;
        margin: 1px 0;
    }
    
    .container.w-75 {
        width: 95% !important;
    }
}