.calendar-container {
    max-width: 800px;
    margin: 30px auto;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.events-barrel {
    position: relative;
    height: 450px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    border: 2px dashed #f0f0f0;
    border-radius: 10px;
    padding: 10px 0;
}

.events-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    transition: transform 0.5s ease;
    width: 100%;
    padding: 10px 0;
}

.event-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #e0e0e0;
    width: 90%;
    max-width: 600px;
    position: relative;
    min-height: 220px; /* Уменьшил высоту так как кнопки нет */
    margin: 5px 0;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #182082;
}

.event-card.active {
    border-color: #9b4351;
    background: linear-gradient(135deg, #fff, #f8f9ff);
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(155, 67, 81, 0.2);
}

.event-card.past {
    opacity: 0.7;
    background: #f8f9fa;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.event-date {
    font-size: 1.1rem;
    font-weight: bold;
    color: #182082;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.event-card.active .event-date {
    background: #9b4351;
    color: white;
    border-color: #9b4351;
}

.event-type {
    font-size: 0.9rem;
    color: #666;
    background: #e9ecef;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #d0d0d0;
}

.event-title {
    font-size: 1.3rem;
    color: #182082;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.3;
}

.event-card.active .event-title {
    color: #9b4351;
}

.event-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.event-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #555;
}

.event-location::before {
    content: "📍";
    margin-right: 5px;
}

.event-time::before {
    content: "🕒";
    margin-right: 5px;
}

.event-participants::before {
    content: "👥";
    margin-right: 5px;
}

.calendar-hint {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 20px;
    font-style: italic;
    line-height: 1.4;
}

/* Адаптивность */
@media (max-width: 768px) {
    .calendar-container {
        margin: 20px auto;
        padding: 20px;
    }
    
    .events-barrel {
        height: 400px;
        padding: 5px 0;
    }
    
    .event-card {
        padding: 20px;
        width: 95%;
        min-height: 200px; /* Уменьшил для мобильных */
        margin: 3px 0;
    }
    
    .event-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .event-title {
        font-size: 1.1rem;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .events-track {
        gap: 20px;
    }
}

/* Дополнительные стили для лучшей видимости рамок */
.event-card:first-child {
    margin-top: 0;
}

.event-card:last-child {
    margin-bottom: 0;
}
.nearest-indicator {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #9b4351;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(155, 67, 81, 0.3);
}
.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #182082;
    text-decoration: none; /* Убеждаемся, что нет подчеркивания */
    color: inherit; /* Убеждаемся, что цвет не меняется */
}
