.mechlab__events .container-fluid {
    max-width: 1520px;
}
.events-calendar {
    width: 100%;
    display: inline-block;
    height: auto;
    padding: 0;
    margin: 30px 0 20px 0;
}

.events-calendar-inner {
    display: inline-block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    margin: 0 -10px;
    align-items: center;
}

.calendar-header .month-tab {
    display: flex;
    align-items: center;
    margin: 0 -1px;
    padding: 0 10px;
}

.calendar-header .month-tab a {
    border: 1px dashed transparent;
    box-sizing: border-box;
    backdrop-filter: blur(20px);
    border-radius: 5px;
    display: inline-block;
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 32px;
    color: #FFFFFF;
    margin: 1px;
    padding: 11px 31px;
    opacity: 0.5;
}
.calendar-header .month-tab a.active, .calendar-header .month-tab a:hover {
    border-color: #fff;
    opacity: 1;
}
.calendar-nav {
    display: flex;
    align-items: center;
    margin: 0px;
    padding: 0 10px;
}

.calendar-nav button {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    border-radius: 50px;
}
.calendar-nav button:hover {
    background: #3F3464
}
.calendar-nav .year-title {
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 32px;
    text-align: center;
    color: #FFFFFF;
    min-width: 140px;
    margin: 0 5px;
}

.calendar-body table {
    width: 100%;
    border: none;
}

.calendar-body {
    width: 100%;
    height: auto;
    padding: 32px 0 0;
    margin: 0;
    overflow-x: auto;
}

.calendar-body table th {
    background: #3F3464;
    font-family: Poppins;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 28px;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFFFFF;
    padding: 22px 5px;
    min-width: 200px;
    border-top: none;
    border-left: none;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    mix-blend-mode: normal;
}
.calendar-body table th:last-child {
    border-right: none;
}

