.services-widget {
    text-align: center;
    margin-bottom: 30px;
}

.services-title h2 {
    font-size: 36px;
    font-family: Inter, sans-serif;
    font-weight: 700;
    color: #14141e;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 cards per row on large screens */
    gap: 20px;
    justify-content: center;
}

.service-item {
    display: inline-flex;
    flex-direction: column;
    background: #025296;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.service-item img {
    width: 100%;
    object-fit: cover;
}

.service-title {
    color: #ffffff;
    font-size: 24px;
    font-family: Roboto, sans-serif;
    font-weight: 500;
    padding: 10px;
    text-align: center;
    height: auto; /* Default text container height */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Tablet view adjustments (up to 991px) */
@media (max-width: 991px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    }

    .services-title h2 {
        font-size: 32px;
    }

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

/* Mobile view adjustments (up to 768px) */
@media (max-width: 768px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr); /* Still 2 cards per row */
    }

    .services-title h2 {
        font-size: 28px;
    }

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