/* ==========================================================
   menu.css - Bootstrap 5 Responsive Navigation
   ========================================================== */

:root {
    /* --theme-color: #c53678; */
    --theme-color: #ff6b00;
    --theme-color2: #6b7280;
    --menu-bg: #f2f2f2;
    --mega-bg: #f2f2f2;
    /* --hover-bg: #c53678; */
    --hover-bg: #ff6b00;
    --hover-color: #fff;
    --text: #222;
    --white: #fff;
    --border-color: #e0e0e0;
    /* Color for item separators */
}

* {
    box-sizing: border-box;
}

/*====================
1. Top Bar (Global/Desktop)
======================*/
.top_bar {
    display: flex;
    align-items: center;
    width: 100%;
    height: 30px;
    padding: 2px 0;
    background: #011e7a !important;
    /* Force top_bar background */
    font-size: 11px;
    position: relative;
    z-index: 2000;
    overflow: visible;
    transition: background-color 0.3s ease-in-out;
}

.top_bar .menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0 40px;
    gap: 10px;
    overflow: visible;
}

.top_bar .menu>li {
    position: relative;
    padding: 3px 8px;
    transition: all .25s ease;
}

.top_bar .menu>li>a {
    display: block;
    color: #fff;
    text-decoration: none;
    transition: all .25s ease;
}

.top_bar .menu>li:hover {
    background: transparent;
    border-radius: 4px;
}

.top_bar .menu>li:hover>a,
.top_bar>.menu>li:hover>a {
    color: var(--theme-color);
}

/* --- Top Bar Dropdown Styling --- */
/* Forcefully overrides Bootstrap's default black/grey dropdown container background */
.top_bar .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 190px;
    background: #011e7a !important;
    /* Strictly forces dark blue */
    border: 0;
    border-radius: 4px;
    padding: 4px 0;
    margin-top: 0;
    z-index: 999999;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

.top_bar .dropdown:hover>.dropdown-menu {
    display: block;
}

.top_bar .dropdown-menu li {
    list-style: none;
    padding: 0 !important;
    margin: 0;
    background: transparent !important;
    /* Prevents Bootstrap list styles from overlapping */
}

.top_bar .dropdown-menu li:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, .20);
}

.top_bar .dropdown-menu li a {
    display: block;
    padding: 5px 15px;
    line-height: 1.3;
    font-size: 11px;
    color: #fff !important;
    text-decoration: none;
    background: transparent !important;
    /* Overrides default black dropdown items */
    transition: all .25s ease;
}

/* Hovering turns background to theme-color and overrides Bootstrap overrides */
.top_bar .dropdown-menu li:hover,
.top_bar .dropdown-menu li a:hover {
    background: var(--theme-color) !important;
    color: #fff !important;
}

/*====================
2. Nav Bar
======================*/
.navbar {
    background: var(--menu-bg) !important;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1030 !important;
    padding: 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 50px;
}

.navbar .nav-item {
    position: relative;
}

.navbar .nav-link {
    color: var(--text);
    font-weight: 600;
    padding: 22px 15px;
    position: relative;
    transition: 0.3s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--theme-color);
}

/* Desktop View Only (992px and above) */
@media (min-width: 992px) {

    /* --- Stylish Centered Thinner Active & Hover Underline Effect --- */
    .navbar .nav-link::after {
        content: "";
        position: absolute;
        bottom: 14px;
        left: 50%;
        width: 30px;
        margin-left: -15px;
        height: 1.5px;
        background-color: var(--theme-color);
        border-radius: 2px;
        transform: scaleX(0);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
    }

    .navbar .nav-link:hover::after,
    .navbar .nav-link.active::after {
        transform: scaleX(1);
    }

    /* --- Compact Dropdown Heights --- */
    .navbar .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: 0.35s;
        border: 0;
        border-top: 4px solid var(--theme-color);
        border-radius: 6px;
        background: var(--mega-bg);
        width: max-content;
        padding: 5px 0;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }

    .navbar .nav-item:hover>.dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-item {
        color: #333;
        padding: 5px 20px;
        font-size: 0.9rem;
        transition: 0.2s;
    }

    .dropdown-item:hover {
        background: var(--hover-bg);
        color: var(--hover-color);
    }

    .navbar .dropdown-menu:not(.row) li:not(:last-child) {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-item.mega-menu {
        position: static;
    }

    /* --- Compact Mega Menu --- */
    .nav-item.mega-menu>.dropdown-menu {
        left: 0;
        right: 0;
        margin: auto;
        width: 100%;
        max-width: 1320px;
        padding: 20px 25px;
        background: var(--mega-bg);
    }

    .nav-item.mega-menu h5 {
        font-size: 0.95rem;
        margin-bottom: 8px;
        padding-bottom: 4px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-item.mega-menu .dropdown-item {
        display: block;
        width: 100%;
        padding: 5px 15px;
    }

    .nav-item.mega-menu .row>div .dropdown-item:not(:last-child) {
        border-bottom: 1px solid var(--border-color);
    }

    /* --- Nested Submenu Position Styling --- */
    .dropdown-submenu {
        position: relative;
    }

    .dropdown-submenu>.dropdown-menu {
        left: 100%;
        top: -5px;
        margin-left: 2px;
        width: max-content;
    }

    .dropdown-submenu .dropdown-item {
        white-space: nowrap;
    }

    .dropdown-submenu:hover>.dropdown-menu {
        opacity: 1;
        visibility: visible;
    }
}

/* Offcanvas Overlay Styles */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 9998;
}

.menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/*====================
3. Mobile View (Below 992px)
======================*/
@media (max-width: 991.98px) {

    /* Hides topbar entirely on mobile view */
    .top_bar {
        display: none !important;
    }

    .desktop-logo-row {
        display: none !important;
    }

    .navbar {
        padding: 10px 15px;
    }

    .navbar-toggler {
        border: 1;
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        left: -320px;
        width: 320px;
        max-width: 90%;
        height: 100vh;
        background: #fff;
        overflow-y: auto;
        padding: 80px 20px 30px;
        transition: left 0.35s;
        display: block !important;
        z-index: 9999;
    }

    .navbar-collapse.show {
        left: 0;
    }

    .navbar-nav {
        width: 100%;
    }

    .nav-item {
        border-bottom: 1px solid #ececec;
    }

    .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0 !important;
    }

    .navbar .nav-link.active {
        border-left: 3px solid var(--theme-color);
        padding-left: 8px !important;
    }

    .dropdown-menu {
        display: none;
        position: static !important;
        float: none !important;
        width: 100%;
        border: 0 !important;
        box-shadow: none !important;
        background: #efefef;
        padding: 0;
        margin: 0;
    }

    .nav-item.dropdown.open>.dropdown-menu,
    .dropdown-submenu.open>.dropdown-menu {
        display: block !important;
    }

    .dropdown-menu li:not(:last-child),
    .nav-item.mega-menu .dropdown-item:not(:last-child) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-item.dropdown.mega-menu .dropdown-menu {
        padding: 12px !important;
    }

    .nav-item.dropdown.mega-menu .row>div {
        margin-bottom: 12px;
    }

    .nav-item.dropdown.mega-menu h5 {
        font-size: 0.9rem;
        margin-bottom: 4px;
        color: var(--theme-color);
    }

    .dropdown-item {
        color: #333;
        padding: 8px 15px;
    }

    .dropdown-item:hover {
        background: var(--hover-bg);
        color: #fff;
    }

    .nav-right {
        display: none !important;
    }
}

/*====================
4. Miscellaneous & Utilities
======================*/
body.overflow-hidden {
    overflow: hidden;
}

