/**
 * Karunguru Team Section Styles
 * Matches Karunguru Coffee Estate brand: #142F1B (green), #EEB949 (gold), #231F20 (text)
 */

.kce-team-section {
	padding: 80px 0;
	background-color: #faf9f6;
}

.kce-team-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Section Title - displays exactly as typed */
.kce-team-title {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 42px;
	font-weight: 400;
	color: #142F1B;
	text-align: center;
	margin: 0 0 60px 0;
	letter-spacing: normal !important;
	text-transform: none !important;
}

/* Team Row */
.kce-team-row {
	display: flex;
	justify-content: center;
	gap: 40px;
	flex-wrap: wrap;
	margin-bottom: 50px;
}

.kce-team-row:last-child {
	margin-bottom: 0;
}

/* Team Card */
.kce-team-card {
	text-align: center;
	width: 280px;
	flex-shrink: 0;
}

/* Card link wrapper */
.kce-team-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.kce-team-link:hover,
.kce-team-link:focus {
	text-decoration: none;
	color: inherit;
}

/* Clickable card hover effect */
.kce-team-card.has-bio .kce-team-link:hover .kce-team-photo img {
	transform: scale(1.05);
}

.kce-team-card.has-bio .kce-team-link:hover .kce-team-bio-btn {
	background-color: #142F1B;
	color: #ffffff;
}

/* Photo Container - with rounded corners */
.kce-team-photo {
	width: 280px;
	height: 340px;
	overflow: hidden;
	margin-bottom: 20px;
	background-color: #e8e5e0;
	position: relative;
	border-radius: 8px;
}

.kce-team-photo img {
	display: block !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: center top !important;
	transition: transform 0.4s ease;
	border-radius: 8px;
}

.kce-team-card:hover .kce-team-photo img {
	transform: scale(1.03);
}

/* Name - displays exactly as typed */
.kce-team-name {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 24px;
	font-weight: 600;
	color: #142F1B;
	margin: 0 0 6px 0;
	line-height: 1.3;
	text-transform: none !important;
}

/* Job Title - displays exactly as typed (no forced uppercase) */
.kce-team-role {
	font-family: 'Lato', Arial, sans-serif;
	font-size: 13px;
	font-weight: 400;
	color: #EEB949;
	text-transform: none !important;
	letter-spacing: 0.5px;
	margin: 0 0 12px 0;
}

/* View Bio Button */
.kce-team-bio-btn {
	display: inline-block;
	font-family: 'Lato', Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #142F1B;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 8px 20px;
	border: 1.5px solid #142F1B;
	border-radius: 4px;
	margin-top: 8px;
	transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 960px) {
	.kce-team-section {
		padding: 60px 0;
	}

	.kce-team-title {
		font-size: 36px;
		margin-bottom: 50px;
	}

	.kce-team-row {
		gap: 30px;
		margin-bottom: 40px;
	}

	.kce-team-card {
		width: 240px;
	}

	.kce-team-photo {
		width: 240px;
		height: 300px;
	}

	.kce-team-name {
		font-size: 22px;
	}
}

@media (max-width: 640px) {
	.kce-team-section {
		padding: 50px 0;
	}

	.kce-team-title {
		font-size: 30px;
		margin-bottom: 40px;
	}

	.kce-team-row {
		gap: 30px;
		margin-bottom: 30px;
	}

	.kce-team-card {
		width: 260px;
	}

	.kce-team-photo {
		width: 260px;
		height: 320px;
	}

	.kce-team-name {
		font-size: 22px;
	}

	.kce-team-role {
		font-size: 12px;
	}
}

@media (max-width: 380px) {
	.kce-team-card {
		width: 100%;
		max-width: 280px;
	}

	.kce-team-photo {
		width: 100%;
		height: 0;
		padding-bottom: 120%;
	}
}

/* -------------------------------------------------------------------------
 * Single Bio Page Styles
 * ---------------------------------------------------------------------- */

.kce-bio-page {
	padding: 60px 0 80px;
	background-color: #faf9f6;
	min-height: 60vh;
}

.kce-bio-container {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 24px;
}

.kce-bio-header {
	display: flex;
	gap: 40px;
	align-items: flex-start;
	margin-bottom: 40px;
}

.kce-bio-photo {
	width: 280px;
	height: 340px;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 8px;
	background-color: #e8e5e0;
	position: relative;
}

.kce-bio-photo img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	border-radius: 8px;
}

.kce-bio-intro {
	padding-top: 20px;
}

.kce-bio-name {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 42px;
	font-weight: 600;
	color: #142F1B;
	margin: 0 0 10px 0;
	line-height: 1.2;
	text-transform: none !important;
}

.kce-bio-title {
	font-family: 'Lato', Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #EEB949;
	margin: 0;
	text-transform: none !important;
}

.kce-bio-content {
	font-family: 'Lato', Arial, sans-serif;
	font-size: 16px;
	line-height: 1.8;
	color: #231F20;
}

.kce-bio-content p {
	margin: 0 0 1.5em 0;
}

.kce-bio-content p:last-child {
	margin-bottom: 0;
}

.kce-bio-back {
	margin-top: 50px;
	padding-top: 30px;
	border-top: 1px solid #e0ddd8;
}

.kce-bio-back-link {
	font-family: 'Lato', Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #142F1B;
	text-decoration: none;
	transition: color 0.3s ease;
}

.kce-bio-back-link:hover {
	color: #EEB949;
}

/* Bio page responsive */
@media (max-width: 768px) {
	.kce-bio-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 24px;
	}

	.kce-bio-photo {
		width: 220px;
		height: 280px;
	}

	.kce-bio-intro {
		padding-top: 0;
	}

	.kce-bio-name {
		font-size: 32px;
	}

	.kce-bio-content {
		font-size: 15px;
	}
}
