.events-hero {
    background-image: url('https://images.unsplash.com/photo-1617280137702-32e761be8b26?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NXx8Z3Jhc3MlMjBmaWVsZHxlbnwwfHwwfHx8MA%3D%3D&w=1000&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.events-heading {
    margin-bottom: 0.5rem !important;
}

.events-section-title {
    font-size: 1.2rem;
    font-weight: 500;
}

.events-section-description {
    margin-top: 6px;
}

.event-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.event-card {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border-color: #d0d7e2;
}


.event-card-img {
    height: 240px;
    overflow: hidden;
    position: relative;
    margin: 0;
    border-radius: 0;
}

.event-card-img__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-status-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.event-status-badge--past {
    background: #fff7cc;
    color: #000;
}

.event-status-badge--upcoming {
    background: #dcfce7;
    color: #14532d;
}

.event-category-badge {
    position: absolute;
    top: 10px;
    left: 12px;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: #008e43;
    color: #fff;
    text-transform: capitalize;
}

.event-card-body {
    padding-inline: 8px;
    padding-bottom: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

}

.event-title {
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.35;
    /* margin: 0 0 1rem; */
    text-transform: capitalize;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}
.event-card-info{
    padding:5px 10px;
}

.event-card-info-row {
    /* margin-top: 4px; */
    /* padding:8px; */
    font-size: 0.8rem;
    color: #7a808a;
    font-weight: 500;
}

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

/* .event-card-description {
    font-size: 12px;
    line-height: 1.6;
    color: #4b5563;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
} */

.event-card-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 12px;
}

.event-card-meta-block {
    flex: 1;
}

.event-card-meta-block span {
    display: -webkit-box;
    color: gray;
    margin-top: 4px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-footer {
    padding-top: 5px;
    border-top: 1px solid #e2e8f0;
}

.event-card-organized {
    font-size: 1.05rem;
    font-weight: 700;
    color: #00695c;
    text-align: right;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-item {
    display: none;
}

.events-no-results {
    display: none;
}

.filter-section {
    text-align: left;
}

.filter-btn,
.type-filter-btn {
    padding: 8px 20px;
    border: none;
    background: #fff;
    color: #1a8755;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: none;
}

.time-filter-dropdown {
    max-width: 220px;
}

.event-time-select {
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #d1d5db;
    color: #1a8755;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.event-time-select:focus {
    border-color: #1a8755;
    outline: none;
    box-shadow: none;
}

.filter-btn:hover,
.type-filter-btn:hover {
    background: #1a8755;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: none;
}

.filter-btn.active,
.type-filter-btn.active {
    background: #1a8755;
    color: #fff;
    box-shadow: none;
}

.nav-pills .nav-link {
    background: #fff;
    color: #1a8755;
    border-radius: 10px;
    margin: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: none;
}

.nav-pills .nav-link:hover {
    background: #1a8755;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: none;
}

.nav-pills .nav-link.active {
    background: #1a8755;
    color: #fff;
}

.pagination .page-link {
    color: #28a745;
    border: 1px solid #28a745;
    cursor: pointer;
    padding: 6px 12px;
    margin: 0 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover:not(.disabled) {
    background-color: #28a745;
    color: #fff;
}

.pagination .page-item.active .page-link {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #aaa;
    border-color: #ddd;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

.filter-btn:focus,
.type-filter-btn:focus,
.nav-pills .nav-link:focus {
    outline: none;
    box-shadow: none;
}

@media (max-width: 767px) {

    .filter-btn,
    .type-filter-btn {
        padding: 6px 15px;
        font-size: 0.85rem;
        margin: 3px;
    }

    .time-filter-dropdown {
        max-width: 100%;
    }

    .event-time-select {
        padding: 8px 14px;
        font-size: 0.95rem;
    }

    .pagination .page-link {
        padding: 5px 10px;
        font-size: 0.9rem;
        margin: 0 1px;
    }
}