
/* Start: UOB90 Events Calendar */

/* Start: General */
.timeline-calendar{
    padding-top:40px;
}
.timeline-calendar .calendar-container {
    position: relative;
    border: 1px solid var(--light-9);
    border-radius: 10px;
    margin-bottom: 50px;
    overflow: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    touch-action: pan-y;
    height: auto;
}

.timeline-calendar .calendar-container::-webkit-scrollbar {
    display: none;
}

.timeline-calendar .calendar-header {
    margin-bottom: 30px;
    margin-top: 50px;
}

.timeline-calendar .calendar-wrapper {
    padding: 0 30px 0;
}

.timeline-calendar .monthsWrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.timeline-calendar .monthsContainer {
    transition: transform 0.3s ease-in-out;
    will-change: transform;
    position: relative;
    cursor: grab;
    user-select: none;
    display: flex;
    scroll-behavior: smooth;
}

.timeline-calendar .month {
    min-width: 50% !important;
    border-left: 1px solid var(--light-9);
    position: relative;
    flex: 1;
    box-sizing: border-box;
    overflow-y: visible;
    min-height: 600px;
}

.timeline-calendar .month:first-child {
    border-left: none;
}

.timeline-calendar .month-title {
    background-color: transparent;
    color: var(--text-primary);
    text-align: center;
    border-bottom: 1px solid var(--light-9);
    font-weight: 400;
    cursor: default;
}

.timeline-calendar .month.active .month-title {
    background-color: var(--primary);
    color: var(--white);
}

.timeline-calendar .month.selected .month-title {
    background-color: var(--primary);
    color: var(--white);
}

.timeline-calendar .month-click-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.timeline-calendar .month-click-btn:hover {
    text-decoration: underline;
}

.timeline-calendar .month-click-btn:focus {
    outline: none;
    box-shadow: none;
}

.timeline-calendar .month-click-btn:active,
.timeline-calendar .month-click-btn.active {
    color: inherit;
    background: none;
    border: none;
}

.timeline-calendar .event-month {
    font-size: 16px;
    line-height: 50px;
    letter-spacing: 0px;
    font-weight: 400;
}

.timeline-calendar .nav-btn-desktop {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background-color: var(--text-primary);
    color: var(--white);
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.timeline-calendar .nav-btn-desktop:hover {
    background-color: var(--white);
    border: 2px solid var(--primary);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s, box-shadow 0.2s;
}

.timeline-calendar .nav-btn-desktop:hover svg {
    stroke: var(--primary);
}

.timeline-calendar .nav-btn-desktop:focus {
    outline: none;
}

.timeline-calendar .nav-btn-desktop:active {
    transform: scale(0.95);
}

.timeline-calendar .nav-btn-desktop.side-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
}

.timeline-calendar .nav-btn-desktop.side-nav.left {
    left: 5px;
}

.timeline-calendar .nav-btn-desktop.side-nav.right {
    right: 5px;
}

.timeline-calendar .nav-btn-mobile {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background-color: var(--white);
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.timeline-calendar .nav-btn-mobile:focus {
    outline: none;
}

.timeline-calendar .prevBtn:disabled,
.timeline-calendar .nextBtn:disabled {
    opacity: 0.4 !important;
    pointer-events: none !important;
    cursor: default !important;
}

.timeline-calendar .event-card {
    background-color: var(--white);
    margin-left: 20px;
    margin-right: 20px;
    padding: 12px;
    gap: 10px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
    display: flex;
    box-sizing: border-box;
    z-index: 1;
}
.timeline-calendar .mobile-nav-btn-wrapper{
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.timeline-calendar .event-card.highlight {
    background-color: var(--primary);
    color: var(--white);
}

.timeline-calendar .event-card .event-img,
.timeline-calendar .event-card.single-month .event-img {
    height: 100px;
    width: 100%;
    max-width: 100px;
    aspect-ratio: 1 / 1;
}

.timeline-calendar .event-card .event-img {
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.timeline-calendar .event-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    white-space: normal;
}

.timeline-calendar .event-card.single-month .event-info,
.timeline-calendar .event-card .event-info {
    width: 100%;
}

.timeline-calendar .event-card.single-month .event-title,
.timeline-calendar .event-card .event-title {
    font-size: 14px;
}

.timeline-calendar .event-title {
    line-height: 100%;
    letter-spacing: 0px;
    font-weight: 400;
}

.timeline-calendar .event-icon {
    margin-right: 10px;
}

.timeline-calendar .event-card.highlight a {
    color: var(--white);
}

.timeline-calendar .event-card.past-event {
    background-color: #00000026;
    color: var(--gray-600);
}

.timeline-calendar .event-card.past-event .event-img {
    opacity: 60%;
}

.timeline-calendar .event-card.past-event a {
    color: var(--primary);
}

.timeline-calendar .view-more-btn {
    font-weight: 700;
    margin-top: auto;
}

.timeline-calendar .modal-img {
    border-radius: 8px;
    width: 100% !important;
    height: 250px !important;
    object-fit: cover;
}

.timeline-calendar .modal-title {
    margin-top: 10px;
    font-weight: 700;
    font-size: 20px;
    line-height: 154%;
    letter-spacing: 0px;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.timeline-calendar .modal-desc {
    font-size: 16px;
    line-height: 160%;
    font-weight: 400;
    letter-spacing: 0px;
    color: var(--text-primary);
}

.timeline-calendar .modal-date,
.timeline-calendar .modal-location {
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.timeline-calendar .modal-button {
    font-size: 15px;
    line-height: 24px;
    font-weight: 700;
    letter-spacing: 0px;
    width: 100%;
}

/* End: General */

/* Start: Mobile */
@media (max-width: 480px) {
    .timeline-calendar .monthsContainer {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .timeline-calendar .month {
        min-width: 80% !important;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .timeline-calendar .event-card {
        margin-left: 15px;
    }

    .timeline-calendar .month-click-btn:hover {
        text-decoration: none;
    }
}

@media (min-width: 768px) {
  

    .timeline-calendar .calendar-wrapper {
        padding: 20px 60px 0;
    }

    .timeline-calendar .month {
        min-width: 50% !important;
    }

    .timeline-calendar .event-card {
        gap: 24px;
    }

    .timeline-calendar .event-title {
        font-size: 18px !important;
    }

    .timeline-calendar .modal-button {
        width: unset;
    }

    .timeline-calendar .modal-img {
        height: 100% !important;
    }
}

@media screen and (max-width: 991px) and (min-width: 768px) {
    .timeline-calendar .modal-dialog {
        max-width: 600px !important;
    }
}

/* End: Mobile */

/* Start: Tablet */
@media (min-width: 992px) {
    .timeline-calendar .event-card .event-img {
        width: 100px;
        height: 100px;
    }

    .timeline-calendar .event-title {
        font-size: 18px;
    }
}

/* End: Tablet */

/* Start: Desktop */
@media (min-width: 1200px) {
    .timeline-calendar .calendar-wrapper {
        padding: 20px 150px 0;
    }
}

@media (min-width: 1301px) {
    .timeline-calendar .month {
        min-width: 25% !important;
    }
}

/* End: Desktop */

/* End: UOB90 Events Calendar */