/* Team Page Specific Styles */

/* Page Hero Section */
.page-hero {
	background: linear-gradient(135deg, var(--primary-blue) 0%, #1E40AF 100%);
	color: var(--white);
	padding: 8rem 0 4rem;
	margin-top: 5rem;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.page-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.page-hero .container {
	position: relative;
	z-index: 1;
}

.page-hero h1 {
	font-size: 3rem;
	font-weight: bold;
	margin-bottom: 1rem;
	line-height: 1.2;
}

.page-hero p {
	font-size: 1.3rem;
	opacity: 0.9;
	max-width: 50rem;
	margin: 0 auto;
}

/* Team Section Container */
.team-section {
	padding: 4rem 0;
}

.team-section:nth-child(odd) {
	background: var(--white);
}

.team-section:nth-child(even) {
	background: var(--light-gray);
}

.board-section {
	background: var(--light-blue) !important;
}

.nigeria-section {
	background: var(--light-green) !important;
}

.field-section {
	background: var(--light-orange) !important;
}

.section-intro {
	text-align: center;
	color: var(--text-secondary);
	font-size: 1.1rem;
	max-width: 45rem;
	margin: -1rem auto 3rem;
}

/* Country Header */
.country-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	margin-bottom: 3rem;
	flex-wrap: wrap;
}

.country-header .section-title {
	margin-bottom: 0;
}

/* CEO Feature Section */
.ceo-feature {
	display: flex;
	gap: 3rem;
	align-items: center;
	background: var(--white);
	padding: 3rem;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	margin-bottom: 4rem;
	border-top: 4px solid var(--primary-orange);
    text-decoration: none;
}

.ceo-feature .team-member-photo {
	flex-shrink: 0;
	width: 16rem;
	height: 16rem;
}

.ceo-info {
	flex: 1;
}

.ceo-info h3 {
	font-size: 2rem;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
}

.ceo-info .title {
	font-size: 1.2rem;
	color: var(--primary-orange);
	font-weight: 600;
	margin-bottom: 1.5rem;
}

.ceo-info .bio {
	color: var(--text-secondary);
	line-height: 1.7;
	font-size: 1.05rem;
}

/* Team Grid (Flexbox) */
.team-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: center;
}

/* Team Member Card */
.team-member {
	background: var(--white);
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	transition: all 0.3s ease;
	width: calc(33.333% - 1.4rem);
	max-width: 90%;
	min-width: 12rem;
	border-top: 4px solid var(--primary-orange);
    text-decoration: none;
}

.team-member:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Country Operations */
.country-section .team-grid {
	gap: 1.5rem;
}
.country-section .team-member {
	width: 15rem;
}
.country-section .team-member-photo {
	height: 15rem;
}

/* Field Staff Grid - 8 columns */
.field-grid {
	gap: 1rem;
}
.field-grid .team-member {
	width: 12rem;
}
.field-grid .team-member-photo {
	height: 12rem;
}
.field-grid .team-member-info h4 {
	font-size: 1rem;
}
.field-grid .team-member-info .title {
	font-size: 0.8rem;
}


/* Team Member Photo */
.team-member-photo {
	width: 100%;
	height: 22rem;
	overflow: hidden;
	background: var(--light-gray);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ceo-feature .team-member-photo,
.team-member-photo {
	position: relative;
}

.team-member-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ceo-feature .team-member-photo img {
	border-radius: 10px;
}

/* Placeholder styling for demo images */
.team-member-photo img[src*="placeholder"] {
	opacity: 0.6;
	filter: grayscale(20%);
}

/* Team Member Info */
.team-member-info {
	padding: 1.5rem;
	text-align: center;
}

.team-member-info h4 {
	font-size: 1.3rem;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.team-member-info .title {
	color: var(--primary-orange);
	font-size: 0.95rem;
	font-weight: 500;
	margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.team-member {
		width: calc(50% - 1rem);
	}
	
	.field-grid .team-member {
		width: calc(33.333% - 1.4rem);
	}
}

@media (max-width: 768px) {
	.page-hero {
		padding: 6rem 0 3rem;
	}

	.page-hero h1 {
		font-size: 2.2rem;
	}

	.page-hero p {
		font-size: 1.1rem;
	}

	.ceo-feature {
		flex-direction: column;
		text-align: center;
		padding: 2rem;
		gap: 2rem;
	}

	.ceo-feature .team-member-photo {
		width: 200px;
		height: 200px;
		margin: 0 auto;
	}

	.ceo-info h3 {
		font-size: 1.6rem;
	}

	.ceo-info .title {
		font-size: 1.1rem;
	}

	.team-member {
		width: 100%;
	}

	.field-grid .team-member {
		width: calc(50% - 1rem);
	}

	.country-header {
		flex-direction: column;
		gap: 1rem;
	}
}

@media (max-width: 480px) {
	.team-section {
		padding: 3rem 0;
	}

	.page-hero h1 {
		font-size: 1.8rem;
	}

	.page-hero p {
		font-size: 1rem;
	}

	.ceo-feature .team-member-photo {
		width: 180px;
		height: 180px;
	}

	.team-member-photo {
		height: 250px;
	}

	.section-intro {
		font-size: 1rem;
	}
}