/* Events Carousel Widget Styles */
.events-carousel-widget {
    max-width: 1260px;
    margin: 0 auto;
    padding: 40px 0; /* brak bocznego paddingu, aby belka i grid miały pełne 1260px */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.events-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.events-carousel-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.events-carousel-dash {
    width: 24px;
    height: 4px;
    background-color: #039;
    border-radius: 2px;
}

.events-carousel-title {
    color: #000;
    font-family: Sora, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.375rem;
    font-style: normal;
    font-weight: 600;
    line-height: 33.6px; /* 152.727% */
    margin: 0;
}

.events-carousel-view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--4, #BE186F);
    text-decoration: none;
    font-family: Sora, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 600;
    line-height: 16px; /* 114.286% */
    letter-spacing: 0.14px;
    text-transform: uppercase;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 2px solid #fff; /* stała grubość, brak skoku */
}

.events-carousel-view-all:hover {
    color: #039 !important; /* efekt hover */
    border-bottom-color: #039; /* zmiana koloru bez zmiany wysokości */
    transform: none;
    box-shadow: none;
}

.events-carousel-view-all .arrow-icon path {
    stroke: var(--4, #BE186F);
}

.events-carousel-view-all:hover .arrow-icon path {
    stroke: #039;
}

.events-carousel-view-all .arrow-icon {
    width: 20px;
    height: 21px;
    display: inline-block;
}

.events-carousel-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #039;
    color: #fff;
    padding: 15px 30px;
    border-radius: 0;
    margin-bottom: 16px; /* 16px pod belką */
    gap: 20px;
}

.nav-arrow {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    outline: none;
}

.nav-arrow:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-arrow:focus {
	border: 2px solid white;
    background-color: transparent;
    outline: none;
}

.nav-arrow:active {
	border: 2px solid white;
    background-color: transparent;
}

.current-month-year {
    font-size: 1.125rem;
    font-weight: 600;
    min-width: 150px;
    text-align: center;
}

.events-carousel-content {
    position: relative;
    min-height: 200px;
}

.events-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #626262;
    border-top: 4px solid #BE186F;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
    margin: 0;
}

.event-card {
    background: transparent;
    border: none;
    border-right: 1px solid #E1E1E1;
    border-radius: 0;
    padding: 16px 16px 16px 16px; /* 16px od belki + 16px margin pod belką = 32px łącznie */
    box-shadow: none;
    transition: none;
    position: relative;
}



.event-card-date {
    color: var(--Text-Secondary, #4C4849);
    font-family: Sora, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 28px; /* 175% */
    margin-bottom: 16px; /* odstęp do taksonomii */
}

.event-card-category {
    color: #626262;
    font-family: Sora, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
    line-height: 21px; /* 131.25% */
    margin-bottom: 32px; /* odstęp do tytułu */
    position: relative;
    padding-left: 15px;
}

.event-card-category::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 12px;
    background-color: #BE186F;
    border-radius: 2px;
}

.event-card-title {
    overflow: hidden;
    color: var(--bl, #101010);
    text-overflow: ellipsis;
    font-family: Sora, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.75rem;
    font-style: normal;
    font-weight: 700;
    line-height: 34px; /* 121.429% */
    margin: 0 0 32px 0; /* odstęp do przycisku */
}

.event-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--4, #BE186F);
    text-align: center;
    text-decoration: none;
    font-family: Sora, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; /* 171.429% */
    text-transform: uppercase;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 2px solid #fff; /* stała grubość, brak skoku */
}

.event-card-link:hover {
    color: #039 !important;
    border-bottom-color: #039;
}

.event-card-link .arrow-icon path {
    stroke: var(--4, #BE186F);
}

.event-card-link:hover .arrow-icon path {
    stroke: #039;
}

.event-card-link .arrow-icon {
    width: 20px;
    height: 21px;
    display: inline-block;
}

.no-events {
    text-align: center;
    color: #626262;
    font-size: 1.125rem;
    font-weight: 500;
    padding: 60px 20px;
    background: transparent;
    border-radius: 0;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .events-carousel-widget {
        padding: 20px 15px;
    }
    
    .events-carousel-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .events-carousel-title {
        font-size: 1.5rem;
    }
    
    .events-carousel-navigation {
        padding: 12px 20px;
        gap: 15px;
    }
    
    .current-month-year {
        font-size: 1rem;
        min-width: 120px;
    }
    
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    
    .event-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .events-carousel-title {
        font-size: 1.25rem;
    }
    
    .events-carousel-navigation {
        padding: 10px 15px;
    }
    
    .nav-arrow {
        font-size: 1.25rem;
        padding: 3px 8px;
    }
    
    .current-month-year {
        font-size: 0.875rem;
        min-width: 100px;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }
}
