/**
 * Our Team — archive + single styles.
 */

/* Archive banner */
.team-banner-section {
	background: linear-gradient(135deg, #0f719f 0%, #084563 100%);
	color: #fff;
	/* padding: 80px 0 60px; */
	height: inherit;
	position: relative;
	padding: 35% 0 0 0;
}
.team-banner-section::before {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	content: "";
	z-index: 1;
}
.team-banner-section .ourteam-banner-image {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	inset: 0;
}

.team-banner-content {
	position: absolute;
	z-index: 1;
	width: 100%;
	top: 50%;
	transform: translateY(-50%);
}
.team-banner-content .inner-banner-title {
	color: #fff;
	margin: 0 0 12px;
}
.team-banner-content p {
	color: rgba(255, 255, 255, 0.9);
	margin: 0;
	font-size: 21px;
	text-align: center;
	font-weight: 400;
}

/* Archive grid */
.team-grid {
	display: flex;
	gap: 32px;
	flex-wrap: wrap;
	justify-content: center;
	max-width: 1450px;
	margin: auto;
}

/* Card */
.team-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(15, 113, 159, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
	max-width: calc((100% - 64px) / 3);
	width: 100%;
}
.team-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(15, 113, 159, 0.16);
}
.team-card-media {
	display: block;
	overflow: hidden;
	background: #f0f4f7;
	position: relative;
	padding: 110% 0 0 0;
}
.team-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
	position: absolute;
	inset: 0; object-fit: cover; object-position: center;
}
.team-card:hover .team-card-media img {
	transform: scale(1.04);
}
.team-card-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #dbe6ee 0%, #b6c8d3 100%);
}
.team-card-body {
	padding: 24px 24px 28px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}
.team-card-name {
	font-size: 22px;
	line-height: 1.25;
	margin: 0 0 6px;
	color: #0f719f;
	font-weight: 600;
}
.team-card-name a {
	color: inherit;
	text-decoration: none;
}
.team-card-name a:hover,
.team-card-name a:focus {
	color: #084563;
}
.team-card-position {
	font-size: 15px;
	text-transform: uppercase;
	color: #56707d;
	margin: 0 0 14px;
	font-weight: 600;
	line-height: 1.4;
}
.team-card-bio {
	margin: 0 0 20px 0;
}
.team-card-bio p {
	color: #33454e;
	font-size: 18px;
	line-height: 1.5;
	margin-bottom: 18px;
	flex: 1 1 auto;
}
.team-card-bio p:last-child {
	margin-bottom: 0;
}
.team-card-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #0f719f;
	font-weight: 600;
	text-decoration: none;
	margin-top: auto;
	align-self: flex-start;
}
.team-card-link:hover,
.team-card-link:focus {
	color: #084563;
	gap: 12px;
}

.team-empty {
	text-align: center;
	color: #56707d;
	padding: 40px 0;
}

/* Single */
.team-single {
	max-width: 1400px;
	width: 100%;
	margin: auto;
}
.team-single-header {
	display: grid;
	grid-template-columns: 360px 1fr;
	gap: 48px;
	align-items: start;
	margin-bottom: 40px;
}
.team-single-media img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	display: block;
	box-shadow: 0 8px 22px rgba(15, 113, 159, 0.14);
}
.team-single-name {
	margin: 0 0 8px !important;
	color: #0f719f;
	line-height: 1.15;
	text-align: left;
	font-weight: 600;
}
.team-single-position {
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #56707d;
	font-weight: 600;
	margin: 0 0 20px;
}
.team-single-summary p {
	color: #000;
	font-size: 20px;
	line-height: 1.8;
	margin-bottom: 20px;
}
.team-single-contact {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 24px;
}
.team-single-contact li {
	font-size: 20px;
	color: #33454e;
	margin: 0 !important;
	padding: 0;
}
.team-single-contact a {
	color: #0f719f;
	text-decoration: none;
}
.team-single-contact a:hover,
.team-single-contact a:focus {
	color: #084563;
	text-decoration: underline;
}
.team-single-contact-label {
	font-weight: 600;
	color: #56707d;
	margin-right: 4px;
}

.team-single-body p {
	margin: 0 0 18px;
	color: #000;
	font-size: 20px;
	line-height: 1.8;
}
.team-single-body p:last-child {
	margin-bottom: 0;
}

.team-single-back {
	margin: 40px 0 0;
}
.team-single-back a {
	color: #0f719f;
	text-decoration: none;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.team-single-back a:hover,
.team-single-back a:focus {
	color: #084563;
	gap: 12px;
}


/* Tablet */
@media (max-width: 1360px) {
	.team-banner-section {
		padding: 45% 0 0 0;
	}
	.team-banner-content p {
		font-size: 18px;
	}
	.team-single-summary p,
	.team-single-contact li,
	.team-single-body p{
		font-size: 18px;
	}
}

@media (max-width: 1200px) {
	.team-card {
		max-width: calc((100% - 32px) / 2);
	}
	.team-single-summary p,
	.team-single-contact li,
	.team-single-body p{
		font-size: 16px;
		line-height: 1.7;
		margin: 0 0 16px;	
	}
	.team-single-back {
		margin: 25px 0 0;
	}
}

@media (max-width: 1024px) {
	.team-single-header {
		grid-template-columns: 300px 1fr;
		gap: 32px;
	}
	.team-card-link{
		font-size: 18px;
	}
	.team-banner-content p{
		font-size: 16px;
	}
}

@media (max-width: 767px) {
	.team-banner-section {
		padding: 55% 0 0 0;
	}
	.team-single-header {
		grid-template-columns: 1fr;
		gap: 24px;
		margin-bottom: 30px;
	}
	.team-single-media {
		max-width: 450px;
		width: 100%;
	}
}

/* Mobile */
@media (max-width: 640px) {
	.team-banner-section {
		padding: 0;
		min-height: 400px;
	}
	.team-grid {
		gap: 25px 0;
	}
	.team-card {
		max-width: 500px;
	}
	.team-banner {
		padding: 60px 0 40px;
	}
	.team-banner p {
		font-size: 16px;
	}
	
	.team-card-body {
		padding: 20px 20px 24px;
	}
	.team-card-name {
		font-size: 20px;
	}
	.team-single-body {
		font-size: 16px;
	}
}