/* Applied automatically via JavaScript on window scroll */
.navbar.is-sticky {
    position: fixed !important;
    top: 0px;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header {
    position: relative;
    overflow: visible !important;
}

@media (max-width: 991.98px) {

    /* Completely remove the top bar */
    .top_bar {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
    }

    /* Pull the next section up */
    .header-top {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .main-navigation {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .header {
        margin: 0 !important;
        padding: 0 !important;
    }

}

.marquee-container {
    background: linear-gradient(90deg, #ff6b00, #ff9800);
    color: #fff;
    border-radius: 30px;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 12s linear infinite;
}

.marquee-container:hover .marquee-text {
    animation-play-state: paused;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/*=====================================
  Header Contact
=====================================*/

.header-contact {
    width: 100%;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

/* First Row */

.contact-title {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.contact-title img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.contact-title span {
    font-size: 22px;
    font-weight: 800;
    color: #17479e;
    letter-spacing: .5px;
    white-space: nowrap;
}

/* Phone */

.contact-phone {
    font-size: 14px;
    font-weight: 700;
    color: #17479e;
    white-space: nowrap;
    margin-bottom: 3px;
}

/* Bottom Row */

.contact-extra {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #17479e;
    white-space: nowrap;
}

.contact-extra i {
    color: #18b663;
    margin-right: 3px;
}

.divider {
    color: #999;
}

/* Hover */

.header-contact:hover .contact-title span,
.header-contact:hover .contact-phone {
    color: #c53678;
    transition: .3s;
}

/* Responsive */

@media (max-width:992px) {

    .header-contact {
        text-align: center;
        align-items: center;
    }

    .contact-title {
        justify-content: center;
    }

    .contact-extra {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/*==============================
 Glowing Phone Icon
==============================*/

.phone-glow {

    width: 42px;
    height: 42px;

    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    background: linear-gradient(135deg, #24d46d, #0aa34c);

    box-shadow:
        0 0 5px #24d46d,
        0 0 10px #24d46d,
        0 0 18px rgba(36, 212, 109, .6);

    animation: phoneGlow 2s infinite ease-in-out;

    flex-shrink: 0;
}

.phone-glow i {

    color: #fff;
    font-size: 18px;

    transform-origin: center;

    animation: ring 1.5s infinite;
}

@keyframes phoneGlow {

    0% {
        box-shadow:
            0 0 5px #24d46d,
            0 0 10px #24d46d,
            0 0 18px rgba(36, 212, 109, .6);
    }

    50% {
        box-shadow:
            0 0 12px #24d46d,
            0 0 24px #24d46d,
            0 0 36px rgba(36, 212, 109, .8);
    }

    100% {
        box-shadow:
            0 0 5px #24d46d,
            0 0 10px #24d46d,
            0 0 18px rgba(36, 212, 109, .6);
    }

}

@keyframes ring {

    0%, 100% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(-18deg);
    }

    40% {
        transform: rotate(18deg);
    }

    60% {
        transform: rotate(-12deg);
    }

    80% {
        transform: rotate(12deg);
    }

}

/* Contact Title */

.contact-title {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.contact-title span {
    font-size: 22px;
    font-weight: 800;
    color: #17479e;
    letter-spacing: .5px;
}

.header-side-logo {
    max-width: 250px;
    /* Desktop */
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .header-side-logo {
        max-width: 220px;
        /* Tablet */
    }
}

@media (max-width: 576px) {
    .header-side-logo {
        max-width: 190px;
        /* Mobile */
    }
}

/*  ==========================
        TOP BAR MENU HAMBURGER 
    ========================== */

.mobile-topbar {
    display: none;
}

@media(max-width:991px) {

    .mobile-topbar {

        display: flex;
        justify-content: space-between;
        align-items: center;

        background: #011e7a;
        color: #fff;

        padding: 12px 15px;
    }

    .mobile-title {

        font-size: 18px;
        font-weight: 700;

    }

    .menu-toggle {

        border: none;
        background: none;

        color: #fff;

        font-size: 24px;

        cursor: pointer;

    }

    .mobile-menu {

        position: fixed;

        left: -320px;

        top: 0;

        width: 300px;

        height: 100vh;

        background: #fff;

        overflow-y: auto;

        transition: .35s;

        z-index: 9999;

        box-shadow: 0 0 15px rgba(0, 0, 0, .2);

    }

    .mobile-menu.show {

        left: 0;

    }

    .mobile-header {

        display: flex;

        justify-content: space-between;

        align-items: center;

        background: #011e7a;

        color: #fff;

        padding: 15px;

        font-size: 18px;

        font-weight: 700;

    }

    .close-menu {

        background: none;

        border: none;

        color: #fff;

        font-size: 28px;

    }

    .mobile-menu ul {

        margin: 0;

        padding: 0;

        list-style: none;

    }

    .mobile-menu li {

        border-bottom: 1px solid #eee;

    }

    .mobile-menu li>a {

        display: flex;

        justify-content: space-between;

        align-items: center;

        padding: 14px 18px;

        text-decoration: none;

        color: #333;

        font-weight: 600;

    }

    .mobile-menu li>a:hover {

        background: #ff6b00;

        color: #fff;

    }

    .submenu {

        display: none;

        background: #f8f8f8;

    }

    .submenu li>a {

        padding-left: 35px;

        font-size: 14px;

    }

    .has-submenu.open>.submenu {

        display: block;

    }

    .mobile-overlay {

        position: fixed;

        left: 0;

        top: 0;

        width: 100%;

        height: 100%;

        background: rgba(0, 0, 0, .45);

        display: none;

        z-index: 9998;

    }

    .mobile-overlay.show {

        display: block;

    }

}

/* Desktop */
.mobile-topbar,
.mobile-menu {
    display: none;
}

/* Mobile */
@media (max-width: 991.98px) {

    .top_bar {
        display: none !important;
    }

    .mobile-topbar {
        display: flex !important;
    }

    .mobile-menu {
        display: block;
    }

}

.topbar-toggle {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;
    color: #011e7a;

    border: none;
    border-radius: 10px;

    cursor: pointer;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, .15),
        0 8px 20px rgba(0, 0, 0, .08);

    transition: all .3s ease;
}

.topbar-toggle i {
    font-size: 22px;
    transition: transform .3s ease;
}

.topbar-toggle:hover {
    background: #ff6b00;
    color: #fff;
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(255, 107, 0, .35);
}

.topbar-toggle:active {
    transform: scale(.95);
}

/* ===================================
   Modern Navbar Hamburger
=================================== */

.custom-navbar-toggler {

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #ffffff, #f4f4f4);

    color: #011e7a;

    border: 1px solid rgba(255, 255, 255, .65);

    border-radius: 12px;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, .15);

    transition: all .35s ease;

    padding: 0;

    outline: none;

}

.custom-navbar-toggler i {

    font-size: 22px;

    transition: .35s;

}

/* Hover */

.custom-navbar-toggler:hover {

    background: linear-gradient(135deg, #ff6b00, #ff8c00);

    color: #fff;

    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(255, 107, 0, .35);

}

/* Click */

.custom-navbar-toggler:active {

    transform: scale(.95);

}

/* Remove Bootstrap outline */

.custom-navbar-toggler:focus,
.custom-navbar-toggler:focus-visible {

    box-shadow:
        0 0 0 4px rgba(255, 107, 0, .20);

    outline: none;

}

.custom-navbar-toggler:not(.collapsed) {

    background: linear-gradient(135deg, #ff6b00, #ff8c00);

    color: #fff;

}