.team-filter-form {
	margin-top: 25px;
	margin-bottom: 50px;
}

.filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	align-items: center;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.filter-search {
	position: relative;
	flex: 1 1 250px;
}

.filter-search input {
	font-size: 18px !important;
	width: 100%;
	padding: 10px 30px;
	border: 2px solid #000;
	border-radius: 100px;
	color: #000 !important;
}

.filter-search input::placeholder {
	color: #000 !important;
	opacity: 1;
}

.filter-search .search-btn {
	position: absolute;
	right: 0px;
	top: 50%;
	transform: translateY(-50%);
	border: none;
	background: none;
	background-color: transparent !important;
	cursor: pointer;
	line-height: 0 !important;
}

.filter-search .search-btn:hover,
.filter-search .search-btn:focus,
.filter-search .search-btn:focus-visible {
	background-color: transparent !important;
	color: #BA7E3B !important;
	outline: 0 !important;
}
.filter-search .search-btn:hover svg {
	filter: brightness(0) saturate(100%) invert(11%) sepia(39%) saturate(2417%) hue-rotate(185deg) brightness(97%) contrast(105%);
}

.filter-dropdown select {
	padding: 10px 30px;
	border: 2px solid #000;
	border-radius: 100px;
}

.custom-dropdown {
	position: relative;
	display: inline-block;
	width: 100%;
}

body button.dropdown-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-family: inherit;
	font-size: 18px;
	border-radius: 100px !important;
	width: 100% !important;
	background: #fff;
	border: 2px solid #000;
	padding: 10px 30px;
	cursor: pointer;
	color: #000;
	transition: color 0.3s ease;
}

body .custom-dropdown.open button.dropdown-toggle {
	border-radius: 25px 25px 0 0 !important;
	
}

.dropdown-menu {
	position: absolute;
	background: #fff;
	border: 1px solid #ccc;
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	display: none;
	z-index: 10;
	border-top: 0px;
	border-bottom: 2px solid #000;
	border-left: 2px solid #000;
	border-right: 2px solid #000;
	border-radius: 0 0 25px 25px !important;
	overflow: hidden;
}

.dropdown-menu li {
	padding: 10px;
	cursor: pointer;
	list-style: none;
	width: 100%;
    box-sizing: border-box;
}

.dropdown-menu li:hover,
.dropdown-menu li.active {
	background: #1b448e;
    color: #fff;
}

/* .dropdown-menu li:last-child:hover,
.dropdown-menu li:last-child.active {
	border-radius: 0 0 25px 25px !important;
} */

.custom-dropdown.open .dropdown-menu {
	display: block;
}

.dropdown-toggle svg {
	transition: transform 0.3s ease;
}

/* .custom-dropdown.open .dropdown-toggle svg {
	transform: rotate(180deg);
} */

.clear-filter {
	position: relative;
	text-decoration: none;
	color: #000;
	overflow: hidden;
}

.clear-filter::after {
	content: "";
	position: absolute;
	bottom: 0;
	right: 0;
	width: 100% !important;
	height: 1.26px !important;
	background-color: #000 !important;
	transition: width 0.3s ease !important;
}

.clear-filter:hover::after {
	width: 0 !important;
}

/* Team Grid Styles */
.team-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
}

.team-card {
	position: relative;
	overflow: hidden;
	background: #fff;
	cursor: pointer;
}

.team-thumb img {
	width: 100%;
	height: 250px;
	aspect-ratio: 2/3;
	object-fit: cover;
	margin-bottom: 0px !important;
}

.team-content {
	padding: 20px 0px;
}

.team-name {
	margin-bottom: 10px;
	font-size: 20px;
	font-weight: 600;
}

.team-name a {
	color: #000;
	text-decoration: none;
}

.team-position {
	font-family: Montserrat !important;
	font-size: 16px;
	font-weight: 400;
	padding-bottom: 5px;
}

.team-excerpt {
	padding-bottom: 60px !important;
}

.team-popup-btn {
	position: relative;
	text-decoration: none;
	font-family: Montserrat !important;
	font-size: 18px;
	font-weight: 500;
	color: #000;
	overflow: hidden;
	background-color: transparent !important;
	border: none !important;
	border-radius: 0px !important;
	padding: 0px !important;
}

