/*============================*/
/* Custom Event Posts         */
/*============================*/

.custom-event-posts-wrapper {
	position: relative;
}

.event-posts-filter-wrap {
	margin-bottom: 60px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 30px;
	row-gap: 60px;
}

.event-filter-cat,
.event-filter-search {
	position: relative;
    flex-basis: 200px;
}

#custom-event-posts-category {
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
}

.event-filter-cat select {
    border: 0px solid #cccccc;
    border-radius: 0 !important;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    position: relative;
    background: transparent;
}

.event-filter-cat select:focus {
    outline: none;
    border: 0px solid #cccccc;
}

.event-filter-search input {
	background-color: #434343;
	border: 0px solid #cccccc !important;
	border-radius: 0 !important;
	font-size: 14px;
	color: #ffffff;
}

.event-filter-search input:focus {
	outline: none;
	border: 0px solid #cccccc !important;
}

.event-filter-search:after {
	position: absolute;
    top: 50%;
    content: '';
    background-image: url('../search-b.svg');
    width: 22px;
    height: 22px;
    right: 10px;
    background-size: 16px;
    margin-top: -9px;
    z-index: 0;
    background-repeat: no-repeat;
}

.event-filter-search input::-webkit-input-placeholder {
	color: #ffffff;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
}
.event-filter-search input::-moz-placeholder {
	color: #ffffff;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
}
.event-filter-search input:-ms-input-placeholder {
	color: #ffffff;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
}
.event-filter-search input::-ms-input-placeholder {
	color: #ffffff;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
}
.event-filter-search input::placeholder {
	color: #ffffff;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
}

#custom-event-posts-results {
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}
#custom-event-posts-results.show {
	opacity: 1;
}


.custom-event-posts-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.custom-event-posts-item.show {
    opacity: 1;
    transform: translateY(0);
}

.custom-event-posts-content-wrap {
	padding: 0;
	text-align: center;
}

.custom-event-posts-item {
	flex-basis: calc(calc(100% / var(--columns)) - calc(var(--gap) / var(--columns) * var(--gap-count)));
}

.custom-event-post-thumb {
	margin-bottom: 25px;
}

.custom-event-post-title {
	font-size: 20px;
	font-weight: 400;
	margin-bottom: 5px;
}

.custom-event-post-title a {
	color: #ffffff;
	transition: all 0.3s linear;
}

.custom-event-post-title a:hover {
	color: #ffffff;
}

.custom-event-post-date {
	color: #B1A690;
	font-weight: 300;
	font-size: 18px;
	margin-bottom: 10px;
}

.custom-event-post-content {
	color: #ffffff;
	font-size: 16px;
}

.custom-event-post-content .morelink {
	display: inline-flex !important;
	border: 2px solid #B1A690;
	background-color: #B1A690 !important;
	color: #ffffff !important;
	padding: 2px 30px;
	border-radius: 50px;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 1px;
	transition: all 0.2s ease;
}

.custom-event-post-content .morelink:hover {
	border: 2px solid #B1A690;
	background-color: #B1A690 !important;
}


.custom-event-post-thumb img {
	width: 100%;
	-o-object-fit: cover;
	   object-fit: cover;
	max-height: 260px;
	display: flex;
	height: 280px;
}

.event-month-title {
    font-size: 32px;
    font-weight: 500;
    margin: 30px 0;
    color: #fff;
    padding: 10px 30px;
    text-transform: uppercase;
    background: #1a1a1a;
}

.custom-event-posts-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	justify-content: flex-start;
	margin-bottom: 60px;
}

.custom-event-posts-item {
	flex: 0 0 calc(33.333% - 27px); /* 3 per row with 40px gap */
	box-sizing: border-box;
}

@media (max-width: 1024px) {
	.custom-event-posts-item {
		flex: 0 0 calc(50% - 20px); /* 2 per row */
	}
}

@media (max-width: 600px) {
	.custom-event-posts-item {
		flex: 0 0 100%; /* 1 per row */
	}
}


/* Custom Dropdown CSS */

.custom-dropdown {
    position: relative;
    width: 250px;
    font-family: inherit;
}

.dropdown-toggle {
    display: inline-block;
    padding: 10px 50px 10px 20px;
    background-color: #000000;
    color: #ffffff;
    font-weight: 400;
    border-radius: 0;
	font-size: 14px;
	line-height: 1.2;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s ease;
    position: relative;
    z-index: 1;
	width: 100%;
}
/* Custom Arrow using your SVG */
.custom-dropdown .dropdown-toggle::after {
    content: '';
    background-image: url('../arrow-down-white.svg');
    background-size: 31px;
    width: 30px;
    height: 20px;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 5px;
    background-color: #777777;
    color: #fff;
    list-style: none;
    padding: 0;
    border-radius: 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 2;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu li {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 1px solid #000;
    line-height: 1.2;
    font-size: 14px;
	text-transform: uppercase;
}

.dropdown-menu li:hover {
    background-color: #B1A690;
}

.dropdown-menu li.selected {
	background-color: #B1A690;
	color: #fff;
}

