*{
    box-sizing:border-box;
    margin:0;
    padding:0;
    font-family:Arial, sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#f4f9ff;
    color:#0f172a;
}

.page-shell{
    width:95%;
    margin:0 auto;
    padding:50px 0 72px;
}

.services-page-title{
    position:relative;
    width:min(640px, 100%);
    margin:0 auto 34px;
    padding:8px 18px 22px;
    text-align:center;
}

.services-page-title::before,
.services-page-title::after{
    content:"";
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    border-radius:999px;
}

.services-page-title::before{
    bottom:0;
    width:min(320px, 78%);
    height:3px;
    background:linear-gradient(90deg, transparent, #00aeef, #10b981, #123d7a, transparent);
    box-shadow:0 0 20px rgba(0, 174, 239, 0.28);
}

.services-page-title::after{
    bottom:-5px;
    width:64px;
    height:10px;
    background:linear-gradient(90deg, #00aeef, #123d7a);
    box-shadow:0 8px 18px rgba(0, 119, 168, 0.24);
}

.services-page-title span{
    display:block;
    margin-bottom:6px;
    color:#0077b6;
    font-size:16px;
    font-weight:900;
    line-height:1.2;
}

.services-page-title h1{
    margin:0;
    color:#001b44;
    font-size:clamp(42px, 5vw, 68px);
    font-weight:900;
    line-height:0.95;
    letter-spacing:0;
    text-shadow:0 12px 26px rgba(0, 119, 168, 0.18);
}

.service-grid{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0, 1fr);
    gap:22px;
    width:100%;
    margin:0 auto;
}

.service-grid::before{
    content:"";
    position:absolute;
    left:36px;
    top:36px;
    bottom:36px;
    width:4px;
    border-radius:999px;
    background:linear-gradient(180deg, #00aeef, #10b981, #123d7a);
    box-shadow:0 0 28px rgba(0, 174, 239, 0.22);
}

.service-card{
    position:relative;
    isolation:isolate;
    min-height:118px;
    width:100%;
    display:grid;
    grid-template-columns:72px minmax(0, 1fr);
    align-items:center;
    gap:22px;
    padding:24px 34px 24px 0;
    border:1px solid rgba(0, 119, 168, 0.15);
    border-radius:8px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(235,249,255,0.9)),
        linear-gradient(135deg, rgba(0,174,239,0.12), rgba(16,185,129,0.08));
    box-shadow:0 18px 46px rgba(15, 23, 42, 0.09);
    overflow:hidden;
    animation:stepRise 0.55s ease both;
    animation-delay:calc(var(--step-index, 0) * 90ms);
    transition:transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.service-card::before{
    content:"";
    position:absolute;
    inset:0;
    width:34%;
    background:linear-gradient(110deg, rgba(0,174,239,0.16), rgba(16,185,129,0.06), transparent);
    z-index:-1;
}

.service-card::after{
    content:"";
    position:absolute;
    inset:auto 0 0;
    height:4px;
    background:linear-gradient(90deg, #001b44, #00aeef, #10b981);
    transform:scaleX(0);
    transform-origin:left;
    transition:transform 0.28s ease;
}

.service-card:hover{
    transform:translateY(-4px);
    border-color:rgba(0, 174, 239, 0.42);
    box-shadow:0 26px 62px rgba(0, 119, 168, 0.15);
}

.service-card:hover::after{
    transform:scaleX(1);
}

.service-step-marker{
    position:relative;
    z-index:1;
    display:grid;
    place-items:center;
    width:72px;
    height:100%;
}

.service-step-marker span{
    display:grid;
    place-items:center;
    width:50px;
    height:50px;
    border-radius:50%;
    border:4px solid #f4f9ff;
    background:linear-gradient(135deg, #001b44, #00aeef);
    color:#ffffff;
    font-size:15px;
    font-weight:900;
    box-shadow:0 14px 30px rgba(0, 27, 68, 0.22);
}

.service-step-copy{
    min-width:0;
}

.service-step-copy h2{
    margin:0;
    color:#001b44;
    font-size:clamp(24px, 2.6vw, 36px);
    font-weight:900;
    line-height:1.15;
    letter-spacing:0;
}

@keyframes stepRise{
    from{
        opacity:0;
        transform:translateY(16px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

@media(max-width:980px){
    .page-shell{
        width:95%;
        padding:42px 0 60px;
    }

    .services-page-title{
        margin-bottom:30px;
    }

    .service-card{
        grid-template-columns:62px minmax(0, 1fr);
        gap:18px;
        padding:22px 24px 22px 0;
    }

    .service-grid::before{
        left:31px;
    }

    .service-step-marker{
        width:62px;
    }

}

@media(max-width:760px){
    .page-shell{
        width:95%;
        padding:30px 0 50px;
    }

    .services-page-title{
        width:100%;
        margin-bottom:24px;
        padding:6px 12px 18px;
    }

    .services-page-title span{
        font-size:13px;
    }

    .services-page-title h1{
        font-size:38px;
    }

    .service-grid{
        gap:18px;
    }

    .service-grid::before{
        left:24px;
        top:24px;
        bottom:24px;
        width:3px;
    }

    .service-card{
        min-height:auto;
        grid-template-columns:48px minmax(0, 1fr);
        gap:14px;
        padding:22px 18px 22px 0;
    }

    .service-card:hover{
        transform:none;
    }

    .service-step-marker{
        width:48px;
        align-self:stretch;
    }

    .service-step-marker span{
        width:38px;
        height:38px;
        border-width:3px;
        font-size:12px;
    }

    .service-step-copy{
        grid-column:2;
    }

    .service-step-copy h2{
        font-size:23px;
    }

}

@media(prefers-reduced-motion:reduce){
    *,
    *::before,
    *::after{
        animation-duration:0.01ms !important;
        animation-iteration-count:1 !important;
        scroll-behavior:auto !important;
        transition-duration:0.01ms !important;
    }
}

/* Responsive refinement: keeps the service timeline compact on tablets and phones. */
@media(max-width:1024px){
    .page-shell{
        width:94%;
        padding:40px 0 58px;
    }

    .service-grid{
        gap:18px;
    }

    .service-card{
        min-height:104px;
        grid-template-columns:58px minmax(0, 1fr);
        gap:16px;
        padding:20px 22px 20px 0;
    }

    .service-grid::before{
        left:29px;
    }

    .service-step-marker{
        width:58px;
    }

    .service-step-copy h2{
        font-size:26px;
        line-height:1.18;
    }
}

@media(max-width:640px){
    .page-shell{
        width:93%;
        padding:28px 0 44px;
    }

    .services-page-title{
        margin-bottom:20px;
    }

    .services-page-title::before{
        width:82%;
    }

    .services-page-title::after{
        width:52px;
    }

    .services-page-title h1{
        font-size:34px;
    }

    .service-grid{
        gap:14px;
    }

    .service-grid::before{
        left:22px;
    }

    .service-card{
        grid-template-columns:44px minmax(0, 1fr);
        gap:12px;
        padding:18px 14px 18px 0;
    }

    .service-step-marker{
        width:44px;
    }

    .service-step-marker span{
        width:34px;
        height:34px;
        font-size:11px;
    }

    .service-step-copy h2{
        font-size:20px;
        line-height:1.22;
    }
}

@media(max-width:360px){
    .page-shell{
        width:94%;
        padding:22px 0 34px;
    }

    .services-page-title{
        margin-bottom:16px;
        padding-bottom:16px;
    }

    .services-page-title span{
        font-size:12px;
    }

    .services-page-title h1{
        font-size:30px;
    }

    .service-grid{
        gap:10px;
    }

    .service-card{
        grid-template-columns:36px minmax(0, 1fr);
        gap:9px;
        padding:14px 10px 14px 0;
        border-radius:8px;
    }

    .service-grid::before{
        left:18px;
    }

    .service-step-marker{
        width:36px;
    }

    .service-step-marker span{
        width:28px;
        height:28px;
        font-size:9px;
    }

    .service-step-copy h2{
        font-size:17px;
        line-height:1.18;
    }
}

/* Final desktop visibility pass for service cards. */
@media(min-width:1025px){
    .page-shell{
        width:min(94%, 1240px);
        padding:34px 0 48px;
    }

    .services-page-title{
        margin-bottom:26px;
    }

    .services-page-title span{
        font-size:14px;
    }

    .services-page-title h1{
        font-size:44px;
        line-height:1;
    }

    .service-grid{
        gap:16px;
    }

    .service-card{
        min-height:96px;
        grid-template-columns:58px minmax(0, 1fr);
        gap:16px;
        padding:18px 22px 18px 0;
    }

    .service-grid::before{
        left:29px;
        top:28px;
        bottom:28px;
    }

    .service-step-marker{
        width:58px;
    }

    .service-step-marker span{
        width:42px;
        height:42px;
        font-size:13px;
    }

    .service-step-copy h2{
        font-size:24px;
        line-height:1.18;
    }
}

@media(min-width:1025px) and (max-width:1400px){
    .page-shell{
        width:94%;
        padding-top:28px;
    }

    .service-card{
        min-height:88px;
        padding:16px 20px 16px 0;
    }

    .service-step-copy h2{
        font-size:22px;
    }
}
