.primarymenu #nav .dropdown-menu > li {
    border-bottom: 1px solid #eef1f4;
}



body {
    color: #000;
    font-family: 'sans-serif';
    font-weight: 400;
    margin: 0;
    overflow-x: hidden;
    font-size: 18px;
}

img {
    display: center;
}


/******************************
    IMPORTANT LINKS STRIP FIXED
******************************/
.imp-links-strip {
    width: 100%;
    background: #fff;
    padding: 10px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.imp-links-strip ul {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    width: 100%;
    max-width: 1100px;
}

.imp-links-strip li {
    display: inline-block;
}

.implink img {
    width: 130px;
    height: 60px;
    object-fit: contain;
}

/******************************
      SOCIAL ICONS CENTER FIX
******************************/
.social-media-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin: 0;
}

.social-media-icons a {
    font-size: 30px;
    color: #fff;
    text-decoration: none;
}

/******************************
      FOOTER FIX
******************************/
.site-footer {
    background: #f15810;
    color: white;
    padding-top: 0;
}

.footer-main {
    text-align: center;
    padding-bottom: 0;
}

.bottom-bar  {
    background: #ffffff;
    border-top: 3px solid #ff9933;
    border-bottom: 2px solid #138808;
    color: #222222;
    text-align: center;
    color: #000530;
}


a:hover {
    text-shadow: 0px 0px 10px rgb(0, 38, 255);
}

/* ---------- Grid & Card ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    max-width: 603px;
    box-shadow: 0 4px 15px rgba(42,42,43,0.965);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-align: center;
}

.card:hover {
    transform: scale(1.20);
    box-shadow: 0 8px 25px rgb(38,22,255);
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #0d0364;
}

.card-text {
    font-size: 14px;
    color: #030a49;
    line-height: 1.5;
}

/* ---------- Main Content Container ---------- */
.content-wrapper {
    width: 95%;
    margin: 0 auto;
    padding: 1px 4px;
    background: #f6f6f6;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    line-height: 1.85;
    font-size: 20px;
    text-align: center;
}

/* ---------- Headings ---------- */
.content-wrapper h2 {
    font-size: 32px;
    font-weight: 500;    
    margin-bottom: 20px;
}

.content-wrapper h3 {
    font-size: 26px;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* ---------- Paragraphs ---------- */

/* ---------- Images ---------- */
.scheme-img,
.content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 15px 0;
}



/* ---------- Links ---------- */
.content-wrapper a {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
}



/* Header reserved space */
.top-nav {
    min-height: 30px;
    display: flex;
    align-items: center;
}

.logo-section {
    min-height: 90px;
    display: flex;
    align-items: center;
}

.primarymenu {
    min-height: 50px;
}

/* Small utility fixes to avoid hover-induced shifts */
.navbar-nav>li>a {
    padding: 10px 14px;
    transition: transform .18s ease, color .18s ease;
    display: inline-block;
}

.navbar-nav>li>a:hover {
    transform: translateX(4px);
}

