﻿@media (min-width: 992px) {
    .nav-item.dropdown .dropdown-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        transform: translateY(10px);
        padding: 0;
    }

    .nav-item.dropdown:hover .dropdown-menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-item a, .nav-link {
    color: #262626;
    font-size: 16px;
    font-weight: 500;
}
.nav-item, .nav-link {
    padding : 0px 9px !important;
    font-weight: 500;
}
    .nav-item a:hover {
        /*background: #EEEBFF;*/
        color: #7763E5;
    }

    .nav-item.dropdown .dropdown-menu a {
        border-bottom: 1px solid #0000004f;
        padding: 7px 31px;
    }
.dropdown .dropdown-menu a {
    font-size: 12px !important;
}

@media (max-width: 991px) {

    .offcanvas {
        width: 300px;
        background: #fff;
    }

    /* Header */
    .offcanvas-header {
        background: var(--dark-brown);
        color: #fff;
        padding: 16px;
    }

    .btn-close {
        filter: invert(1);
    }

    /* Menu Layout */
    .mobile-menu {
        padding: 10px 0;
    }

    .menu-item {
        border-bottom: 1px solid #eee;
    }

    .menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
    }

    .menu-title {
        font-size: 18px;
        color: #222;
        text-decoration: none;
        font-weight: 500;
    }

    /* Toggle Button (purple square like your design) */
    .menu-toggle {
        width: 38px;
        height: 38px;
        background: #7763E5;
        color: #fff;
        border: none;
        border-radius: 4px;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Submenu */
    .submenu {
        padding-left: 20px;
        background: #f9f9ff;
    }

    .submenu-item {
        display: block;
        padding: 10px 0;
        font-size: 15px;
        color: #555;
        text-decoration: none;
    }

        .submenu-item:hover {
            color: #7763E5;
        }

    /* Optional Button at Bottom */
    .menu-footer-btn {
        margin: 20px;
        padding: 12px;
        text-align: center;
        background: #7763E5;
        color: #fff;
        border-radius: 8px;
        font-weight: 600;
    }
}
@media (max-width: 991px) {

    .submenu {
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        padding-left: 20px;
        background: #f9f9ff;
    }

        .submenu.open {
            max-height: 500px; /* enough to show items */
            padding-top: 5px;
        }

    /* Arrow animation */
    .menu-toggle {
        width: 38px;
        height: 38px;
        background: #7763E5;
        color: #fff;
        border: none;
        border-radius: 4px;
        font-size: 18px;
        transition: transform 0.3s ease;
    }

        .menu-toggle.active {
            transform: rotate(180deg);
        }
}






.menuactive {
    background: var(--saffron);
    color:white !important;
}



.desktop-link {
    color: #e8d0b0;
    font-weight: 500;
    font-size: 14px;
    padding: 14px 16px;
    letter-spacing: 0.4px;
    transition: background 0.2s, color 0.2s;
    position: relative;
}

/* ================= THEME ================= */
.custom-navbar {
    background: var(--dark-brown);
    padding: 0;
}

/* ================= DESKTOP ================= */
@media (min-width: 992px) {

    .desktop-menu {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .desktop-item {
        position: relative;
    }
        .desktop-item:hover {
            background: var(--saffron);
            color: white;
        }

    .desktop-link {
        text-decoration: none;
        font-weight: 500;
        display: block;
        padding: 14px 8px;
    }

        .desktop-link:hover {
            color:white ;
            /*padding: 0;*/
        }

     /* dropdown */
    .desktop-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--dark-brown);
        min-width: 180px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        border-radius: 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: 0.3s;
        z-index: 1000;
        border-radius:0px;
    }

    .desktop-item:hover .desktop-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-item {
        display: block;
        padding: 10px 15px;
        color: #e8d0b0;
        text-decoration: none;
    }

        .dropdown-item:hover {
            background: var(--saffron);
            color: white;
        }
}

/* ================= MOBILE ================= */
@media (max-width: 991px) {

    .offcanvas {
        width: 300px;
    }
    .desktop-link {
        padding: 14px 1px !important;
    }
    .menu-item {
        border-bottom: 1px solid #eee;
    }

    .menu-header {
        display: flex;
        justify-content: space-between;
        padding: 14px 18px;
        align-items: center;
    }

    .menu-title {
        text-decoration: none;
        color: #222;
        font-weight: 500;
    }

    .menu-toggle {
        width: 36px;
        height: 36px;
        background: var(--dark-brown);
        border: none;
        color: #fff;
        border-radius: 4px;
        transition: 0.3s;
    }

        .menu-toggle.active {
            transform: rotate(180deg);
        }

    /* submenu */
    .submenu {
        max-height: 0;
        overflow: hidden;
        background: #f9f9ff;
        padding-left: 15px;
        transition: 0.3s ease;
    }

        .submenu.open {
            max-height: 500px;
            padding-top: 5px;
            padding-bottom: 10px;
        }

    .submenu-item {
        display: block;
        padding: 10px 0;
        text-decoration: none;
        color: #555;
    }

        .submenu-item:hover {
            color: #7763E5;
        }
}