.calendar-section {
    background: #f9fafc;
    color: #333;
    /*background-image: url("/public/images/calendar-bg.jpg");*/
    /*background-attachment: fixed;*/
    /*background-repeat: no-repeat;*/
    /*background-size: cover;*/
    /*height: 700px;*/
}

.calendar-container {
    display: flex;
    flex-wrap: wrap;
    margin: 40px auto;
    padding: 20px;
    gap: 20px;
}

.left-column {
    flex: 1;
    /*min-width: 280px;*/
}

.left-column h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.left-column p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.btn-main {
    display: inline-block;
    padding: 10px 20px;
    background: #2a41e8;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-main:hover {
    background: #2a41e8;
}

.right-column {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
    min-width: 320px;
}

.calendar-panel {
    flex: 1;
}

.events-panel {
    flex: 1;
    min-width: 250px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calendar-header button {
    padding: 6px 12px;
    border: none;
    background: #ddd;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-grid div {
    background: #f1f3f5;
    border-radius: 3px;
    text-align: center;
    padding: 10px 0;
    min-height: 50px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.calendar-grid .weekday {
    font-weight: bold;
    background: none;
    cursor: default;
}

.calendar-grid .today {
    background: #2a41e8;
    color: white;
}

.calendar-grid .has-event::after {
    /*border: 2px solid #eab821;*/
    content: "";
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    border-radius: 100%;
    background: #28b661;
}

.filters {
    margin-bottom: 10px;
}

.filters select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

#eventList {
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Общий стиль для дней */
#calendarGrid .day {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Когда день добавлен на страницу */
#calendarGrid .day.show {
    opacity: 1;
    transform: translateY(0);
}

@media screen and (max-width: 1024px) {
    .calendar-section {
        height: auto;
    }
}
