

.online-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.online-container::-webkit-scrollbar {
    display: none;
}

.card {
    flex: 1;
    min-width: 250px;
    height: 300px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-content .image {
    width: 100%;
    height: 60%;
    overflow: hidden;
    position: relative;
}

.card-content .image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.2));
}

.card-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-content img {
    transform: scale(1.05);
}

.card-content h3 {
    padding: 1rem;
    margin: 0;
    background: white;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: justify;
    transition: all 0.3s ease;
}

.card-content .description {
    padding: 0.5rem 1rem 1rem;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: justify;
}

@media(max-width:780px){
    .online-container {
        flex-direction: column;
    }
    .card-content {
        height: 260px;
    }

}