.m-calendar {
    position: relative;
    background: #002a3f url("../images/bg.jpg") no-repeat;
    background-size: cover;
    padding: 80px 0;
    min-height: 815px;
}

.calendar__pdf {
    margin-top: -38px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.calendar__pdf button {
    padding: 20px 40px;
    border: none;
    background-color: #83D0F5;
    font-size: 20px;
    color: #002A3F;
}

.calendar__pdf button svg:first-child {
    margin-right: 10px;
}

.calendar__pdf button svg:last-child {
    margin-left: 60px;
}

.calendar__modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

/* Classe para bloquear scroll quando modal estiver aberta */
html.modal-open {
    overflow: hidden;
}

.calendar__modal-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    overflow-x: hidden;
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    /* Para posicionar o botão de fechar dentro da modal */
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
    max-height: 90%;
    overflow: auto;
}

.calendar__modal .close-modal {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
}

.calendar__modal__header h3 {
    margin-bottom: 10px;
    font-size: 32px;
}

.calendar__modal__header small {
    font-weight: bold;
    color: #005187;
    font-size: 12px;
}

.calendar__modal__content {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.calendar__modal__image img {
    width: 326px;
    height: 226px;
    object-fit: contain;
}

.calendar__modal__text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calendar__modal__text p{
    color: #444444;
    font-size: 16px;
    margin-bottom: 5px;
    word-break: break-word;
}

.calendar__modal__text hr {
    margin: 0;
}

.calendar__modal__address {
    display: flex;
    gap: 10px;
}

.calendar__modal__address p{
    color: #444444;
    font-size: 16px;
    margin-bottom: 5px;
}

.calendar__modal__address #endereco {
    font-size: 14px;
}

.calendar__modal__footer {
    margin-top: 32px;
}

