.program-calendar{
    display: flex;
    gap: 37px;
}

.calendar-wrap {
    width: 66%;
    background: white;
    border-radius: 20px;
}

.calendar-header-wrap{
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.btn-c-default.btn-join{
    background-color: rgba(12, 90, 74, 1);
    color: #FFF;
}

.event-wrap{
    flex: 1;
    display: flex;
}

.nav-button {
    background: none;
    border: none;
    color: rgba(120, 114, 102, 0.50);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
    font-weight: 700;
    padding: 0;
    min-width: 130px;
}

.nav-button:hover {
    color: #333;
}

.current-month {
    font-size: 16px;
    font-weight: 700;
    color: #052F2A;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    border: 1px solid rgba(5, 47, 42, 0.1);
    border-bottom: 0;
}

.weekday {
    color: rgba(5, 47, 42, 0.75);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 10px;
    border-right: 1px solid rgba(5, 47, 42, 0.1);
    background-color: rgba(220, 242, 237, 1);
}
.weekday:last-child{
    border-right: 0;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-top: 1px solid rgba(5, 47, 42, 0.1);
    border-left: 1px solid rgba(5, 47, 42, 0.1);
}

.day {
    aspect-ratio: 1.0966;
    font-size: 14px;
    font-weight: 500;
    color: rgba(5, 47, 42, 0.75);
    transition: all 0.3s;
    position: relative;
    line-height: 1;
    border-right: 1px solid rgba(5, 47, 42, 0.1);
    border-bottom: 1px solid rgba(5, 47, 42, 0.1);
    padding: 10px;
}

.day.other-month {
    color: rgba(5, 47, 42, 0.35);
    background-color: #f8f8f8;
    /*opacity: 0.5;*/
}

.day.today {
    border: 1px solid #052F2A;
}

.day.has-event {
    background: #FFDC78;
    font-weight: bold;
    position: relative;
}
.day.has-event.other-month{
    background: rgba(255, 220, 120, 0.5);
}
.day.has-event >div{
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
    height: 100%;
}
.day-event-item{
    color: #052F2ABF;
    display: block;
}
.day-event-item .title{
    margin-bottom: 8px;
    overflow: hidden;
    display: block;
    max-height: 52px;
    -webkit-line-clamp: 3;
    display: box;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    white-space: normal;
    color: #052F2ABF;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
	transition: all 0.2s;
}
.day-event-item .title:hover{
	color: #052F2A;
}
.day-event-item .location{
    font-size: 12px;
    font-weight: 400;
}

.day.has-event:hover {
    transform: scale(1.05);
    z-index: 1;
    border-right-color: #FFDC78;
    border-bottom-color: #FFDC78;
}

.day:not(.other-month):not(.has-event):hover {
    background: #f5f5f5;
}

.calendar-arrow{
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-card {
    border-radius: 12px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.event-card .header {
    color: #052F2A;
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 10px;
}

.event-card .content {
    position: relative;
    flex: 1;
}

.date-section:not(:last-child) {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #DED8CC;
}

.date-section:last-child {
    margin-bottom: 0;
}

.date-label {
    color: #EDB558;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 9px;
    line-height: 1.25;
}

.event-content-data{
    margin-bottom: 24px;
}

.event-item {
    margin-bottom: 0;
    padding: 45px 0;
    border-top: 1px solid rgba(5, 47, 42, 0.1);
	transition: all 0.3s;
}
.event-item:first-child{
    border-top: 0;
}

.event-item .title{
    font-family: "Plus Jakarta Sans", sans-serif;
    color: #052F2A;
    font-size: 18px;
    line-height: 1.65;
    letter-spacing: 0.9px;
    font-weight: 600;
    text-transform: uppercase;
    padding-bottom: 0;
}
.event-item .desc{
    font-size: 18px;
    color: rgba(5, 47, 42, 0.75);
    line-height: 1.65;
}
.event-item .event-meta{
    margin-top: 20px;
    display: flex;
    gap: 40px;
}
.event-meta-item{
    gap: 10px;
    display: flex;
    align-items: center;
}
.event-meta-item .icon{
    display: flex;
    width: 35px;
    height: 34px;
    align-items: center;
    justify-content: center;
    background-color: #B4DFD5;
}
.event-meta-item .text{
    display: block;
    min-width: 100px;
    color: rgba(5, 47, 42, 0.75);
}

.event-item:last-child {
    margin-bottom: 0;
}

.event-item .thumb{
    flex-shrink: 0;
    line-height: 0;
}

.event-image {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    object-fit: cover;
}

/*.event-details {*/
/*    flex: 1;*/
/*}*/

.event-title {
    color: #6F3573;
    font-size: 16px;
    margin-bottom: 7px;
    line-height: 1.45;
    font-weight: 600;
}

.event-title a{
    color: #6F3573;
    transition: all 0.2s;
}

.event-title a:hover{
    color: #3B8F90
}

.event-time,
.event-location{
    color: #787266;
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.25;
}
.event-location{
    margin-bottom: 0;
}
.event-time{
    text-transform: uppercase;
}
.no-events{
    font-size: 16px;
}
.loading-wrap{
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    z-index: 9;
    justify-content: center;
    padding-top: 200px;
    display: none;
}
.program-calendar.loading .loading-wrap{
    display: flex;
}
.btn-c-default{
    padding: 11px 20px;
    color: #052F2A;
    font-size: 16px;
    line-height: 1;
    border: 1px solid rgba(5, 47, 42, 0.4);
    display: inline-flex;
    transition: all 0.2s ease-in-out;
}
.btn-c-default path{
    transition: all 0.2s ease-in-out;
}
.btn-c-default:hover{
    background-color: #052F2A;
    color: #FFF;
}
.btn-c-default:hover path{
    fill: #FFF;
}
.day .more-events{
    position: absolute;
    top: 12px;
    right: 10px;
}
.more-events .calendar-event-popup{
    position: absolute;
    background: #FFF;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 5px;
    bottom: 100%;
    right: -30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    width: 250px;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
    transform: scale(0.7);
    transform-origin: bottom right;
}
.day:nth-of-type(7n+1) .more-events .calendar-event-popup,
.day:nth-of-type(7n+2) .more-events .calendar-event-popup{
    right: auto;
    left: -40px;
}
.btn-plus-events{
    padding: 0;
    border: 0;
    background: transparent;
	cursor: pointer;
}
.more-events:hover .calendar-event-popup{
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}
.calendar-event-popup .day-event-item:not(:last-child){
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(5, 47, 42, 0.1)
}
.event-check.hide{
    display: none;
}
.more-events.hide{
    display: none;
}
.event-item:hover{
	background-color: #F1FAF8;
}
.btn-c-default.btn-join:hover{
	background-color: #E26642;
	border-color: #E26642;
}
.mailchimp-popup .popup-body >p{
	display: none;
}
.mailchimp-popup .popup-body{
	padding: 40px;
	position: relative;
	max-width: 740px;
	width: 100%;
	background-color: #FFF;
}

.mailchimp-popup{
	position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease-in-out;
	padding: 150px 20px 50px;
	max-width: 100%;
	overflow-y: auto;
}
.mailchimp-popup.opened{
	opacity: 1;
	visibility: visible;
}
.mailchimp-popup .popup-body .mc-close-popup{
	padding: 5px;
	width: 45px;
	height: 45px;
	background-color: #FFA430;
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	right: 0;
	top: 0;
	border: 0;
	cursor: pointer;
	transition: all 0.3s;
}
.mailchimp-popup .popup-body .mc-close-popup:hover{
	background-color: #B4DFD5;
}
.mailchimp-popup .form-title{
	color: #052F2ABF;
	font-size: 18px;
	line-height: 1.65;
	margin-bottom: 20px;
}

.mailchimp-popup .mailchimp-form input[type=text],
.mailchimp-popup .mailchimp-form input[type=email]{
	padding: 15px !important; 
	border: 1px solid #052F2A1A !important;
	color: #052F2A !important;
	font-size: 16px !important;
	transition: all 0.3s !important;
	height: 55px !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
.mailchimp-popup .mailchimp-form input[type=text]:focus,
.mailchimp-popup .mailchimp-form input[type=email]:focus
{
	border-color: #052F2A !important;
	outline: none !important;
	box-shadow: none !important;
}
.mailchimp-popup .mailchimp-form input[type=text]::placeholder,
.mailchimp-popup .mailchimp-form input[type=email]::placeholder{
	color: #052F2ABF !important;
}
.mailchimp-popup .mailchimp-form .gform_button.button{
	padding: 10px 20px;
	border: 1px solid #5C8C3F !important;
	background-color: #5C8C3F !important;
	color: #FFF !important;
	font-size: 16px !important;
	display: inline-flex !important;
	min-width: 144px !important;
	justify-content: center !important;
	cursor: pointer !important;
	border-radius: 0 !important;
	font-weight: 400 !important;
	height: 40px !important;
}
.mailchimp-popup .gform-theme--foundation .gform_fields{
	column-gap: 20px !important;
	row-gap: 20px !important;
}
body.popup-opened{
	overflow: hidden;
}
@media(max-width: 1599px){
    .day{
        padding: 8px;
    }
    .weekday{
        padding: 8px;
    }
    .day .more-events{
        top: 8px;
        right: 8px;
    }
    .day-event-item .title{
        font-size: 13px;
        margin-bottom: 5px;
    }
    .calendar-wrap{
        width: 70%;
    }
}
@media(max-width: 1199px){
    .program-calendar{
        gap: 30px;
        flex-wrap: wrap;
    }
    .calendar-wrap{
        width: 100%;
    }
}
@media(max-width: 991px){
    .program-calendar{
        flex-wrap: wrap;
    }
    .calendar-wrap{
        width: 100%;
    }
    .event-wrap{
        width: 100%;
    }
    .event-card .event-content-data{
        position: relative;
    }
    .day .hide-sm{
        display: none;
    }
    .calendar-header-wrap{
        flex-direction: column-reverse;
        align-items: flex-end;
        gap: 20px;
        margin-bottom: 30px;
    }
    .calendar-header{
        width: 100%;
    }
    .more-events.hide{
        display: inline-flex;
    }
}
@media(max-width:767px){
    .nav-button{
        gap: 5px;
        min-width: 90px;
        font-size: 12px;
        padding: 10px;
    }
    .current-month{
        text-align: center;
        font-size: 13px;
    }
    .day{
        font-size: 12px;
    }
    .day .more-events{
        top: auto;
        bottom: 2px;
        right: 6px;
    }
    .more-events .calendar-event-popup{
        width: 170px;
    }
    .btn-plus-events svg{
        width: 16px;
        height: 16px;
    }
    .event-item{
        padding: 20px 0;
    }
    .event-wrap{
        margin-top: 20px;
    }
    .event-card .header{
        font-size: 40px;
    }
    .event-item .title{
        font-size: 16px;
    }
    .event-item .desc{
        font-size: 16px;
    }
    .calendar-header{
        gap: 10px;
    }
    .calendar-arrow svg{
        height: 8px;
    }
    .btn-c-default{
        font-size: 14px;
    }
	.mailchimp-popup .popup-body .mc-close-popup{
		width: 40px;
		height: 40px;
	}
	.mailchimp-popup .popup-body{
		padding: 40px 30px 30px;
	}
}