main {
    display: flex;
    flex-direction: column;
    padding: 4rem;
    gap: 2rem;
}

#featured-event {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #140f09;
    border-radius: 15px;
}

#featured-event img {
    width: 100%;
    height: 100%;
    border-radius: 15px 0 0 15px;
    object-fit: cover;
}

#featured-event #featured-event-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .8rem;
}

#featured-event #featured-event-info * {
    color: var(--bg-light);
}

#featured-event #featured-event-info h3 {
    font-size: 0.8rem;
    opacity: 0.8;
}

.event-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#featured-event #featured-event-info a,
.event-info-container a {
    background-color: var(--ukrainian-gold-dark);
    padding: .5rem;
    width: fit-content;
    border-radius: 8px;
    color: #140f09;
    font-weight: bold;
    text-decoration: none;
}

.event-description {
    opacity: 0.9;
}

#event-list {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
}

#filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#calendar-card {
    background: #f8f2e6;
    border: 1px solid #e7dfd0;
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    width: 320px;
}

.calendar-header-row {
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 0.5rem;
}

.calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 .3rem;
    table-layout: fixed;
}

.calendar-table th {
    color: #847c70;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    padding: 4px 2px;
}

.calendar-table td {
    text-align: center;
    padding: 6px 0;
    border-radius: 10px;
    color: #2d2a26;
    font-weight: 600;
    user-select: none;
}

.calendar-table td.has-event {
    background: #f6b220;
    color: #1f1a12;
}

.calendar-table td.empty {
    color: #b8b0a3;
    opacity: 0.45;
}

#events-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-card {
    display: flex;
    align-content: center;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border: 1px solid #e7dfd0;
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.event-card .image-container {
    display: flex;
    flex: 0 0 clamp(200px, 50%, 500px);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-radius: 6px;
    aspect-ratio: 16 / 9;
}

.event-card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.event-date-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    aspect-ratio: 1;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    height: 4.5rem;
}

.event-date-badge span {
    font-size: 1rem;
}

.event-date-badge span:last-child {
    font-size: 1.5rem;
}

.event-title {
    font-weight: bold;
    font-size: 2.5rem;
    color: var(--text-dark);
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-info-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: space-between;
}