#custom-calendar {
    font-family: inherit;
}

.public-calendar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0 1.1rem;
    margin-bottom: 0.5rem;
}

.public-calendar__range {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.public-calendar__nav {
    display: inline-flex;
    gap: 0.6rem;
}

.public-calendar__nav-button,
.public-calendar__today {
    min-height: 44px;
    border-radius: 8px;
    font-weight: 700;
}

.public-calendar__nav-button {
    min-width: 44px;
}

.public-calendar__range-copy {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.public-calendar__date-range {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.public-calendar__view-buttons {
    display: inline-flex;
    gap: 0.6rem;
}

.public-calendar__view-buttons .btn {
    min-height: 44px;
    min-width: 96px;
    border-radius: 8px;
    font-weight: 700;
}

.public-calendar__view-buttons .btn.btn-light {
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.public-calendar__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.75rem;
}

.calendar-body .weekdays .com-day {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.75rem;
    border-radius: 8px;
    background: #eff6ff;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 700;
}

.calendar-body .weekdays .day-active,
.today-event {
    background: linear-gradient(135deg, #0c66e4 0%, #2563eb 100%) !important;
    color: #fff !important;
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.75rem;
    min-height: 520px;
}

.day-column {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.9rem;
    border-radius: 8px;
    background: #f8fbff;
    border: 1px solid rgba(148, 163, 184, 0.16);
    overflow-y: auto;
}

.day-column.light-grey-bg,
.weekdays .com-day.light-grey-bg {
    background: #f1f5f9;
}

.day-column .date {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    text-align: left;
}

.event {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0;
    padding: 0.95rem;
    min-height: 112px;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.event-time {
    font-weight: 800;
    margin-right: 0;
}

.day-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.time-slot,
.event-container {
    width: 100%;
}

.time-slot {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0;
}

.time {
    width: 100%;
    text-align: left;
    padding: 0;
    color: #0f172a;
    font-weight: 800;
    font-size: 1rem;
}

.event-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
    gap: 1rem;
    align-items: center;
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 1.55rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.event-content .text-box-our {
    position: relative;
    padding-left: 1.1rem;
}

.event-bar {
    position: absolute;
    left: 0;
    top: 0.25rem;
    bottom: 0.25rem;
    width: 6px;
    background: linear-gradient(180deg, #0c66e4 0%, #0f766e 100%);
    border-radius: 8px;
}

.event-datetime {
    font-size: 0.92rem;
    color: #64748b;
    margin-bottom: 0.55rem;
    font-weight: 700;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.event-title a {
    color: #0f172a;
    text-decoration: none;
}

.event-title a:hover {
    color: #0c66e4;
    text-decoration: none;
}

.text-box-our p,
.event-description {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.75;
    color: #475569;
}

.img-box-our {
    display: flex;
    justify-content: flex-end;
}

.event-image {
    width: 100%;
    max-width: 320px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

@media (max-width: 991.98px) {
    .public-calendar__header {
        flex-direction: column;
        align-items: stretch;
    }

    .public-calendar__view-buttons {
        justify-content: stretch;
    }

    .public-calendar__view-buttons .btn {
        flex: 1 1 0;
    }

    .week-grid {
        min-height: 460px;
    }

    .event-content {
        grid-template-columns: 1fr;
    }

    .img-box-our {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .public-calendar__range,
    .public-calendar__range-copy,
    .public-calendar__nav {
        width: 100%;
    }

    .public-calendar__range-copy {
        align-items: stretch;
    }

    .public-calendar__today,
    .public-calendar__date-range,
    .public-calendar__nav-button {
        justify-content: center;
    }

    .public-calendar__date-range {
        display: block;
        width: 100%;
        padding: 0.8rem 1rem;
        border-radius: 8px;
        background: #f8fafc;
        text-align: center;
    }

    .weekdays {
        display: none;
    }

    .week-grid {
        display: flex;
        gap: 0.9rem;
        overflow-x: auto;
        min-height: 0;
        padding-bottom: 0.35rem;
        scroll-snap-type: x proximity;
    }

    .day-column {
        min-width: min(82vw, 320px);
        scroll-snap-align: start;
        max-height: none;
    }

    .event {
        min-height: 96px;
        padding: 0.85rem;
        font-size: 0.95rem;
    }

    .event-content {
        padding: 1rem;
        border-radius: 8px;
    }

    .event-content .text-box-our {
        padding-left: 0.95rem;
    }

    .event-title {
        font-size: 1.05rem;
    }

    .event-image {
        max-width: 100%;
    }
}
