/**
 * Team Page Custom Styles
 */

:root {
	--mp-orange: #FF8C00;
	--mp-blue: #5fa3f5;
	--mp-text-dark: #2C3E50;
	--mp-light-gray: #F8F9FA;
	--mp-medium-gray: #E0E0E0;
	--mp-white: #FFFFFF;
}

/* Team Page Section */
.team-page {
	padding: 4rem 0;
	background-color: var(--mp-white);
}

/* Team Header */
.team-header {
	text-align: center;
	margin-bottom: 3rem;
}

.team-header h1 {
	font-size: 2.5rem;
	color: var(--mp-text-dark);
	font-weight: 600;
	margin-bottom: 1rem;
	position: relative;
	display: inline-block;
}

.team-header h1::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 4px;
	background: linear-gradient(90deg, var(--mp-orange) 0%, var(--mp-blue) 100%);
	border-radius: 2px;
}

.team-subtitle {
	font-size: 1.125rem;
	color: #6c757d;
	margin-top: 1.5rem;
	margin-bottom: 0;
}

/* Team Grid */
.team-grid {
	margin-top: 2rem;
}

.team-member {
	margin-bottom: 2rem;
	padding: 0 15px;
}

/* Team Card */
.team-card {
	background: var(--mp-white);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.team-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.team-card__image {
	width: 100%;
	height: 350px;
	overflow: hidden;
	position: relative;
}

.team-card__image::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
	transition: opacity 0.3s ease;
}

.team-card:hover .team-card__image::after {
	opacity: 0.5;
}

.team-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.team-card:hover .team-card__image img {
	transform: scale(1.05);
}

.team-card__content {
	padding: 1.5rem;
	text-align: center;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.team-card__name {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--mp-text-dark);
	margin-bottom: 0.5rem;
	line-height: 1.4;
}

.team-card__role {
	font-size: 0.95rem;
	color: #6c757d;
	margin-bottom: 1rem;
	min-height: 2.5rem;
	line-height: 1.4;
}

.team-card__bio-btn {
	background: linear-gradient(135deg, var(--mp-orange) 0%, #ff9f33 100%);
	color: var(--mp-white);
	border: none;
	padding: 0.625rem 1.75rem;
	border-radius: 25px;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 4px 8px rgba(255, 140, 0, 0.2);
}

.team-card__bio-btn:hover {
	background: linear-gradient(135deg, var(--mp-blue) 0%, #5fa2b8 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(74, 144, 226, 0.3);
}

.team-card__bio-btn:active {
	transform: translateY(0);
}

/* Team Modal Styling */
.team-modal .modal-content {
	border-radius: 12px;
	border: none;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.team-modal .modal-header {
	background: linear-gradient(135deg, var(--mp-orange) 0%, var(--mp-blue) 100%);
	color: var(--mp-white);
	border-bottom: none;
	padding: 2rem;
	border-radius: 12px 12px 0 0;
}

.modal-header-content {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	width: 100%;
}

.modal-team-photo {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid var(--mp-white);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-header-text {
	flex: 1;
}

.team-modal .modal-title {
	font-size: 1.75rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
	color: var(--mp-white);
}

.modal-role {
	font-size: 1rem;
	margin-bottom: 0;
	color: rgba(255, 255, 255, 0.9);
	font-weight: 400;
}

.team-modal .btn-close {
	filter: brightness(0) invert(1);
	opacity: 0.8;
}

.team-modal .btn-close:hover {
	opacity: 1;
}

.team-modal .modal-body {
	padding: 2rem;
	font-size: 1rem;
	line-height: 1.8;
	color: var(--mp-text-dark);
}

.team-modal .modal-body p {
	margin-bottom: 1rem;
}

.team-modal .modal-body p:last-child {
	margin-bottom: 0;
}

/* No Team Members Message */
.no-team-members {
	text-align: center;
	padding: 3rem 1.5rem;
	background: var(--mp-light-gray);
	border-radius: 8px;
	margin-top: 2rem;
}

.no-team-members p {
	color: #6c757d;
	font-size: 1.125rem;
	margin: 0;
}

/* Team Bottom Content */
.team-bottom-content {
	margin-top: 4rem;
	padding-top: 3rem;
	border-top: 2px solid var(--mp-medium-gray);
}

.team-bottom-content h2,
.team-bottom-content h3,
.team-bottom-content h4 {
	color: var(--mp-text-dark);
	margin-top: 1.5rem;
	margin-bottom: 1rem;
}

.team-bottom-content h2 {
	font-size: 2rem;
	font-weight: 600;
}

.team-bottom-content h3 {
	font-size: 1.5rem;
	font-weight: 600;
}

.team-bottom-content p {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--mp-text-dark);
	margin-bottom: 1rem;
}

.team-bottom-content a {
	color: var(--mp-orange);
	text-decoration: none;
	transition: color 0.3s ease;
}

.team-bottom-content a:hover {
	color: var(--mp-blue);
	text-decoration: underline;
}

.team-bottom-content ul,
.team-bottom-content ol {
	margin-bottom: 1.5rem;
	padding-left: 2rem;
}

.team-bottom-content li {
	margin-bottom: 0.5rem;
	line-height: 1.8;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
	.team-header h1 {
		font-size: 2rem;
	}
	
	.team-card__image {
		height: 240px;
	}
	
	.team-page {
		padding: 3rem 0;
	}
	
	.team-bottom-content {
		margin-top: 3rem;
		padding-top: 2.5rem;
	}
	
	.team-bottom-content h2 {
		font-size: 1.75rem;
	}
}

@media (max-width: 767.98px) {
	.team-header h1 {
		font-size: 1.75rem;
	}
	
	.team-subtitle {
		font-size: 1rem;
	}
	
	.team-card__image {
		height: 300px;
	}
	
	.team-member {
		margin-bottom: 1.5rem;
	}
	
	.modal-header-content {
		flex-direction: column;
		text-align: center;
	}
	
	.modal-team-photo {
		width: 100px;
		height: 100px;
	}
	
	.team-modal .modal-body {
		padding: 1.5rem;
	}
	
	.team-page {
		padding: 2rem 0;
	}
	
	.team-bottom-content {
		margin-top: 2.5rem;
		padding-top: 2rem;
	}
	
	.team-bottom-content h2 {
		font-size: 1.5rem;
	}
	
	.team-bottom-content h3 {
		font-size: 1.25rem;
	}
}

@media (max-width: 575.98px) {
	.team-card__image {
		height: 280px;
	}
	
	.team-card__content {
		padding: 1.25rem;
	}
	
	.team-card__name {
		font-size: 1.125rem;
	}
	
	.team-card__role {
		font-size: 0.875rem;
		min-height: auto;
	}
	
	.team-card__bio-btn {
		padding: 0.5rem 1.5rem;
		font-size: 0.85rem;
	}
}
