.card {
    width: calc(33.333% - 30px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    background-color: #fff;
    border: none;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #0066cc;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-location {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.card-location:before {
    content: "📍";
    margin-right: 5px;
    font-size: 16px;
}

.card-body {
    padding: 22px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.card-text {
    color: #555;
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 1.6;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 22px 22px;
    background: transparent;
    border-top: none;
}

.event-time {
    display: flex;
    align-items: center;
    color: #777;
    font-size: 14px;
    font-weight: 500;
}

.event-time:before {
    content: "🕒";
    margin-right: 5px;
}

.btn-primary {
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    border: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0052a3, #003d7a);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 102, 204, 0.3);
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ff6b81;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 1100px) {
    .card {
        width: calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .card-grid {
        gap: 25px;
    }
    
    .card {
        width: calc(50% - 25px);
    }
    
    .main-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .card-grid {
        gap: 20px;
    }
    
    .card {
        width: 100%;
    }
    
    .card-body {
        padding: 18px;
    }
    
    .card-footer {
        padding: 0 18px 18px;
    }
}