/* Events page custom css */

/* Loading */
#main-content .wpdt-c:after {
    background: url("/wp-content/uploads/media/loading-icon.gif") top center no-repeat transparent;
    display: block;
    background-size: 64px;
    content:"";
    height: 64px;
    width: 64px;
    position: absolute;
    top: 20vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999999;
}

#main-content .wpdt-c.table-ready:after {
    display: none;
}

#filterBox_table_1, #table_1_wrapper {
    opacity: 0;
}

.table-ready #filterBox_table_1, .table-ready #table_1_wrapper {
    opacity: 1;
}


/* Page */
.et-db #et-boc .et-l .et_pb_row {
	max-width: 1240px;
	width: 90%;
}

.featured-event .et_pb_column_1, .featured-event .et_pb_column_1 > div {
    display: flex;
    align-self: stretch; 
    margin-bottom: 0;
}

.featured-event .et_pb_column_1 img {
    height: 100%;
    object-fit: cover;
}

.featured-event-details {
    margin-top: 50px
}
.featured-event-details .event-date, .featured-event-details .event-location {
	display: inline-block;
	color: #fff;
}

.featured-event-details .event-location {
	float: right;
}

/* Table filter overrides */

/* Datepicker header */
.bootstrap-datetimepicker-widget th { 
    background-color: #303efa !important; 
}
/* Year month list background, Year-span year list background, close button background */
.bootstrap-datetimepicker-widget td {
    padding: 0 !important;
    margin-top: 0 !important;
}

.wpDataTableFilterSection .column-mp_events_meta_start_date input:last-child, .wpDataTableFilterSection .column-mp_events_meta_end_date input:first-child {
    display: none;
}

.wpDataTablesFilter {
	background-color: #fff;
	padding: 40px 0;
}

#filterBox_table_1, #table_1 {
	width: 90vw;
	max-width: 1240px;
	margin: 0 auto;
}

#filterBox_table_1 {
	position: relative;
    display: -ms-flexbox;
	display: flex;
	gap: 3%;
}

.wpDataTableFilterSection {
	padding: 10px 10px 0 10px !important;
	border: 1px solid rgba(12,32,74,0.25);
	border-radius: 8px;
	min-height: 0 !important;
    position: relative;
    display: -ms-flexbox;
	display: flex;
	-ms-flex-direction: column;
	flex-direction: column;
	margin-right: 0 !important;
    box-sizing: border-box;
}

.wpDataTableFilterSection .bootstrap-select > button.btn-default {
	border-bottom: none !important;
}

.wpDataTableFilterSection button[title="Nothing selected"] .filter-option {
	display: none !important;
}

.wpDataTableFilterSection:last-child {
    margin-right: 0 !important;
}

#filterBox_table_1 .wpDataTableFilterSection label {
    position: absolute;
    left: 12%;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Manrope', sans-serif;
    font-weight: 500 !important;
    text-align: left;
    font-size: 14px;
    color: #9b9b9b;
    pointer-events: none;
    transition:0.2s;
}

#filterBox_table_1 .wpDataTableFilterSection label.active, #filterBox_table_1 .wpDataTableFilterSection label.filled {
 font-size:12px;
 top: 12px;
 left: 10px;
}

#filterBox_table_1 #wdt-clear-filters-button-block {
    position: absolute;
	top: 60px;
	right: 0;
    padding: 0 !important;
    border: none;
    text-align: right;
}

#filterBox_table_1 .dropdown-menu {
	top: 100%;
}

#filterBox_table_1 .dropdown-menu li a {
    color: #0C204A !important;
}

.wpdt-c .bootstrap-select .check-mark:before {
    font-size: 16px;
}

.dropdown-menu [data-original-index="1"]:after {
    content: 'All';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    pointer-events: none;
}

#filterBox_table_1 #wdt-clear-filters-button-block button {    
    background-color: transparent;
    padding: 0;
    text-transform: initial;
    text-decoration: underline;
    transition: 0.2s;
    color: #0C204A;
}

#filterBox_table_1 #wdt-clear-filters-button-block button:hover {
	color: #303efa;
}

button.wdt-clear-filters-button:before,
button.wdt-clear-filters-widget-button:before {
 display: none;
}

.wpDataTablesFilter .wpDataTableFilterSection input {
  border-bottom: none;
  font-weight: 500 !important;
}

.wpDataTableFilterSection > div:before {
    width: 17px;
    height: 19px;
    display: inline-block;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    content: '';
    background-size: 100% !important;
}
.wpDataTableFilterSection .column-mp_events_title_with_link_to_post:before {
    background: url(/wp-content/uploads/2022/04/Search-Icon.svg) no-repeat;
}
.wpDataTableFilterSection .column-mp_events_meta_start_date:before, .wpDataTableFilterSection .column-mp_events_meta_end_date:before {
    background: url(/wp-content/uploads/2022/04/Calendar-Icon.svg) no-repeat;
}