/* Make marquee area not influence layout height (keeps header stable) */
.marquee-wrap {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.marquee-inner {
    display: block;
    white-space: nowrap;
}

/* Logo area layout */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.logo img {
    display: block;
    height: auto;
}

/* Keep nav always visible but stable */

#nav {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}



/* Dropdown on hover (no reflow) */
.navbar-nav>li.dropdown:hover>.dropdown-menu {
    display: block;
    margin-top: 0;
}

.navbar-nav>li.dropdown>.dropdown-menu {
    display: none;
    transition: opacity .2s ease;
    opacity: 0;
}

.navbar-nav>li.dropdown:hover>.dropdown-menu {
    display: block;
    opacity: 1;
}

/* =========================================================
   BHARAT UPDATES - MOBILE NAVIGATION
   REPLACE OLD MOBILE NAV CSS WITH THIS
   ========================================================= */

@media (max-width: 768px) {

    /* =========================
       NAVBAR
       ========================= */

    .primarymenu .navbar {
        min-height: 50px;
        background: var(--bu-navy-dark) !important;
        border: 0 !important;
    }


    /* =========================
       HAMBURGER TOGGLE BUTTON
       ========================= */

    .primarymenu .navbar-toggle {
        display: block;

        float: right;

        margin-top: 8px;
        margin-right: 10px;
        margin-bottom: 8px;

        padding: 9px 10px;

        background: transparent !important;

        border: 1px solid rgba(255,255,255,0.35) !important;
        border-radius: 4px;
    }

    .primarymenu .navbar-toggle:hover,
    .primarymenu .navbar-toggle:focus,
    .primarymenu .navbar-toggle:active {
        background: rgba(255,255,255,0.08) !important;
        outline: none !important;
    }

    .primarymenu .navbar-toggle .icon-bar {
        display: block;

        width: 22px;
        height: 2px;

        margin: 4px 0;

        background: #ffffff !important;
    }


    /* =========================
       MOBILE COLLAPSE
       ========================= */

    .primarymenu #mainNavigation.collapse {
        display: none !important;

        height: 0 !important;
        overflow: hidden !important;
    }

    .primarymenu #mainNavigation.collapse.in {
        display: block !important;

        height: auto !important;
        overflow: visible !important;
    }


    /* =========================
       MENU LIST
       ========================= */

    .primarymenu #nav {
        display: block !important;

        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        list-style: none !important;
    }


    .primarymenu #nav > li {
        display: block !important;

        width: 100% !important;

        float: none !important;

        position: relative;
    }


    /* =========================
       MAIN MENU LINKS
       ========================= */

    .primarymenu #nav > li > a {
        display: block !important;

        width: 100% !important;

        min-height: 48px !important;

        padding: 14px 15px !important;

        box-sizing: border-box;

        color: #ffffff !important;

        background: var(--bu-navy-dark) !important;

        font-size: 14px !important;
        font-weight: 700 !important;

        text-decoration: none !important;

        border: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;

        outline: none !important;

        box-shadow: none !important;
    }


    /* =========================
       REMOVE MOBILE HOVER ISSUE
       ========================= */

    .primarymenu #nav > li > a:hover,
    .primarymenu #nav > li > a:focus,
    .primarymenu #nav > li > a:active {
        color: #ffffff !important;

        background: var(--bu-navy-dark) !important;

        outline: none !important;

        box-shadow: none !important;
    }


    /* =========================
       OPEN DROPDOWN PARENT
       ========================= */

    .primarymenu #nav > li.open > a,
    .primarymenu #nav > li.open > a:hover,
    .primarymenu #nav > li.open > a:focus,
    .primarymenu #nav > li.open > a:active {

        color: #ffffff !important;

        background: var(--bu-saffron) !important;
    }


    /* =========================
       DROPDOWN CLOSED
       ========================= */

    .primarymenu #nav > li.dropdown > .dropdown-menu {
        display: none !important;

        position: static !important;

        float: none !important;

        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        background: #ffffff !important;

        border: 0 !important;

        box-shadow: none !important;
    }


    /* =========================
       DROPDOWN OPEN
       ========================= */

    .primarymenu #nav > li.dropdown.open > .dropdown-menu {
        display: block !important;
    }


    /* =========================
       DROPDOWN LINKS
       ========================= */

    .primarymenu #nav .dropdown-menu > li {
        display: block !important;

        width: 100% !important;
    }


    .primarymenu #nav .dropdown-menu > li > a {

        display: block !important;

        width: 100% !important;

        padding: 12px 25px !important;

        box-sizing: border-box;

        color: #222222 !important;

        background: #ffffff !important;

        font-size: 14px !important;
        font-weight: 600 !important;

        border-bottom: 1px solid #eeeeee !important;

        text-decoration: none !important;
    }


    /* Dropdown hover only */
    .primarymenu #nav .dropdown-menu > li > a:hover,
    .primarymenu #nav .dropdown-menu > li > a:focus,
    .primarymenu #nav .dropdown-menu > li > a:active {

        color: #ffffff !important;

        background: var(--bu-green) !important;
    }


    /* =========================
       FREE TOOLS
       ========================= */

    .primarymenu #nav > li > .free-tools-link {

        display: flex !important;

        align-items: center;
        justify-content: center;

        width: calc(100% - 20px) !important;

        min-height: 40px !important;

        margin: 5px 10px !important;

        padding: 0 16px !important;

        color: #ffffff !important;

        background: linear-gradient(
            90deg,
            #f15810,
            #1206ee,
            #7c3aed,
            #06b6d4,
            #10b981,
            #f15810
        ) !important;

        background-size: 500% 100% !important;

        border-radius: 6px !important;

        border: 1px solid rgba(255,255,255,0.25) !important;

        animation: freeToolsGradient 5s linear infinite;
    }


    .primarymenu #nav > li > .free-tools-link:hover,
    .primarymenu #nav > li > .free-tools-link:focus,
    .primarymenu #nav > li > .free-tools-link:active {

        color: #ffffff !important;

        background-position: 100% 50% !important;
    }

}


/* =========================================================
   FREE TOOLS ANIMATION
   ========================================================= */

@keyframes freeToolsGradient {

    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }

}
