.slb-popular-tests-grid{
    display:grid;
    gap:20px;
}

/* Desktop */
.slb-columns-4{
    grid-template-columns:repeat(4,minmax(0,1fr));
}

.slb-columns-3{
    grid-template-columns:repeat(3,minmax(0,1fr));
}

.slb-columns-2{
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.slb-popular-test-item{
    background:#ffffff;
    border:1px solid #e8edf3;
    border-radius:12px;
    padding:18px;
    min-height:280px;
    justify-content:space-between;
    box-sizing:border-box;

    display:flex;
    flex-direction:column;
    gap:12px;

    transition:.25s ease;
}
.slb-popular-test-item:hover{
    border-color:#0d6efd;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transform:translateY(-3px);
}

/* Tablet */
@media (max-width:1024px){

    .slb-columns-4{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

    .slb-columns-3{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

    .slb-columns-2{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

}

/* Mobile */
@media (max-width:767px){

    .slb-columns-4,
    .slb-columns-3,
    .slb-columns-2{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

}
.slb-test-name{
    margin:0;
    font-size:18px;
    font-weight:600;
    line-height:1.4;
    color:#1f2937;
    min-height:50px;
}
.slb-test-category{
    display:inline-block;
    background:#eef6ff;
    color:#0d6efd;
    font-size:12px;
    font-weight:600;
    padding:5px 10px;
    border-radius:30px;
    margin-bottom:12px;
}
.slb-test-price{
    display:flex;
    align-items:center;
    gap:10px;
}

.slb-price-current{
    font-size:22px;
    font-weight:700;
    color:#0d6efd;
}

.slb-price-old{
    color:#888;
    text-decoration:line-through;
    font-size:15px;
}
.slb-test-footer{
    margin-top:auto;
    padding-top:15px;
    border-top:1px solid #eef2f7;
}
.slb-home-collection{
    display:inline-flex;
    align-items:center;
    gap:6px;

    background:#ecfdf3;
    color:#0f8a4b;

    font-size:13px;
    font-weight:600;

    padding:8px 12px;
    border-radius:30px;
}
.slb-card-actions{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:16px;
    gap:10px;
}

.slb-btn-outline{
    display:inline-block;
    padding:10px 16px;
    border:1px solid #0d6efd;
    border-radius:8px;
    text-decoration:none;
    color:#0d6efd;
    font-size:14px;
    font-weight:600;
    transition:.25s;
}

.slb-btn-outline:hover{
    background:#0d6efd;
    color:#fff;
}

.slb-btn-primary{
    border:none;
    background:#0d6efd;
    color:#fff;
    padding:10px 18px;
    border-radius:8px;
    cursor:pointer;
    font-size:14px;
    font-weight:600;
    transition:.25s;
}

.slb-btn-primary:hover{
    background:#0b5ed7;
}
/* Popular Tests Header */
.slb-popular-tests-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:30px;
    margin-bottom:35px;
    width:100%;
}

.slb-popular-heading{
    flex:1;
    max-width:700px;
}

.slb-popular-title{
    margin:0;
    font-size:36px;
    font-weight:700;
    color:#130474;
}

.slb-popular-subtitle{
    margin:10px 0 0;
    font-size:19px;
    color:#F10F0F;
}

.slb-view-all{
    white-space:nowrap;
    color:#0d6efd;
    text-decoration:none;
    font-weight:400;
    font-size:16px;
    align-self:center;
}

.slb-view-all:hover{
    text-decoration:underline;
}
@media (max-width:767px){
    .slb-popular-tests-header .slb-view-all{
    display:none;
}
    
    .slb-popular-tests-header{
    flex-direction:column;
    align-items:flex-start;
}

.slb-view-all{
    align-self:flex-end;
}

    .slb-card-actions{
        flex-direction:column;
    }

    .slb-btn-outline,
    .slb-btn-primary{
        width:100%;
        text-align:center;
    }

}
/* Mobile View All */
.slb-view-all-mobile{
    display:none;
}

@media (max-width:767px){
    .slb-popular-title{
    font-size:25px;
    line-height:1.3;
}

.slb-popular-subtitle{
    font-size:15px;
    line-height:1.5;
    margin-top:8px;
}

    .slb-popular-tests-header .slb-view-all{
        display:none;
    }

    .slb-view-all-mobile{
        display:flex;
        justify-content:flex-end;
        margin-top:20px;
    }

    .slb-view-all-mobile .slb-btn-outline{
        width:auto;
        padding:10px 20px;
    }

}