.event-modern-card {
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border: 1px solid #eee;
    height: 100%;
}

.event-modern-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Image & Date Badge */
.event-img-box {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.event-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.event-modern-card:hover .event-img-box img {
    transform: scale(1.1);
}

.event-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #fff;
    padding: 10px 15px;
    border-radius: 15px;
    text-align: center;
    font-weight: 800;
    color: #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.event-date span {
    display: block;
    font-size: 24px;
    color: #FD1D1D;
    line-height: 1;
}

/* Content Area */
.event-info {
    padding: 25px;
}

.event-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 12px;
}

.tech { background: #e3f2fd; color: #1976d2; }
.festival { background: #fff3e0; color: #f57c00; }
.success { background: #e8f5e9; color: #2e7d32; }

.event-info h4 {
    font-weight: 800;
    margin-bottom: 10px;
    color: #222;
}

.event-info p {
    font-size: 14px;
    color: #777;
    margin-bottom: 5px;
}

.event-desc {
    margin-top: 15px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    color: #555 !important;
}

@media (max-width: 768px) {
    .events-hero-wrap { padding: 100px 0 60px; }
}

.event-tabs-wrapper {
    gap: 10px;
}

.btn-filter {
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 600;
    color: #3a3d74;
    transition: 0.3s;
    border: none;
}

.btn-filter.active, .btn-filter:hover {
    background: #3a3d74;
    color: #fff;
}

/* smooth transition for filtering */
.event-item {
    transition: all 0.4s ease;
}

.event-item.hide {
    display: none;
}

/* Card link styling */
.event-modern-card {
    cursor: pointer;
}

/* --- Responsive Fixes --- */

@media (max-width: 576px) {
    .event-tabs-wrapper {
        display: flex;
        overflow-x: auto; 
        white-space: nowrap;
        width: 100%;
        justify-content: flex-start !important;
        padding: 10px !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .btn-filter {
        padding: 6px 15px;
        font-size: 13px;
        flex: 0 0 auto;
    }

    .display-4 {
        font-size: 28px;
    }
}


@media (max-width: 991px) {
    .event-modern-card {
        margin-bottom: 10px;
    }
    
    .event-img-box {
        height: 180px; 
    }
    
    .event-info {
        padding: 15px;
    }
    
    .event-info h4 {
        font-size: 18px;
    }
}

.event-item {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.event-item.show {
    display: block;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}