/* Event Cards Container */
.ebm-events-card-container {
    margin: 20px 0;
}

.ebm-pre-text,
.ebm-post-text {
    margin-bottom: 20px;
    text-align: center;
}

/* Grid Layout */
.ebm-events-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px auto;
    justify-content: center;
    max-width: 1200px;
}

/* Individual Event Card */
.ebm-event-card {
    flex: 0 0 calc(30% - 14px);
    min-width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
}

.ebm-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Featured Event Styling */
.ebm-event-card.ebm-event-featured {
    border: 2px solid #3b82f6;
    background: linear-gradient(135deg, #fff 0%, #f8faff 100%);
}

/* Card Image */
.ebm-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ebm-event-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ebm-event-card:hover .ebm-event-thumb {
    transform: scale(1.05);
}

/* Featured Badge */
.ebm-featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Content */
.ebm-card-content {
    padding: 20px;
}

/* Card Header with Date and Title */
.ebm-card-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

/* Date Display */
.ebm-event-date-card {
    flex-shrink: 0;
}

.ebm-date-display {
    background: #3b82f6;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
}

.ebm-date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.ebm-date-month {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-top: 2px;
    opacity: 0.9;
}

.ebm-date-tbc {
    background: #6b7280;
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
}

.ebm-tbc-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Event Title */
.ebm-event-title {
    flex: 1;
}

.ebm-title-link {
    color: #1f2937;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    display: block;
    transition: color 0.3s ease;
}

.ebm-title-link:hover {
    color: #3b82f6;
    text-decoration: none;
}

.ebm-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1f2937;
}

/* Event Description */
.ebm-event-description {
    margin-bottom: 15px;
    color: #6b7280;
    line-height: 1.5;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Meta Information */
.ebm-card-meta {
    margin-bottom: 20px;
}

.ebm-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: #6b7280;
}

.ebm-meta-item:last-child {
    margin-bottom: 0;
}

.ebm-meta-item i {
    width: 16px;
    color: #9ca3af;
    flex-shrink: 0;
}

.ebm-location-link {
    color: #3b82f6;
    text-decoration: none;
}

.ebm-location-link:hover {
    text-decoration: underline;
}

.ebm-price-value {
    font-weight: 600;
    color: #059669;
}

/* Card Actions */
.ebm-card-actions {
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.ebm-action-btn {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.ebm-action-btn:hover {
    background: #2563eb;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* No Events Message */
.ebm-no-events {
    text-align: center;
    padding: 60px 20px;
}

.ebm-no-events-message {
    color: #6b7280;
    font-size: 1.1rem;
    background: #f9fafb;
    padding: 30px;
    border-radius: 8px;
    border: 2px dashed #d1d5db;
}

/* Responsive Design */
@media (max-width: 992px) {
    .ebm-event-card {
        flex: 0 0 calc(45% - 10px);
    }
}

@media (max-width: 768px) {
    .ebm-events-grid {
        gap: 15px;
    }
    
    .ebm-event-card {
        flex: 0 0 100%;
        min-width: auto;
    }
    
    .ebm-card-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .ebm-event-date-card {
        align-self: flex-start;
    }
    
    .ebm-card-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .ebm-events-grid {
        margin: 10px 0;
    }
    
    .ebm-event-card {
        border-radius: 8px;
    }
    
    .ebm-card-image {
        height: 150px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .ebm-event-card {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .ebm-title,
    .ebm-title-link {
        color: #f9fafb;
    }
    
    .ebm-title-link:hover {
        color: #60a5fa;
    }
    
    .ebm-event-description {
        color: #d1d5db;
    }
    
    .ebm-meta-item {
        color: #d1d5db;
    }
    
    .ebm-card-actions {
        border-color: #374151;
    }
}