.web_team{
	width: 100%;
	height: 100%;
	padding: 0 5%;
	background-color: var(--white);
	padding-bottom: 50px;
}

.web_team_container{
	width: 100%;
	height: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

.web_team_headingcontainer{
	padding-top: 50px;
}

.web_team_headingcontainer > h1{
	margin-bottom: 25px;
}

.web_team_cardcontainer{
	width: 100%;
	height: auto;
	gap: 25px;
	margin-top: 50px;
}

.web_team_card{
	width: 100%;
	height: auto;
	padding: 10px;
}

.web_team_imagecontainer{
	width: 100%;
	height: auto;
	border-radius: 50%;
	display: flex;
	justify-content: center;
}

.web_team_imagecontainer > img{
	width: 100%;
	height: 100%;
	max-height: 175px;
	max-width: 175px;
	object-fit: cover;
	border-radius: 50%;
}

.web_team_cardcontent{
	width: 100%;
	text-align: center;
	height: auto;
	display: flex;
	flex-direction: column;
}

.web_team_cardcontent > h2{
	font-size: 24px !important;
	line-height: 1.3;
	margin-top: 20px;
}

.web_team_cardcontent > p {
	font-size: 15px !important;
	line-height: 1.2;
	margin-top: 10px;
	display: -webkit-box;
	-webkit-line-clamp: 2;       /* limit to 2 lines */
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: calc(1.2em * 2); /* ensures consistent height */
}

.web_team_buttoncontainer {
	margin-top: 15px;
	overflow: hidden; /* keeps animation contained */
}

.web_team_button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font);
	font-weight: bold;
	text-transform: uppercase;
	font-size: 16px;
	color: var(--gold);
	text-decoration: none;
	position: relative;
	transition: color 0.3s ease;
	margin-bottom: 15px;
}

/* Subtle underline slide effect */
.web_team_button::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0%;
	height: 2px;
	background-color: var(--gold);
	transition: width 0.3s ease;
}

.web_team_button:hover::after {
	width: 100%;
}

/* Animated arrow (the <p> element) */
.web_team_button > p {
	margin-top: 2px;
	font-size: 18px;
	line-height: 1;
	transform: translateX(0);
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.web_team_button:hover > p {
	transform: translateX(-5px);
	opacity: 1;
}

.web_team_button:hover {
	color: black;
}

/* Details page */
.web_teams_details {
	width: 100%;
	padding: 50px 5%;
	min-height: 80dvh;
}

.web_teams_detailscontainer {
	width: 100%;
	height: auto;
	max-width: 1200px;
	margin: 0 auto;
}

.go_back{
	width: 100%;
	height: auto;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 0 25px 0;
	font-weight: 500;
}

.go_back > a:hover{
	text-decoration: underline;
}

.web_teams_polaroid {
	width: 300px;
	background-color: var(--white);
	padding: 20px;
	float: left; 
	margin: 0 30px 30px 0; 
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.web_teams_polaroid > img {
	width: 100%;
	height: auto;
	max-height: 250px;
	object-fit: cover;
	display: block;
}

.web_teams_polaroid > p {
	font-size: 22px;
	text-align: center;
	font-family: var(--font);
	font-weight: bold;
	letter-spacing: 1px;
	padding-top: 10px;
	padding-bottom: 10px;
}


.web_team_details_content {
	line-height: 1.5;
	text-wrap: wrap;
}

@media screen and  (max-width: 768px) {
	.web_teams_details{
		padding: 0 5%;
	}
	
	.web_teams_polaroid {
		float: none;
		display: block;
	}

	.web_team_details_content {
		clear: both;
	}
	
	.web_teams_details_polaroid {
		display: flex;
		flex-direction: column-reverse;
	}
	
	.web_teams_polaroid{
		margin-top: 30px;
	}
	
	..web_teams_polaroid > img {
		width: 100%;
		height: auto;
		max-height: 250px;
		object-fit: cover;
	}
}

@media screen and (max-width: 450px){
	.web_team_imagecontainer > img{
		max-height: 125px;
		max-width: 125px;
	}
	
	.web_team_cardcontainer{
		gap: 10px !important;
	}
	
	.web_team_cardcontent > h2{
		font-size: 20px !important;
	}
}
