/* Decorative elements */


@keyframes float {

	0%,
	100% {
		transform: translateY(0px) rotate(0deg);
	}

	50% {
		transform: translateY(-20px) rotate(5deg);
	}
}



.heading-teacher {
	text-align: center;
	margin-bottom: 60px;
	animation: slideDown 1s ease-out;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-50px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.heading-teacher__ttl {
	font-size: 4rem;
	font-weight: 800;
	color: white;
	/* text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); */
	margin-bottom: 0px;
	letter-spacing: 2px;
	text-transform: uppercase;
	background: var(--color-main2);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.heading-teacher p {
	color: #333;
	max-width: 800px;
	margin: 0 auto;
	line-height: 1.6;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	font-weight: 300;
	font-size: 18px;
}

.teachers-grid__row {
	gap: 20px 0;
}

.teacher-card {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 25px;
	padding: 20px;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	height: 100%;
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.teacher-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: var(--color-main);
	border-radius: 25px 25px 0 0;
}

.teacher-card::after {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
	transform: scale(0);
	transition: transform 0.6s ease;
	border-radius: 50%;
}

.teacher-card:hover {
	transform: translateY(-15px) scale(1.02);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.teacher-card:hover::after {
	transform: scale(1);
}

.teacher-avatar {
	width: 180px;
	height: 180px;
	border-radius: 50%;
	margin: 0 auto 30px;
	position: relative;
	overflow: hidden;
	border: 6px solid white;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
	transition: all 0.4s ease;
}

.teacher-card:hover .teacher-avatar {
	transform: scale(1.1);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.teacher-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.teacher-card:hover .teacher-avatar img {
	transform: scale(1.1);
}

.teacher-info {
	position: relative;
	z-index: 3;
}

.teacher-name {
	font-size: 2.2rem;
	font-weight: 700;
	color: #2d3748;
	margin-bottom: 15px;
	position: relative;
}

.teacher-name::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	background: var(--color-main);
	border-radius: 2px;
}

.teacher-title {
	color: #e53e3e;
	font-weight: 600;
	font-size: 1.8rem;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.teacher-title>*{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2;overflow: hidden;text-overflow: ellipsis;color: var(--color-main);}

.teacher-description {
	color: #4a5568;
	font-size: 1.6rem;
	line-height: 1.6;
	font-weight: 400;
	display: -webkit-box;
    -webkit-box-orient: vertical;
    /* -webkit-line-clamp: 3; */
    overflow: hidden;
    text-overflow: ellipsis;
	
}







@media (max-width: 768px) {
	.heading-teacher__ttl {
		font-size: 2.5rem;
	}

	.heading-teacher p {
		padding: 0 20px;
	}



	.teacher-card {
		padding: 30px 20px;
		margin: 0 10px;
	}

	.decoration {
		display: none;
	}


}

/* Animation cho từng card xuất hiện */
.teacher-card {
	opacity: 0;
	transform: translateY(50px);
	animation: fadeInUp 0.8s ease forwards;
}

.teacher-card:nth-child(1) {
	animation-delay: 0.2s;
}

.teacher-card:nth-child(2) {
	animation-delay: 0.4s;
}

.teacher-card:nth-child(3) {
	animation-delay: 0.6s;
}

@keyframes fadeInUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
