/* Grid spacing */
.isotope-courses {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Card */
.modern-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.modern-card img {
    width: 100%;
    display: block;
}

/* Hover overlay */
.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.modern-card a {
    position: relative;
    display: block;
}

.modern-card:hover .hover-overlay {
    opacity: 1;
}

.hover-overlay span {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

/* Card Content */
.card-content {
    padding: 20px;
    text-align: center;
}

.card-content h4 {
    margin-bottom: 10px;
}

/* Responsive */
@media (min-width: 992px) {
    .course {
        width: 30%;
    }
}

@media (max-width: 991px) {
    .course {
        width: 48%;
    }
}

@media (max-width: 576px) {
    .course {
        width: 100%;
    }
}
