.mi-partners-wrapper *,
.mi-partners-wrapper *::before,
.mi-partners-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.mi-partners-wrapper {
    position: relative;
    width: 100%;
    isolation: isolate;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    padding: 10px 0;
}

.mi-partners-wrapper a {
    text-decoration: none;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

.mi-partners-wrapper a:hover,
.mi-partners-wrapper a:focus,
.mi-partners-wrapper a:active {
    text-decoration: none;
    color: inherit;
    background: none;
}

.mi-partners-wrapper img {
    border: none;
    outline: none;
    vertical-align: middle;
}

.mi-partners-wrapper button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    text-transform: none;
    letter-spacing: normal;
    text-align: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.mi-partners-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.mi-partners-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    width: 80%;
    margin: 0 auto;
}

.mi-partners-track {
    display: flex;
    transition: transform 0.5s ease;
}

.mi-partners-page {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    gap: 20px;
    padding: 25px 30px;
    box-sizing: border-box;
}

.mi-partner-card {
    flex: 1 1 0%;
    min-width: 0;
    max-width: calc(25% - 15px);
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 350 / 190;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(37, 121, 180, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.mi-partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(37, 121, 180, 0.35);
    border-color: #2579b4;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f8 100%);
}

.mi-partner-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 15px;
    box-sizing: border-box;
}

.mi-partner-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
    display: block;
}

.mi-partner-card:hover img {
    filter: grayscale(0%);
}

.mi-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 2px;
    padding: 2px 0;
}

.mi-carousel-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #2579b4;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #2579b4;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(37, 121, 180, 0.2);
    padding: 0;
    margin: 0;
    line-height: 1;
}

.mi-carousel-btn:hover {
    background: #2579b4;
    color: #ffffff;
    box-shadow: 0 6px 25px rgba(37, 121, 180, 0.5);
    transform: scale(1.1);
}

.mi-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.mi-carousel-btn:disabled:hover {
    background: #ffffff;
    color: #2579b4;
    box-shadow: 0 2px 10px rgba(37, 121, 180, 0.2);
}

.mi-carousel-counter {
    font-size: 16px;
    color: #2579b4;
    font-weight: 400;
    min-width: 60px;
    text-align: center;
}

@media (max-width: 992px) {
    .mi-partners-page {
        gap: 15px;
        padding: 20px 25px;
    }
    .mi-partner-card a {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .mi-partners-page {
        gap: 10px;
        padding: 15px 20px;
    }
    .mi-partner-card {
        max-width: calc(50% - 5px);
        border-radius: 12px;
    }
    .mi-partner-card a {
        padding: 8px;
    }
    .mi-carousel-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .mi-partners-page {
        padding: 12px 15px;
    }
    .mi-partner-card a {
        padding: 6px;
    }
}