﻿
/* --- Toolbar --- */
#accessibility-toolbar {
    position: static;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 4px 0px;
    box-sizing: border-box;
    z-index: 99999;
    transition: transform 0.3s ease-in-out;
    flex-direction: row;
}

#accessibility-toolbar button,
#accessibility-toolbar .skip-link {
    color: white;
    cursor: pointer;
    line-height: 0.8;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 12px;
    font-family: 'Open Sans' sans-serif;
}

.top-nav-outer {
    background-color: #0d50a0;
}

.skip-link {
    width: auto !important;
}

#accessibility-toolbar button:hover,
#accessibility-toolbar button:focus,
#accessibility-toolbar .skip-link:hover,
#accessibility-toolbar .skip-link:focus {
    color: #de7904 !important;
}



/* --- Contrast Toggle --- */
.contrast-toggle {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ffffff;
    background: #fff;
    height: 20px;
    justify-content: space-around;
    align-items: center;
}

    .contrast-toggle input {
        display: none;
    }

    .contrast-toggle label {
        flex: 1;
        text-align: center;
        padding: 4px 6px;
        cursor: pointer;
        color: #000000;
        transition: background 0.3s, color 0.3s;
    }

    .contrast-toggle input:checked + label {
        background-color: #0d50a0;
        color: #ffffff;
    }

    .contrast-toggle label:hover {
        color: #fd7e14 !important;
    }



.top-nav::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #fd7e14, #0d6efd, #fd7e14);
    background-size: 200% 100%;
    animation: moveBorder 2s linear infinite;
}

@keyframes moveBorder {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

/* --- Contrast Modes --- */

.high-contrast img, .high-contrast .service-block .inner-box .image > img, .high-contrast .page-title,
body.high-contrast .tp-bgimg.defaultimg {
    filter: contrast(200%) grayscale(100%) !important;
}

body.high-contrast, body.high-contrast .tparrows:before,
body.high-contrast *:not(.tp-bgimg):not(.rev_slider):not(.rev_slider_wrapper) {
    background: black !important;
    color: yellow !important;
    border-color: yellow !important;
}

.high-contrast .service-block > .inner-box > .image > .overlay-box {
    background-color: transparent !important;
}

.high-contrast .contrast-toggle input:checked + label {
    background-color: yellow !important;
    color: black !important;
}


.greyscale {
    filter: grayscale(100%) !important;
}



.tp-bgimg.defaultimg {
    transition: filter 0.8s ease-in-out;
}

.col button {
    height: 24px;
    width: 25px;
    background-color: transparent !important;
    color: white !important;
    grid-gap: 5px;
    padding: 0;
    margin: 0;
    justify-content: center;
}

button a .skip-link, #screen-reader-toggle {
    width: fit-content !important;
}

#toolbar-toggle {
    position: absolute;
    top: 23px;
    right: 50px;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 100000;
    display: none;
    background-color: transparent;
}


@media (max-width: 767px) {
    #accessibility-toolbar {
        flex-direction: column;
        z-index: 99999;
        background-color: white;
        color: #0d50a0;
        height: 100%;
        justify-content: flex-start;
        position: fixed;
        top: calc(100% - 85%);
        left: 0;
        width: 200px;
        max-width: 90%;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
        overflow: auto;
    }

    .top-nav {
        height: 0px;
    }

    .col button,
    #accessibility-toolbar .skip-link {
        line-height: 1.8;
        color: #0d50a0 !important;
    }

    .contrast-toggle input:checked + label {
        background: #0d50a0;
        color: #ffffff;
    }

    .text-size, .text-spacing, .screen-magnifier, .Translate,
    .screen-reader, .contrast-toggle-outer {
        padding-bottom: 2%;
        border-bottom: 1px solid #0d50a0;
        width: 100%;
    }

    .contrast-toggle {
        overflow: visible;
        padding-bottom: 15%;
        border: none;
    }

    #accessibility-toolbar.open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    #toolbar-toggle {
        display: block;
    }


        /* Toggle button (hamburger image) hidden state */
        #toolbar-toggle.hidden {
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

    /* Close button */
    #toolbar-close {
        position: fixed;
        top: 75px;
        left: 180px;
        background: #0d50a0;
        color: #fff;
        border: none;
        font-size: 1.8rem;
        line-height: 1;
        padding: 6px 10px;
        border-radius: 6px;
        cursor: pointer;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 99999;
    }

        #toolbar-close:hover {
            background: #fd7e14;
        }

    /* Disable body scroll when nav open */
    body[style*="overflow: hidden"] {
        touch-action: none;
    }
}


