.modern-services {
    position: relative;
    padding:10px 0px 100px 0px;
    background: #ffffff;
    overflow: hidden;
}

.modern-services .modern-services-container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.modern-services .modern-services-header {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    gap: 80px;
    margin-bottom: 70px;
}

.modern-services .services-eyebrow {
    display: block;
    margin-bottom: 15px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: #82c341;
}

.modern-services .modern-services-header h2 {
    max-width: 650px;
    margin: 0;
    font-size: 40px;
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -2px;
    color: #102c43;
}

.modern-services .modern-services-header h2 strong {
    display: block;
    color: #00258e;
    font-weight: 500;
}

.modern-services .modern-services-header>p {
    margin: 0;
    max-width: 420px;
    font-size: 14px;
    line-height: 1.8;
    color: #727d85;
}

.modern-services .modern-services-list {
    border-top: 1px solid #dce3e8;
}

.modern-service {
    position: relative;
    display: grid;
    grid-template-columns: 100px 1fr 1fr 60px;
    align-items: center;
    gap: 35px;
    min-height: 145px;
    padding: 25px 25px;
    text-decoration: none;
    border-bottom: 1px solid #dce3e8;
    overflow: hidden;
    transition:
        color 0.4s ease,
        background 0.4s ease;
}

.modern-service>* {
    position: relative;
    z-index: 2;
}

.modern-services .service-count {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 15%;
    border: 1px solid #d9e1e6;
    background: #00278c;
    color: #fff;
    transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}

.modern-services .service-count span {
    font-size: 18px;
    font-weight: 500;
    color: #fdfeff;
    transition: color 0.4s ease;
}


.modern-services .service-title span {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
    color: #909789;
}

.modern-services .service-title h3 {
    margin: 0;
    font-size: 25px;
    font-weight: 700;
    color: #102c43;
    transition: color 0.4s ease;
}


.modern-services .service-description p {
    max-width: 420px;
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
    color: #000000;
    transition: color 0.4s ease;
}

.modern-services .service-arrow {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f7;
    color: #000000;
    transition:
        background 0.35s ease,
        color 0.35s ease,
        transform 0.35s ease;
}

.modern-services .service-arrow i {
    font-size: 14px;
}

.modern-service:hover .service-arrow {
    background: #82c341;
    color: #ffffff;
    transform: rotate(45deg);
}

.modern-service::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #82c341;
    transform: scaleY(0);
    transform-origin: bottom;
    transition:
        transform 0.35s ease;
    z-index: 3;
}

.modern-services .service-arrow {
    position: relative;
    top: 30px;
    bottom: 0;
    transform: matrix(320deg);
    transition: all;
    nav-left: current;
    transform: none !important;
    border-color: #eef2f4 !important;
    display: none;
}

.modern-services .service-description {
    background: #ddf982;
    border-radius: 10px;
    padding: 20px;
    color: #000;
}

@media (max-width: 991px) {

    .modern-services {
        padding: 85px 0;
    }

    .modern-services .modern-services-header {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 50px;
    }

    .modern-services .modern-services-header>p {
        max-width: 600px;
    }

    .modern-service {
        grid-template-columns: 80px 1fr 1fr 55px;
        gap: 20px;
        min-height: 135px;
    }

    .modern-services .service-title h3 {
        font-size: 21px;
    }

    .modern-services .service-description p {
        font-size: 12px;
    }
}

@media (max-width: 700px) {
    .modern-services {
        padding: 70px 0;
    }

    .modern-services .modern-services-header h2 {
        font-size: 38px;
        letter-spacing: -1.2px;
    }

    .modern-services .modern-services-header>p {
        font-size: 13px;
    }

    .modern-service {
        grid-template-columns: 60px 1fr 45px;
        gap: 18px;
        min-height: auto;
        padding: 25px 15px;
    }

    .modern-services .service-count {
        width: 50px;
        height: 50px;
    }

    .modern-services .service-count span {
        font-size: 12px;
    }

    .modern-services .service-title span {
        font-size: 9px;
    }

    .modern-services .service-title h3 {
        font-size: 19px;
    }

    .modern-services .service-description {
        grid-column: 2 / -1;
        margin-top: -5px;
    }

    .modern-services .service-description p {
        font-size: 12px;
        line-height: 1.65;
    }

    .modern-services .service-arrow {
        width: 42px;
        height: 42px;
    }
}

@media (min-width:1200px) and (max-width:1399px) {
    .modern-services .modern-services-container {
        width: min(1200px, 85%);
        margin: 0 auto;
    }

    .modern-services .modern-services-header h2 {
        font-size: 35px;
    }

    .modern-services .modern-services-header {
        margin-bottom: 40px;
    }

    .modern-services .service-description p {
        font-size: 14px;
        line-height: 1.75;
    }

    .modern-services .service-title h3 {
        font-size: 22px;
    }

    .modern-services .service-count {
        width: 55px;
        height: 55px;
    }

    .modern-services .service-count span {
        font-size: 15px;
    }
}

@media (min-width:1901px) and (max-width:2000px) {
    .modern-services .modern-services-container {
        width: min(1550px, 92%);
    }

    .modern-services .modern-services-header>p {
        max-width: 550px;
        font-size: 20px;
    }

    .modern-services .services-eyebrow {
        margin-bottom: 24px;
        font-size: 15px;
    }

    .modern-services .modern-services-header h2 {
        font-size: 45px;
    }

    .modern-services .service-description p {
        font-size: 18px;
    }

    .modern-services .service-title span {
        margin-bottom: 12px;
        font-size: 12px;
    }

    .modern-services .service-title h3 {
        font-size: 28px;
    }

    .modern-services .service-count {
        width: 75px;
        height: 70px;
    }

    .modern-services .service-count span {
        font-size: 22px;
    }
}