/* Navigation Styles for EHIST */

/* Top Info Bar */
.top-info-bar {
    background: #f8f9fa;
    padding: 12px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.top-info-bar .container {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.top-info-bar a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.1);
}

.top-info-bar a:hover {
    color: #336233 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(51, 98, 51, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

.top-info-bar i {
    color: #336233 !important;
    font-size: 1.1rem;
    filter: drop-shadow(0 2px 4px rgba(51, 98, 51, 0.2));
}

.top-info-bar a:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 3px 6px rgba(51, 98, 51, 0.3));
}

/* Main Navigation */
.bg-blue {
    background: #004d40 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    padding: 15px 0 !important;
}

.navbar-brand img {
    height: 45px !important;
    width: auto !important;
    transition: transform 0.3s ease !important;
}

.navbar-brand:hover img {
    transform: scale(1.02) !important;
}

/* Navigation Links */
.navbar-nav {
    gap: 10px !important;
}

/* Icon alignment within nav links */
.navbar-nav .nav-link i {
    margin-right: 8px !important;
    font-size: 1rem !important;
    width: 16px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
    padding: 8px 16px !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #fff !important;
    background: rgba(51, 98, 51, 0.1) !important;
}

/* Remove underlines */
.navbar-nav .nav-link::after {
    display: none;
}

/* Dropdown Toggle Styling */
.navbar-nav .dropdown-toggle {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.navbar-nav .dropdown-toggle::after {
    content: '\f107' !important; /* FontAwesome chevron-down */
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    border: none !important;
    font-size: 0.8rem !important;
    margin-left: 0 !important;
    transition: transform 0.3s ease !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

.navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg) !important;
}

.navbar-nav .dropdown-toggle:hover::after {
    color: #336233 !important;
}

/* Add subtle background to dropdown items */
.navbar-nav .dropdown {
    position: relative !important;
}

.navbar-nav .dropdown > .nav-link {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.navbar-nav .dropdown > .nav-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Dropdown Styling */
.dropdown-menu {
    border: none !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    margin-top: 8px !important;
    min-width: 250px !important;
    background: white !important;
}

.dropdown-menu.show {
    display: block !important;
    animation: dropdownFadeIn 0.3s ease !important;
}

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

.dropdown-item {
    padding: 12px 16px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    color: #333 !important;
    display: flex !important;
    align-items: center !important;
    font-weight: 500 !important;
}

.dropdown-item:hover {
    background: #336233 !important;
    color: white !important;
    transform: translateX(8px) !important;
    box-shadow: 0 4px 12px rgba(51, 98, 51, 0.3) !important;
}

.dropdown-item i {
    width: 20px !important;
    text-align: center !important;
    margin-right: 12px !important;
    transition: all 0.3s ease !important;
}

.dropdown-item:hover i {
    transform: scale(1.1) !important;
}

/* Mobile Navigation */
.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler p {
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 6px 0;
    transition: all 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] p:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.navbar-toggler[aria-expanded="true"] p:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] p:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: #004d40 !important;
        padding: 15px !important;
        border-radius: 8px !important;
        margin-top: 10px !important;
    }

    .navbar-nav .nav-link {
        padding: 12px 16px !important;
        justify-content: flex-start !important;
    }

    .navbar-nav .dropdown-toggle {
        justify-content: space-between !important;
    }

    .dropdown-menu {
        background: white !important;
        border: 1px solid #ddd !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
    }

    .dropdown-item {
        color: rgba(255, 255, 255, 0.9);
    }

    .dropdown-item:hover {
        background: rgba(51, 98, 51, 0.1) !important;
        color: white !important;
    }
}

/* Enhanced Dropdown Styles */
.dropdown-header {
    color: #336233 !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    padding: 12px 16px 8px 16px !important;
    margin-bottom: 8px !important;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    border-radius: 6px !important;
    border-left: 3px solid #336233 !important;
}

.dropdown-divider {
    margin: 12px 8px !important;
    border-color: rgba(51, 98, 51, 0.2) !important;
    border-width: 1px !important;
    opacity: 0.6 !important;
}

.dropdown-item i {
    width: 20px !important;
    color: #6c757d !important;
    transition: color 0.3s ease !important;
    margin-right: 8px !important;
}

.dropdown-item:hover i {
    color: #336233 !important;
}

/* Special Apply Now Button */
.nav-item .btn-warning {
    background: #336233 !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(51, 98, 51, 0.3) !important;
}

.nav-item .btn-warning:hover {
    background: #2d5429 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(51, 98, 51, 0.4) !important;
}

/* Badge styling for dropdown indicators */
.nav-link .badge {
    animation: pulse 2s infinite !important;
    margin-left: 4px !important;
    flex-shrink: 0 !important;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Dropdown show/hide animations - removed duplicate */

/* Enhanced mobile styles */
@media (max-width: 991.98px) {
    .nav-item .btn-warning {
        margin-top: 15px !important;
        text-align: center !important;
        width: 100% !important;
    }

    .dropdown-menu {
        min-width: 280px !important;
    }

    .dropdown-header {
        font-size: 0.75rem !important;
    }
}
