/* ==========================================================================
   Team Member Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   Single Team Member Page Layout
   -------------------------------------------------------------------------- */
.team-single-main {
	background-color: #f8fafc;
	padding: 40px 20px 80px 20px;
	min-height: calc(100vh - 200px);
	font-family: 'Urbanist', 'Karla', system-ui, -apple-system, sans-serif;
}

.team-single-container {
	max-width: 1440px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
}

/* Left Sidebar Column */
.team-single-sidebar {
	flex: 0 0 340px;
	max-width: 340px;
	position: sticky;
	top: 100px;
}

.team-sidebar-card {
	background: #ffffff;
	border-radius: 20px;
	padding: 32px 24px;
	text-align: center;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	border: 1px solid #e2e8f0;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-sidebar-card:hover {
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.team-single-image-wrap {
	width: 180px;
	height: 180px;
	margin: 0 auto 24px auto;
	border-radius: 50%;
	overflow: hidden;
	border: 4px solid #ffffff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	background-color: #e2e8f0;
}

.team-single-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.team-sidebar-card:hover .team-single-image {
	transform: scale(1.05);
}

.team-single-image-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
	color: #ffffff;
	font-size: 64px;
	font-weight: 700;
	text-transform: uppercase;
}

.team-single-name {
	font-size: 26px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 8px 0;
	line-height: 1.25;
}

.team-single-designation {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	color: #4f46e5;
	background-color: #eef2ff;
	padding: 6px 16px;
	border-radius: 20px;
	margin: 8px 0 0 0;
	letter-spacing: 0.3px;
}

/* Right Content Area */
.team-single-content-area {
	flex: 1 1 0%;
	min-width: 300px;
}

.team-content-card {
	background: #ffffff;
	border-radius: 20px;
	padding: 40px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	border: 1px solid #e2e8f0;
}

.team-single-body-content {
	font-size: 16px;
	line-height: 1.8;
	color: #334155;
}

.team-single-body-content img,
.team-single-body-content iframe,
.team-single-body-content video,
.team-single-body-content object,
.team-single-body-content embed {
	max-width: 100%;
	height: auto;
	box-sizing: border-box;
}

.team-single-body-content table {
	display: block;
	overflow-x: auto;
	width: 100%;
	max-width: 100%;
}

.team-single-body-content p {
	margin-bottom: 20px;
}

.team-single-body-content h1,
.team-single-body-content h2,
.team-single-body-content h3,
.team-single-body-content h4 {
	color: #0f172a;
	margin-top: 32px;
	margin-bottom: 16px;
	font-weight: 700;
}

/* --------------------------------------------------------------------------
   Team Section Grid Layout (Shortcode Display)
   -------------------------------------------------------------------------- */
.team-section-container {
	width: 100%;
	margin: 30px 0;
}

.team-section-grid {
	display: grid;
	gap: 28px;
}

.team-grid-cols-1 {
	grid-template-columns: 1fr;
}

.team-grid-cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.team-grid-cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

.team-grid-cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

/* Team Card */
.team-card-link-wrapper {
	text-decoration: none;
	color: inherit;
	display: block;
	height: 100%;
}

.team-card {
background: #ffffff00;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f000;
    box-shadow: 0 4px 15px rgb(0 0 0 / 0%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    text-align: center;
    height: 100%;
}

.team-card-link-wrapper:hover .team-card {
	transform: translateY(-6px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.team-card-image-wrap {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-color: #f1f5f9;
	position: relative;
}

.team-card-image-link {
	display: block;
	width: 100%;
	height: 100%;
}

.team-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.team-card:hover .team-card-image {
	transform: scale(1.06);
}

.team-card-image-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
	color: #ffffff;
	font-size: 48px;
	font-weight: 700;
}

.team-card-content {
	padding: 20px 16px 24px 16px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.team-card-name {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 6px 0;
	color: #0f172a;
	line-height: 1.3;
}

.team-card-name a {
	color: #0f172a;
	text-decoration: none;
	transition: color 0.2s ease;
}

.team-card-name a:hover {
	color: #4f46e5;
}

.team-card-designation {
	font-size: 14px;
	color: #64748b;
	margin: 0;
	font-weight: 500;
}

/* Empty state */
.team-section-empty {
	text-align: center;
	color: #64748b;
	font-size: 15px;
	padding: 30px;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints - Single Team Member Page & Team Grid
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
	.team-single-container {
		max-width: 100%;
		gap: 30px;
	}
	.team-single-sidebar {
		flex: 0 0 300px;
		max-width: 300px;
	}
}

@media (max-width: 1024px) {
	.team-grid-cols-4 {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 991px) {
	.team-single-main {
		padding: 30px 20px 60px 20px;
	}

	.team-single-container {
		flex-direction: column;
		gap: 24px;
	}

	.team-single-sidebar {
		flex: 1 1 100%;
		max-width: 100%;
		position: static;
		width: 100%;
	}

	.team-sidebar-card {
		display: flex;
		flex-direction: row;
		align-items: center;
		text-align: left;
		padding: 24px 30px;
		gap: 24px;
	}

	.team-single-image-wrap {
		margin: 0;
		width: 120px;
		height: 120px;
		flex-shrink: 0;
	}

	.team-single-name {
		font-size: 24px;
	}
}

@media (max-width: 768px) {
	.team-single-main {
		padding: 20px 16px 50px 16px;
	}

	.team-sidebar-card {
		flex-direction: column;
		text-align: center;
		padding: 24px 20px;
		gap: 16px;
	}

	.team-single-image-wrap {
		margin: 0 auto;
		width: 140px;
		height: 140px;
	}

	.team-grid-cols-3,
	.team-grid-cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.team-content-card {
		padding: 24px 20px;
		border-radius: 16px;
	}

	.team-single-body-content {
		font-size: 15px;
		line-height: 1.7;
	}
}

@media (max-width: 480px) {
	.team-single-main {
		padding: 16px 12px 40px 12px;
	}

	.team-sidebar-card {
		padding: 20px 16px;
		border-radius: 14px;
	}

	.team-single-image-wrap {
		width: 110px;
		height: 110px;
	}

	.team-single-name {
		font-size: 20px;
	}

	.team-single-designation {
		font-size: 13px;
		padding: 4px 12px;
	}

	.team-content-card {
		padding: 18px 14px;
		border-radius: 14px;
	}

	.team-grid-cols-2,
	.team-grid-cols-3,
	.team-grid-cols-4 {
		grid-template-columns: 1fr;
	}
}


