/* Custom Dropdown Styles */

/* General Styling */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 15px !important;
    /* Force space from navbar */
    overflow: visible;
    /* Changed from hidden to prevent truncation */
}

.dropdown-item {
    padding: 12px 25px;
    color: #555;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.dropdown-item i {
    margin-right: 12px;
    /* Space between icon and text */
    font-size: 1.1em;
    color: #007bff;
    /* Primary color for icons */
    transition: color 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f0f7ff;
    /* Lighter primary background */
    color: #007bff;
    padding-left: 30px;
    /* Slight shift effect */
}

.dropdown-item:hover i {
    color: #0056b3;
    /* Darker blue on hover */
}

/* Desktop Animation & Hover Behavior */
@media (min-width: 992px) {
    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

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

/* Mobile Responsiveness Improvements */
@media (max-width: 991px) {
    .header-action {
        margin-left: auto;
        margin-right: 15px;
    }

    .navbar-collapse {
        background: #fff;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 15px;
    }

    .dropdown-menu {
        border: 1px solid #eee;
        box-shadow: none;
        margin-top: 5px !important;
    }
}

/* Small Device Adjustments */
@media (max-width: 575px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Fixed Footer Styles */
body {
    padding-bottom: 80px;
    /* Adjust according to footer height */
}

/* Ensure parent containers don't clip the dropdown */
.header,
.navbar-area,
.navbar {
    overflow: visible !important;
}

/* Fix z-index to stay above sections */
.header,
.hero-section-wrapper-5 .header.sticky {
    z-index: 1050 !important;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 999;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

@media (max-width: 991px) {
    body {
        padding-bottom: 120px;
        /* More space for mobile if text wraps */
    }
}