/* TanguTech Faculty Dean */

.elementor-widget-tangutech-facultydean .tfd-dean {
	--tfd-gap: 48px;
	--tfd-stack-gap: 20px;
	--tfd-profile-width: 34%;
	--tfd-photo-size: 200px;
	--tfd-collapsed-height: 160px;
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--tfd-stack-gap);
	align-items: start;
	width: 100%;
	font-family: Manrope, "Segoe UI", sans-serif;
	box-sizing: border-box;
}

.elementor-widget-tangutech-facultydean .tfd-dean *,
.elementor-widget-tangutech-facultydean .tfd-dean *::before,
.elementor-widget-tangutech-facultydean .tfd-dean *::after {
	box-sizing: border-box;
}

/* Desktop split layouts */
@media (min-width: 1025px) {
	.elementor-widget-tangutech-facultydean .tfd-dean--profile-left,
	.elementor-widget-tangutech-facultydean .tfd-dean--profile-right {
		gap: var(--tfd-gap);
		align-items: start;
	}

	.elementor-widget-tangutech-facultydean .tfd-dean--profile-left .tfd-dean__content,
	.elementor-widget-tangutech-facultydean .tfd-dean--profile-right .tfd-dean__content {
		align-self: center;
	}

	.elementor-widget-tangutech-facultydean .tfd-dean--profile-left {
		grid-template-columns: minmax(0, var(--tfd-profile-width)) minmax(0, 1fr);
	}

	.elementor-widget-tangutech-facultydean .tfd-dean--profile-right {
		grid-template-columns: minmax(0, 1fr) minmax(0, var(--tfd-profile-width));
	}

	.elementor-widget-tangutech-facultydean .tfd-dean--profile-right .tfd-dean__profile {
		order: 2;
	}

	.elementor-widget-tangutech-facultydean .tfd-dean--profile-right .tfd-dean__content {
		order: 1;
	}
}

/* Top layouts stay stacked */
.elementor-widget-tangutech-facultydean .tfd-dean--profile-top .tfd-dean__profile {
	max-width: 640px;
	margin-inline: auto;
}

.elementor-widget-tangutech-facultydean .tfd-dean--profile-top .tfd-dean__content {
	max-width: 760px;
	margin-inline: auto;
}

.elementor-widget-tangutech-facultydean .tfd-dean--profile-top-left .tfd-dean__profile {
	max-width: none;
	margin-inline: 0;
}

/* Profile column */
.elementor-widget-tangutech-facultydean .tfd-dean__profile {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 12px;
	min-width: 0;
	width: 100%;
}

.elementor-widget-tangutech-facultydean .tfd-dean__photo-wrap,
.elementor-widget-tangutech-facultydean .tfd-dean__identity,
.elementor-widget-tangutech-facultydean .tfd-dean__action {
	display: flex;
	width: 100%;
	min-width: 0;
}

.elementor-widget-tangutech-facultydean .tfd-dean__photo-wrap {
	flex-direction: row;
	justify-content: center;
	align-items: center;
}

.elementor-widget-tangutech-facultydean .tfd-dean__identity {
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
}

.elementor-widget-tangutech-facultydean .tfd-dean__action {
	flex-direction: row;
	justify-content: center;
	align-items: center;
}

.elementor-widget-tangutech-facultydean .tfd-dean__button {
	max-width: 100%;
}

.elementor-widget-tangutech-facultydean .tfd-dean__photo {
	width: var(--tfd-photo-size);
	height: var(--tfd-photo-size);
	overflow: hidden;
	border: 3px solid #0b5fff;
	background: #e5e7eb;
	flex-shrink: 0;
}

.elementor-widget-tangutech-facultydean .tfd-dean__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Shapes */
.elementor-widget-tangutech-facultydean .tfd-dean--shape-circle .tfd-dean__photo,
.elementor-widget-tangutech-facultydean .tfd-dean--shape-circle .tfd-dean__photo img {
	border-radius: 50%;
}

.elementor-widget-tangutech-facultydean .tfd-dean--shape-rounded .tfd-dean__photo,
.elementor-widget-tangutech-facultydean .tfd-dean--shape-rounded .tfd-dean__photo img {
	border-radius: 28px;
}

.elementor-widget-tangutech-facultydean .tfd-dean--shape-soft .tfd-dean__photo,
.elementor-widget-tangutech-facultydean .tfd-dean--shape-soft .tfd-dean__photo img {
	border-radius: 16px;
}

.elementor-widget-tangutech-facultydean .tfd-dean--shape-rectangle .tfd-dean__photo {
	width: var(--tfd-photo-size);
	height: calc(var(--tfd-photo-size) * 1.15);
	border-radius: 0;
}

