/**
 * TT Stardance Frame - Teachers Widget Styles
 *
 * Supports both Grid and Slider (Swiper) display modes.
 *
 * @package TT_Stardance_Frame
 */

.ttsd-teachers {
	display: block;
	padding: 50px 0;
}

.ttsd-teachers--grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

@media (max-width: 1024px) {
	.ttsd-teachers--grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.ttsd-teachers--grid {
		grid-template-columns: 1fr;
	}
}

/* Slider mode */
.ttsd-teachers--slider {
	position: relative;
	padding: 0 50px;
}

.ttsd-teachers--slider .ttsd-teachers-swiper {
	overflow: hidden;
}

.ttsd-teachers--slider .swiper-slide {
	height: auto;
	display: flex;
}

.ttsd-teachers--slider .swiper-slide > .ttsd-teacher-card {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.ttsd-teachers-swiper__prev,
.ttsd-teachers-swiper__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	background: var(--ttsd-white, #ffffff);
	color: var(--ttsd-navy, #1a2a4a);
	border: 1px solid var(--ttsd-gold, #c9a96e);
	border-radius: 50%;
	cursor: pointer;
	z-index: 10;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease;
}

.ttsd-teachers-swiper__prev { left: 0; }
.ttsd-teachers-swiper__next { right: 0; }

.ttsd-teachers-swiper__prev:hover,
.ttsd-teachers-swiper__next:hover {
	background: var(--ttsd-gold, #c9a96e);
	color: var(--ttsd-white, #ffffff);
}

.ttsd-teachers-swiper__prev::after,
.ttsd-teachers-swiper__next::after {
	font-size: 16px;
	font-weight: 700;
}

.ttsd-teachers-swiper__prev.swiper-button-disabled,
.ttsd-teachers-swiper__next.swiper-button-disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.ttsd-teachers-swiper__pagination {
	text-align: center;
	margin-top: 20px;
	position: relative;
	bottom: 0;
}

.ttsd-teacher-card {
	border-radius: 4px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;

	display: flex;
    flex-direction: row;
    align-items: center;
}

.ttsd-teacher-card .ttsd-teacher-card__image-link,
.ttsd-teacher-card .ttsd-teacher-card__content{
	flex: 0 0 50%;
}

.ttsd-teacher-card:hover {
	transform: translateY(-4px);
}

.ttsd-teacher-card__image-link {
	display: block;
	padding: 20px;
}

.ttsd-teacher-card__image {
	margin: 0;
}

.ttsd-teacher-card__image img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border: 15px solid var(--ttsd-white, #ffffff);
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.ttsd-teacher-card:hover img{
	box-shadow: 0 8px 15px rgba(0,0,0,0.12);
}

.ttsd-teacher-card__content {
	padding: 20px;
}

.ttsd-teacher-card__name {
	margin: 0 0 6px;
	font-size: 28px;
	font-weight: 600;
	color: var(--ttsd-navy, #1a2a4a);
}

.ttsd-teacher-card__name a {
	color: inherit;
	text-decoration: none;
}

.ttsd-teacher-card__position {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #000;
}

.ttsd-teacher-card__bio {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.6;
	color: #555;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ttsd-teacher-card__more {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--ttsd-gold, #c9a96e);
	text-decoration: none;
	padding: 4px 0;
}

.ttsd-teacher-card__more .ttsd-teacher-card__more-text {
	margin-right: 10px;
}

.ttsd-teacher-card__more-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--ttsd-gold, #c9a96e);
	color: var(--ttsd-white, #ffffff);
	transition: background 0.25s ease, transform 0.25s ease;
}

.ttsd-teacher-card__more-icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

.ttsd-teacher-card__more:hover {
	color: #bf382b;
}

.ttsd-teacher-card__more:hover .ttsd-teacher-card__more-icon {
	background: #bf382b;
	transform: translateX(2px);
}
