
.tab-calendar{display: none;}
.tab-calendar.active {
    display: flex;
}
#homepage .mini-calendar,
#freeform.department .mini-calendar{
    display: block!important;
    box-shadow: 0px 4px 16px 0px rgb(0 0 0 / 55%);
    background: rgb(221 240 249);
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 41px 34px 25px;
    width: 48%;
}
.mini-events-list.mini-list-loaded {
    display: block !important;
    width: 52%;
    margin-left: 30px;
}
#homepage .fc-toolbar-title ,
#freeform.department .fc-toolbar-title {color: #00152D;font-size: 32px; /* 38.4px */font-weight: 800;}

#homepage .fc-prev-button, #homepage .fc-next-button ,
#freeform.department .fc-prev-button, #freeform.department .fc-next-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: unset!important;
    border-color: transparent;
    padding: 0
}

#homepage .fc-prev-button .fc-icon, #homepage .fc-next-button .fc-icon,
#freeform.department .fc-prev-button .fc-icon, #freeform.department .fc-next-button .fc-icon {
    vertical-align: unset;
    font-size: unset;
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #B0B0B0;
    padding-top: 1px;
}

#homepage .fc-icon-chevron-left:before, #freeform.department .fc-icon-chevron-left:before {content: "\f0d9";font-family: fontawesome;color: #191919;font-size: 16px;position: relative;z-index: 1;}

#homepage .fc-icon-chevron-right:before,
#freeform.department .fc-icon-chevron-right:before {content: "\f0da";font-family: fontawesome;font-size: 16px;color: #191919;position: relative;z-index: 1;}

#homepage .fc-button-group,
#freeform.department .fc-button-group {
    display: none
}

#homepage .fc-button-group button,
#freeform.department .fc-button-group button {
    border-radius: unset;
    flex: unset
}

.fc .fc-scrollgrid-section-header>th {
    background: transparent;
}

#homepage .fc-toolbar.fc-header-toolbar,
#freeform.department .fc-toolbar.fc-header-toolbar {
    margin-bottom: 31px;
}

#homepage .fc .fc-daygrid-day-top,
#freeform.department .fc .fc-daygrid-day-top {
    justify-content: center
}

#homepage .fc-theme-standard td, .fc-theme-standard th,
#freeform.department .fc-theme-standard td, .fc-theme-standard th {
    border: none
}

#homepage .fc-theme-standard .fc-scrollgrid ,
#freeform.department .fc-theme-standard .fc-scrollgrid {
    border: none;
}

#homepage .fc-dayGridMonth-view .fc-daygrid-day-events,
#freeform.department .fc-dayGridMonth-view .fc-daygrid-day-events {
    display: none
}

#homepage .fc-col-header-cell a ,
#freeform.department .fc-col-header-cell a {
    font-size: 16px;
    font-weight: 700;
    color: #00152D;
    text-decoration: none;
    padding: 0px 0;
}

#homepage a.fc-daygrid-day-number,
#freeform.department a.fc-daygrid-day-number {
    font-size: 16px;
    font-weight: 700;
    color: #20282c;
    text-decoration: none;
    pointer-events: none;
    padding: 6px 0;
    margin: 1px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#homepage .day-has-event.fc-day-today a.fc-daygrid-day-number ,
#freeform.department .day-has-event.fc-day-today a.fc-daygrid-day-number {
    color: #fff;
    text-decoration: underline;
}

#homepage .fc .fc-daygrid-day.fc-day-today ,
#freeform.department .fc .fc-daygrid-day.fc-day-today {
    background-color: unset
}

#homepage .fc-dayGridMonth-view .fc-day-today .fc-daygrid-day-top a 
#freeform.department .fc-dayGridMonth-view .fc-day-today .fc-daygrid-day-top a {
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 100%;
    text-decoration: none
}

#homepage .fc-dayGridMonth-view .fc-day-today .fc-daygrid-day-top a::after,
#freeform.department .fc-dayGridMonth-view .fc-day-today .fc-daygrid-day-top a::after {
    background: #B0B0B0 !important;
}