.elementor-widget-tangutech-facultydean .tfd-dean--shape-rectangle .tfd-dean__photo img {
	border-radius: 0;
}

.elementor-widget-tangutech-facultydean .tfd-dean--shape-square .tfd-dean__photo,
.elementor-widget-tangutech-facultydean .tfd-dean--shape-square .tfd-dean__photo img {
	border-radius: 0;
}

.elementor-widget-tangutech-facultydean .tfd-dean__name {
	margin: 0;
	color: #1f2937;
	font-family: Outfit, Manrope, "Segoe UI", sans-serif;
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.25;
}

.elementor-widget-tangutech-facultydean .tfd-dean__title {
	margin: 0;
	color: #0b5fff;
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.elementor-widget-tangutech-facultydean .tfd-dean__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 4px;
	padding: 12px 20px;
	color: #ffffff;
	background-color: #0b5fff;
	border: 0;
	border-radius: 6px;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

.elementor-widget-tangutech-facultydean .tfd-dean__button:hover {
	color: #ffffff;
	background-color: #0847c7;
	transform: translateY(-1px);
}

.elementor-widget-tangutech-facultydean .tfd-dean__button-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	color: inherit;
	flex-shrink: 0;
	transition:
		color 0.2s ease,
		opacity 0.2s ease,
		transform 0.2s ease,
		fill 0.2s ease;
}

.elementor-widget-tangutech-facultydean .tfd-dean__button-icon i,
.elementor-widget-tangutech-facultydean .tfd-dean__button-icon svg {
	display: block;
	width: 1em;
	height: 1em;
	font-size: 1em;
	fill: currentColor;
	color: inherit;
}

.elementor-widget-tangutech-facultydean .tfd-dean__button-icon svg path {
	fill: currentColor;
}

/* Bio */
.elementor-widget-tangutech-facultydean .tfd-dean__content {
	min-width: 0;
}

.elementor-widget-tangutech-facultydean .tfd-dean__bio {
	color: #374151;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.75;
}

.elementor-widget-tangutech-facultydean .tfd-dean__bio p {
	margin: 0 0 1em;
	color: inherit;
}

.elementor-widget-tangutech-facultydean .tfd-dean__bio p:last-child {
	margin-bottom: 0;
}

.elementor-widget-tangutech-facultydean .tfd-dean__bio.is-collapsible {
	position: relative;
	overflow: hidden;
	max-height: var(--tfd-collapsed-height);
	transition: max-height 0.4s ease;
}

.elementor-widget-tangutech-facultydean .tfd-dean__bio.is-collapsible.is-truncated::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 48px;
	pointer-events: none;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 90%);
	opacity: 1;
	transition: opacity 0.25s ease;
}

.elementor-widget-tangutech-facultydean .tfd-dean__bio.is-collapsible.is-expanded {
	max-height: 3000px;
}

.elementor-widget-tangutech-facultydean .tfd-dean__bio.is-collapsible.is-expanded::after {
	opacity: 0;
}

.elementor-widget-tangutech-facultydean .tfd-dean__readmore {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	padding: 0;
	color: #0b5fff;
	background: transparent;
	border: 0;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	appearance: none;
	transition: color 0.2s ease;
}

.elementor-widget-tangutech-facultydean .tfd-dean__readmore:hover {
	color: #0847c7;
}

.elementor-widget-tangutech-facultydean .tfd-dean__readmore-icon {
	display: inline-flex;
	transition: transform 0.25s ease;
}

.elementor-widget-tangutech-facultydean .tfd-dean__readmore.is-expanded .tfd-dean__readmore-icon {
	transform: rotate(180deg);
}

.elementor-widget-tangutech-facultydean .tfd-dean__readmore.is-hidden {
	display: none !important;
}

/* Tablet */
@media (max-width: 1024px) {
	.elementor-widget-tangutech-facultydean .tfd-dean--profile-left,
	.elementor-widget-tangutech-facultydean .tfd-dean--profile-right {
		grid-template-columns: 1fr;
		gap: var(--tfd-stack-gap);
	}

	.elementor-widget-tangutech-facultydean .tfd-dean--profile-right .tfd-dean__profile,
	.elementor-widget-tangutech-facultydean .tfd-dean--profile-right .tfd-dean__content {
		order: initial;
	}
}

/* Phone */
@media (max-width: 767px) {
	.elementor-widget-tangutech-facultydean .tfd-dean {
		--tfd-stack-gap: 16px;
	}

	.elementor-widget-tangutech-facultydean .tfd-dean__name {
		font-size: 1.2rem;
	}
}
