.service-category {
    padding: 80px 40px;
    background: #f4f7fb;
}

.service-category:nth-child(even) {
    background: #eef2f8;
}

.section-content.boxed {
    background: #ffffff;
    padding: 60px 50px;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: "";
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    display: block;
    margin-top: 12px;
    border-radius: 2px;
}

.service-cards-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 240px));
    gap: 28px;
    justify-content: center; /* IMPORTANT */
}

.service-mini-card {
    width: 240px;
    height: 260px;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.service-mini-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(0,0,0,0.12);
}

.service-mini-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.service-mini-card h3 {
    flex: 1; /* fills remaining height */
    display: flex;
    align-items: center;      /* vertical center */
    justify-content: center;  /* horizontal center */
    padding: 0 12px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    text-align: center;
}

@media (max-width: 600px) {
    .service-mini-card {
        width: 200px;
        height: 240px;
    }

    .service-mini-card img {
        height: 140px;
    }
}