/* NDX Treatments — Modern Healthcare Card & Search Design */
.ndxhp-treatments-section{
    width:100%;
    box-sizing:border-box;
    font-family:inherit;
    color:#031d40;
}
.ndxhp-treatment-grid{
    width:100%;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:20px;
    align-items:stretch;
    box-sizing:border-box;
}
.ndxhp-treatment-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ndxhp-treatment-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ndxhp-treatment-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}

.ndxhp-treatment-card{
    min-width:0;
    min-height:0;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    background:#ffffff;
    border:1px solid #e0ebf6;
    border-radius:20px;
    box-shadow:0 2px 8px -2px rgba(3,29,64,.05),0 8px 22px -4px rgba(3,29,64,.06);
    transition:transform .28s cubic-bezier(.16,1,.3,1),box-shadow .28s cubic-bezier(.16,1,.3,1),border-color .25s ease;
    box-sizing:border-box;
}
.ndxhp-treatment-card:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 42px -10px rgba(3,29,64,.15),0 8px 18px -6px rgba(3,29,64,.08);
    border-color:#9ec2e6;
}

.ndxhp-treatment-visual{
    position:relative;
    flex:0 0 160px;
    width:100%;
    height:160px;
    margin:0;
    display:block;
    overflow:hidden;
    background:linear-gradient(135deg,#eaf5ff,#dceeff);
}
.ndxhp-treatment-visual:before,
.ndxhp-treatment-visual:after{
    content:"";
    position:absolute;
    display:block;
    border-radius:50%;
    background:rgba(255,255,255,.45);
    pointer-events:none;
}
.ndxhp-treatment-visual:before{
    width:160px;height:160px;
    right:-45px;top:-65px;
}
.ndxhp-treatment-visual:after{
    width:130px;height:130px;
    left:-50px;bottom:-65px;
}
.ndxhp-treatment-oncology{background:linear-gradient(135deg,#e8f1ff,#cfe2ff)}
.ndxhp-treatment-cardiology{background:linear-gradient(135deg,#fff0f1,#ffdce0)}
.ndxhp-treatment-neurology{background:linear-gradient(135deg,#f0edff,#ded7ff)}
.ndxhp-treatment-orthopedics{background:linear-gradient(135deg,#eaf8ff,#d4edff)}
.ndxhp-treatment-digestive-care{background:linear-gradient(135deg,#eefaf7,#d4f3e9)}
.ndxhp-treatment-kidney-urology{background:linear-gradient(135deg,#eef5ff,#d5e6ff)}
.ndxhp-treatment-women-s-health{background:linear-gradient(135deg,#fff0f8,#ffdaec)}
.ndxhp-treatment-eye-care{background:linear-gradient(135deg,#e8fbfa,#d0f6f0)}
.ndxhp-treatment-respiratory{background:linear-gradient(135deg,#eef7ff,#d7ebff)}
.ndxhp-treatment-dermatology{background:linear-gradient(135deg,#fff7ea,#ffe8c0)}
.ndxhp-treatment-general-medicine{background:linear-gradient(135deg,#eff7ff,#dbebf9)}

.ndxhp-treatment-visual.has-image{
    background-size:cover;
    background-position:center;
}
.ndxhp-treatment-image{
    position:absolute;
    inset:0;
    z-index:0;
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    transition:transform .45s cubic-bezier(.16,1,.3,1),filter .45s ease;
}
.ndxhp-treatment-card:hover .ndxhp-treatment-image{
    transform:scale(1.06);
    filter:brightness(1.02);
}
.ndxhp-treatment-image-overlay{
    position:absolute;
    inset:0;
    z-index:1;
    background:linear-gradient(180deg,rgba(3,29,64,.02) 20%,rgba(3,29,64,.24) 100%);
    pointer-events:none;
}

/* Body padding applied to every card */
.ndxhp-treatment-body{
    min-width:0;
    flex:1 1 auto;
    display:flex;
    flex-direction:column;
    padding:20px 18px 18px;
    box-sizing:border-box;
    background:#ffffff;
}
.ndxhp-treatment-body h3{
    margin:0 0 8px;
    padding:0;
    color:#071f3d;
    font-family:inherit;
    font-size:18px;
    line-height:1.35;
    font-weight:800;
    letter-spacing:-.015em;
}
.ndxhp-treatment-body p{
    margin:0;
    padding:0;
    color:#64748b;
    font-family:inherit;
    font-size:13.5px;
    line-height:1.6;
    font-weight:400;
}
.ndxhp-treatment-meta{
    display:flex;
    align-items:center;
    gap:7px;
    margin-top:12px;
    padding:0;
    color:#475569;
    font-family:inherit;
    font-size:13px;
    line-height:1.4;
    font-weight:600;
}
.ndxhp-treatment-link{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:auto;
    padding:14px 0 0;
    border-top:1px solid #eef3f8;
    color:#1963c4;
    font-family:inherit;
    font-size:13.5px;
    line-height:1.3;
    font-weight:800;
    text-decoration:none;
    transition:color .18s ease;
}
.ndxhp-treatment-link:hover{color:#071f3d}
.ndxhp-treatment-link span{
    font-size:20px;
    line-height:1;
    font-weight:400;
    transition:transform .2s ease;
}
.ndxhp-treatment-link:hover span{transform:translateX(4px)}

.ndxhp-treatment-search-form{
    display:grid;
    grid-template-columns:minmax(260px,2.2fr) repeat(3,minmax(150px,1fr)) minmax(160px,1fr);
    gap:10px;
    padding:10px;
    background:#ffffff;
    border:1px solid #e0eaf3;
    border-radius:16px;
    box-shadow:0 4px 18px rgba(3,29,64,.06);
    align-items:stretch;
    box-sizing:border-box;
}
.ndxhp-treatment-search-keyword,
.ndxhp-treatment-filter{
    min-width:0;
    height:58px;
    border:1px solid #d6e2ee;
    border-radius:11px;
    background:#ffffff;
    display:flex;
    align-items:center;
    gap:10px;
    padding:7px 12px;
    box-sizing:border-box;
    transition:border-color .18s ease,box-shadow .18s ease;
}
.ndxhp-treatment-search-keyword:focus-within,
.ndxhp-treatment-filter:focus-within{
    border-color:#207ce6;
    box-shadow:0 0 0 3px rgba(32,124,230,.14);
}
.ndxhp-treatment-search-icon{color:#0284c7;font-size:20px;line-height:1}
.ndxhp-treatment-search-keyword input{
    width:100%;height:40px;border:0!important;outline:0!important;
    box-shadow:none!important;background:transparent!important;
    color:#0f2747!important;font-family:inherit;font-size:13.5px;
}
.ndxhp-treatment-search-keyword input::placeholder{color:#94a3b8}
.ndxhp-treatment-filter span{flex:0 0 auto;color:#0284c7;font-size:16px}
.ndxhp-treatment-filter select{
    width:100%;height:40px;min-width:0;border:0!important;outline:0!important;
    box-shadow:none!important;background:transparent!important;color:#475569!important;
    font-family:inherit;font-size:12.5px;appearance:none;-webkit-appearance:none;
    padding-right:24px;cursor:pointer;
}
.ndxhp-treatment-filter{position:relative}
.ndxhp-treatment-filter:after{
    content:"";position:absolute;right:14px;top:50%;width:7px;height:7px;
    border-right:1.5px solid #64748b;border-bottom:1.5px solid #64748b;
    transform:translateY(-65%) rotate(45deg);pointer-events:none;
}
.ndxhp-treatment-search-submit{
    height:58px!important;min-height:58px!important;margin:0!important;
    border:0!important;border-radius:11px!important;
    background:linear-gradient(135deg,#1d72dd 0%,#1255af 100%)!important;
    color:#ffffff!important;font-family:inherit;
    font-size:13.5px;font-weight:800;display:flex!important;align-items:center;
    justify-content:center;gap:8px;cursor:pointer;
    box-shadow:0 4px 14px -3px rgba(18,85,175,.45),inset 0 1px 0 rgba(255,255,255,.22)!important;
    transition:all .2s ease;
}
.ndxhp-treatment-search-submit:hover,
.ndxhp-treatment-search-submit:focus{
    background:linear-gradient(135deg,#1665cb 0%,#0b4594 100%)!important;
    box-shadow:0 8px 20px -4px rgba(18,85,175,.55),inset 0 1px 0 rgba(255,255,255,.28)!important;
    color:#ffffff!important;
    transform:translateY(-1px);
}
.ndxhp-treatment-search-results{margin-top:24px}
.ndxhp-treatment-results-head{
    display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px
}
.ndxhp-treatment-results-head h3{margin:0;font-size:22px;color:#071f3d;font-weight:800}
.ndxhp-treatment-results-head a{color:#1963c4;text-decoration:none;font-size:13.5px;font-weight:800}
.ndxhp-treatment-empty{
    padding:36px;border:1px dashed #cbdced;border-radius:18px;
    background:#f8fbff;color:#64748b;text-align:center;
}

/* Modal */
.ndxhp-treatment-modal{
    position:fixed;inset:0;z-index:999999;display:none;padding:24px;box-sizing:border-box
}
.ndxhp-treatment-modal.is-open{display:flex;align-items:center;justify-content:center}
.ndxhp-treatment-modal-backdrop{
    position:absolute;inset:0;background:rgba(3,29,64,.65);
    backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);cursor:pointer
}
.ndxhp-treatment-modal-dialog{
    position:relative;z-index:2;width:min(1180px,100%);
    max-height:min(88vh,900px);background:#ffffff;border:1px solid rgba(255,255,255,.85);
    border-radius:22px;box-shadow:0 28px 80px rgba(3,29,64,.3);
    overflow:hidden;display:flex;flex-direction:column
}
.ndxhp-treatment-modal-header{
    display:flex;align-items:center;justify-content:space-between;gap:18px;
    padding:22px 26px;border-bottom:1px solid #e8f0f7;background:#ffffff
}
.ndxhp-treatment-modal-eyebrow{
    display:block;margin-bottom:4px;color:#207ce6;font-size:11px;
    font-weight:800;letter-spacing:.08em;text-transform:uppercase
}
.ndxhp-treatment-modal-header h3{
    margin:0;color:#071f3d;font-size:24px;line-height:1.25;font-weight:800
}
.ndxhp-treatment-modal-close{
    width:38px;height:38px;flex:0 0 38px;border:1px solid #d7e5f1!important;
    border-radius:50%!important;background:#ffffff!important;color:#031d40!important;
    font-size:24px!important;line-height:1!important;padding:0!important;
    display:flex!important;align-items:center;justify-content:center;cursor:pointer;
    box-shadow:none!important;transition:all .18s ease;
}
.ndxhp-treatment-modal-close:hover,.ndxhp-treatment-modal-close:focus{
    background:#f1f7fc!important;border-color:#9ec2e6!important;color:#031d40!important;outline:none!important;
    transform:rotate(90deg);
}
.ndxhp-treatment-modal-body{overflow:auto;padding:24px 26px 28px;background:#f8fbfe}
.ndxhp-treatment-modal-body .ndxhp-treatment-grid{margin:0}
html.ndxhp-treatment-modal-open,html.ndxhp-treatment-modal-open body{overflow:hidden!important}

@media (max-width:1100px){
    .ndxhp-treatment-cols-4{grid-template-columns:repeat(3,minmax(0,1fr))}
    .ndxhp-treatment-search-form{grid-template-columns:repeat(2,minmax(0,1fr))}
    .ndxhp-treatment-search-keyword{grid-column:span 2}
    .ndxhp-treatment-search-submit{grid-column:span 2}
}
@media (max-width:760px){
    .ndxhp-treatment-grid,
    .ndxhp-treatment-cols-3,
    .ndxhp-treatment-cols-4{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
    .ndxhp-treatment-card{min-height:0}
    .ndxhp-treatment-visual{flex-basis:145px;height:145px;width:100%}
    .ndxhp-treatment-body{padding:18px 16px 16px}
    .ndxhp-treatment-body h3{font-size:17px}
    .ndxhp-treatment-body p{font-size:13px}
    .ndxhp-treatment-search-form{grid-template-columns:1fr;padding:8px;gap:8px;border-radius:14px}
    .ndxhp-treatment-search-keyword,
    .ndxhp-treatment-search-submit{grid-column:auto}
    .ndxhp-treatment-modal{padding:14px}
    .ndxhp-treatment-modal-dialog{max-height:94vh;border-radius:18px}
    .ndxhp-treatment-modal-header{padding:18px}
    .ndxhp-treatment-modal-header h3{font-size:20px}
    .ndxhp-treatment-modal-body{padding:18px}
    .ndxhp-treatment-modal-body .ndxhp-treatment-cols-4,
    .ndxhp-treatment-modal-body .ndxhp-treatment-cols-3{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:520px){
    .ndxhp-treatment-grid,
    .ndxhp-treatment-cols-2,
    .ndxhp-treatment-cols-3,
    .ndxhp-treatment-cols-4{grid-template-columns:1fr}
    .ndxhp-treatment-card{min-height:0}
    .ndxhp-treatment-visual{flex-basis:155px;height:155px}
    .ndxhp-treatment-body{padding:19px 16px 16px}
    .ndxhp-treatment-body h3{font-size:18px}
    .ndxhp-treatment-body p{font-size:13px}
    .ndxhp-treatment-search-keyword,
    .ndxhp-treatment-filter{height:56px}
    .ndxhp-treatment-search-submit{height:56px!important;min-height:56px!important}
    .ndxhp-treatment-results-head{align-items:flex-start;flex-direction:column}
    .ndxhp-treatment-modal{padding:8px}
    .ndxhp-treatment-modal-dialog{max-height:96vh}
    .ndxhp-treatment-modal-body .ndxhp-treatment-cols-2,
    .ndxhp-treatment-modal-body .ndxhp-treatment-cols-3,
    .ndxhp-treatment-modal-body .ndxhp-treatment-cols-4{grid-template-columns:1fr}
    .ndxhp-treatment-modal-close{width:36px;height:36px;flex-basis:36px;font-size:22px!important}
}
