.td-teacher-grid {
	display: grid;
	gap: 2.5rem;
	width: 100%;
}

.td-teacher-grid.td-columns-1 {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.td-teacher-grid.td-columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.td-teacher-grid.td-columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.td-teacher-grid.td-columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.td-teacher-grid.td-columns-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.td-teacher-grid.td-columns-6 {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.td-teacher-grid .td-teacher-card {
	position: relative;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
	overflow: hidden;
	width: 100%;
	max-width: 540px;
	margin: 0 auto;
}

.td-teacher-grid .td-teacher-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 30px 60px rgba(17, 24, 39, 0.18);
}

.td-teacher-grid .td-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
	width: 100%;
}

.td-teacher-grid .td-card-media {
	position: relative;
	padding: 32px 32px 0;
	display: flex;
	justify-content: center;
}

.td-teacher-grid .td-card-media img {
	width: 220px;
	height: 240px;
	object-fit: cover;
	border-radius: 24px;
	clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
	transition: transform 0.4s ease;
}

.td-teacher-grid .td-teacher-card:hover .td-card-media img {
	transform: scale(1.04);
}

.td-teacher-grid .td-card-media .td-placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 220px;
	height: 240px;
	border-radius: 24px;
	clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
	background: linear-gradient(135deg, #f7d46a, #d4a647);
	font-size: 72px;
	font-weight: 600;
	color: #fff;
}

.td-teacher-grid .td-card-body {
	padding: 24px 32px 32px;
	text-align: center;
}

.td-teacher-grid .td-card-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	color: #1f2937;
}

.td-teacher-grid .td-card-position,
.td-teacher-grid .td-card-department {
	margin: 8px 0 0;
	color: #6b7280;
	font-size: 0.95rem;
	font-weight: 500;
}

.td-teacher-grid .td-card-excerpt {
	margin: 18px 0 0;
	color: #4b5563;
	font-size: 0.95rem;
	line-height: 1.5;
	min-height: 54px;
}

.td-teacher-grid .td-card-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 24px;
	padding: 10px 24px;
	border-radius: 999px;
	background: linear-gradient(135deg, #f5c64d, #d49f3b);
	color: #fff;
	font-weight: 600;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: background 0.3s ease, transform 0.3s ease;
}

.td-teacher-grid .td-teacher-card:hover .td-card-button {
	background: linear-gradient(135deg, #f2b928, #c68816);
	transform: translateY(-2px);
}

.td-teacher-grid .td-social-links {
	position: absolute;
	display: flex;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 999px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
	bottom: -18px;
	left: 50%;
	transform: translateX(-50%);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, bottom 0.35s ease;
}

.td-teacher-grid .td-teacher-card:hover .td-social-links {
	opacity: 1;
	visibility: visible;
	bottom: -10px;
}

.td-teacher-grid .td-social-links li {
	list-style: none;
}

.td-teacher-grid .td-social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f9fafb;
	color: #111827;
	transition: background 0.3s ease, color 0.3s ease;
}

.td-teacher-grid .td-social-links a:hover {
	background: #111827;
	color: #f9fafb;
}

.td-card-hidden-content[hidden] {
	display: none !important;
}

.td-teacher-grid .dashicons {
	font-size: 18px;
}

.td-grid-empty {
	text-align: center;
	padding: 60px 0;
	background: #f9fafb;
	border-radius: 12px;
}

.td-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: none;
}

.td-modal-open {
	overflow: hidden;
}

.td-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.6);
}

.td-modal-content {
	position: relative;
	max-width: 640px;
	margin: 5% auto;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 30px 80px rgba(15, 23, 42, 0.2);
	padding: 40px;
	max-height: 90vh;
	overflow: hidden;
}

.td-modal-close {
	position: absolute;
	top: 18px;
	right: 18px;
	border: none;
	background: none;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	color: #9ca3af;
}

.td-modal-body {
	max-height: calc(90vh - 80px);
	overflow-y: auto;
	padding-right: 12px;
}

.td-modal-body h2 {
	margin-top: 0;
	font-size: 2rem;
	font-weight: 700;
	color: #111827;
}

