.calendar-table thead th{text-align:center;background: #83918F;
    color: #fff;}
.event-calendar {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    font-family: "Manrope";
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.event-calendar,
.calendar-table,
.calendar-day,
main,
.content-area {
    overflow: visible !important;
}
.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid #83918F;
}

.calendar-navigation h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.calendar-nav {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.2s ease;
}

.calendar-nav:hover {
    color: #000;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    
}

.calendar-table th,
.calendar-table td {
    width: 14.2857%;
    padding: 16px;
    text-align: left;
    border: 1px solid #83918F;
    vertical-align: top;
}

.calendar-table th {
    background-color: #f9f9f9;
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-day {
    position: relative;
    height: 60px;
    min-height: 60px;
    padding-bottom: 10px;
    overflow: hidden; /* Приховує надлишок */
}

.calendar-day .day-number {
    font-size: 1.1em;
    font-weight: 500;
    color: #666;
    margin: 0;
    line-height: 1;
    display: block;
}

.calendar-day.today .day-number {
    font-weight: bold;
    color: #000;
}

.calendar-day .event-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85em;
    line-height: 1.3;
    padding: 6px 8px;
    margin: 4px 0;
    border-radius: 4px;
    background: #f9f9f9;
    transition: background 0.2s ease;
    opacity: 0.9;
    max-width: 100%;
}

.calendar-day .event-item:hover {
    opacity: 1;
    background: #f1f1f1;
    cursor: pointer;
}

.calendar-day .event-item .time {
    display: block;
    font-size: 0.75em;
    color: #666;
    margin-bottom: 2px;
}

.calendar-day .event-item .title {
    font-weight: 500;
    margin: 0;
}

.calendar-day .event-item img {
    width: 100%;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 4px;
}

.calendar-day .event-item + .event-item {
    margin-top: 4px;
}
.event-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    max-width: 300px;
    min-width: 250px;
    font-size: 0.9em;
    width: auto;
    pointer-events: none; /* щоб не ловити hover */
}

.event-tooltip img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.event-tooltip h4 {
    margin: 0 0 6px 0;
    font-size: 1em;
    color: #333;
}

.event-tooltip p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 0.9em;
}

.event-tooltip a {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background 0.2s ease;
}

.event-tooltip a:hover {
    background: #005a87;
}
.event-item .event-marker {
    display: inline-block;
    width: 6px;
    height: 100%;
    background: #3498db;
    margin-right: 6px;
    border-radius: 2px;
}