#filterBox_table_1 .bootstrap-select > .btn-default:before {
  height: 16px;
  background-position: calc(100% - 5px) 50%;
  background-image: url(/wp-content/uploads/2022/04/Dropdown-Arrow.svg);
}

/* Events table */ 

#table_1 tbody, #table_1 tr, #table_1 td {
    border: none;
}

#table_1 thead {
    display: none;
}

#table_1 tbody {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	gap: 30px;
}

#table_1 tr {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-direction: column;
	flex-direction: column;
	width: calc(33.333% - 20px);
    background-color: #fff;
    margin-bottom: 10px;
    border-radius: 8px;
}

#table_1 tr.past-event:not(.visible) {
	display: none;
}

#table_1 .column-mp_events_title_with_link_to_post {
	padding: 0 30px 40px 30px;    
}

#table_1 h2 {
	font-size: 22px !important;
	font-weight: 600;
	white-space: break-spaces;
	transition: 0.2s;
}
#table_1 h2 a {
    color: #0C204A !important;
    transition: 0.2s ease-in-out;
}

#table_1 h2 a:hover {
	color: #303efa !important;
}

#table_1 .event-meta td {
	padding: 0;
	font-family: 'Manrope', sans-serif !important;
	font-weight: 500;
	display: inline-block;	
}

.event-meta .column-mp_events_meta_location_name {
	float: right;
}

#table_1 tr.events-heading {
    width: 100%;
    display: block;	
	background-color: transparent;
}

#table_1 tr.events-heading td {
	display: block;
	width: 100%;
	text-align: center;
	font-family: 'Epilogue', sans-serif !important;
	font-weight: 600;
	font-size: 28px;
	line-height: 1.3em;
	color: #0c204a;	
}

.events-heading + .events-heading:before {
    content: 'No upcoming events';
    display: block;
    width: 100%;
    margin-bottom: 50px;
    margin-top: -30px;
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    text-align: center;
}

#table_1 td[colspan="4"] {
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%);
    font-size: 16px;
    font-family: 'Manrope', sans-serif !important;
    font-weight: 500;  
}

tbody .column-mp_events_meta_start_date {
    display: none !important;
}

.more-events a {
	margin: 30px auto 0 auto;
	cursor: pointer;
}

/* Featured Images */
.column-mp_events_thumbnail_with_link_to_post {
    height: 260px;
    vertical-align: middle;
    padding: 0;
}

.column-mp_events_thumbnail_with_link_to_post a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.column-mp_events_thumbnail_with_link_to_post img { 
    max-width: 70%;
    max-height: 60%;
    width: auto;
    height: auto;
    transition: 0.2s ease-in-out;
}

.column-mp_events_thumbnail_with_link_to_post a:hover > img {
    transform: scale(1.08);
}

@media (max-width: 1080px) {
	#filterBox_table_1 {
	    flex-wrap: wrap;
	}

	#filterBox_table_1> div:nth-child(1), #filterBox_table_1> div:nth-child(2), #filterBox_table_1> div:nth-child(3) {
	    width: 31.333% !important;
	}

	#filterBox_table_1> div:nth-child(4), #filterBox_table_1> div:nth-child(5){
	    width: 48.5% !important;
	}

	#filterBox_table_1 #wdt-clear-filters-button-block {
		top: 105px;
	}	
	#filterBox_table_1 .wpDataTableFilterSection label {
	  left: 25px;
  }	
}

@media (max-width: 980px) {
	#table_1 tr {
	  width: calc(50% - 15px);
	}
}

@media (min-width: 768px) {
	.mobile-filter-button {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.et_pb_row {
		width: 80%;
	}
	#filterBox_table_1, #table_1 {
		width: 80vw;
	}	
	#table_1 tbody {
	  gap: 0;
	}	
	#table_1 tr {
	  width: 100%;
	  margin-bottom: 30px;
	}

	/* Mobile filters */
	#filterBox_table_1 {
	    display: block !important;
	}

	#filterBox_table_1 #wdt-clear-filters-button-block {
	  top: -25px !important;
	}

	#filterBox_table_1.wpDataTableFilterBox > div {
		width: 100% !important;
	}
    
    #filterBox_table_1.wpDataTableFilterBox > div:not(:first-child):not(:last-child) {
    	transform: 0.2s;
        display: none;
    }

    .mobile-filter-button {
    	width: 80%;
		margin: 20px auto 0;
    }
    .mobile-filter-button a {
    	width: 100%;
    	cursor: pointer;
    }

	.events-heading + .events-heading::before {
  		margin-top: 0;
  }    
}
