/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

/* =======================================================
Top page secondary menu
========================================================== */
.custom-secondary-menu-wrapper div.custom-secondary-menu {
	margin-bottom: 64px;
}

.custom-secondary-menu .custom-menu-container {
	position: relative;
	z-index: 10;
	background: #fff;
}

.custom-secondary-menu li {
	list-style: none;
}

.custom-secondary-menu ul.menu {
	margin: 0;
	padding: 12px 0;
	display: flex;
	justify-content: space-between;
	gap: 20px;
	border-bottom: 1px solid #e5e5e5;
}

.custom-secondary-menu ul.menu > li {
	position: relative;
	padding: 12px 0;
}

.custom-secondary-menu ul.menu > li > a {
	display: block;
	text-decoration: none;
	color: #333;
	font-weight: bold;
	background: transparent;
	transition: all 0.3s;
}

.custom-secondary-menu .menu-item-has-children a {
	position: relative;
	padding-right: 40px;
}

.custom-secondary-menu .menu-item-has-children > a:after {
	position: absolute;
	content: url(/wp-content/uploads/2025/07/menu-arrow.png);
	right: 0;
	transform: translate(10%, 2px);
	transition: 0.5s;
}

.custom-secondary-menu ul.menu > li:hover > a {
	color: #ea6852;
}

.custom-secondary-menu .menu-item-has-children:hover > a:after {
	transform: rotate(180deg);
	transform-origin: center;
}

.custom-secondary-menu ul.sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: white;
	border: 1px solid #ddd;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	display: none;
	z-index: 999;
	margin: 0;
}

.custom-secondary-menu ul.menu > li > a:hover > ul.sub-menu {
	display: block;
}

.custom-secondary-menu ul.sub-menu li a {
	display: block;
	padding: 10px 15px;
	color: #444;
	text-decoration: none;
	white-space: nowrap;
}

.custom-secondary-menu ul.sub-menu li a:hover {
	background: #f0f0f0;
}

.custom-secondary-menu {
	position: relative;
	z-index: 999;
	transform: none !important;
	will-change: auto !important;
}

.custom-secondary-menu ul.sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 9999 !important;
	background: white;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	min-width: 200px;
	border: 1px solid #ddd;
	display: none;
}

.custom-secondary-menu ul.menu > li:hover > ul.sub-menu {
	display: block;
}

@media (max-width: 992px) {
	.custom-secondary-menu-wrapper div.custom-secondary-menu {
		margin-bottom: 42px;
	}
	.custom-secondary-menu ul.menu {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		row-gap: 0;
	}
	.custom-secondary-menu ul.menu > li {
		width: calc(50 - 20px);
	}
	.custom-secondary-menu ul.menu > li > a {
		padding: 12px 0;
	}
	.custom-secondary-menu ul.sub-menu {
		min-width: 100%;
	}
}

@media (max-width: 600px) {
	.custom-secondary-menu-wrapper div.custom-secondary-menu {
		display: none;
	}

	.custom-secondary-menu ul.menu {
		grid-template-columns: repeat(1, 1fr);
	}
	.custom-secondary-menu ul.menu > li {
		width: 100%;
	}
}

/* =======================================================
Top page custom interactive select
========================================================== */
#custom-interactive-select {
	margin-bottom: 36px;
	margin-top: 42px;
}
#custom-interactive-select .wrapper {
	display: flex;
	gap: 8px;
}

#custom-interactive-select .text {
	font-size: 25px;
	font-weight: 600;
	text-wrap: nowrap;
}

#custom-interactive-select .interactive-select {
	border-bottom: 1px solid #999;
	padding: 0;
	width: 100%;
	max-width: 350px;
}
#custom-interactive-select .select-area {
	position: relative;
}

#custom-interactive-select .select-trigger {
	position: relative;
	overflow: hidden;
	height: 30px;
}

#custom-interactive-select .select-area .select-trigger:after {
	content: url(/wp-content/uploads/2025/07/dropdown.png);
	position: absolute;
	right: 0;
	top: 0;
}

#custom-interactive-select .carousel {
	height: 100%;
	overflow: hidden;
}

#custom-interactive-select .carousel-list {
	margin: 0;
	padding: 0;
	list-style: none;
	transition: transform 0.5s ease-in-out;
}

#custom-interactive-select .carousel-list li {
	height: 30px;
	line-height: 30px;
	font-size: 25px;
	font-weight: bold;
	padding: 0 8px;
}

#custom-interactive-select .hover-text {
	position: absolute;
	top: 3px;
	left: 0;
	display: none;
	font-size: 25px;
	font-weight: bold;
	padding: 0 8px;
}

#custom-interactive-select .dropdown-options {
	display: none;
}

#custom-interactive-select .dropdown-options {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: #fff;
	border: 1px solid #ccc;
	z-index: 10;
	padding: 0;
	margin: 1px 0 0 0;
	list-style: none;
}

#custom-interactive-select .dropdown-options li {
	list-style: none;
	white-space: nowrap;
	font-size: 23px;
	font-weight: bold;
}

#custom-interactive-select .dropdown-options li a {
	color: #373a36;
	padding: 12px;
	display: block;
}

#custom-interactive-select .dropdown-options li:hover {
	background: #f0f0f0;
}

/* hover, dropdown open state */
#custom-interactive-select .select-trigger:hover .carousel,
#custom-interactive-select .interactive-select.dropdown-open .carousel {
	display: none;
}

#custom-interactive-select .select-trigger:hover {
	cursor: pointer;
}

#custom-interactive-select .select-trigger:hover .hover-text,
#custom-interactive-select .interactive-select.dropdown-open .hover-text {
	display: block;
	cursor: pointer;
}
@media (max-width: 600px) {
	#custom-interactive-select .wrapper {
		flex-direction: column;
	}
	#custom-interactive-select .carousel-list li {
		padding: 0;
	}
}

/* =======================================================
Events & Single event
========================================================== */
#events section.tribe-common-l-container {
	padding: 0;
	min-height: 0;
	margin-bottom: 36px;
}

#events header.tribe-events-header,
#events .tribe-events-c-subscribe-dropdown__container {
	display: none;
}

/* Event */
#tribe-events-content .tribe-events-back,
#tribe-events-content .tribe-events-single-event-title,
#tribe-events-content .tribe-events-schedule,
#tribe-events-content div.tribe-events-event-image,
#tribe-events-content div.tribe-common,
#tribe-events-content div.tribe-events-event-meta,
#tribe-events-footer {
	display: none;
}
