/* Locked site menubar v3 — load LAST on every page.
   Isolates the header from Bootstrap (.navbar, .nav-link, .dropdown-menu,
   .dropdown-item, .container) and from per-page heroes so Home / About /
   CIBIL / Loans / Contact / EMI share one bar. */

:root {
    --nf-nav-h: 68px;
}

@media (max-width: 992px) {
    :root { --nf-nav-h: 60px; }
}

html {
    scroll-padding-top: var(--nf-nav-h);
}

.nf-header-offset {
    display: block !important;
    height: var(--nf-nav-h) !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    pointer-events: none !important;
    background: transparent !important;
}

header.header#header {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    z-index: 11000 !important;
    margin: 0 !important;
    padding: 0.25rem 0 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    box-sizing: border-box !important;
}

header.header#header.scrolled {
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

header.header#header .navbar,
header.header#header .nf-navbar {
    all: unset;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    --bs-navbar-padding-x: 0;
    --bs-navbar-padding-y: 0;
    --bs-navbar-brand-padding-y: 0;
}

header.header#header .navbar > .container,
header.header#header .nf-nav-inner,
header.header#header > .navbar > .container,
header.header#header .nf-navbar > .nf-nav-inner {
    all: unset;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: calc(100% - 2.5rem) !important;
    max-width: 1440px !important;
    height: auto !important;
    min-height: 58px !important;
    margin: 0 auto !important;
    padding: 0.7rem 1.5rem !important;
    background: #ffffff !important;
    border: 1px solid rgba(17, 55, 45, 0.08) !important;
    border-radius: 1.8rem !important;
    box-shadow: 0 16px 40px rgba(14, 38, 33, 0.08) !important;
    backdrop-filter: none !important;
    box-sizing: border-box !important;
}

header.header#header .nav-brand {
    display: flex !important;
    align-items: center !important;
    gap: 1.9rem !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: auto !important;
}

header.header#header .logo {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    text-decoration: none !important;
    line-height: 0 !important;
}

header.header#header .logo-img {
    height: 40px !important;
    width: auto !important;
    max-height: 40px !important;
    display: block !important;
    object-fit: contain !important;
}

header.header#header .nav-menu {
    display: flex !important;
    list-style: none !important;
    gap: 0 !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

header.header#header,
header.header#header .nf-navbar,
header.header#header .nf-nav-inner,
header.header#header .nav-brand,
header.header#header .nav-menu,
header.header#header .nav-dropdown {
    overflow: visible !important;
}

header.header#header .nav-menu > li {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    list-style: none !important;
}

/* Centre the mega panel on the header pill, not on the Loans trigger */
header.header#header .nf-nav-inner {
    position: relative !important;
}
header.header#header .nav-menu > li.nav-dropdown {
    position: static !important;
}

header.header#header .nav-menu > li + li {
    margin-left: 2.05rem !important;
}

/* Sibling links stay above the mega panel so hovering Contact / EMI / CIBIL
   does not count as hovering Loans. */
header.header#header .nav-menu > li:not(.nav-dropdown) {
    z-index: 12060 !important;
}
header.header#header .nav-actions {
    position: relative !important;
    z-index: 12060 !important;
}

header.header#header .nav-link {
    all: unset;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.25rem 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #365448 !important;
    font-family: inherit !important;
    font-size: 0.97rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    --bs-nav-link-padding-x: 0;
    --bs-nav-link-padding-y: 0;
}

header.header#header .nav-link::after {
    content: none !important;
    display: none !important;
}

header.header#header .nav-link:hover,
header.header#header .nav-dropdown:hover > .nav-link,
header.header#header .nav-link.active {
    color: #11372d !important;
    background: transparent !important;
}

header.header#header .dropdown-arrow {
    font-size: 0.75rem !important;
    color: rgba(54, 84, 72, 0.7) !important;
}

header.header#header .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    margin-left: 1.4rem !important;
    flex-shrink: 0 !important;
}

header.header#header .btn-nav {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.65rem 1.15rem !important;
    border-radius: 999px !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

header.header#header .btn-outline-nav {
    background: transparent !important;
    border: 1px solid #d5e0da !important;
    color: #1a241d !important;
}

header.header#header .btn-primary-nav {
    background: #eff7f0 !important;
    border: 1px solid transparent !important;
    color: #1a241d !important;
}

header.header#header .nav-toggle {
    display: none !important;
    background: #ffffff !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

