.services {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    cursor: default;
}

.service {
    flex: 1 1 calc(25% - 20px);
    box-sizing: border-box;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
    transition: box-shadow 0.5s;
}

.service:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.service h3 {
    font-size: 17px;
    font-weight: bold;
    padding-left: 15px;
    margin: 0;
}

.service .detail {
    padding: 0 15px 15px;
    flex: 1;
}

.service .detail h4 {
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #666;
}

.service img {
    width: 100%;
    height: 250px; /* hoặc auto */
    object-fit: cover;
    border-radius: 14px 14px 0 0;
    display: block;
}

/* Responsive */
@media (max-width: 1200px) {
    .service {
        flex: 1 1 calc(33.333% - 20px); /* 3 cột */
    }
}

@media (max-width: 976px) {
    .service {
        flex: 1 1 calc(50% - 20px); /* 2 cột */
    }
}

@media (max-width: 576px) {
    .service {
        flex: 1 1 100%; /* 1 cột */
    }
}
