/* Header Improvements - Better spacing and alignment */

/* Reduce horizontal spacing between menu items for better fit */
.homepage2-body .header-area.homepage2 .header-elements .main-menu ul li {
    margin-right: 6px !important;
    margin-left: 6px !important;
}

/* Slightly smaller font size for menu items to fit better */
.homepage2-body .header-area.homepage2 .header-elements .main-menu ul li a {
    font-size: 14px !important;
    padding: 10px 5px !important;
    white-space: nowrap;
}

/* Better dropdown positioning and width for long text */
.homepage2-body .header-area.homepage2 .header-elements .main-menu ul li ul.dropdown-padding {
    min-width: 250px !important;
    max-width: 350px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) !important;
}

.homepage2-body .header-area.homepage2 .header-elements .main-menu ul li:hover ul.dropdown-padding {
    transform: translateX(-50%) translateY(0) !important;
}

/* Better text wrapping in dropdowns for long menu items */
.homepage2-body .header-area.homepage2 .header-elements .main-menu ul li ul.dropdown-padding li a {
    white-space: normal !important;
    line-height: 1.4 !important;
    padding: 10px 15px !important;
}

/* Adjust container width for better spacing */
.homepage2-body .header-area.homepage2 .container-header {
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Better alignment for header elements */
.homepage2-body .header-area.homepage2 .header-elements {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;
}

/* Optimize logo size */
.homepage2-body .header-area.homepage2 .header-elements .site-logo img {
    max-height: 80px !important;
}

/* Better button area spacing */
.homepage2-body .header-area.homepage2 .header-elements .btn-area {
    gap: 10px !important;
}

/* Language switcher styling */
.homepage2-body .header-area.homepage2 .header-elements .main-menu ul li.lang-switch {
    margin-left: 15px !important;
    padding-left: 15px !important;
    border-left: 1px solid #E7E8E9 !important;
}

/* Responsive font sizing for better fit */
@media (max-width: 1400px) {
    .homepage2-body .header-area.homepage2 .header-elements .main-menu ul li a {
        font-size: 13px !important;
    }
}

@media (max-width: 1200px) {
    .homepage2-body .header-area.homepage2 .header-elements .main-menu ul li a {
        font-size: 12px !important;
        padding: 10px 3px !important;
    }

    .homepage2-body .header-area.homepage2 .header-elements .main-menu ul li {
        margin-right: 4px !important;
        margin-left: 4px !important;
    }
}

/* Better hover effects */
.homepage2-body .header-area.homepage2 .header-elements .main-menu ul li a {
    transition: all 0.3s ease !important;
}

.homepage2-body .header-area.homepage2 .header-elements .main-menu ul li a:hover {
    transform: translateY(-2px);
}

/* Improve dropdown menu appearance */
.homepage2-body .header-area.homepage2 .header-elements .main-menu ul li ul.dropdown-padding {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid #E7E8E9 !important;
}

/* Add subtle animation to dropdown items */
.homepage2-body .header-area.homepage2 .header-elements .main-menu ul li ul.dropdown-padding li a {
    transition: all 0.2s ease !important;
}

.homepage2-body .header-area.homepage2 .header-elements .main-menu ul li ul.dropdown-padding li a:hover {
    padding-left: 20px !important;
    background: #f8f9fa !important;
}

/* Better icon spacing */
.homepage2-body .header-area.homepage2 .header-elements .main-menu ul li a i {
    margin-left: 3px !important;
    font-size: 10px !important;
}

/* Ensure proper vertical alignment */
.homepage2-body .header-area.homepage2 .header-elements .main-menu ul {
    align-items: center !important;
}

/* Fix text overflow */
.homepage2-body .header-area.homepage2 .header-elements .main-menu ul li a {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}