/* ============================================
   GERELTJIN LLC - Dropdown Menu Styles
   ============================================ */

/* Dropdown Container */
.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.7em;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 240px !important;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Rotate arrow on hover */
.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu Items */
.dropdown-menu li {
    width: 100% !important;
    border-bottom: none;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.875rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-menu a:hover {
    background: var(--accent-gray);
    color:  #006B5A ;
    padding-left: 2rem;
}

/* Active state for dropdown items */
.dropdown-menu a.active {
    background: #006B5A;
    color: var(--text-light);
}

/* Add subtle animation */
.dropdown-menu li {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}

.dropdown:hover .dropdown-menu li:nth-child(1) { animation-delay: 0.05s; }
.dropdown:hover .dropdown-menu li:nth-child(2) { animation-delay: 0.1s; }
.dropdown:hover .dropdown-menu li:nth-child(3) { animation-delay: 0.15s; }
.dropdown:hover .dropdown-menu li:nth-child(4) { animation-delay: 0.2s; }
.dropdown:hover .dropdown-menu li:nth-child(5) { animation-delay: 0.25s; }
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    /* All mobile dropdown logic is handled in bootstrap-fix.css */
    .dropdown-arrow {
        float: right;
        margin-top: 2px;
    }

    .dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-menu li {
        animation: none !important;
        opacity: 1 !important;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }

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

/* 

.header .dropdown-menu {
    position: absolute !important;
}

.header .dropdown-menu li {
    display: block !important;  
    float: none !important;
    width: 100% !important;
}

.header .dropdown-menu li a {
    display: block !important;
    width: 100% !important;
} */
