.bsmd-services-grid {
    width: 100%;
}

.bsmd-service-card {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.bsmd-service-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.bsmd-service-content {
    position: relative;
    z-index: 2;
    padding: 1rem;
    width: 65%;
    background: #ffffff7a;
    height: 52%;
    overflow: hidden;
}

.bsmd-service-title {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 800;
    line-height: 1.15;
    color: #252525;
    margin: 0 0 2%;
    height: 50%;
    overflow: hidden;    
}

.bsmd-service-text {
    font-size: 11px;
    color: #333;
    margin: 0;
    height: 50%;
    overflow: hidden;    
}

.bsmd-logo-card {
    background: linear-gradient(180deg, #62d7ea 0%, #ffffff 78%);
    justify-content: center;
    align-items: center;
}

.bsmd-logo-wrap {
    position: relative;
    z-index: 2;
    width: 86%;
    max-width: 420px;
    margin: auto;
}

.bsmd-logo-img {
    display: block;
    width: 100%;
}

.bsmd-card-yellow {
    background: #f4ff1c;
}

.bsmd-card-rose {
    background: #d9b6bc;
}

.bsmd-card-purple {
    background: #d8b2d4;
}

.bsmd-card-blue {
    background: #aeb3d5;
}

.bsmd-card-light {
    background: #f4f4f1;
}

.bsmd-card-white {
    background: #f8f8f8;
}

.bsmd-card-orange {
    background: #f49b2f;
}

.bsmd-card-labs {
    background: #b7edf5;
}

@media (max-width: 991px) {
    .bsmd-service-card {
        min-height: 230px;
    }

    .bsmd-service-content {
        max-width: 65%;
        padding: 24px;
    }
}

@media (max-width: 575px) {
    .bsmd-service-card {
        min-height: 220px;
        border-width: 3px;
    }

    .bsmd-service-content {
        max-width: 72%;
        padding: 22px;
    }

    .bsmd-service-title {
        margin-bottom: 24px;
    }
    .bsmd-service-text {
        display: none;
    }
}

.bsmd-service-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.bsmd-service-card {
    position: relative;
    height: 100%;
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
    will-change: transform;
}

.bsmd-service-card-link:hover, .bsmd-service-card-link:focus {
    text-decoration: none;
}
.bsmd-service-card-link:hover .bsmd-service-card,
.bsmd-service-card-link:focus .bsmd-service-card {
    transform: translateY(-8px) scale(1.035);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    z-index: 3;
    filter: brightness(1.03);
}

.bsmd-service-card-link:focus {
    outline: none;
}

.bsmd-service-card-link:focus .bsmd-service-card {
    outline: 3px solid rgba(36, 179, 75, 0.35);
    outline-offset: 4px;
}