/* team content */
.team_page_content{
	width: 100%;
	height: auto;
}

/* team banner */
.team_container{
	width: 100%;
	height: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.team_container > figure {
	width: 100%;
	hieght: auto;
	overflow: hidden;
}

.team_container > figure > img {
	width: 100%;
	height: auto;
	max-height: 50vh;
	object-fit: cover;
	object-position: center;
	border-bottom: 1px solid var(--main-color);
	display: block;
	position: relative;
	z-index: 0;
}

@media screen and (max-width: 1200px){
	.team_container > figure > img {
		max-height: 40vh;
	}
}

@media screen and (max-width: 900px){
	.team_container > figure > img {
		max-height: 30vh;
	}
}

@media screen and (max-width: 500px){
	.team_container > figure > img {
		max-height: 25vh;
		transform: scale(1.3); 
	}
}

@media screen and (max-width: 400px){
	.team_container > figure > img {
		max-height: 20vh;
		transform: scale(1.5); 
	}
}


/* team members */
.team_content {
	width: 100%;
	height: auto;
	padding-top: 25px;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 25px;
	margin: 0;
	margin-bottom: 20px; 
}

@media screen and (max-width: 1250px) {
	.team_content {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and (max-width: 900px) {
	.team_content {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 550px) {
	.team_content {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* team cards */
.team_card {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	background-color: #fff;
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	min-height: 400px;
}

.team_card:hover {
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Image section */
.team_card figure {
	position: relative;
	height: 350px;
	margin: 0;
}

.team_card figure::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.team_card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	display: block;
	position: relative;
	z-index: 0;
	border: 8px solid white;
	border-radius: 20px;
}

/* Info section */
.team_info {
	padding: 20px 16px;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.team_info h3 {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--main-color);
	letter-spacing: 0.5px;
}

.team_info p {
	margin-top: 8px;
	font-size: 0.95rem;
	color: var(--text-color);
	opacity: 0.85;
}

@media screen and (max-width: 550px){
	.team_card {
		min-height: 0 !important;
	}
	
	.team_card figure {
		position: relative;
		max-height: 200px;
		margin: 0;
	}
	
	.team_info{
		padding: 5px 10px;
	}
	
	.team_content{
		gap: 5px;
	}
	
	.team_info h3 {
		margin: 0;
		font-size: 15px;
		font-weight: 600;
		color: var(--main-color);
		letter-spacing: 0.5px;
	}
}