.td-modal-body .td-modal-meta {
	margin: 10px 0;
	font-size: 1rem;
	color: #4b5563;
}

.td-modal-body .td-modal-meta a {
	color: #1d4ed8;
	text-decoration: none;
}

.td-modal-body .td-modal-meta a:hover {
	text-decoration: underline;
}

.td-modal-content-area {
	margin-top: 24px;
	font-size: 1.05rem;
	line-height: 1.6;
	color: #111827;
}

.td-modal-content-area p {
	margin-bottom: 1em;
}

.td-modal-content-area ul,
.td-modal-content-area ol {
	padding-inline-start: 1.5rem;
	margin-bottom: 1em;
}

.td-modal-view {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 24px;
	padding: 10px 24px;
	border-radius: 999px;
	background: linear-gradient(135deg, #f5c64d, #d49f3b);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.td-modal-view:hover {
	background: linear-gradient(135deg, #f2b928, #c68816);
	color: #fff;
}

.td-single-teacher {
	padding: 80px 0;
	background: #f8fafc;
}

.td-single-wrapper {
	max-width: 1100px;
	margin: 0 auto;
	background: #fff;
	border-radius: 32px;
	padding: 60px;
	box-shadow: 0 40px 80px rgba(15, 23, 42, 0.08);
}

.td-single-header {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: center;
}

.td-single-photo img {
	width: 320px;
	height: 360px;
	object-fit: cover;
	border-radius: 32px;
	clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
	box-shadow: 0 25px 60px rgba(148, 163, 184, 0.35);
}

.td-single-summary h1 {
	margin: 0;
	font-size: 2.8rem;
	color: #111827;
}

.td-single-position {
	margin-top: 12px;
	font-size: 1.2rem;
	color: #f59e0b;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.td-single-department {
	margin-top: 8px;
	font-size: 1rem;
	color: #4b5563;
}

.td-single-meta {
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.td-single-meta li {
	margin-bottom: 10px;
	font-size: 1rem;
	color: #1f2937;
}

.td-single-meta a {
	color: #1d4ed8;
	text-decoration: none;
}

.td-single-meta a:hover {
	text-decoration: underline;
}

.td-single-social {
	margin-top: 24px;
	display: flex;
	gap: 12px;
}

.td-single-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #f3f4f6;
	color: #111827;
	transition: background 0.3s ease, color 0.3s ease;
}

.td-single-social a:hover {
	background: #111827;
	color: #f3f4f6;
}

.td-single-content {
	margin-top: 50px;
	font-size: 1.05rem;
	line-height: 1.8;
	color: #1f2937;
}

.td-single-content h2,
.td-single-content h3,
.td-single-content h4 {
	color: #111827;
	margin-top: 32px;
}

.td-single-custom {
	margin-top: 40px;
	padding: 32px;
	background: linear-gradient(135deg, #fef3c7, #fde68a);
	border-radius: 24px;
	color: #7c2d12;
}

@media (max-width: 1024px) {
	.td-single-wrapper {
		padding: 40px;
	}

	.td-single-photo img {
		width: 260px;
		height: 300px;
	}
}

@media (max-width: 768px) {
	.td-single-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.td-single-wrapper {
		padding: 32px;
	}

	.td-single-summary h1 {
		font-size: 2.2rem;
	}
}

@media (max-width: 1199px) {
	.td-teacher-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}


@media (max-width: 1024px) {
	.td-teacher-grid .td-teacher-card {
		max-width: 480px;
	}
}

@media (max-width: 767px) {
	.td-teacher-grid {
		grid-template-columns: repeat(1, minmax(0, 1fr));
		gap: 2rem;
	}

	.td-teacher-grid .td-teacher-card {
		max-width: 100%;
	}

	.td-teacher-grid .td-card-media {
		padding: 24px 24px 0;
	}

	.td-teacher-grid .td-card-media img,
	.td-teacher-grid .td-card-media .td-placeholder {
		width: 180px;
		height: 200px;
	}

	.td-teacher-grid .td-card-body {
		padding: 24px;
	}

	.td-teacher-grid .td-card-title {
		font-size: 1.3rem;
	}

	.td-teacher-grid .td-card-excerpt {
		min-height: auto;
	}
}

