/**
 * TT Stardance Frame - Single Teacher Template Styles
 *
 * Layout:
 *  - Hero: grey background, two columns (portrait | name/position/dance styles)
 *  - Body: white background, two columns
 *      - Left: Bio title + content + second image & dance styles row
 *      - Right: first-name heading + related classes list + "More Classes" button
 *
 * @package TT_Stardance_Frame
 */

.ttsd-single-teacher {
	display: block;
	color: var(--ttsd-navy, #1a2a4a);
}

/* ================================================================
 * Hero Section
 * ================================================================ */

.ttsd-single-teacher__hero {
	background: #f3f3f3;
	padding: 80px 24px;
}

.ttsd-single-teacher__hero-inner {
	max-width: 1250px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 60px;
}

.ttsd-single-teacher__portrait {
	flex: 0 0 45%;
	max-width: 45%;
}

.ttsd-single-teacher__portrait img,
.ttsd-single-teacher__portrait-img {
	display: block;
	width: 100%;
	height: auto;
	background: #ffffff;
	border: 15px solid #ffffff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.ttsd-single-teacher__hero-meta {
	flex: 1 1 0;
	min-width: 0;
}

.ttsd-single-teacher__name {
	margin: 0 0 28px;
	font-size: 42px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--ttsd-navy, #1a2a4a);
	font-family: inherit;
}

.ttsd-single-teacher__position {
	margin: 0 0 36px;
	font-size: 32px;
	font-weight: 400;
	line-height: 1.3;
	color: #1a2a4a;
}

.ttsd-single-teacher__styles {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #555;
}

.ttsd-single-teacher__styles strong {
	font-weight: 700;
	color: #1a2a4a;
	margin-right: 4px;
}

/* ================================================================
 * Body Section
 * ================================================================ */

.ttsd-single-teacher__body {
	background: #ffffff;
	padding: 80px 24px;
}

.ttsd-single-teacher__body-inner {
	max-width: 1250px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 80px;
	align-items: flex-start;
}

.ttsd-single-teacher__bio-col {
	flex: 1 1 55%;
	min-width: 0;
}

.ttsd-single-teacher__classes-col {
	flex: 1 1 35%;
	min-width: 0;
}

.ttsd-single-teacher__section-title {
	margin: 0 0 24px;
	font-size: 36px;
	font-weight: 700;
	color: var(--ttsd-navy, #1a2a4a);
	font-family: inherit;
}

.ttsd-single-teacher__bio {
	font-size: 16px;
	line-height: 1.8;
	color: #333;
}

.ttsd-single-teacher__bio p {
	margin: 0 0 16px;
}

/* Second image + dance styles row */
.ttsd-single-teacher__bio-extra {
	margin-top: 40px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 30px;
}

.ttsd-single-teacher__second-image {
	flex: 0 0 180px;
	max-width: 180px;
}

.ttsd-single-teacher__second-image img,
.ttsd-single-teacher__second-image-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.ttsd-single-teacher__styles--inline {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	padding-left: 24px;
	border-left: 1px solid #e6e6e6;
}

/* Classes column */
.ttsd-single-teacher__section-title--classes {
	font-weight: 400;
	margin-bottom: 24px;
}

.ttsd-single-teacher__classes-list {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
}

.ttsd-single-teacher__classes-item {
	border-bottom: 1px solid #e6e6e6;
}

.ttsd-single-teacher__classes-item:first-child {
	border-top: 1px solid #e6e6e6;
}

/* Collapsed state: items beyond the visible limit are hidden until expanded. */
.ttsd-single-teacher__classes-item--hidden {
	display: none;
}

.ttsd-single-teacher__classes-list.is-expanded .ttsd-single-teacher__classes-item--hidden {
	display: list-item;
}

.ttsd-single-teacher__classes-link {
	display: block;
	padding: 16px 4px;
	font-size: 16px;
	color: var(--ttsd-navy, #1a2a4a);
	text-decoration: none;
	transition: color 0.25s ease, padding-left 0.25s ease;
}

.ttsd-single-teacher__classes-link:hover {
	color: var(--ttsd-gold, #c9a96e);
	padding-left: 10px;
}

.ttsd-single-teacher__classes-empty {
	padding: 14px 16px;
	margin: 0 0 30px;
	background: #f3f3f3;
	color: #777;
	font-size: 16px;
	text-align: center;
}

.ttsd-single-teacher__more-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 28px;
	border: 1px solid var(--ttsd-gold, #c9a96e);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--ttsd-navy, #1a2a4a);
	text-decoration: none;
	background: transparent;
	transition: background 0.25s ease, color 0.25s ease;
}

.ttsd-single-teacher__more-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 1;
	color: var(--ttsd-gold, #c9a96e);
	transition: color 0.25s ease;
}

.ttsd-single-teacher__more-btn:hover {
	background: var(--ttsd-gold, #c9a96e);
	color: #ffffff;
}

.ttsd-single-teacher__more-btn:hover .ttsd-single-teacher__more-btn-icon {
	color: #ffffff;
}

/* ================================================================
 * Responsive
 * ================================================================ */

@media (max-width: 960px) {
	.ttsd-single-teacher__hero {
		padding: 60px 20px;
	}
	.ttsd-single-teacher__hero-inner {
		gap: 40px;
	}
	.ttsd-single-teacher__portrait {
		flex: 0 0 100%;
		max-width: 480px;
		margin: 0 auto;
	}
	.ttsd-single-teacher__hero-meta {
		flex: 0 0 100%;
		text-align: center;
	}
	.ttsd-single-teacher__name {
		font-size: 34px;
	}
	.ttsd-single-teacher__position {
		font-size: 24px;
		margin-bottom: 24px;
	}

	.ttsd-single-teacher__body {
		padding: 60px 20px;
	}
	.ttsd-single-teacher__body-inner {
		gap: 48px;
	}
	.ttsd-single-teacher__bio-col,
	.ttsd-single-teacher__classes-col {
		flex: 0 0 100%;
	}
	.ttsd-single-teacher__section-title {
		font-size: 28px;
	}
}

@media (max-width: 600px) {
	.ttsd-single-teacher__bio-extra {
		gap: 20px;
	}
	.ttsd-single-teacher__second-image {
		flex: 0 0 140px;
		max-width: 140px;
	}
	.ttsd-single-teacher__styles--inline {
		padding-left: 0;
		border-left: 0;
	}
}