.team-popup-btn::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1.26px;
	background-color: currentcolor;      /* underline color */
	transform: scaleX(1);        /* hidden initially */
	transform-origin: right;
	transition: transform 0.4s cubic-bezier(.23,.46,.4,1);
	z-index: 1;
}

.team-card:hover .team-popup-btn::after {
	transform: scaleX(0);        /* show underline on hover */
}

.team-pagination {
	margin-top: 80px;
	text-align: center;
}

.team-pagination .page-numbers {
	font-family: Montserrat !important;
	font-size: 26px;
	color: #000;
}

.team-pagination .page-numbers:not(:last-child) {
	margin-right: 25px;
}

.team-pagination .page-numbers.current {
	color: #BA7E3B;
}

.team-pagination .page-numbers:hover {
	color: #BA7E3B;
}

p.team-department,
p.team-office,
p.team-phone,
p.team-email {
	padding-bottom: 0px;
}

.no-results {
	text-align: center;
	margin-top: 20px;
	margin-bottom: 150px !important;
}

#team-content p.sub-heading {
	font-family: Montserrat !important;
	font-size: 18px;
	padding-bottom: 15px !important;
}

#team-content h3 {
	margin-bottom: 25px;
}

#team-content p.author {
	font-family: Montserrat !important;
	font-size: 18px;
}

.single-teams .vc_custom_heading {
	margin-bottom: 50px;
}

.team-link {
  display: flex;
  align-items: center;
  gap: 20px; 
}

.team-popup-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.8);
	z-index: 99999; /* increase z-index */
	justify-content: center;
	align-items: center;
}

.team-popup {
	background: #fff;
	width: 100% !important;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
}

.popup-close {
	position: absolute;
	top: 50px;
	right: 50px;
	background: none;
	border: none;
	font-size: 50px;
	cursor: pointer;
	color: #fff;
	z-index: 999;
}

.popup-designation {
	padding-bottom: 0px !important;
}

.popup-content {
/* 	display: flex; */
	height: 100%;
}

/* .popup-left,
.popup-right {
  flex: 1;
  box-sizing: border-box;
} */

.popup-left {
/* 	place-content: center;
	overflow-y: auto; */
	width: 100%;
    left: 0;
    position: relative;
    padding: 8% 60% 4% 10%;
    overflow-y: scroll;
    margin: auto 0;
    max-height: 100vh;
}

/* .popup-left-content {
	padding: 80px;
} */

.popup-right {
/* 	padding: 0px;
	display: flex;
	justify-content: center;
	align-items: center; */
	height: 100%;
    width: 50%;
    position: fixed;
    right: 0;
    top: 0;
    pointer-events: none;
}

.popup-thumbnail {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	border-radius: 100px 10px 10px 10px;
	margin-bottom: 0px !important;
}

.popup-title {
	margin: 10px 0 50px 0 !important;
}

.popup-description {
	padding-bottom: 50px !important;
}

.popup-icon {
    width: 24px;
    height: 24px;
    margin-right: 50px;
    vertical-align: middle;
}


.team-popup-overlay.active {
	display: flex;
}

/* Responsive */
@media (max-width: 1360px) {
	.team-grid,
	.filter-bar {
		grid-template-columns: repeat(3, 1fr);
	}
	.popup-left {
		padding: 8% 55% 4% 5%;
	}
}

@media (max-width: 900px) {
	.team-grid,
	.filter-bar {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.team-grid,
	.filter-bar {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.team-filter-form {
		margin-top: 50px;
	}
	
	.team-popup {
		 height: auto;
		 max-height: 100vh;
		 overflow-y: auto; 
	}

	.team-popup-overlay {
		align-items: flex-start;
	}
	
/* 	.popup-content {
		flex-direction: column;
	} */
	
	.popup-left {
		width: 100%;
		padding: 10%;
	}
	
	.popup-right {
		display: none;
	}
	
/* 	.popup-left-content, .popup-right {
		padding: 30px;
	} */
	
	.popup-close {
		position: unset;
/* 		top: 20px;
		left: 10%; */
		text-align: left;
		color: #000;
		padding: 0 !important;
	}
	
	.popup-icon {
		margin-right: 10px;
	}
}
