/* Sreemadam Premium Navigation Bar Styles */

.top-bar {
    background-color: var(--lite-sandel);
    color: var(--top-bar-text);
    padding: .5rem 1rem;
    font-size: .85rem;
    border-bottom: 1px solid var(--gray-color);
    font-family: 'Merriweather', serif;
    position: relative;
    z-index: 1600;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.top-bar-left,
.top-bar-right,
.top-bar-center {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: .3rem;
    color: var(--top-bar-text);
    transition: color .2s;
    text-decoration: none !important;
}

.top-bar-item:hover {
    color: var(--primary-color);
}

.top-bar-item svg {
    font-size: 1.1em;
}

.inner-engineering-link {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none !important;
}

.top-lang-selector {
    display: flex;
    align-items: center;
    gap: .3rem;
}

.top-lang-selector .lang-icon {
    font-size: 1.2em;
    color: var(--top-bar-text);
}

.top-lang-selector select {
    background-color: transparent;
    border: none;
    padding: .2rem;
    font-size: .85rem;
    color: var(--top-bar-text);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.top-auth a,
.top-auth span {
    color: var(--top-bar-text);
    margin: 0 .1rem;
    font-size: .85rem;
}

.top-auth a:hover {
    text-decoration: none !important;
    color: var(--primary-color);
}

/* User Profile Dropdown in Top Bar */
.top-user-menu .dropdown-toggle {
    color: var(--top-bar-text);
    text-decoration: none !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-user-menu .dropdown-toggle::after {
    vertical-align: middle;
}

.top-user-menu .dropdown-menu {
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 12px 0;
    margin-top: 12px !important;
    min-width: 200px;
    animation: dropdownFadeIn 0.3s ease;
    z-index: 2000;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-user-menu .dropdown-item {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    padding: 10px 20px;
    color: var(--black-color);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.top-user-menu .dropdown-item i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.top-user-menu .dropdown-item:hover {
    background-color: var(--lite-sandel);
    color: var(--primary-color);
}

.top-user-menu .dropdown-item.text-danger:hover {
    background-color: #fff5f5;
    color: #dc3545;
}

.top-user-menu .dropdown-divider {
    margin: 8px 0;
    border-color: #f1f1f1;
}

.main-nav-bar {
    background-color: #fffdf8;
    /* Light background as requested */
    color: var(--black-color);
    position: sticky;
    top: 0;
    z-index: 1500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-nav-content {
    display: flex;
    min-height: 100px;
    margin: 0 auto;
    gap: 1.5rem;
    max-width: 1200px;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 60px;
    width: auto;
    margin-right: 10px;
    transition: transform .3s ease;
}

.nav-logo:hover img {
    transform: scale(1.02);
}

.main-menu-links {
    display: flex;
    gap: 1.2rem;
    flex-grow: 1;
    justify-content: flex-start;
}

.nav-items {
    position: relative;
    display: flex;
    align-items: center;
    gap: .3rem;
}

.nav-link-item {
    color: var(--black-color);
    padding: .6rem .1rem;
    transition: color .2s;
    font-weight: 500;
    font-size: 15px;
    line-height: 30px;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
}

.nav-link-item:hover {
    color: var(--black-color);
}

.menu-arrow-icon {
    color: var(--black-color);
    font-size: 16px;
    opacity: .7;
}

.nav-items:hover .menu-arrow-icon {
    color: var(--sandel-color);
    opacity: 1;
}

.navdropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    color: var(--black-color);
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
    min-width: 250px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-items:hover .navdropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navdropdown-link {
    display: block;
    padding: 12px 20px;
    color: var(--black-color);
    text-decoration: none;
    transition: background-color .2s;
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: .02em;
}

.navdropdown-link:hover {
    background-color: var(--lite-sandel);
    color: var(--primary-color);
}

.main-nav-right {
    display: flex;
    align-items: center;
    padding-right: 10px;
    gap: 2.5rem;
    color: var(--main-nav-text);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 7px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: .3s;
}

@media (max-width: 991px) {

    .main-menu-links,
    .top-bar {
        display: none;
    }

    .hamburger {
        display: flex !important;
        height: 24px;
        width: 30px;
        justify-content: center;
        align-items: center;
        margin: 0 !important;
    }

    .main-nav-bar {
        height: 80px !important;
    }

    .main-nav-content {
        height: 80px !important;
        min-height: 80px !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 20px !important;
    }

    .nav-logo {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .nav-logo a {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .nav-logo img {
        height: 50px;
        width: auto !important;
        margin: 0 !important;
    }

    .branding-text {
        height: auto ;
        max-height: 40px;
        width: auto !important;
    }
}

/* Perfect Mobile Drawer Styles */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100%;
    background: #ffffff;
    /* White clean background */
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transition: right .4s cubic-bezier(.4, 0, .2, 1);
    z-index: 2100;
    display: flex;
    flex-direction: column;
    color: #333;
    overflow: hidden;
}

.mobile-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: #ffffff;
    /* Change to match main header for consistency */
    height: 80px;
    border-bottom: 1px solid #f1f1f1;
}

.drawer-logo {
    display: flex;
    align-items: center;
}

.drawer-logo .brand-text {
    font-family: 'Crimson Pro', serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.drawer-close-btn {
    background: transparent;
    border: none;
    color: #333;
    /* Darker to match white background */
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    padding-right: 10px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 34px;
}

/* User Section */
.drawer-user-section {
    padding: 25px 20px;
    background-color: #fbf9f5;
    border-bottom: 1px solid #f1f1f1;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.welcome-text {
    font-size: 0.8rem;
    color: #777;
    font-family: 'Merriweather', serif;
}

.user-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
    font-family: 'Outfit', sans-serif;
}

.user-actions {
    display: flex;
    gap: 15px;
}

.user-action-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.drawer-auth-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-drawer-auth {
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-drawer-auth.login {
    background: var(--lite-sandel);
    color: var(--primary-color);
}

.btn-drawer-auth.register {
    background: var(--primary-color);
    color: #fff;
}

/* Drawer Menu */
.drawer-menu {
    flex-grow: 1;
    text-transform: uppercase;
    overflow-y: auto;
    padding: 10px 0;
}

.drawer-link {
    display: block;
    padding: 15px 20px;
    color: #444;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}


.drawer-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    cursor: pointer;
}

.drawer-accordion-header .header-text {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
    text-transform: uppercase;
    color: #444;
}

.accordion-icon {
    font-size: 0.8rem !important;
    color: #999 !important;
    transition: transform 0.3s;
}

.drawer-accordion.active .accordion-icon {
    transform: rotate(180deg);
}

.drawer-accordion-content {
    background-color: #fafafa;
    display: none;
    text-transform: uppercase;
    padding-bottom: 10px;
}

.drawer-accordion-content a {
    display: block;
    padding: 12px 20px 12px 30px;
    color: #666;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
}

.drawer-accordion-content a:hover {
    color: var(--primary-color);
}

/* Nested Accordion */
.drawer-nested-header {
    padding: 12px 20px 12px 30px;
    color: #666;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-nested-header:hover {
    color: var(--primary-color);
}

.drawer-nested-content {
    display: none;
    background-color: #f5f5f5;
}

.drawer-nested-content a {
    padding-left: 45px !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
}

.nested-icon {
    font-size: 0.7rem;
    color: #ccc;
    transition: transform 0.3s;
}

.drawer-nested-accordion.active .nested-icon {
    transform: rotate(180deg);
}

/* Footer */
.drawer-footer {
    padding: 20px;
    background: #fbf9f5;
    border-top: 1px solid #f1f1f1;
}

.drawer-contact-info {
    margin-bottom: 15px;
}

.contact-item {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.contact-item i {
    color: var(--primary-color);
}

.drawer-socials {
    display: flex;
    gap: 20px;
}

.drawer-socials a {
    color: #999;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.drawer-socials a:hover {
    color: var(--primary-color);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2050;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}

.drawer-overlay.active {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 991px) {

    .main-menu-links,
    .top-bar {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .main-nav-content {
        min-height: 80px;
    }
}

/* Nested Submenu support */
.navdropdown-item-with-submenu {
    position: relative;
}

.navdropdown-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 250px;
    background: #ffffff;
    color: var(--black-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 4px 4px 0;
    display: none;
    z-index: 1000;
}

.navdropdown-item-with-submenu:hover .navdropdown-submenu {
    display: block;
}

.navdropdown-submenu-link {
    display: block;
    padding: 12px 20px;
    background: #ffffff;
    color: var(--black-color);
    transition: background-color .2s;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    letter-spacing: .02em;
    font-weight: 500;
    font-size: 15px;
}

.navdropdown-submenu-link:hover {
    background-color: var(--lite-sandel);
    color: var(--primary-color);
}