:focus-visible {
    outline: 3px solid #00aaff !important;
    outline-offset: 3px;
    border-radius: 4px; /* optional for rounded look */
    transition: outline 0.1s ease-in-out;
}

.high-contrast :focus-visible {
    outline: 3px solid yellow !important;
    outline-offset: 3px;
    border-radius: 4px; /* optional for rounded look */
    transition: outline 0.1s ease-in-out;
}


.main-menu .navigation > li.dropdown.open > ul {
    visibility: visible;
    opacity: 1;
    top: 100%;
    -webkit-transform: translateY(0px);
    -ms-transform: translateY(0px);
    transform: translateY(0px);
}
/* Make .open behave like hover */
.dropdown.open > .dropdown-menu {
    display: block;
}

#toolbar-toggle:focus-visible {
    outline: 3px solid #F9A825 !important;
    outline-offset: 3px;
}


/* Toggle button styles */
.toggle-btn {
    background: #0066cc;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-family: Arial sans-serif;
    margin: 5px;
    width: fit-content !important;
}

    .toggle-btn.hindi {
        background: #ff6600;
        color: white;
    }

.screen-reader-highlight:hover {
    outline: 3px solid #FFD54F !important;
    outline-offset: 2px;
    background-color: rgba(255, 213, 79, 0.2);
    transition: background-color 0.3s ease, outline 0.3s ease;
}

.flicker {
    animation: flickerEffect 0.25s linear 3;
}

@keyframes flickerEffect {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

.top-nav-outer,
.top-nav-outer * {
    font-size: 12px !important;
    letter-spacing: initial !important;
    transform: none !important;
    zoom: 1 !important;
}

#languageToggle {
    font-size: 12px !important;
}


/* === Cookie Banner === */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    background: #0d50a0;
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
    display: none;
    opacity: 0;
    z-index: 999999;
    font-family: system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    transition: opacity 0.8s ease-in-out;
    width: 50vw;
    transform: translate(-50%, -0%) !important;
}

    #cookie-banner p {
        margin: 0 0 12px;
        color: white;
    }

    #cookie-banner.show {
        display: block;
        opacity: 1;
    }

    #cookie-banner.hide {
        opacity: 0;
    }

    #cookie-banner button {
        background: #fd7e14;
        border: none;
        color: white;
        font-weight: 600;
        padding: 8px 16px;
        border-radius: 6px;
        cursor: pointer;
        margin-right: 8px;
    }

        #cookie-banner button:hover {
            background: #0d50a0;
        }

    #cookie-banner .decline {
        background: #0d50a0;
        border: 1px solid white;
        color: white;
    }

        #cookie-banner .decline:hover {
            background: #fd7e14;
        }



/*drop css
.dropdown ul li > ul,
.dropdown ul li .dropdown > ul,
.dropdown ul ul {
    left: auto !important;
    right: 100%;
    height: 500px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    overflow: auto;
    scroll-behavior: smooth;
}

    .dropdown ul li > ul,
    .dropdown ul li .dropdown > ul,
    .dropdown ul ul a:hover {
        color: #ef9937 !important;
    }

    .dropdown ul li > ul,
    .dropdown ul li .dropdown > ul,
    .dropdown ul ul a::after {
        border-bottom-color: #ef9937 !important;
    }

*/