header.header#header .hamburger,
header.header#header .menu-icon {
    display: block !important;
    width: 18px !important;
    height: 2px !important;
    background: #0d3d2a !important;
    border-radius: 2px !important;
    position: relative !important;
}

header.header#header .hamburger::before,
header.header#header .hamburger::after,
header.header#header .menu-icon::before,
header.header#header .menu-icon::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    width: 18px !important;
    height: 2px !important;
    background: #0d3d2a !important;
    border-radius: 2px !important;
}

header.header#header .hamburger::before,
header.header#header .menu-icon::before { top: -6px !important; }

header.header#header .hamburger::after,
header.header#header .menu-icon::after { top: 6px !important; }

/* Bridge only as wide as the Loans trigger — not the full header pill */
header.header#header .nav-dropdown > .nav-link {
    position: relative !important;
    z-index: 12061 !important;
}
header.header#header .nav-dropdown > .nav-link::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    width: auto !important;
    height: 28px !important;
    background: transparent !important;
    pointer-events: auto !important;
}

/* Loans mega menu — own class names so Bootstrap cannot restyle it */
header.header#header .dropdown-menu,
header.header#header .nf-dropdown {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 12050 !important;
    margin: 0 !important;
    padding: 22px !important;
    width: min(1320px, calc(100vw - 48px)) !important;
    min-width: 0 !important;
    max-width: min(1320px, calc(100vw - 48px)) !important;
    background: #111111 !important;
    border-radius: 1.35rem !important;
    border: 1px solid rgba(200, 232, 165, 0.4) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35) !important;
    transform: translateX(-50%) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    max-height: calc(100vh - 96px) !important;
}

header.header#header .nav-dropdown:hover > .dropdown-menu,
header.header#header .nav-dropdown:hover > .nf-dropdown,
header.header#header .nav-dropdown:focus-within > .nf-dropdown,
header.header#header .nav-dropdown.active > .dropdown-menu,
header.header#header .nav-dropdown.active > .nf-dropdown,
header.header#header .dropdown-menu.show,
header.header#header .nf-dropdown.show {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 18px !important;
    align-items: start !important;
}

header.header#header .dropdown-column {
    flex: none !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
}

/* Category labels sit on the dark panel */
header.header#header .nf-dropdown h4,
header.header#header .dropdown-menu h4,
header.header#header .dropdown-column h4 {
    color: #eff7f0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin: 0 0 10px !important;
    padding: 0 2px !important;
}

/* Inner loan lists are light cards — never pale/white type on these */
header.header#header .nf-dropdown .dropdown-column > div:not(.dropdown-footer),
header.header#header .dropdown-menu .dropdown-column > div:not(.dropdown-footer) {
    background-color: var(--bg-color, #ffffff) !important;
    border: 1px solid var(--border-color, #e2e8f0) !important;
    border-radius: 1rem !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 8px 8px 6px !important;
}

header.header#header .dropdown-item,
header.header#header .nf-dropdown-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    column-gap: 10px !important;
    row-gap: 0 !important;
    padding: 8px 10px !important;
    margin: 0 !important;
    color: var(--primary-dark, #1f6844) !important;
    border-radius: 0.95rem !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    background: transparent !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    white-space: normal !important;
    text-wrap: wrap !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: none !important;
}

header.header#header .dropdown-item + .dropdown-item,
header.header#header .nf-dropdown-item + .nf-dropdown-item {
    margin-top: 4px !important;
}

header.header#header .dropdown-item:hover,
header.header#header .nf-dropdown-item:hover,
header.header#header .dropdown-item:focus,
header.header#header .nf-dropdown-item:focus,
header.header#header .dropdown-item:focus-visible,
header.header#header .nf-dropdown-item:focus-visible,
header.header#header .dropdown-item:active,
header.header#header .nf-dropdown-item:active {
    background-color: rgba(45, 138, 90, 0.08) !important;
    color: var(--primary-dark, #1f6844) !important;
    outline: none !important;
}

header.header#header .nf-dropdown-item:focus-visible,
header.header#header .dropdown-item:focus-visible {
    box-shadow: 0 0 0 2px var(--primary-color, #2d8a5a) !important;
}

header.header#header .dropdown-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
    background: rgba(45, 138, 90, 0.12) !important;
    border: 1px solid rgba(45, 138, 90, 0.22) !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    color: var(--primary-dark, #1f6844) !important;
}

header.header#header .dropdown-icon i {
    font-size: 18px !important;
    line-height: 1 !important;
    color: var(--primary-dark, #1f6844) !important;
}