#homepage .fc-event:hover ,
#freeform.department .fc-event:hover {
    color: #000!important
}

#homepage .fc .fc-day-other .fc-daygrid-day-top,
#freeform.department .fc .fc-day-other .fc-daygrid-day-top {
    opacity: 1
}

#homepage .fc .fc-day-other .fc-daygrid-day-top a,
#freeform.department .fc .fc-day-other .fc-daygrid-day-top a {
    color: #727272;
    font-weight: 400;
}

#homepage .fc-toolbar-chunk:nth-of-type(1),
#freeform.department .fc-toolbar-chunk:nth-of-type(1) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end
}

#homepage .fc-toolbar-chunk:nth-of-type(1) .fc-today-button,
#freeform.department .fc-toolbar-chunk:nth-of-type(1) .fc-today-button {
    margin-right: 75px;
    background: #708989;
    padding: 0 5px;
    border-radius: unset;
    line-height: 1.2;
    height: 24px
}

#homepage .fc-toolbar-chunk:nth-of-type(1) .fc-button-group:nth-of-type(1),
#freeform.department .fc-toolbar-chunk:nth-of-type(1) .fc-button-group:nth-of-type(1) {
    position: absolute;
    left: 33px;
    top: 44px;
    width: calc(100% - 66px);
    display: flex;
    justify-content: space-between;
}

#homepage .fc-toolbar-chunk:nth-of-type(3),
#freeform.department .fc-toolbar-chunk:nth-of-type(3) {
    width: 100%;
    text-align: center;
    margin: 0 30px;
}

#homepage .fc-toolbar-chunk .fc-dayGridMonth-button,
#freeform.department .fc-toolbar-chunk .fc-dayGridMonth-button {
    background: #708989!important;
    padding: 0 5px;
    position: absolute;
    top: 0;
    right: 17px;
    margin: 0;
    border: none;
    border-radius: 0;
    height: 24px
}

#homepage .day-has-event .fc-daygrid-day-top a ,
#freeform.department .day-has-event .fc-daygrid-day-top a {
    color: #fff!important;
    font-weight: 700!important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 100%;
    text-decoration: none;
    pointer-events: all
}

#homepage .day-has-event .fc-daygrid-day-top a::after,
#freeform.department .day-has-event .fc-daygrid-day-top a::after {
    content: '';
    background: #032431 !important;
    background: var(--custom-background-color)!important;
}
#homepage .fc-daygrid-day-top a::after,
#freeform.department .fc-daygrid-day-top a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 37px;
    border-radius: 5px;
    background: transparent;
    z-index: -1;
}
#homepage .day-has-event .fc-daygrid-day-top a:hover,
#freeform.department .day-has-event .fc-daygrid-day-top a:hover {
    opacity: 1
}

#homepage .event ,
#freeform.department .event {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    cursor: pointer;
    height: 116px;
    overflow: hidden;
    transition: all 0.3s;
    border-radius: 4px;
    background: rgba(249, 249, 249, 0.58);
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.08);
}

#homepage .event:hover time ,
#freeform.department .event:hover time {
    background: #98242B;
}

#homepage .event:hover,
#freeform.department .event:hover{border-radius: 8px;border-color: rgb(127 196 102 / 100%);}
#homepage .event:not(:last-of-type),
#freeform.department .event:not(:last-of-type) {
    margin-bottom: 16px;
}

#homepage .event time ,
#freeform.department .event time {
    display: grid;
    align-content: center;
    font-size: 16px;
    color: #ffffff;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.34;
    background: #191919;
    padding: 15px;
    text-align: center;
    min-width: 96px;
    letter-spacing: -0.32px;
    border-radius: 4px;
    height: 100%;
    margin-right: 5px;
    transition: all 0.3s;
}

#homepage .event time span.event-num,
#freeform.department .event time span.event-num{display:block;color: #ffffff;font-size: 32px;font-weight: 700; /* 32.4px */text-transform: capitalize;letter-spacing: -0.64px;}

