


:root {
    --primary-blue: #1e73be;
    --secondary-blue: #0056a6;
    --royal-purple: #2c1a75;
    --gradient-start: #2c1a75;
    --gradient-end: #1e73be;
    --dark-grey: #555555;
    --light-bg: #f8f9fa;
    --white: #ffffff;
}
/* ================= TOP BAR ================= */

.top-bar {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar i {
    margin-right: 6px;
}

.top-info,
.top-contact {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Remove Bootstrap Default Dropdown Arrow */
.dropdown-toggle::after {
    display: none !important;
}


/* ================= NAVBAR ================= */

.main-header {
    position: sticky;
    top: 0;
    z-index: 999;
}

.premium-navbar {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.05);
    padding: 16px 0;
    transition: 0.4s ease;
}

/* LOGO */

.logo-img {
    height: 55px;
}

.brand-name {
    font-weight: 600;
    font-size: 18px;
    margin-left: 12px;
    color: var(--royal-purple);
    letter-spacing: 0.5px;
}

/* NAV LINKS */

.nav-link {
    font-weight: 500;
    margin-left: 28px;
    position: relative;
    color: #222 !important;
    transition: 0.3s ease;
    padding: 8px 0;
}

/* Underline animation */

.nav-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -6px;
    left: 0;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transition: 0.4s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

/* Active */

/* ================= ACTIVE NAV LINK ================= */

.nav-link.active-link {
    color: var(--primary-blue) !important;
    font-weight: 600;
    position: relative;
}

/* Gradient underline animation */

.nav-link.active-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

/* Smooth hover effect */

.nav-link:hover {
    color: var(--primary-blue) !important;
}


/* DROPDOWN */

.dropdown-arrow {
    font-size: 13px;
    margin-left: 6px;
    transition: 0.3s;
}

.show > .nav-link .dropdown-arrow {
    transform: rotate(180deg);
}

/* PREMIUM DROPDOWN */

.premium-dropdown {
    border: none;
    border-radius: 14px;
    min-width: 240px;
    padding: 12px 0;
    margin-top: 15px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
    animation: dropdownFade 0.3s ease forwards;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 12px 24px;
    font-weight: 500;
    transition: 0.3s;
}

.dropdown-item:hover {
    background: var(--light-bg);
    color: var(--primary-blue);
    padding-left: 30px;
}

/* MOBILE */

@media (max-width: 991px) {

    .nav-link {
        margin-left: 0;
        padding: 14px 0;
    }

    .premium-dropdown {
        box-shadow: none;
        border-radius: 0;
        margin-top: 0;
    }

    .top-info,
    .top-contact {
        width: 100%;
        justify-content: center;
        text-align: center;
        margin-bottom: 4px;
        font-size: 11px;
    }

    .top-bar .container {
        flex-direction: column;
    }

   
}


/* ================= FIXED HEADER ================= */

#mainHeader {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
}

/* Prevent content jump */
body {
    padding-top: 120px; /* adjust to full header height */
}

/* ================= TOP BAR ================= */

.top-bar {
    background: #2c1a75;
    color: #fff;
    padding: 8px 0px;
    height: 40px;             /* fixed height */
    overflow: hidden;
    transition: height 0.4s ease, opacity 0.4s ease;
    text-align: center;
    align-items: center;
}

/* Hide state */

.top-hide {
    height: 0;
    opacity: 0;
    padding: 0;
}

/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 991px) {

   

    .top-bar {
        font-size: 12px;
        height: 60px; /* more space for wrapped text */
       
    }

  .top-hide {
    height: 0;
    opacity: 0;
    padding: 0;
}


}

/* Custom dropdown icon */

.dropdown-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* Remove default bootstrap caret */
.dropdown-toggle::after {
    display: none !important;
}

/* Custom icon style */
.dropdown-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* Rotate icon when dropdown is open */
.nav-item.dropdown.show .dropdown-icon {
    transform: rotate(180deg);
}


/* Main nav active */
.nav-link.active {
    color: var(--primary-blue) !important;
    font-weight: 600;
}

/* Dropdown item active */
.dropdown-item.active {
    background: var(--primary-blue);
    color: #fff !important;
    border-radius: 6px;
}