header.header#header .nf-dropdown-item:hover .dropdown-icon,
header.header#header .dropdown-item:hover .dropdown-icon,
header.header#header .nf-dropdown-item:focus .dropdown-icon,
header.header#header .dropdown-item:focus .dropdown-icon {
    background: linear-gradient(135deg, #c8e8a5, #8bd6c4) !important;
    color: #082019 !important;
}

header.header#header .nf-dropdown-item:hover .dropdown-icon i,
header.header#header .dropdown-item:hover .dropdown-icon i,
header.header#header .nf-dropdown-item:focus .dropdown-icon i,
header.header#header .dropdown-item:focus .dropdown-icon i {
    color: #082019 !important;
}

header.header#header .dropdown-content {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--text-color, #1e293b) !important;
}

header.header#header .dropdown-content h5,
header.header#header .dropdown-content p {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-indent: 0 !important;
    max-width: none !important;
    height: auto !important;
    overflow: visible !important;
    filter: none !important;
}

header.header#header .dropdown-content h5 {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: var(--primary-dark, #1f6844) !important;
    margin: 0 0 2px !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

header.header#header .dropdown-content p {
    font-size: 13px !important;
    color: var(--text-color, #1e293b) !important;
    margin: 0 !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

header.header#header .nf-dropdown-item:hover .dropdown-content h5,
header.header#header .dropdown-item:hover .dropdown-content h5,
header.header#header .nf-dropdown-item:focus .dropdown-content h5,
header.header#header .dropdown-item:focus .dropdown-content h5,
header.header#header .nf-dropdown-item:active .dropdown-content h5,
header.header#header .dropdown-item:active .dropdown-content h5 {
    color: var(--primary-dark, #1f6844) !important;
}

header.header#header .nf-dropdown-item:hover .dropdown-content p,
header.header#header .dropdown-item:hover .dropdown-content p,
header.header#header .nf-dropdown-item:focus .dropdown-content p,
header.header#header .dropdown-item:focus .dropdown-content p,
header.header#header .nf-dropdown-item:active .dropdown-content p,
header.header#header .dropdown-item:active .dropdown-content p {
    color: var(--text-color, #1e293b) !important;
}

/* Quick Links sit on the dark panel */
header.header#header .nf-dropdown a.view-all,
header.header#header .dropdown-menu a.view-all {
    color: #c8e8a5 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    margin-top: 0 !important;
    padding: 6px 8px !important;
    border-radius: 0.65rem !important;
    white-space: nowrap !important;
}

header.header#header .nf-dropdown .dropdown-panel-footer,
header.header#header .dropdown-menu .dropdown-panel-footer {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px 20px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 4px 0 !important;
    border-top: 1px solid rgba(200, 232, 165, 0.28) !important;
    background: transparent !important;
    box-shadow: none !important;
}

header.header#header .nf-dropdown .dropdown-panel-footer .dropdown-footer-links {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 16px !important;
}

header.header#header .nf-dropdown a.view-all:hover,
header.header#header .dropdown-menu a.view-all:hover,
header.header#header .nf-dropdown a.view-all:focus,
header.header#header .dropdown-menu a.view-all:focus {
    color: #eff7f0 !important;
    background-color: rgba(200, 232, 165, 0.12) !important;
    outline: none !important;
}

header.header#header .nf-dropdown a.view-all:focus-visible,
header.header#header .dropdown-menu a.view-all:focus-visible {
    box-shadow: 0 0 0 2px #c8e8a5 !important;
}

header.header#header .nf-dropdown .dropdown-footer,
header.header#header .dropdown-menu .dropdown-footer {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

header.header#header .nf-dropdown .dropdown-footer p,
header.header#header .dropdown-menu .dropdown-footer p,
header.header#header .nf-dropdown .dropdown-panel-footer p,
header.header#header .dropdown-menu .dropdown-panel-footer p {
    color: #eff7f0 !important;
    font-size: 14px !important;
    margin: 0 !important;
}

header.header#header .nf-dropdown .dropdown-footer a,
header.header#header .dropdown-menu .dropdown-footer a,
header.header#header .nf-dropdown .dropdown-panel-footer a,
header.header#header .dropdown-menu .dropdown-panel-footer a {
    color: #c8e8a5 !important;
    font-weight: 600 !important;
}

header.header#header .mobile-cta-block {
    display: none !important;
}

