.clinic {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 50px;
}

/* Main container */
.clinic-services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 20px;
    background: #ECF6FF;
    width: 100%;
    min-height: 100vh;
}

/* Wrapper */
.clinic-services-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: 30px;
}

/* Heading */
.clinic-services-heading {
    font-family: 'Arial', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #062A4D;
    line-height: 37px;
    text-align: center;
}

/* Services Grid */
.services-grid {
    display: flex;
    flex-wrap: wrap;  
    align-items: flex-start;
    gap: 25px;
    width: 100%;
}

/* Individual Service Card */
.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 383px;
    background: #FFFFFF;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
}

/* Image Section */
.service-image {
    width: 100%;
    height: 275px;
    background-size: cover;
    background-position: center;
    border-radius: 5px 5px 0 0;
}

/* Details Section */
.service-details {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 96px;
    padding: 20px;
    background: #FFFFFF;
    border-radius: 0 0 5px 5px;
    text-align: center;
}

.service-details h3 {
    font-family: 'Arial', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #062A4D;
    margin: 0;
    line-height: 28px;
}

/* --- Responsive Styles --- */

/* Tablets */
@media (max-width: 1024px) {
    .clinic-services-wrapper {
        max-width: 90%;
    }

    .service-card {
        width: 45%;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .clinic-services-heading {
        font-size: 28px;
        line-height: 32px;
    }

    .services-grid {
        gap: 20px;
    }

    .service-card {
        width: 100%;
    }

    .service-details h3 {
        font-size: 20px;
        line-height: 24px;
    }
}
