/* Services Preview Cards */

.service-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-md);
    margin-top: var(--sp-md);
    justify-content: center;
}

.services-preview .service-card {
    background: var(--c-white);
    border-radius: var(--br-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.services-preview .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.services-preview .card-image {
    height: 250px;
    width: 100%;
    overflow: hidden;
}

.services-preview .card-image .image-holder {
    width: 100%;
    height: 100%;
    background: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
}

.services-preview .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.services-preview .service-card:hover .card-image img {
    transform: scale(1.05);
}

.services-preview .card-content {
    padding: var(--sp-md);
    text-align: center;
    flex-grow: 1;
    /* Ensures content fills space if heights differ */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.services-preview .service-card h3 {
    color: var(--c-primary);
    margin-bottom: var(--sp-xs);
    font-size: 1.5rem;
}

.services-preview .service-card p {
    color: var(--c-text-light);
    margin: 0;
}

.card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-cards-row {
        flex-direction: column;
        align-items: center;
    }

    .services-preview .service-card {
        width: 100%;
        max-width: 100%;
    }
}