/* ============================================================
   Events CSS - Matches blog.css structure
   Place at: assets/dist/events.css
   ============================================================ */

/* ── Filter Toggle ── */
.event_filter_container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 40px 0 50px;
    flex-wrap: wrap;
}

.event_filter_btn {
    padding: 10px 28px;
    border: 2px solid #ddd;
    background: #fff;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event_filter_btn:hover {
    border-color: var(--fc);
    color: var(--fc);
    transform: translateY(-2px);
}

.event_filter_btn.active {
    background: var(--fc);
    border-color: var(--fc);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* ── Event List Container ── */
.event_list_wrapper {
    margin-bottom: 60px;
}

.event_list_container {
    padding: 0 15px;
}

.event_details_container {
    margin-bottom: 30px;
    padding: 0 15px;
}

.event_detail_wrapper {
    height: 100%;
}

/* ── Event Card ── */
.event_card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.event_card.past {
    opacity: 0.85;
}

.event_card.past:hover {
    opacity: 1;
}

/* ── Image Container ── */
.imageanimate {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f0f0f0;
}

.event_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.zoom-out:hover .event_img {
    transform: scale(1.08);
}

/* ── Date Badge (matches your existing style) ── */
.event_date_badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    text-align: center;
    min-width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge_day {
    font-size: 28px;
    font-weight: 900;
    color: var(--fc);
    line-height: 1;
    margin-bottom: 2px;
}

.badge_month {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.badge_year {
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

/* Ongoing event badge */
.event_date_badge.ongoing {
    background: var(--fc);
}

.badge_live {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 4px;
    animation: pulse 2s infinite;
}

.event_date_badge.ongoing .badge_year {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ── Text Container (matches blog) ── */
.text_container {
    padding: 24px 22px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event_name {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event_synopsis {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Event Meta ── */
.event_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.meta_item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
}

.meta_item i {
    font-size: 14px;
    color: var(--fc);
}

/* ── No Events Message ── */
.no_events_msg {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .event_filter_container {
        margin: 30px 0 40px;
    }

    .event_details_container {
        margin-bottom: 25px;
    }
}

@media (max-width: 767px) {
    .imageanimate {
        height: 200px;
    }

    .event_filter_btn {
        padding: 8px 20px;
        font-size: 13px;
    }

    .event_name {
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .event_filter_container {
        gap: 8px;
        margin: 25px 0 35px;
    }

    .event_filter_btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .imageanimate {
        height: 180px;
    }

    .text_container {
        padding: 18px 18px 20px;
    }
}