.services-section {
    width: 100%;
    background-color: #DFFFFD;
    padding: 40px 24px 0;
    text-align: center;
}

/* Main heading */
.services-heading {
    font-family: "Young Serif", serif;
    font-size: 48px;
    font-weight: 400;
    color: #0ADBCD;
    margin: 0 auto;
}

/* Subheading */
.services-subheading {
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 400;
    font-style: normal;
    color: #000000; /* default black, can adjust */
    margin-top: 26px; /* distance below main heading */
    line-height: 1.5;
    max-width: 700px; /* optional, to force 2 lines */
    margin-left: auto;
    margin-right: auto;
}

/* Services cards layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 40px;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 1200px; /* cap at 3 columns max */
    padding-bottom: 50px;
}

.service-card {
    width: 100%;
    min-height: 330px;
    background: #ffffff;
    border: 1px solid #e6f5f2;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.04);
    padding: 0 28px 28px 28px;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease-out, background-color 0.15s ease-out, box-shadow 0.15s ease-out;
    will-change: transform, background-color, box-shadow;
    contain: layout style paint;
    cursor: pointer;
}

.service-card:hover {
    background: #0ADBCD;
    box-shadow: 0 16px 34px rgba(10, 219, 205, 0.25);
    transform: translateY(-6px);
}

.service-icon {
    margin-top: 33px;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    stroke: #0ADBCD;
    stroke-width: 2.2;
    fill: none;
    transition: stroke 200ms ease;
}

.service-title {
    font-family: "Young Serif", serif;
    font-size: 24px;
    font-weight: 400;
    color: #0a0a0a;
    margin-top: 26px;
    
    line-height: 1.3;
}

.service-desc {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #323232;
    margin: 24px 0 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 6.4em;
}

.service-link {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #0ADBCD;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    transition: color 200ms ease;
}

.service-link::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 10px;
    margin-left: 10px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='10' viewBox='0 0 6 10' fill='none'%3E%3Cpath d='M0.196236 0.196133C0.441537 -0.0491672 0.829467 -0.0643027 1.09262 0.150332L1.14366 0.196133L5.16365 4.21615C5.42528 4.47778 5.42528 4.90189 5.16365 5.16353L1.14366 9.18353C0.882008 9.44523 0.457891 9.44523 0.196236 9.18353C-0.0654121 8.92189 -0.0654121 8.49778 0.196236 8.23615L3.74251 4.68984L0.196236 1.14355L0.150436 1.09252C-0.064199 0.829363 -0.0490574 0.441427 0.196236 0.196133Z' fill='%230ADBCD'/%3E%3C/svg%3E");
    transition: background-image 200ms ease;
}

.service-card:hover .service-link::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='10' viewBox='0 0 6 10' fill='none'%3E%3Cpath d='M0.196236 0.196133C0.441537 -0.0491672 0.829467 -0.0643027 1.09262 0.150332L1.14366 0.196133L5.16365 4.21615C5.42528 4.47778 5.42528 4.90189 5.16365 5.16353L1.14366 9.18353C0.882008 9.44523 0.457891 9.44523 0.196236 9.18353C-0.0654121 8.92189 -0.0654121 8.49778 0.196236 8.23615L3.74251 4.68984L0.196236 1.14355L0.150436 1.09252C-0.064199 0.829363 -0.0490574 0.441427 0.196236 0.196133Z' fill='%23ffffff'/%3E%3C/svg%3E");
}

.service-card:hover .service-title,
.service-card:hover .service-desc,
.service-card:hover .service-link {
    color: #ffffff;
}

.service-card:hover .service-icon svg {
    stroke: #ffffff;
}

@media (max-width: 1200px) {
    .services-heading {
        font-size: 42px;
    }

    .services-subheading {
        font-size: 18px;
        max-width: 640px;
    }

    .services-grid {
        gap: 24px;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .services-section {
        padding: 32px 18px 0;
    }

    .services-heading {
        font-size: 36px;
    }

    .services-subheading {
        font-size: 17px;
    }

    .services-grid {
        margin-top: 32px;
        gap: 22px;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .service-card {
        min-height: 0;
        padding: 0 24px 24px 24px;
    }

    .service-link {
        padding-top: 14px;
    }
}

@media (max-width: 768px) {
    .services-heading {
        font-size: 32px;
    }

    .services-subheading {
        font-size: 16px;
        max-width: 90%;
    }

    .services-grid {
        gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    }

    .service-card {
        padding: 0 20px 22px 20px;
    }

    .service-title {
        font-size: 22px;
    }

    .service-desc {
        font-size: 15px;
    }

    .service-link {
        font-size: 13px;
        padding-top: 16px;
    }
}

@media (max-width: 576px) {
    .services-section {
        padding: 28px 14px 0;
    }

    .services-grid {
        gap: 18px;
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    }

    .service-icon {
        margin-top: 26px;
    }

    .service-title {
        margin-top: 20px;
    }
}
