/* Home page Events section styles */

/* Filter Tabs Styling */
.event-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 6px 16px;
    background: #fff;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    color: #666;
    border: none;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    color: #008e43;
    background: #f0f9f4;
}

.filter-tab.active {
    background: #1a8754;
    color: white;
    border: none;
}

/* Event Item Animation */
#home-events-section .event-item {
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

#home-events-section .event-item.hidden {
    display: none !important;
    opacity: 0;
    transform: scale(0.95);
}

.no-events-message {
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Title line clamp helpers */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Events cards: rounded with subtle border (slate-200 like) */
#home-events-section .card {
    overflow: hidden;
    border: 1px solid #e2e8f0 !important; /* slate-200 style border */
    border-radius: 12px; /* rounded whole card */
    box-shadow: none !important;
}

#home-events-section .card .card-body {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Ensure event card images have fixed height on desktop/tablet */
#home-events-section .card .card-img-top {
    height: 180px !important;
    width: 100%;
    object-fit: cover;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.pagination-btn {
    padding: 6px 12px;
    border: 1px solid #28a745;
    background: #1a8754;
    color: #fff;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, .25);
}

.pagination-btn:hover:not(:disabled) {
    background: #208d37;
    color: #fff;
    border-color: #208d37;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(32, 141, 55, .35);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-weight: 500;
    color: #666;
    display: none;
}

/* Events header layout */
.events-header-left {
    flex: 0 0 40%;
    max-width: 40%;
}

.events-header-right {
    flex: 0 0 60%;
    max-width: 60%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-left: 3%;
}

.arrow-btn {
    width: 36px;
    height: 36px;
    background: #e9ecef !important;
    /* light gray */
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #212529 !important;
    /* dark arrow */
    border-radius: 50%;
}

.arrow-btn svg {
    stroke: #212529 !important;
    /* dark arrow color */
}

.arrow-btn:hover {
    background: #d6d6d6 !important;
    /* darker on hover */
}



/* Responsive tweaks for Events section */
@media (max-width: 576px) {
    .event-filter-tabs {
        gap: 6px;
    }

    .filter-tab {
        padding: 4px 10px;
        font-size: 11px;
        border-radius: 9999px;
    }

    #events-container .chip-wraper {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    #events-container .chip-wraper .date-venue {
        flex: 1 1 auto;
    }

    #events-container .chip-wraper .status {
        flex: 0 0 auto;
    }

    #events-container .chip-wraper .paragraph-head {
        font-size: 14px;
    }

    #events-container .chip {
        padding: 2px 8px;
        font-size: 11px;
        border-radius: 9999px;
    }

    #events-container .card .card-img-top {
        height: 140px !important;
        width: 100%;
        object-fit: cover;
    }

    .pagination-wrapper {
        gap: 8px;
    }

    .pagination-btn {
        padding: 4px 10px;
        font-size: 11px;
    }

    .arrow-btn {
        width: 36px;
        height: 36px;
        background: #e9ecef !important;
        /* light gray */
        border: none !important;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #212529 !important;
        /* dark arrow */
        border-radius: 50%;
    }

    .arrow-btn svg {
        stroke: #212529 !important;
        /* dark arrow color */
    }

    .arrow-btn:hover {
        background: #d6d6d6 !important;
        /* darker on hover */
    }

}

/* Keep Events header row tight and stacked on small screens */
@media (max-width: 576px) {
    .events-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .events-header-left,
    .events-header-right {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .events-header-row .section-heading {
        font-size: 18px;
    }

    .see-all-link {
        font-size: 12px;
        padding: 0;
    }

    .arrow-btn {
        width: 36px;
        height: 36px;
        background: #e9ecef !important;
        /* light gray */
        border: none !important;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #212529 !important;
        /* dark arrow */
        border-radius: 50%;
    }

    .arrow-btn svg {
        stroke: #212529 !important;
        /* dark arrow color */
    }

    .arrow-btn:hover {
        background: #d6d6d6 !important;
        /* darker on hover */
    }


}

@media (max-width: 768px) {
    .event-filter-tabs {
        gap: 6px;
    }

    .filter-tab {
        padding: 5px 12px;
        font-size: 12px;
        border-radius: 9999px;
    }

    .events-header-right {
        gap: 8px;
    }

    .see-all-link {
        font-size: 12px;
    }
}