.teacher-profile {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	max-width: 1200px;
	margin: 10px auto 60px auto;
	padding: 30px;
	background-color: #f1f1f1;
	border-radius: 20px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
	font-family: 'Inter', sans-serif;
}

.teacher-text {
	flex: 1 1 60%;
	color: #111;
}

.teacher-text h2 {
	color: #5865f2;
	margin-bottom: 16px;
	font-size: 1.4rem;
}

.teacher-text h3 {
	font-size: 1.3rem;
	margin-bottom: 20px;
	color: #111;
}

.teacher-text p {
	margin-bottom: 12px;
	font-size: 1rem;
	line-height: 1.6;
	color: #222;
}

.teacher-text strong {
	color: #000;
}

.teacher-photo {
	flex: 1 1 35%;
	display: flex;
	justify-content: center;
	align-items: flex-start;
}

.teacher-photo img {
	max-width: 100%;
	height: auto;
	border-radius: 16px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
	object-fit: cover;
}

.back-button {
	display: flex;
	justify-content: flex-start;
	max-width: 1200px;
	margin: 20px auto 10px auto;
	padding-left: 0;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: #f1f1f1;
	color: #5865f2;
	padding: 10px 20px;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 500;
	transition: background-color 0.3s ease;
}

.back-link:hover {
	background-color: #e0e0e0;
}

body.dark-theme .teacher-profile {
	background-color: #1a1a1a;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

body.dark-theme .teacher-text h2 {
	color: #8da1ff;
}

body.dark-theme .teacher-text h3,
body.dark-theme .teacher-text p,
body.dark-theme .teacher-text strong {
	color: #ddd;
}

body.dark-theme .teacher-photo img {
	box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

body.dark-theme .back-link {
	background-color: #1a1a1a;
	color: #8da1ff;
}

body.dark-theme .back-link:hover {
	background-color: #2a2a2a;
}

@media (max-width: 768px) {
	.teacher-profile {
		flex-direction: column;
		align-items: center;
		padding: 20px;
	}

	.teacher-photo {
		width: 100%;
	}

	.back-button {
		justify-content: center;
		padding: 0 10px;
		margin-top: 20px;
	}
}
