/* =========================================================
   CUREWELL HOMEPAGE - POPULAR TESTS
   Separate file so the finalized banner/package CSS stays untouched.
   ========================================================= */

.cw-popular-tests{
    padding:34px 0 28px;
    background:linear-gradient(180deg,#f8fcff 0%,#eef8ff 100%);
    border-top:1px solid #e3eff7;
    border-bottom:1px solid #e1edf6;
}

.cw-popular-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:22px;
    margin-bottom:18px;
}

.cw-popular-kicker{
    display:block;
    margin-bottom:6px;
    color:#1687c7;
    font-size:10px;
    line-height:1;
    font-weight:800;
    letter-spacing:1.25px;
}

.cw-popular-head h2{
    margin:0;
    color:#073c78;
    font-size:30px;
    line-height:1.08;
    font-weight:850;
    letter-spacing:-.5px;
}

.cw-popular-head p{
    margin:7px 0 0;
    color:#59728a;
    font-size:13px;
    line-height:1.45;
}

.cw-popular-all{
    flex:0 0 auto;
    min-height:40px;
    padding:0 15px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    border:1px solid #c6deef;
    border-radius:10px;
    background:#fff;
    color:#0b568f;
    font-size:12px;
    font-weight:800;
    text-decoration:none;
    box-shadow:0 4px 12px rgba(20,77,119,.05);
}

.cw-popular-all:hover{
    background:#edf8ff;
    border-color:#9bc9e6;
}

.cw-popular-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
}

.cw-popular-card{
    position:relative;
    min-width:0;
    min-height:148px;
    padding:14px;
    display:flex;
    flex-direction:column;
    border:1px solid #d5e6f2;
    border-radius:15px;
    background:rgba(255,255,255,.96);
    box-shadow:0 6px 18px rgba(30,82,120,.055);
    overflow:hidden;
    transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}

.cw-popular-card:before{
    content:"";
    position:absolute;
    right:-22px;
    top:-22px;
    width:72px;
    height:72px;
    border-radius:50%;
    background:rgba(46,169,226,.08);
}

.cw-popular-card:hover{
    transform:translateY(-2px);
    border-color:#9ccce7;
    box-shadow:0 9px 22px rgba(30,82,120,.09);
}

.cw-popular-card-top{
    position:relative;
    z-index:1;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
}

.cw-popular-icon{
    width:38px;
    height:38px;
    flex:0 0 38px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:11px;
    background:linear-gradient(145deg,#e9f8ff,#dff2ff);
    color:#087dbc;
    font-size:10px;
    line-height:1;
    font-weight:900;
    letter-spacing:.3px;
}

.cw-popular-price{
    color:#073c78;
    font-size:17px;
    line-height:1;
    font-weight:850;
    white-space:nowrap;
}

.cw-popular-card h3{
    position:relative;
    z-index:1;
    margin:11px 0 4px;
    color:#123f6c;
    font-size:15px;
    line-height:1.25;
    font-weight:800;
}

.cw-popular-note{
    position:relative;
    z-index:1;
    margin:0;
    color:#687f91;
    font-size:10.5px;
    line-height:1.35;
}

.cw-popular-meta{
    position:relative;
    z-index:1;
    margin-top:auto;
    padding-top:10px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    border-top:1px solid #e5eef5;
}

.cw-popular-report{
    color:#39735f;
    font-size:9px;
    line-height:1.15;
    font-weight:750;
}

.cw-popular-view{
    color:#0a6ea9;
    font-size:9.5px;
    line-height:1;
    font-weight:800;
    text-decoration:none;
    white-space:nowrap;
}

.cw-popular-view:hover{text-decoration:underline}

.cw-popular-empty{
    grid-column:1/-1;
    margin:0;
    padding:16px;
    border:1px solid #d6e7f2;
    border-radius:13px;
    background:#fff;
    color:#60788c;
    font-size:12px;
}

@media (max-width:1024px){
    .cw-popular-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:767px){
    .cw-popular-tests{padding:24px 0 22px}
    .cw-popular-head{
        align-items:flex-start;
        margin-bottom:14px;
    }
    .cw-popular-head h2{font-size:23px}
    .cw-popular-head p{font-size:11px;max-width:260px}
    .cw-popular-all{
        min-height:34px;
        padding:0 10px;
        font-size:9.5px;
        border-radius:8px;
    }
    .cw-popular-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
    }
    .cw-popular-card{
        min-height:137px;
        padding:11px;
        border-radius:12px;
    }
    .cw-popular-icon{
        width:32px;
        height:32px;
        flex-basis:32px;
        font-size:8px;
        border-radius:9px;
    }
    .cw-popular-price{font-size:14px}
    .cw-popular-card h3{
        margin-top:9px;
        font-size:12px;
        line-height:1.2;
    }
    .cw-popular-note{
        font-size:8.5px;
        line-height:1.25;
    }
    .cw-popular-meta{padding-top:8px}
    .cw-popular-report{font-size:7.5px}
    .cw-popular-view{font-size:8px}
}

@media (max-width:380px){
    .cw-popular-head{display:block}
    .cw-popular-all{margin-top:10px}
    .cw-popular-grid{grid-template-columns:1fr 1fr}
}
