/* Event Master Plugin Styles */

:root {
    --em-primary: #3b82f6; /* Modern Blue */
    --em-secondary: #1e293b; /* Slate 800 */
    --em-text: #f8fafc; /* Slate 50 */
    --em-overlay: rgba(0, 0, 0, 0.6);
    --em-radius: 12px;
    --em-transition: 0.3s ease;
}

/* Common Container */
.em-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* --- Event Slider (Swiper) --- */
.em-slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: var(--em-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3);
}

.em-event-slide {
    display: flex;
    align-items: flex-end; /* Text at bottom */
    justify-content: flex-start;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.em-slide-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    width: 100%;
    padding: 40px;
    color: var(--em-text);
}

.em-slide-date {
    background: var(--em-primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.em-slide-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.em-slide-meta {
    font-size: 1rem;
    opacity: 0.9;
    display: flex;
    gap: 15px;
}

/* --- Event Gallery (Grid) --- */
.em-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.em-card {
    background: #fff;
    border-radius: var(--em-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: transform var(--em-transition), box-shadow var(--em-transition);
    border: 1px solid #e2e8f0;
}

.em-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.em-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.em-card-image-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.9);
    color: var(--em-secondary);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
}

.em-card-content {
    padding: 20px;
}

.em-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--em-secondary);
    margin-bottom: 10px;
}

.em-card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.em-card-title a:hover {
    color: var(--em-primary);
}

.em-card-meta {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.em-btn {
    display: inline-block;
    background: var(--em-secondary);
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.em-btn:hover {
    background: var(--em-primary);
}

/* Swiper Pagination Customization */
.swiper-pagination-bullet-active {
    background: var(--em-primary) !important;
}
