/* Service Cards with Images */
.services-grid {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    /* Restore Bootstrap row margins */
    margin-left: -15px;
}

.service-card-main {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    height: 100%;
    margin-bottom: 30px;
    width: 100%;
    /* Fill the column */
}

.service-card-main:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.service-image-main {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.service-card-main:hover .service-image-main img {
    transform: scale(1.1);
}

.service-overlay-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.service-card-main:hover .service-overlay-main {
    opacity: 1;
}

.service-overlay-main .btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.service-card-main:hover .service-overlay-main .btn {
    transform: translateY(0);
}

.service-content-main {
    padding: 30px;
}

.service-content-main .service-icon {
    width: 80px;
    height: 80px;
    margin: -60px auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 2;
}

.service-content-main .service-icon i {
    font-size: 35px;
    color: white;
}

.service-content-main h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #2d3436;
    text-align: center;
}

.service-content-main p {
    font-size: 15px;
    line-height: 1.7;
    color: #636e72;
    margin-bottom: 20px;
    text-align: center;
}

.service-features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-features-list li {
    padding: 8px 0;
    font-size: 14px;
    color: #636e72;
    display: flex;
    align-items: center;
}

.service-features-list li i {
    color: #6C5CE7;
    margin-right: 10px;
    font-size: 14px;
}

.service-content-main .service-link {
    display: block;
    text-align: center;
    color: #6C5CE7;
    font-weight: 600;
    font-size: 15px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.service-content-main .service-link:hover {
    color: #5443c7;
    text-decoration: none;
}

.service-content-main .service-link i {
    margin-left: 5px;
    transition: all 0.3s ease;
}

.service-content-main .service-link:hover i {
    margin-left: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .services-grid {
        flex-wrap: wrap;
        /* Allow stacking on mobile */
    }

    .service-card-main {
        margin-bottom: 30px;
        flex: 0 0 100%;
        /* Full width on mobile */
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .service-image-main {
        height: 200px;
    }
}