/* Overrides to fix conflicts between old CSS and new layout */

/* Ensure new layout containers don't conflict with old styles */
.hero-section,
.search-wrapper,
.services-wrapper,
.partner-slide,
.testimonial,
.founder-note-wrapper,
.help-box,
.footer-wrapper {
    box-sizing: border-box;
}

/* Override old typography that might conflict */
.hero-section h1,
.section-title {
    font-family: "Inter", sans-serif !important;
}

/* Ensure new layout sections don't inherit old margin/padding */
section {
    margin: 0;
}

/* Fix for old CenterContentWrapper conflicts */
.container {
    position: relative;
}

/* Ensure new navigation works properly */
.nav-actions {
    position: relative;
}

/* Fix for old ComboboxMenu styles that might interfere */
.country-dropdown-list {
    z-index: 1000;
}

/* Ensure new button styles override old ones */
.button {
    font-family: "Inter", sans-serif !important;
}

/* Fix for old form styles */
.search-form input,
.search-form select {
    font-family: "Inter", sans-serif !important;
}

/* Ensure swiper containers work properly */
.swiper {
    overflow: visible;
}

.swiper-wrapper {
    display: flex;
}

/* Fix for old image styles */
.service-icon img,
.partner-slide img,
.reference img {
    max-width: 100%;
    height: auto;
}

/* Ensure footer links are styled correctly */
.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Fix for old MW wrapper if it exists */
body > .MW {
    display: none;
}

/* Ensure new header notification doesn't conflict */
.header-notification {
    position: relative;
    z-index: 100;
}

/* Fix for mobile menu */
@media screen and (max-width: 768px) {
    .hamburger-menu {
        display: flex !important;
    }
    
    .nav-actions {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white-color);
        box-shadow: 0 4px 10px 2px rgba(0, 0, 0, 0.06);
        z-index: 1000;
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .nav-actions:not(.open-menu) {
        display: none !important;
    }
    
    .nav-actions.open-menu {
        display: flex !important;
    }
}

@media screen and (min-width: 769px) {
    .hamburger-menu {
        display: none !important;
    }
    
    .nav-actions {
        display: flex !important;
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }
}

/* Ensure old styles don't override new layout */
.hero-section .container,
section .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Fix for old TopBar styles */
#TopBar {
    display: none;
}

.TopNotice {
    display: none;
}

/* Ensure new logo displays correctly */
.logo img {
    height: 100%;
    width: auto;
}



