/* ===================================
   Events Section Styles
   =================================== */

/* Events Area */
.events-area {
    background: #f8f9fa;
}

/* Section Title */
.events-area .section-tittle h2 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 15px;
}

.events-area .section-tittle p {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
}

/* Event Filter Tabs */
.event-filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.event-filter-btn {
    padding: 12px 30px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    color: #6c757d;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.event-filter-btn:hover {
    border-color: #28a745;
    color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

.event-filter-btn.active {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Event Card */
.event-card-wrapper {
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.event-card-wrapper.hidden {
    display: none;
}

.event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Event Card Image */
.event-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-card-image img {
    transform: scale(1.1);
}

/* Event Date Badge */
.event-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #fff;
    width: 65px;
    height: 70px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.event-date-badge .day {
    font-size: 28px;
    font-weight: 700;
    color: #28a745;
    line-height: 1;
}

.event-date-badge .month {
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Event Type Badge */
.event-type-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    z-index: 2;
}

.event-type-badge.type-fundraiser {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.event-type-badge.type-workshop {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.event-type-badge.type-charity {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.event-type-badge.type-community {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.event-type-badge.type-training {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.event-type-badge.type-conference {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

/* Event Card Body */
.event-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.event-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-title a:hover {
    color: #28a745;
}

/* Event Meta */
.event-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6c757d;
    font-size: 14px;
}

.event-meta-item i {
    color: #28a745;
    font-size: 16px;
    width: 18px;
}

/* Capacity Bar */
.capacity-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-top: auto;
    margin-bottom: 15px;
}

.capacity-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.capacity-fill.warning {
    background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%);
}

.capacity-fill.full {
    background: linear-gradient(90deg, #dc3545 0%, #c82333 100%);
}

/* Event Card Footer */
.event-card-footer {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-registration {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
}

.event-registration i {
    color: #28a745;
    font-size: 16px;
}

.event-registration .count {
    font-weight: 700;
    color: #2c3e50;
}

.event-btn {
    padding: 10px 24px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.event-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    color: #fff;
}

/* Loading and Empty States */
.loading-spinner,
.no-events-message {
    padding: 60px 20px;
}

.loading-spinner i {
    color: #28a745;
}

.loading-spinner p,
.no-events-message p {
    margin-top: 15px;
    color: #6c757d;
    font-size: 16px;
}

.no-events-message i {
    color: #dee2e6;
}

.no-events-message h4 {
    color: #6c757d;
    font-weight: 600;
    margin-top: 20px;
}

/* View All Button */
.mt-50 {
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .event-card-image {
        height: 200px;
    }

    .event-title {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .event-filter-tabs {
        gap: 10px;
    }

    .event-filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .event-card-image {
        height: 180px;
    }

    .event-card-body {
        padding: 20px;
    }

    .event-card-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .event-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .event-date-badge {
        width: 55px;
        height: 60px;
        top: 15px;
        left: 15px;
    }

    .event-date-badge .day {
        font-size: 24px;
    }

    .event-date-badge .month {
        font-size: 11px;
    }

    .event-type-badge {
        top: 15px;
        right: 15px;
        padding: 5px 12px;
        font-size: 11px;
    }
}