@charset "UTF-8";
/* Consolidated from inline <style> in _HorizontalMenuPartial.cshtml -> W3C-valid + CSP-clean. Order/cascade preserved. */

    .menu-item {
        position: relative; /* so span positions relative to this container */
    }

    /* True blink animation — uses visibility instead of opacity so it bypasses
       the `opacity: 1 !important` UserWay-defense lock at the end of this file. */
    @keyframes pulsePopup {
        0%, 49.99%   { visibility: visible; }
        50%, 99.99%  { visibility: hidden; }
        100%         { visibility: visible; }
    }

    .popup-blink {
        position: absolute;
        top: 0;
        right: 0;
        transform: translate(50%, -50%);
        /* !important locks contrast at 6.4:1 against overlay injection
           (UserWay forces rgba(255,255,255,0.475) which blends to 2.4:1) */
        background-color: #b91c1c !important;
        color: #fff !important;
        font-size: 10px;
        font-weight: bold;
        padding: 2px 6px;
        border-radius: 12px;
        min-width: auto;
        text-align: center;
        line-height: 1;
        animation: pulsePopup 1.5s infinite;
        white-space: nowrap;
    }


    /* Blink animation */
    @keyframes blinkPopup {
        0%, 50%, 100%

    {
        opacity: 1;
    }

    25%, 75% {
        opacity: 0;
    }

    }

    /* ============================= */
    /* MOBILE RESPONSIVE POPUP BADGE */
    /* ============================= */
    @media (max-width: 768px) {
        .menu-item {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .popup-blink {
            position: initial; /* remove absolute overlap */
            transform: none;
            font-size: 11px;
            padding: 3px 8px;
            border-radius: 14px;
            line-height: 1.2;
            animation: pulsePopup 1.5s infinite;
            width: 40px;
        }
    }


            /* Desktop default */
            .popup-blink {
                position: absolute;
                top: -6px;
                right: -14px;
                background: #b91c1c;
                color: #fff;
                font-size: 11px;
                padding: 2px 6px;
                border-radius: 10px;
                white-space: nowrap;
                animation: blink 1.2s infinite;
            }

            /* Mobile menu fix */
            @media (max-width: 768px) {
                .popup-blink

            {
                position: static; /* remove absolute */
                display: inline-block;
                margin-left: 0px; /* space after text */
                top:20px;
                font-size: 10px;
                padding: 2px 6px;
                vertical-align: middle;
            }

            #citizenMenu {
                display: inline-flex;
                align-items: center;
            }

            }

            /* Small mobile */
            @media (max-width: 480px) {
                .popup-blink

            {
                font-size: 9px;
                padding: 2px 5px;
            }

            }


            /* Parent should be relative */
            #citizenMenu {
                position: relative;
                display: inline-block;
            }

            /* NEW popup */
            .popup-blink {
                position: absolute;
                top: -6px;
                right: -14px;
                background: #b91c1c;
                color: #fff;
                font-size: 11px;
                padding: 2px 6px;
                border-radius: 10px;
                white-space: nowrap;
                animation: blink 1.2s infinite;
            }

            /* Blink animation — visibility-based to bypass opacity !important lock */
            @keyframes blink {
                0%, 49.99%   { visibility: visible; }
                50%, 99.99%  { visibility: hidden; }
                100%         { visibility: visible; }
            }

            /* Tablet & Mobile */
            @media (max-width: 768px) {
                .popup-blink

            {
                top: 50%;
                right: 8px;
                transform: translateY(-50%);
                font-size: 10px;
                padding: 2px 5px;
            }

            }

            /* Small Mobile */
            @media (max-width: 480px) {
                .popup-blink

            {
                font-size: 9px;
                padding: 2px 4px;
                right: 6px;
            }

            }


            .menu-item {
                display: inline-flex;
                align-items: center;
            }

            /* NEW badge */
            .popup-blink {
                position: absolute;
                top: -6px;
                right: -10px;
                background: #b91c1c;
                color: #fff;
                font-size: 11px;
                padding: 2px 6px;
                border-radius: 10px;
                animation: blink 1.2s infinite;
                white-space: nowrap;

            }

            /* Blink animation — visibility-based to bypass opacity !important lock */
            @keyframes blink {
                0%, 49.99%   { visibility: visible; }
                50%, 99.99%  { visibility: hidden; }
                100%         { visibility: visible; }
            }

            /* Tablet & Mobile */
            @media (max-width: 768px) {
                .menu-item

            {
                width: 100%;
            }

            #citizenMenu {
                display: block;
                text-align: center;
                padding-right: 40px;
                font-size: 14px;
            }

            .popup-blink {
                top: 50%;
                right: 10px;
                transform: translateY(-50%);
                font-size: 10px;
            }

            }

            /* Small Mobile */
            @media (max-width: 480px) {
                #citizenMenu

            {
                font-size: 13px;
                padding: 10px 12px;
            }

            .popup-blink {
                font-size: 9px;
                padding: 2px 5px;
            }

            }

            /* ============================= */
            /* DESKTOP (default behavior) */
            /* ============================= */
            .menu-item {
                position: relative;
                display: inline-block;
            }

            .popup-blink {
                position: absolute;
                top: 9px;
                right: 8px;
                transform: translate(50%, -50%);
            }

            /* ============================= */
            /* MOBILE FIX */
            /* ============================= */
            @media (max-width: 768px) {
                .menu-item {
                    display: flex;
                    align-items: center;
                    gap: 6px;
                    width: 100%;
                }

                    .menu-item .nav-link {
                        padding-right: 0 !important;
                    }

                .popup-blink {
                    position: static; /* remove overlap */
                    transform: none;
                    font-size: 11px;
                    padding: 3px 8px;
                    border-radius: 14px;
                    line-height: 1.2;
                    white-space: nowrap;
                    top: 9px;
                    right: 403px;
                    bottom: 9px;
                }
            }

            /* Mobile default hidden */
            #districtNav .navbar-links, #mainNav .navbar-links {
                display: none;
                flex-direction: column !important;
                width: 100%;
            }

            /* When checkbox checked show menu */
            #nav-toggle-district:checked ~ .navbar-links, #nav-toggle:checked ~ .navbar-links {
                display: flex !important;
                flex-direction: column !important;
            }

            /* Desktop view */
            @media (min-width: 992px) {
                #districtNav .navbar-links, #mainNav .navbar-links {
                    display: flex !important;
                    flex-direction: row !important;
                    width: auto !important;
                }

                #districtNav .navbar-toggler, #mainNav .navbar-toggler {
                    display: none;
                }
            }

            #districtNav .navbar-links, #mainNav .navbar-links {
                gap: 10px;
            }

            #mainNav .navbar-links {
                justify-content: center;
            }

            @media (max-width:991px) {
                #districtNav .navbar-links, #mainNav .navbar-links {
                    display: none;
                    flex-direction: column !important;
                    width: 100%;
                    padding: 10px;
                }

                    #districtNav .navbar-links a, #mainNav .navbar-links a {
                        width: 100%;
                        text-align: left;
                    }

                #nav-toggle-district:checked ~ .navbar-links, #nav-toggle:checked ~ .navbar-links {
                    display: flex !important;
                    /* Cap the open menu to the viewport and let it scroll, so at 200% zoom /
                       short viewports every item stays reachable (Citizen Corner, Employee
                       Login, Contact Us were cut off below the fold with no scroll). */
                    max-height: calc(100vh - 56px);
                    overflow-y: auto;
                    -webkit-overflow-scrolling: touch;
                }
            }

            /* Laptops 992-1399.98px: keep all 11 main-menu items on ONE row, as at 1440px.
               At 1024px they wrapped, leaving "Employee Login" and "Contact Us" on a second
               row. Font size is unchanged (16px); only the horizontal padding/gap between
               items is tightened. nav#mainNav (1,1,1) + !important is needed because the
               links carry Bootstrap's px-2 (!important) and styles.css sets several
               .nav-link paddings. Items keep their 0.5rem vertical padding (tap height).
               The row may still WRAP: if a longer translation does not fit, a second row is
               better than clipping the last item off-screen (unreachable by keyboard).
               Side padding scales with the viewport: 8px at <=1276px, rising to 13.5px at
               1399px, so wider laptops get roomier spacing and narrow ones still fit.
               Screenshot-checked: Marathi is one row from 992px; English (wider labels) is
               one row from ~1150px and wraps to two centred rows below that - at 16px the
               11 English labels alone are too wide for a 992-1100px screen. */
            @media (min-width: 992px) and (max-width: 1399.98px) {
                nav#mainNav .navbar-links,
                nav#districtNav .navbar-links {
                    column-gap: 2px !important;
                }

                    nav#mainNav .navbar-links > a.nav-link,
                    nav#districtNav .navbar-links > a.nav-link {
                        flex: 0 0 auto;
                        width: auto !important;
                        margin-left: 0 !important;
                        margin-right: 0 !important;
                        padding-left: clamp(8px, calc((100vw - 1100px) / 22), 16px) !important;
                        padding-right: clamp(8px, calc((100vw - 1100px) / 22), 16px) !important;
                        white-space: nowrap;
                    }
            }

            /* FINAL contrast lock for popup-blink — must be the last
               popup-blink rule in this file. High-specificity selector
               plus !important defeats the UserWay overlay alpha-fade
               injection that drops contrast to ~3.3:1 over #b91c1c.
               Locked at white on #b91c1c = 6.4:1 (WCAG AA). */
            span.popup-blink[class],
            .popup-blink[class] {
                color: #ffffff !important;
                background: #b91c1c !important;
                background-color: #b91c1c !important;
                opacity: 1 !important;
            }