.calendar__modal__footer .calendar__modal__save {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.calendar__modal__footer .calendar__modal__button {
    width: 100%;
    border: 1px solid var(--light-blue);
    text-align: center;
    /* padding: 20px; */
    display: flex;
    align-items: center;
    height: 60px;
    background-color: var(--light-blue);

}
.calendar__modal__footer .calendar__modal__button a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-style: normal;
    cursor: pointer;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.calendar__modal__footer .calendar__modal__button:hover {
    background-color: #003960;
    border-color: #003960;
}

.calendar__modal__footer .calendar__modal__button__save {
    width: 100%;
    border: 1px solid var(--light-blue);
    text-align: center;
    /* padding: 20px; */
    display: flex;
    align-items: center;
    height: 60px;

}
.calendar__modal__footer .calendar__modal__button__save a {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 700;
    font-style: normal;
    cursor: pointer;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.calendar__modal__footer .calendar__modal__button__save:hover a {
    color: #003960;
}

.calendar__modal__footer .calendar__modal__button__save:hover {
    border-color: #003960;
}


.m-calendar p {
    color: #fff;
}

.m-calendar__list__item__content p {
    color: unset;
    text-decoration: none;
}

.m-calendar .m-link {
    font-size: 14px;
}

.m-calendar header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.m-calendar header h2 {
    color: #fff;
    margin-bottom: 0;
}

.m-calendar header p {
    max-width: 489px;
}

.m-calendar__carousel {
    position: relative;
    display: flex;
    padding: 25px 30px;
    height: 212px;
    background: #fff;
    width: 200%;
    overflow: hidden;
    margin-bottom: 20px;
}

.m-calendar__carousel::before {
    position: absolute;
    display: block;
    content: "";
    background: #fff;
    width: 256px;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}

.m-calendar__prev,
.m-calendar__next {
    display: flex;
    align-items: center;
    width: 90%;
    height: 88px;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 400;
    font-size: 20px;
    padding: 0 40px;
    color: #fff;
    margin: 0 auto;
    margin-bottom: 24px;
    transition: background 0.3s;
    cursor: pointer;
}

.m-calendar__prev:hover,
.m-calendar__next:hover {
    background: #fff;
    color: #002a3f;
    text-decoration: none;
}

.m-calendar__prev span,
.m-calendar__next span {
    text-transform: capitalize;
    font-size: 32px;
}

.m-calendar__prev:hover span,
.m-calendar__next:hover span {}

.m-calendar__prev span::after,
.m-calendar__next span::after {
    display: inline-block;
    vertical-align: middle;
    content: "";
    width: 1px;
    height: 40px;
    background: #eff2f4;
    margin: 0 48px;
}

.m-calendar__prev span strong,
.m-calendar__next span strong {
    margin-left: 10px;
}

.m-calendar__prev:hover span strong,
.m-calendar__next:hover span strong {
    color: #002a3f;
}

/* carrocel de eventos*/
.m-calendar__list {
    position: relative;
}

.m-calendar__date {
    text-transform: capitalize;
    position: relative;
    font-size: 32px;
    color: #002a3f;
    line-height: 1.2em;
    height: 100%;
    float: left;
    z-index: 3;
}

.m-calendar__date strong {
    display: block;
}

.m-calendar__content {
    position: relative;
    margin-left: 50px;
    padding-left: 50px;
    border-left: solid 1px #cccccc;
    width: 1017px;
}

.m-calendar__title {
    font-weight: 500;
    font-size: 20px;
    color: #002a3f;
    margin-bottom: 30px;
}

.m-calendar__list {
    position: relative;
}

.m-calendar__label {
    background-color: #CCCCCC;
    padding: 40px 70px;
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.m-calendar__label h3 {
    font-size: 20px;
    color: black;
    font-weight: 500;
    margin-bottom: 0;
    min-width: 100px;
}

.m-calendar__label__list {
    flex: 1;
    margin-left: 20px;
}

.m-calendar__label__list__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;

    p {
        color: black;
        margin-bottom: 0;
    }
}

.m-calendar__label__list__item__color {
    width: 20px;
    height: 20px;
    border-radius: 99999px;
}

.m-calendar__list__item {
    display: flex;
    margin-right: 44px;
    flex-direction: column;
    border-right: 1px solid #cccccc;
    height: 100%;
    padding-right: 20px;
    cursor: pointer;
}
/* 
.m-calendar__list__item__title::after {
    display: block;
    content: "";
    width: 56px;
    height: 56px;
    background: url("../images/arrow-big.svg") no-repeat 17px center;
    border-radius: 100%;
    transition: all 0.3s;

} */

.m-calendar__list__item .open_modal_event {
    display: none;
    width: fit-content;
}

.m-calendar__list__item.--active .open_modal_event {
    display: block;
}

.m-calendar__list__item__title img {
    width: 20px;
    margin-left: 14px;
}


.m-calendar__list__item.--active .m-calendar__list__item__title { 
    color: #FF2D55;
}

.m-calendar__list__item.--active .m-calendar__list__item__title img {
    display: none;
}

.m-calendar__date__btn.mobile {
    display: none;
}

.m-calendar__date__btn {
    margin-top: 20px;
    text-transform: none;
}

.m-calendar__date__btn p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* width: 100%; */
    height: 48px;
    padding: 16px 12px;
    background: #005187;
    font-weight: bold;
    font-size: 12px;
    color: #ffffff;
    border: none;
    gap: 20px;
    cursor: pointer;
    z-index: 1;
    transition: all .3s;
    border: solid 1px #005187;
}

.m-calendar__date__btn p::after{
    display: block;
    content: "";
    width: 9px;
    height: 9px;
    background: url("../../../../assets/images/icons/arrow-white.svg") no-repeat;
    transform: rotate(90deg);
    transition: all .3s ease;
}

.m-calendar__date__btn.--active p {
    background-color: #0BBBEF;
    border: solid 1px #0BBBEF;

}

.m-calendar__date__btn.--active p::after {
    transform: rotate(270deg);
}

.calendario {
    display: none;
    margin-bottom: 20px;
}

.m-calendar__calendar {
    background-color: #EFF2F4;
    padding: 40px;
}

.m-calendar__calendar .fc-event {
    cursor: pointer;
}

.m-calendar__calendar .fc-scrollgrid,
.m-calendar__calendar .fc-theme-standard td,
.m-calendar__calendar .fc-theme-standard th {
    border: none !important;
}

.m-calendar__calendar .fc-daygrid-day-frame {
    border-top: 1px solid #CCCCCC !important;
    width: 95%;
}

.calendar__calendar .fc-daygrid-body tr {
    height: 100px; /* Ajuste para o tamanho desejado */
  }

.m-calendar__calendar .fc-day-today {
    background-color: #cccccc57 !important;
}

.m-calendar__calendar .fc-daygrid-block-event {
    border-radius: 50px;
    padding-left: 9px;
    padding-right: 5px;
    margin: 2px !important;
}

.m-calendar__calendar .fc-event .active-arrow {
    display: none;
}

/* focus calendar events disabled */

.m-calendar__calendar .fc-event:focus,
.m-calendar__calendar .fc-event:focus-within,
.m-calendar__calendar .fc-event:focus-visible {
    outline: none;
    box-shadow: none;
}

.m-calendar__calendar .fc-daygrid-day:focus,
.m-calendar__calendar .fc-daygrid-day:focus-within,
.m-calendar__calendar .fc-daygrid-day:focus-visible {
    outline: none;
    box-shadow: none;
}

.m-calendar__calendar .fc-daygrid-day-frame:focus,
.m-calendar__calendar .fc-daygrid-day-frame:focus-within,
.m-calendar__calendar .fc-daygrid-day-frame:focus-visible {
    outline: none;
    box-shadow: none;
}

.m-calendar__calendar .fc-daygrid-day-events:focus,
.m-calendar__calendar .fc-daygrid-day-events:focus-within,
.m-calendar__calendar .fc-daygrid-day-events:focus-visible {
    outline: none;
    box-shadow: none;
}

.m-calendar__calendar .fc-daygrid-day-number:focus,
.m-calendar__calendar .fc-daygrid-day-number:focus-within,
.m-calendar__calendar .fc-daygrid-day-number:focus-visible {
    outline: none;
    box-shadow: none;
}

.m-calendar__calendar .fc-event:focus::after,
.m-calendar__calendar .fc-event:focus-within::after,
.m-calendar__calendar .fc-event:focus-visible::after {
    content: none;
}




.m-calendar__calendar .fc-event.selected-event,
.m-calendar__calendar .fc-event.selected-event > div > div {
    background-color: #FF2D55 !important;
    border-color: #FF2D55 !important;
}

.m-calendar__calendar .fc-event.last-selected-event .active-arrow {
    display: block;
}

.m-calendar__calendar .fc-h-event .fc-event-title {
    text-overflow: ellipsis;
    font-size: 12px;
}

.m-calendar__calendar .fc th {
    text-align: initial !important;
}

.m-calendar__calendar .fc th a:hover,
.m-calendar__calendar .fc th a{
    text-decoration: none;
    color: #005187;
    cursor: unset;
}

.m-calendar__calendar .fc .fc-daygrid-day-top {
    flex-direction: row;
}

.m-calendar__calendar .fc .fc-daygrid-day-top a,
.m-calendar__calendar .fc .fc-daygrid-day-top a:hover {
    text-decoration: none;
    color: #444444;
    cursor: unset;
}

.m-calendar__list__item__date {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 12px;
    color: #fff;
    margin-right: 12px;
    height: max-content;
    background-color: var(--dark-blue);
    width: fit-content;
    padding: 2px 5px;
}

.m-calendar__list__item__date p {
    display: block;
    margin-left: 5px;
    margin-bottom: 0;
}

.m-calendar__list__item__date::before {
    display: block;
    content: "";
    width: 16px;
    height: 16px;
    background: url("../images/ico-calendar-white.svg") no-repeat;
    margin-top: 2px;
    
}

.m-calendar__list__item__title {
    font-size: 20px !important;
    margin-top: 5px;
    margin-bottom: 8px;
    color: #002a3f;
}

.m-calendar__list__item__title:hover {
    color: #002a3f;
}

.m-calendar__list__item__title::after {
    content: none;
}

.m-calendar__list__item__link {
    display: block;
    font-weight: 400;
    font-size: 12px;
    text-decoration-line: underline;
    color: #444444;
    margin-bottom: 30px;
}

/* Legenda Carousel */

.m-calendar__label__list .owl-carousel {
    z-index: auto;
}

.m-calendar__label__list .owl-nav {
    position: absolute;
    top: 50%;
    margin-top: -40px;
    width: 100%;
    z-index: 10;
}

.m-calendar__label__list .owl-nav .owl-prev,
.m-calendar__label__list .owl-nav .owl-next {
    position: absolute;
    transition: all 0.3s;
}

.m-calendar__label__list .owl-nav .owl-prev.disabled,
.m-calendar__label__list .owl-nav .owl-next.disabled {
    display: none;
}

.m-calendar__label__list .owl-nav .owl-prev {
    left: -60px;
    transform: rotate(-180deg);
}

.m-calendar__label__list .owl-nav .owl-next {
    right: -20px;
}

.m-calendar__label__list .owl-nav .owl-next:before,
.m-calendar__label__list .owl-nav .owl-prev:before {
    display: block;
    content: "";
    width: 56px;
    height: 56px;

    background: #fff url("../images/arrow-big.svg") no-repeat 17px center;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.12);
    border-radius: 100%;
    transition: all 0.3s;
}

.m-calendar__label__list .owl-nav .owl-next:hover:before,
.m-calendar__label__list .owl-nav .owl-prev:hover:before {
    background-color: #002a3f;
    background-position-x: -32px;
}

.m-calendar__label__list .owl-dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.m-calendar__label__list .owl-dots .owl-dot span {
    display: block;
    width: 12px;
    height: 12px;
    border: solid 1px #fff;
    margin: 6px;
    background: #cccccc;
}

.m-calendar__label__list .owl-dots .owl-dot.active span {
    background: #0bbbef;
    border-color: #0bbbef;
}

.m-calendar__label__list .owl-stage {
    left: 0px;
}


/* eventos carousel */
.m-calendar__list .owl-carousel {
    z-index: auto;
}

.m-calendar__list .owl-stage-outer {
    overflow: visible;
}

.m-calendar__list .owl-nav {
    position: absolute;
    top: 50%;
    margin-top: -40px;
    width: 100%;
    z-index: 10;
}

.m-calendar__list .owl-nav .owl-prev,
.m-calendar__list .owl-nav .owl-next {
    position: absolute;
    transition: all 0.3s;
}

.m-calendar__list .owl-nav .owl-prev.disabled,
.m-calendar__list .owl-nav .owl-next.disabled {
    display: none;
}

.m-calendar__list .owl-nav .owl-prev {
    left: -76px;
    transform: rotate(-180deg);
}

.m-calendar__list .owl-nav .owl-next {
    right: 140px;
}

.m-calendar__list .owl-nav .owl-next:before,
.m-calendar__list .owl-nav .owl-prev:before {
    display: block;
    content: "";
    width: 56px;
    height: 56px;

    background: #fff url("../images/arrow-big.svg") no-repeat 17px center;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.12);
    border-radius: 100%;
    transition: all 0.3s;
}

.m-calendar__list .owl-nav .owl-next:hover:before,
.m-calendar__list .owl-nav .owl-prev:hover:before {
    background-color: #002a3f;
    background-position-x: -32px;
}

.m-calendar__list .owl-dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.m-calendar__list .owl-dots .owl-dot span {
    display: block;
    width: 12px;
    height: 12px;
    border: solid 1px #fff;
    margin: 6px;
    background: #cccccc;
}

.m-calendar__list .owl-dots .owl-dot.active span {
    background: #0bbbef;
    border-color: #0bbbef;
}

.m-calendar__list .owl-stage {
    left: 0px;
}

.m-calendar__select {
    border: solid 1px #ccc;
    font-size: 14px;
    width: 212px;
    height: 48px;
    padding: 0 8px;
    background: transparent url("../images/arrow-down.svg") no-repeat 95% center;
    outline: none;
    /*hide default down arrow in webkit */
    -webkit-appearance: none;

}

.m-calendar__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    width: 592px;
    height: 68px;
    left: 50%;
    margin-left: -296px;
    bottom: -34px;
    padding: 0 32px;
    font-size: 20px;
    color: #002a3f;
    background: #83d0f5;
}

