/* Mobile Navigation Base */
.mobile-nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--mbdi-blue);
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
}

/* Mobile Menu Content */
.mobile-nav-content {
    padding: 1rem 1.5rem;
}

/* Mobile Links */
.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Link Styles */
.mobile-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #FFFFFF;
    text-decoration: none;
    padding: 0.875rem 0;
    font-size: 1rem;
}

.mobile-link i {
    width: 24px;
    text-align: center;
}

/* Dropdown Styles */
.mobile-dropdown {
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    margin-left: 12px;
    padding-left: 1rem;
}

.mobile-dropdown-btn {
    display: flex;
    align-items: center;
    width: 100%;
    color: #FFFFFF;
    background: none;
    border: none;
    padding: 0.875rem 0;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
}

.mobile-link-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-link-content i {
    width: 24px;
    text-align: center;
}

.mobile-dropdown-content {
    display: none;
    padding-top: 0.5rem;
}

.mobile-dropdown.active .mobile-dropdown-content {
    display: block;
}

.mobile-dropdown-link {
    display: block;
    color: #FFFFFF;
    text-decoration: none;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    position: relative;
}

.mobile-dropdown-link:before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    width: 0.5rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

/* CTA Button */
.mobile-link.mobile-cta {
    background: #cc0000;
    margin-top: 0.5rem;
    padding: 0.875rem 1rem;
    border-radius: 4px;
    justify-content: center;
}

/* Active States */
.mobile-link.active,
.mobile-dropdown-btn.active {
    color: var(--mbdi-yellow);
}

/* Prevent body scroll when nav is open */
body.mobile-nav-active {
    overflow: hidden;
}

/* Mobile Search Styles */
.mobile-search-toggle {
    display: none; /* Hidden by default */
}

/* Show on mobile */
@media (max-width: 991px) {
    .mobile-search-toggle {
        display: flex;
        position: fixed;
        bottom: 80px;
        right: 20px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: #003DA5; /* MBDI Blue */
        color: #fff;
        border: none;
        font-size: 20px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 61, 165, 0.25);
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .mobile-search-toggle:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 61, 165, 0.3);
        background: #0046BD;
    }

    .mobile-search-toggle:active {
        transform: translateY(0);
    }
}

/* Adjust for smaller screens */
@media (max-width: 767px) {
    .mobile-search-toggle {
        bottom: 70px;
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}

/* Full Screen Search */
.search-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--mbdi-blue);
    z-index: 2000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-bar.show {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20vh;
    opacity: 1;
}

/* Close Button Styles */
.search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: none;
    color: #003DA5; /* MBDI Blue */
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2001;
}

.search-close:hover {
    transform: rotate(90deg);
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-close:active {
    transform: rotate(90deg) scale(0.95);
}

.search-close i {
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search Form */
.search-input-group {
    width: 90%;
    max-width: 600px;
    position: relative;
    margin: 0 auto;
}

.search-input-group input {
    width: 100%;
    height: 56px;
    padding: 0 60px 0 24px;
    border: none;
    border-radius: 28px;
    background: white;
    font-size: 18px;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-input-group input:focus {
    outline: none;
    box-shadow: 0 6px 16px rgba(0, 61, 165, 0.2);
    transform: translateY(-1px);
}

.search-input-group button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 91, 187, 0.9); /* MBDI Blue */
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-input-group button:hover {
    background: #0046BD; /* Slightly lighter blue on hover */
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-bar.show .search-input-group {
    animation: fadeIn 0.4s ease forwards;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .search-bar {
        padding: 16px;
    }
    
    .search-bar.show {
        padding-top: 15vh;
    }
    
    .search-input-group {
        width: 95%;
    }
    
    .search-input-group input {
        font-size: 16px;
        height: 50px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .search-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .search-bar.show {
        padding-top: 12vh;
    }
} 