.calendar-body table td {
    background: #FFFFFF;
    padding: 5px;
    font-family: Poppins;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    text-align: right;
    text-transform: capitalize;
    color: #777E90;
    vertical-align: bottom;
    border-top: none;
    border-left: none;
    border-right: 1px solid #E1E5F8;
    border-bottom: 1px solid #E1E5F8;
    position: relative;
    z-index: 0;
}
.calendar-body table td:last-child {
    border-right: none;
}
.calendar-body table td a {
    display: inline-block;
    width: 100%;
    cursor: pointer;
}
.calendar-body table td a:after {
    content: "";
    border: 1px solid #fff;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}
.calendar-body table td a.active:after {
    border-color: #3F3464;
}
.calendar-body table td ul {
    margin: 0;
    padding: 0 0 5px 0;
    text-align: left;
}
.calendar-body table td ul li {
    margin: 0 0 3px 0;
    padding: 2px 10px;
    text-align: left;
    background: #F0F2FB;
    border: 1px solid #D5D9EB;
    box-sizing: border-box;
    border-radius: 5px;
    font-family: Poppins;
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    line-height: 24px;
    color: #697BDE;
    position: relative;
    z-index: 0;
    white-space: nowrap;
    width: 100%;
    max-width: 190px;
    overflow: hidden;
}
.calendar-body table td ul li:nth-child(n+4) {
    display: none;
}
.calendar-body table td ul li:after {
    content: "";
    background: linear-gradient(270deg, #F0F2FB 4.69%, rgba(240, 242, 251, 0) 115.62%);
    background: -webkit-linear-gradient(270deg, #F0F2FB 4.69%, rgba(240, 242, 251, 0) 115.62%);
    background: -moz-linear-gradient(270deg, #F0F2FB 4.69%, rgba(240, 242, 251, 0) 115.62%);
    border-radius: 5px;
    position: absolute;
    width: 30%;
    height: 100%;
    right: 0;
    top: 0;
}

.calendar-body table td .event-count {
    position: absolute;
    left: 8px;
    bottom: 9px;
    font-weight: bold;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #697BDE;
    z-index: 0;
}
.calendar-body table td .fc-day-number {
    display: block;
    color: #777E90;
}
.calendar-modal {
    width: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 0;
    margin: 0 auto;
    left: 0;
    right: 0;
    text-align: center;
    border: none;
    transform: translate(0px, -200px);
    transition: all 0.3s ease-in-out;
    visibility: hidden;
    opacity: 0;
}
.calendar-modal.show {
    transform: translate(0px, 0px);
    visibility: visible;
    opacity: 1;
}
.calendar-modal .modal-content {
    border: none;
    display: block;
    padding: 24px;
    background: #FFFFFF;
    box-shadow: 6px 12px 40px rgba(63, 52, 100, 0.12);
    border-radius: 5px;
    margin: 0 auto;
    max-width: 498px;
    text-align: left;
    width: 100%;
}

.calendar-modal .modal-content .modal-header {
    border: none;
    padding: 8px 0 30px;
}

.calendar-modal .modal-content .modal-header .modal-title {
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    color: #3F3464;
}
.calendar-modal .modal-content .modal-header .close {
    cursor: pointer;
}
.calendar-modal .modal-content .modal-body {
    display: block;
    padding: 0;
}

.calendar-modal .modal-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 396px;
    overflow-y: auto;
}
.calendar-modal .nicescroll-rails {
    margin: 0 0 0 15px;
}
.calendar-modal .modal-content ul li {
    list-style: none;
    width: 100%;
    margin: 0 0 12px 0;
}
.calendar-modal .modal-content ul li:last-child {
    margin-bottom: 0;
}

.calendar-modal .modal-content ul li .event-box {
    display: flex;
    align-items: center;
    margin: 0;
    background: #F0F2FB;
    border: 1px solid #D5D9EB;
    box-sizing: border-box;
    border-radius: 5px;
    padding: 12px 24px 12px 12px;
}

.calendar-modal .modal-content ul li .event-box > img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    margin: 0 24px 0 0;
    border-radius: 5px;
}

.calendar-modal .modal-content ul li h6 {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    text-transform: uppercase;
    color: #697BDE;
}

.calendar-modal .modal-content ul li .time {
    font-size: 14px;
    line-height: 24px;
    color: #697BDE;
    margin: 0;
}

.calendar-modal .modal-content ul li .event-text {
    position: relative;
    z-index: 0;
}

.calendar-modal .modal-content ul li .event-text span.event-link {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
}

@media screen and (max-width: 768px) {
    .calendar-modal .modal-content .modal-header .modal-title {
        font-size: 22px;
        line-height: 30px;
    }
    .calendar-modal .modal-content ul li h6 {
        font-size: 14px;
        line-height: 20px;
    }
    .calendar-header .month-tab a {
        font-size: 18px;
        line-height: 30px;
        padding: 9px 21px;
    }
    .calendar-nav button {
        width: 30px;
    }
    .calendar-nav .year-title {
        font-size: 18px;
        line-height: 28px;
        min-width: 130px;
    }
}

@media screen and (max-width: 580px) {

    .calendar-header .month-tab a {
        font-size: 16px;
        line-height: 28px;
        padding: 8px 15px;
    }
    .calendar-nav button {
        width: 25px;
    }
    .calendar-nav .year-title {
        font-size: 16px;
        line-height: 26px;
        min-width: 120px;
    }

}
@media screen and (max-width: 480px) {
    .calendar-header {
        flex-wrap: wrap;
        justify-content: center;
    }
    .calendar-header .month-tab a {
        padding: 8px 25px;
    }
    .calendar-nav {
        margin-top: 20px;
    }
    .calendar-nav button {
        width: 35px;
    }
    .calendar-nav .year-title {
        font-size: 18px;
        line-height: 26px;
        min-width: 150px;
    }
    .calendar-modal .modal-content {
        padding: 15px;
    }
    .calendar-modal .modal-content .modal-header {
        border: none;
        padding: 0 0 20px;
    }
    .calendar-modal .modal-content .modal-header .modal-title {
        font-size: 18px;
        line-height: 28px;
    }
    .calendar-modal .modal-content ul {
        max-height: 336px;
    }
    .calendar-modal .modal-content ul li .event-box > img {
        width: 76px;
        height: 76px;
        margin: 0 14px 0 0;
    }
    .calendar-modal .modal-content ul li h6 {
        font-size: 12px;
        line-height: 16px;
    }
    .calendar-modal .modal-content ul li h6 {
        font-size: 12px;
        line-height: 16px;
    }   
    .calendar-body table th {
        font-size: 14px;
        line-height: 28px;
        letter-spacing: 1px;
        padding: 17px 5px;
        min-width: 160px;
    }
    .calendar-body table td ul li {
        font-size: 13px;
        line-height: 24px;
        max-width: 150px;
    }
}