@media (max-width: 576px) {

    .calendar__modal__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .m-calendar__calendar .fc-daygrid-block-event {
        padding-right: unset;
    }

    .m-calendar__list .owl-nav .owl-prev {
        left: -8px;
    }

    .m-calendar__carousel {
        height: unset;
    }

    .m-calendar__list .owl-nav .owl-next:before,
    .m-calendar__list .owl-nav .owl-prev:before {
        width: 46px;
        height: 46px;
        background: #fff url("../images/arrow-big.svg") no-repeat 12px center;
    }

    .m-calendar__list .owl-nav .owl-next:hover:before,
    .m-calendar__list .owl-nav .owl-prev:hover:before {
        background-position-x: -37px;
    }


    .calendar__pdf {
        margin-top: -90px;
    }

    .calendar__pdf button {
        padding: 20px 10px;
        font-size: 15px;
    }

    .calendar__modal-content {
        padding: 20px;
        margin: 0 10px;
    }

    .calendar__modal__content,
    .calendar__modal__footer .claendar__modal__save {
        flex-wrap: wrap;
    }

    .m-calendar__calendar .highlighted-date .fc-daygrid-day-number{
        /* background-color: #E32259; */
        border-radius: 9999px;
        width: 30px;
        height: 30px;
        text-align: center;
        margin-top: 2px;
        /* color: #fff !important; */
    }

    .m-calendar__label__list__item {
        align-items: center;
        padding: 0 5px;
    }

    .m-calendar__label__list__item__color {
        width: 16px;
        height: 16px;
    }

    .m-calendar__label__list__item p {
        font-size: 14px;
        margin-bottom: 0;
    }
    
    .m-calendar__label {
        padding: 20px 40px 50px 40px;
        flex-direction: column;
        align-items: flex-start;
    }

    .m-calendar__label h3 {
        margin-bottom: 15px;
    }

    .m-calendar__label__list {
        margin-left: 0;
        width: 100%;
    }

    .m-calendar__label__list .owl-nav .owl-prev {
        left: -35px;
        transform: rotate(-180deg);
    }
    
    .m-calendar__label__list .owl-nav .owl-next {
        right: -35px;
    }

    .m-calendar__label__list .owl-nav {
        top: 125%;
    }

    .m-calendar__label__list .owl-nav button {
        width: 25px;
        height: 25px;
    }

    .m-calendar__label__list .owl-nav button span {
        font-size: 20px;
        line-height: 15px;
    }

    .m-calendar__calendar .fc-daygrid-day-events {
        display: flex;
        gap: 0px;
        justify-content: center;
        margin-bottom: 5px;
        align-items: flex-end;
        flex-direction: row;

        /* display: flex;
        gap: 0px;
        justify-content: center;
        margin-bottom: 5px;
        flex-direction: row;
        align-items: flex-start;
        align-content: center;
        flex-wrap: wrap; */


    }

    .m-calendar__calendar .fc th {
        text-align: center !important;
    }

    .m-calendar__calendar .fc .fc-daygrid-day-top {
        justify-content: center;
    }

    .m-calendar__list .owl-nav .owl-next {
        right: -10px
    }

    .m-calendar__carousel {
        padding: 25px 0px 25px 30px;
    }

    .m-calendar__list__item__content {
        padding-right: 50px;
    }

    .m-calendar__list .owl-stage-outer {
        overflow: hidden;
    }

    .m-calendar__date__btn {
        display: none;
    }

    .m-calendar__date__btn.mobile {
        display: block;
        padding: 15px 25px 25px 25px;
        background-color: #fff;
        margin-top: 0;
        margin-bottom: 20px;

        p {
            margin-bottom: 0;
        }
    }

    .m-calendar__calendar {
        padding: 10px;
        height: 100%;
    }

    .m-calendar {
        min-height: auto;
        padding: 40px 0;
        margin-bottom: 50px;
    }

    .m-calendar header {
        flex-direction: column;
        margin-bottom: 0px;
    }

    .m-calendar header h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .m-calendar header p {
        max-width: 100%;
    }

    .m-calendar__title {
        width: 100%;
        height: auto;
        padding: 10px;
        font-size: 14px;
        /* text-align: center; */
    }

    .m-calendar__title span {
        font-size: 14px;
    }

    .m-calendar__title span::before {
        margin: 0 10px;
        height: 20px;
    }

    .m-calendar__cta {
        position: relative;
        width: 100%;
        padding: 10px;
        font-size: 16px;
        text-align: center;
        height: auto;
        left: auto;
        margin-left: 0;
        bottom: auto;
    }
    .m-calendar__carousel{
        width: 100%;
        margin-bottom: -1px;
    }

    .m-calendar__list__item {
        margin-right: 0px;
        padding-right: 0px;
        padding-left: 50px;
        border-right: none;
    }

    .m-calendar__list {
        left: -100px;
    }

    .m-calendar__carousel::before {
        width: 113px;
        display: none;
    }

    .m-calendar__date {
        left: -7px;
        font-size: 20px;
    }
    
    .m-calendar__content{
        padding-left: 13px;
        margin-left: 20px;
        border-left: none;
        width: 100%;
    }

    .m-calendar__list__item__link {
        margin-bottom: 10px;
    }

    .m-calendar .m-link {
        font-size: 10px;
    }

    .m-calendar__prev,
    .m-calendar__next {
        font-size: 12px;
        padding: 0 10px;
    }

    .m-calendar__prev span,
    .m-calendar__next span {
       font-size: 20px;
    }

    .m-calendar__prev span::after,
    .m-calendar__next span::after {
        margin: 0 15px;
    }
}

.m-calendar__calendar .fc-daygrid-body.fc-daygrid-body-unbalanced,
.m-calendar__calendar .fc-scrollgrid-sync-table {
    width: 100% !important;
}