.mec-wrapper {
    margin: 40px 0;
}

.mec-design-switcher {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.mec-design-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.mec-design-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.mec-design-btn.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Grid Design */
.mec-design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.mec-design-grid .mec-event-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.mec-design-grid .mec-event-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.mec-design-grid .mec-event-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.mec-design-grid .mec-day {
    display: block;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.mec-design-grid .mec-month {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 5px;
}

.mec-design-grid .mec-event-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.mec-design-grid .mec-event-content {
    padding: 25px;
}

/* List Design */
.mec-design-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mec-design-list .mec-event-item {
    display: flex;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.mec-design-list .mec-event-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.mec-design-list .mec-event-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
}

.mec-design-list .mec-day {
    font-size: 42px;
    font-weight: bold;
    line-height: 1;
}

.mec-design-list .mec-month {
    font-size: 16px;
    text-transform: uppercase;
    margin-top: 8px;
}

.mec-design-list .mec-event-image {
    flex: 0 0 250px;
}

.mec-design-list .mec-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mec-design-list .mec-event-content {
    flex: 1;
    padding: 25px;
}

/* Card Design */
.mec-design-card {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.mec-design-card .mec-event-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mec-design-card .mec-event-item::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transition: all 0.5s ease;
}

.mec-design-card .mec-event-item:hover::before {
    top: -60%;
    right: -60%;
}

.mec-design-card .mec-event-item:hover {
    transform: scale(1.05);
}

.mec-design-card .mec-event-date {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: inline-block;
}

.mec-design-card .mec-event-title {
    color: white;
}

.mec-design-card .mec-event-meta span {
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
}

/* Timeline Design */
.mec-design-timeline {
    position: relative;
    padding-left: 60px;
}

.mec-design-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.mec-design-timeline .mec-event-item {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.mec-design-timeline .mec-event-item::before {
    content: '';
    position: absolute;
    left: -53px;
    top: 30px;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid #667eea;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.mec-design-timeline .mec-event-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.mec-design-timeline .mec-event-date {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Common Styles */
.mec-event-title {
    font-size: 22px;
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-weight: 700;
}

.mec-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
    font-size: 14px;
}

.mec-event-meta span {
    background: #f0f4f8;
    padding: 6px 12px;
    border-radius: 6px;
    color: #4a5568;
}

.mec-event-description {
    color: #718096;
    line-height: 1.6;
    margin: 15px 0;
}

.mec-event-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.mec-event-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.mec-no-events {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
    font-size: 18px;
}

@media (max-width: 768px) {
    .mec-design-list .mec-event-item {
        flex-direction: column;
    }
    
    .mec-design-list .mec-event-image {
        flex: 0 0 200px;
    }
    
    .mec-design-timeline {
        padding-left: 40px;
    }
    
    .mec-design-timeline::before {
        left: 10px;
    }
    
    .mec-design-timeline .mec-event-item::before {
        left: -43px;
    }
}