#homepage .event-title 
#freeform.department .event-title {
    font-size: 20px;
    font-weight: 700;
    color: #1B1B1B;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
    line-height: 1.2;
    text-transform: capitalize;
    letter-spacing: -0.4px;
    margin-right: 25px;
}

#calendar .fc-button-primary {
    background-color: #708989!important;
    border-color: #708989
}

#calendar .fc-button-primary:not(:disabled):active,#calendar .fc-button-primary:not(:disabled).fc-button-active {
    background-color: #3787D8!important;
    border-color: #3787D8
}

#calendar td.fc-day-today {
    background: #708989
}

#calendar td.fc-day-today a {
    color: #fff
}

#ics-export {
    margin-top: 4px
}
table.fc-col-header,.fc-daygrid-body.fc-daygrid-body-unbalanced.fc-daygrid-body-natural,table.fc-scrollgrid-sync-table  {
    width: 100%!important;
}
#event-modal-dialog {margin: 0 auto;padding: 10px}


 .mini-events-list.mini-list-loaded h3 {
    color: #000919;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

#homepage .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk:first-child > button,
#freeform.department .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk:first-child > button {
    opacity: 0;
}
.cal-event:not(:last-child) {
    margin-bottom: 14.3px;
}
.cal-event {
    height: 68px;
}
.cal-content {
    background: #EDEFF0;
    padding: 10px;
    display: flex;
    align-items: center;
    border-radius: 2px;
    box-shadow: 0px 4px 16px 0px rgb(0 0 0 / 0%);
    transition: all 0.3s;
    cursor: pointer;
    height: 100%;
}
.cal-event:hover .cal-content {
    box-shadow: 0px 4px 16px 0px rgb(0 0 0 / 40%);
}
.cal-content time {
    width: 73px;
    min-width: 73px;
    height: 68px;
    background: #17AEE7;
    margin: -10px 0px -10px -10px;
    text-align: center;
    font-size: 14px;
    line-height: 1.3;
    padding: 9px;
}

.cal-content time span {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #232323;
}
.cal-title {
    font-size: 18px;
    font-weight: 700;
    color: #00152D;
    text-transform: capitalize;
    padding: 0 23px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 100%;
}

#homepage #mini-events .tab-calendar .day-has-event .fc-daygrid-day-top a::after, #freeform.department #mini-events .tab-calendar:first-child  .day-has-event .fc-daygrid-day-top a::after {
    background: var(--custom-background-color)!important;
}

/* #homepage #mini-events .tab-calendar:last-child .day-has-event .fc-daygrid-day-top a::after, #freeform.department #mini-events .tab-calendar:last-child .day-has-event .fc-daygrid-day-top a::after {
    background: #02662A !important;
} */

@media only screen and (max-width:991px){
    #homepage .fc-toolbar-title,
    #freeform.department .fc-toolbar-title {
        font-size: 25px;
    }
    
    #homepage .mini-calendar,#freeform.department .mini-calendar {
        padding: 35px 20px 25px;
    }
    
    #homepage .fc-toolbar-chunk:nth-of-type(1) .fc-button-group:nth-of-type(1),
    #freeform.department .fc-toolbar-chunk:nth-of-type(1) .fc-button-group:nth-of-type(1) {
        left: 20px;
        top: 35px;
        width: calc(100% - 41px);
    }
}

@media only screen and (max-width:768px){
    .tab-calendar.active {
        display: block;
    }
    
    #homepage .mini-calendar,#freeform.department .mini-calendar {
        width: 100%;
    }
    
    .mini-events-list.mini-list-loaded {
        width: 100%;
        margin: 25px 0 0;
    }
}
@media only screen and (max-width:479px){
    #homepage .fc-toolbar-title,
    #freeform.department .fc-toolbar-title {
        font-size: 22px;
    }
    .cal-title {
        padding: 0 15px;
    }
}