@media (max-width: 1199px) {
    header.header#header .nav-dropdown:hover > .dropdown-menu,
    header.header#header .nav-dropdown:hover > .nf-dropdown,
    header.header#header .nav-dropdown:focus-within > .nf-dropdown,
    header.header#header .nav-dropdown.active > .dropdown-menu,
    header.header#header .nav-dropdown.active > .nf-dropdown,
    header.header#header .dropdown-menu.show,
    header.header#header .nf-dropdown.show {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 992px) {
    header.header#header .navbar > .container,
    header.header#header .nf-nav-inner,
    header.header#header .nf-navbar > .nf-nav-inner {
        padding: 0 0.9rem !important;
    }

    header.header#header .logo-img {
        height: 36px !important;
        max-height: 36px !important;
    }

    header.header#header .nav-brand { gap: 0.75rem !important; }
    header.header#header .nav-actions { display: none !important; }
    header.header#header .nav-toggle { display: inline-flex !important; }

    header.header#header .nav-menu {
        position: fixed !important;
        top: var(--nf-nav-h) !important;
        left: 0.65rem !important;
        right: 0.65rem !important;
        width: auto !important;
        max-height: calc(100vh - var(--nf-nav-h) - 1rem) !important;
        overflow: auto !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
        display: none !important;
        background: #ffffff !important;
        padding: 0.75rem 1rem !important;
        border-radius: 1rem !important;
        box-shadow: 0 18px 40px rgba(14, 38, 33, 0.12) !important;
        z-index: 11001 !important;
    }

    header.header#header .nav-menu.active { display: flex !important; }
    header.header#header .nav-menu > li { width: 100% !important; }

    header.header#header .nav-link {
        width: 100% !important;
        justify-content: space-between !important;
        padding: 0.8rem 0.15rem !important;
        white-space: normal !important;
        font-size: 1rem !important;
    }

    header.header#header .dropdown-menu,
    header.header#header .nf-dropdown {
        position: static !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: none !important;
        margin-top: 0 !important;
        left: auto !important;
        transform: none !important;
        max-height: none !important;
        overflow: visible !important;
        display: none !important;
    }

    header.header#header .nav-dropdown.active > .dropdown-menu,
    header.header#header .nav-dropdown.active > .nf-dropdown,
    header.header#header .nav-dropdown.open > .dropdown-menu,
    header.header#header .nav-dropdown.open > .nf-dropdown {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 1rem !important;
    }

    header.header#header .nf-dropdown,
    header.header#header .dropdown-menu {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        min-width: 0 !important;
        padding: 0.35rem 0 !important;
    }

    header.header#header .nf-dropdown .dropdown-panel-footer,
    header.header#header .dropdown-menu .dropdown-panel-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        border-top: 1px solid var(--border-color, #e2e8f0) !important;
    }

    header.header#header .nf-dropdown h4,
    header.header#header .dropdown-column h4 {
        color: var(--primary-dark, #1f6844) !important;
    }

    header.header#header .nf-dropdown a.view-all,
    header.header#header .dropdown-menu a.view-all {
        color: var(--primary-color, #2d8a5a) !important;
    }

    header.header#header .mobile-cta-block {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        width: 100% !important;
        padding: 0.75rem 0 !important;
    }
}

/* Inner titles use the same light band as Home — not a second black header. */
.about-hero-section,
.emi-hero,
.cibil-hero,
.blog-hero,
.page-header {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0.7rem 0 0.65rem !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    background: linear-gradient(135deg, #eef9f0 0%, #f0faf4 40%, #e8f5ec 100%) !important;
    color: #11372d !important;
}

.about-hero-section:after,
.emi-hero:after,
.cibil-hero:after,
.blog-hero:after,
.page-header:after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
}

.about-hero-section .container,
.emi-hero .container,
.cibil-hero .container,
.blog-hero .container,
.page-header .container {
    width: 100% !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.about-breadcrumb {
    margin-bottom: 0.5rem !important;
}

.about-breadcrumb a,
.about-breadcrumb span,
.about-breadcrumb i {
    color: #365448 !important;
}

.about-hero-title,
.emi-hero h1,
.cibil-hero h1,
.blog-hero h1,
.page-header h1 {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem) !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    font-weight: 700 !important;
    color: #11372d !important;
}

.about-hero-section > .container > p,
.emi-hero > .container > p,
.cibil-hero > .container > p,
.cibil-hero .hero-badges {
    display: none !important;
}

.hero-modern,
.hero-modern.hero-atmospheric {
    padding-top: 0.15rem !important;
}
