/* Dropdown Navigation Styles */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    display: none;
    z-index: 1001;
    border: 1px solid #e5e7eb;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-column h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-blue);
}

.dropdown-column ul {
    list-style: none;
}

.dropdown-column ul li {
    margin-bottom: 0.5rem;
}

.dropdown-column ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    border-left: 3px solid transparent;
}

.dropdown-column ul li a:hover {
    color: var(--primary-blue);
    background: var(--light-blue);
    border-left-color: var(--secondary-blue);
    padding-left: 1rem;
}

/* Mobile Dropdown Styles */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        width: 100%;
        display: none;
        padding: 1rem;
        box-shadow: none;
        border: none;
        background: var(--light-blue);
        margin-top: 0;
        opacity: 1;
        transform: none;
        border-radius: 0 0 8px 8px;
        margin-top: -5px;
    }

    .nav-item.dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-toggle {
        justify-content: space-between;
        width: 100%;
        padding: 0.8rem 0;
    }

    .dropdown-arrow {
        transition: transform 0.3s ease;
    }

    .nav-item.dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-column ul li a {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
        border-left: 4px solid transparent;
    }

    .dropdown-column ul li a:hover {
        padding-left: 1.2rem;
        border-left-color: var(--secondary-blue);
    }
}

/* Desktop hover effects */
@media (min-width: 769px) {
    .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 20px;
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid var(--white);
    }

    .nav-item.dropdown:hover .nav-link {
        color: var(--primary-blue);
    }

    .nav-item.dropdown:hover .nav-link::after {
        width: 100%;
    }
}

/* Animation for dropdown */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -10px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.dropdown-menu {
    animation: fadeInDown 0.3s ease-out;
}

/* Mobile menu specific styles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: left;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 1rem 0;
        height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #f1f1f1;
    }

    .nav-link {
        display: block;
        padding: 1rem 1.5rem;
        width: 100%;
        text-align: left;
    }

    .nav-item.dropdown {
        border-bottom: none;
    }

    .dropdown-toggle {
        padding: 1rem 1.5rem;
    }

    .dropdown-column h4 {
        padding-left: 1rem;
        margin-bottom: 0.8rem;
    }
}