/* NiveshakFirst — services page */

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
}

.service-card {
    position: relative;
    grid-column: span 2;

    padding: 34px 32px 38px;

    background:
        linear-gradient(145deg, #ffffff 0%, #f9fcfb 100%);

    border: 1px solid #dfe9e5;
    border-radius: 18px;

    min-height: 270px;

    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(20, 42, 64, .045);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.service-card::before {
    content: "";
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: linear-gradient(90deg,
            #187a5b,
            #69be43);

    transform: scaleX(.25);
    transform-origin: left;

    transition: transform .3s ease;
}

.service-card::after {
    content: "";
    position: absolute;

    width: 130px;
    height: 130px;

    right: -55px;
    bottom: -55px;

    border-radius: 50%;

    background: rgba(24, 122, 91, .055);

    transition: .3s ease;

    pointer-events: none;
}

.service-card:nth-child(4) {
    grid-column: 2 / 4;
}

.service-card:nth-child(5) {
    grid-column: 4 / 6;
}

.service-card:hover {
    transform: translateY(-7px);

    border-color: #bcd8cc;

    box-shadow:
        0 20px 45px rgba(20, 42, 64, .10);
}

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

.service-card:hover::after {
    width: 180px;
    height: 180px;

    background: rgba(24, 122, 91, .08);
}

.service-number {
    position: relative;
    z-index: 2;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: #eef7f2;

    color: #187a5b;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1px;

    border: 1px solid #d8ebe2;

    transition: .3s ease;
}

.service-card:hover .service-number {
    background: #187a5b;
    color: #fff;

    border-color: #187a5b;

    transform: scale(1.05);
}

.service-card h3 {
    position: relative;
    z-index: 2;

    margin-top: 22px;

    color: #142a40;

    font-size: 21px;
    line-height: 1.3;

    letter-spacing: -.2px;

    transition: color .25s ease;
}

.service-card:hover h3 {
    color: #187a5b;
}

.service-card p {
    position: relative;
    z-index: 2;

    margin-top: 12px;

    max-width: 430px;

    color: #71808b;

    font-size: 17px;
    line-height: 1.8;
}

.service-card a {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: 24px;

    width: fit-content;

    color: #187a5b;
    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.4;

    transition:
        color 0.2s ease,
        gap 0.2s ease;
}

.service-card a:hover {
    color: #126548;

    transform: translateX(4px);
}

/* Keep the page gradient visible behind the service cards. */
.services-section {
    background: transparent;
}