:root {
    font-family: 'Roboto', sans-serif;
}

.euro-event-archive {
    width: 100%;
    margin: 0 auto;
    font-family: 'Roboto', sans-serif;
}

/* Filter Section */
.event-filter-section {
    background: #F3F3F3;
    padding: 35px 0px;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
}

.filter-container {
    max-width: 1152px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
}

/* Mobile Filter Trigger Button */
.mobile-filter-trigger {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 13px;
    background: #0B4F9F;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.mobile-filter-trigger .filter-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.mobile-filter-trigger:hover {
    background: #094280;
}

.mobile-filter-trigger:active {
    transform: scale(0.98);
}

/* Desktop filter label (hide on mobile) */
.desktop-filter-label {
    display: flex;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #35393D;
}

.filter-label img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.desktop-filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 13px;
    background: #FFFFFF;
    color: #000000;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-btn:hover {
    background: #0B4F9F;
    color: #FFFFFF;
}

.filter-btn.active {
    background: #0B4F9F;
    color: #FFFFFF;
    border-color: #0B4F9F;
}

/* Mobile Filter Popup */
.mobile-filter-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.mobile-filter-popup.active {
    display: block;
}

.mobile-filter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.mobile-filter-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E5E5E5;
}

.mobile-filter-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #35393D;
}

.mobile-filter-title .filter-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.mobile-filter-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.mobile-filter-close:hover {
    background: #F3F3F3;
    color: #000000;
}

.mobile-filter-close:active {
    transform: scale(0.95);
}

.mobile-filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-filter-buttons .filter-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 14px 24px;
    font-size: 14px;
}

/* Section Titles */
.event-section {
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
}

.section-container {
    max-width: 1096px;
    width: 100%;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #0B4F9F;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 12px;
    color: #666666;
    margin-bottom: 30px;
}

.section-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.section-header {
    margin-bottom: 0;
}

.year-filter {
    display: flex;
    align-items: center;
    position: relative;
}

.year-filter::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #0B4F9F;
    pointer-events: none;
}

.year-filter-select {
    padding: 10px 16px;
    padding-right: 32px;
    border-radius: 13px;
    background: transparent;
    color: #0B4F9F;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid #0B4F9F;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    width: 108px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.year-filter-select:hover {
    border-color: #0B4F9F;
}

.year-filter-select:focus {
    border-color: #0B4F9F;
    box-shadow: 0 0 0 3px rgba(11, 79, 159, 0.1);
}

/* Event Cards Grid */
.event-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Event Card Link Wrapper */
.event-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.event-card-link:hover {
    text-decoration: none;
}

/* Event Card */
.event-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.event-card-image {
    position: relative;
    width: 100%;
    height: 183px;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-card-image img {
    transform: scale(1.05);
}

.event-card-badge-type {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    gap: 8px;
}

.event-card-badge-status {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.badge-type {
    background: #4CA4D3;
    color: #FFFFFF;
}

.badge-status {
    background: #0272BA;
    color: #FFFFFF;
}

.event-card-content {
    padding: 24px;
}

.event-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    line-height: 1.3;
    margin-bottom: 10px;
    margin-top: 0;
}

.event-card-excerpt {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    min-height: 40px;
}

.event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666666;
}

.meta-item svg {
    flex-shrink: 0;
    color: #0B4F9F;
}

.event-card-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background: #0B4F9F;
    color: #FFFFFF;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.3s ease;
}

.event-card-btn:hover {
    background: #083D7A;
}

/* No Events */
.no-events {
    text-align: center;
    padding: 60px 20px;
    color: #666666;
    font-size: 16px;
}

/* Mobile Swiper Styles */
.event-cards-mobile {
    display: none;
}

.event-section-completed-mobile-only .event-cards-mobile {
    display: block;
}

.event-cards-mobile .swiper {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.event-cards-mobile .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0.5rem;
    border-radius: 0;
}

/* Responsive */
@media (max-width: 768px) {
    /* Show mobile filter trigger */
    .mobile-filter-trigger {
        display: flex;
    }
    
    /* Hide desktop filter elements */
    .desktop-filter-label,
    .desktop-filter-buttons {
        display: none;
    }
    
    .event-filter-section {
        flex-direction: column;
        align-items: center;
        padding: 20px 16px;
    }

    .section-container{
        max-width: 358px;
        width: 100%;
    }
    .filter-container{
        max-width: 358px;
        width: 100%;
    }
    
    .event-cards-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0.5rem;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .event-card-title {
        font-size: 18px;
        min-height: auto;
    }
    
    .event-card-excerpt {
        min-height: auto;
    }
    
    .event-section-completed-inline {
        display: none !important;
    }
}

/* Timeline Navigation for Mobile Sliders */
.event-section-completed-mobile-only .timeline-navigation {
	display: none;
	gap: 10px;
	justify-content: center;
	margin-top: 20px;
}

@media (max-width: 768px) {
	.event-section-completed-mobile-only .timeline-navigation {
		display: flex;
	}
}

.timeline-prev,
.timeline-next {
	background: #f3f4f6;
	border: 2px solid #7BCEF4;
	border-radius: 13px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	color: #6b7280;
}

.timeline-prev:hover,
.timeline-next:hover {
	background: #2563eb;
	color: white;
}

.timeline-prev:disabled,
.timeline-next:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}
