

/* Start:/local/templates/.default/components/bitrix/news/events/bitrix/news.list/calendar/style.css?17859446256005*/
/* ══════════════════════════════════════════════
   Calendar Events — inspired by event poster design
   ══════════════════════════════════════════════ */

/* Month Section */
.calendar-section {
    margin-bottom: 40px;
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
    flex: 0 0 auto;
    overflow: hidden;
    box-sizing: border-box;
}

@media only screen and (min-width: 768px) {
    .calendar-section {
        width: calc(100% - 60px);
        margin-left: 30px;
        margin-right: 30px;
    }
}

.calendar-section__title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: Gilroy, sans-serif;
    font-weight: 900;
    font-size: 22px;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #aaa;
    margin: 0 0 20px;
    padding: 0;
}

.calendar-section__title::before {
    content: '';
    display: block;
    width: 6px;
    height: 20px;
    border-radius: 3px;
    background: #FC4646;
    flex-shrink: 0;
}

.calendar-section__title::after {
    content: '';
    display: block;
    flex: 1;
    height: 1px;
    background: #eee;
}

/* ── Featured Grid (current month with images) ── */
.calendar-featured {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    min-width: 0;
}

@media only screen and (min-width: 768px) {
    .calendar-featured {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* Featured card — photo overlay style */
.calendar-card-featured {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    display: block;
    border: 2px solid #171819;
    background: #FDFBF6;
}

/* Mobile: card-style with image on top, text below */
@media only screen and (max-width: 767px) {
    .calendar-card-featured {
        display: flex;
        flex-direction: column;
        color: #171819;
    }

    .calendar-card-featured .calendar-card-featured__image {
        position: relative;
        width: 100%;
        aspect-ratio: 16/9;
        object-fit: cover;
    }

    .calendar-card-featured .calendar-card-featured__info {
        position: relative;
        padding: 16px;
        background: #FDFBF6;
    }

    .calendar-card-featured .calendar-card-featured__date {
        color: #FC4646;
    }

    .calendar-card-featured .calendar-card-featured__title {
        color: #171819;
        font-size: 1.2rem;
    }

    .calendar-card-featured::after {
        display: none;
    }
}

/* Desktop: photo overlay style */
@media only screen and (min-width: 768px) {
    .calendar-card-featured {
        aspect-ratio: 4/3;
        border: none;
        background: none;
    }
}

.calendar-card-featured__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media only screen and (min-width: 768px) {
    .calendar-card-featured__image {
        position: absolute;
        inset: 0;
        transition: transform 0.7s ease;
    }

    .calendar-card-featured:hover .calendar-card-featured__image {
        transform: scale(1.04);
    }
}

/* Gradient overlay — desktop only */
@media only screen and (min-width: 768px) {
    .calendar-card-featured::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.05) 100%);
        pointer-events: none;
    }
}

/* Bottom info */
.calendar-card-featured__info {
    padding: 16px;
    z-index: 2;
}

@media only screen and (min-width: 768px) {
    .calendar-card-featured__info {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 20px;
    }
}

.calendar-card-featured__date {
    font-family: Gilroy, sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

@media only screen and (min-width: 768px) {
    .calendar-card-featured__date {
        font-size: 24px;
        color: rgba(255, 255, 255, 0.6);
    }
}

.calendar-card-featured__title {
    font-family: Gilroy, sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    line-height: 1.2;
    color: #171819;
}

@media only screen and (min-width: 768px) {
    .calendar-card-featured__title {
        font-size: 2.2rem;
        color: #fff;
    }
}

/* No-image fallback for featured cards */
.calendar-card-featured--no-image {
    background: #171819;
}

.calendar-card-featured--no-image::after {
    display: none;
}

/* ── List (future months — minimal rows) ── */
.calendar-list {
    display: flex;
    flex-direction: column;
}

.calendar-list-item {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 14px 12px;
    cursor: default;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: #111;
}

.calendar-list-item:last-child {
    border-bottom: none;
}

.calendar-list-item:hover {
    background: #fafafa;
}

.calendar-list-item__date {
    flex-shrink: 0;
    width: 120px;
    font-family: Gilroy, sans-serif;
    font-weight: 900;
    font-size: 28px;
    letter-spacing: 0.02em;
    color: #FC4646;
}

.calendar-list-item__title {
    flex: 1;
    font-family: Gilroy, sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.3;
    color: #111;
    transition: color 0.2s ease;
}

.calendar-list-item:hover .calendar-list-item__title {
    color: #FC4646;
}

/* ── Empty State ── */
.calendar-empty {
    padding: 40px 20px;
    text-align: center;
    font-family: Gilroy, sans-serif;
    font-size: 18px;
    line-height: 26px;
    color: #171819;
    opacity: 0.6;
}

/* End */
/* /local/templates/.default/components/bitrix/news/events/bitrix/news.list/calendar/style.css?17859446256005 */
