/**
 * TT Stardance Frame - Classes Single Page Styles
 *
 * Includes: single class layout, teacher cards, and related classes slider.
 *
 * @package TT_Stardance_Frame
 */

/* ================================================================
 * Classes Single Page
 * ================================================================ */

.ttsd-single-class-wrap {
	background: var(--ttsd-white);
	color: var(--ttsd-navy);
}

.ttsd-single-class {
	padding: 80px 20px;
	background: var(--ttsd-white);
}

.ttsd-single-class__container {
	max-width: 1250px;
	margin: 0 auto;
	display: flex;
	align-items: flex-start;
}

.ttsd-single-class__left {
	flex: 1 1 55%;
	min-width: 0;
	padding: 20px;
}

.ttsd-single-class__right {
	flex: 1 1 45%;
	min-width: 0;
	position: sticky;
	top: 80px;
	padding: 20px;
}

.ttsd-single-class__image {
	margin-bottom: 30px;
}

.ttsd-single-class__image img {
	display: block;
	width: 100%;
	height: auto;
	border: 15px solid var(--ttsd-white);
	box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.ttsd-single-class__subtitle {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--ttsd-gold);
}

.ttsd-single-class__title {
	margin: 0 0 15px;
	font-size: 38px;
	font-weight: 500;
	color: var(--ttsd-navy);
	line-height: 1.2;
}

.ttsd-single-class__divider {
	width: 100px;
	height: 2px;
	background: var(--ttsd-gold);
	margin-bottom: 20px;
}

.ttsd-single-class__meta {
	list-style: none;
	padding: 0;
	margin: 0 0 30px;
	display: flex;
	flex-wrap: wrap;
	/* gap: 20px 40px; */
}

.ttsd-single-class__meta li {
	display: flex;
	flex-direction: column;
}

.ttsd-single-class__meta-label {
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--ttsd-gold);
	margin-bottom: 4px;
}

.ttsd-single-class__meta-value {
	font-size: 16px;
	color: var(--ttsd-navy);
	font-weight: 500;
}

.ttsd-single-class__short-desc {
	font-size: 17px;
	line-height: 1.7;
	color: #444;
	margin: 0 0 24px;
	font-style: italic;
}

.ttsd-single-class__content {
	font-size: 16px;
	line-height: 1.8;
	color: #333;
}

.ttsd-single-class__content h2,
.ttsd-single-class__content h3,
.ttsd-single-class__content h4{
	font-weight: 500;
	font-size: 24px;
}

.ttsd-single-class__content p {
	margin: 0 0 18px;
}

/* ================================================================
 * Related Locations (sidebar)
 * ================================================================ */

.ttsd-single-class__locations {
	margin-top: 50px;
}

.ttsd-single-class__locations-title {
	margin: 0 0 12px;
	font-size: 26px;
	font-weight: 500;
	color: var(--ttsd-navy);
}

.ttsd-single-class__locations-divider {
	width: 80px;
	height: 2px;
	background: var(--ttsd-gold);
	margin: 0 0 20px;
}

.ttsd-location-card-v2 {
	display: flex;
	align-items: center;
	/* gap: 30px; */
	padding: 20px 0;
	border-bottom: 1px solid #e6e6e6;
}

.ttsd-location-card-v2:first-child {
	padding-top: 0;
}

.ttsd-location-card-v2:last-child {
	border-bottom: none;
}

.ttsd-location-card-v2__image {
	flex: 0 0 40%;
	display: block;
	background: var(--ttsd-white, #fff);
	padding: 10px;
	box-shadow: 0 6px 18px rgba(0,0,0,0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ttsd-location-card-v2__image:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.ttsd-location-card-v2__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.ttsd-location-card-v2__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding: 10px 0;
}

.ttsd-location-card-v2__name {
	margin: 0 0 8px;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 500;
	color: var(--ttsd-navy, #1a2a4a);
}

.ttsd-location-card-v2__name a {
	color: inherit;
	text-decoration: none;
}

.ttsd-location-card-v2__name a:hover {
	color: var(--ttsd-gold);
}

.ttsd-location-card-v2__subtitle {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.5;
	color: #666;
}

.ttsd-location-card-v2__more {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	/* gap: 10px; */
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--ttsd-gold, #c9a96e);
	text-decoration: none;
	padding: 4px 0;
}

.ttsd-location-card-v2__more-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--ttsd-gold, #c9a96e);
	color: var(--ttsd-white, #fff);
	transition: background 0.25s ease, transform 0.25s ease;
}

.ttsd-location-card-v2__more-icon svg {
	width: 16px;
	height: 16px;
	display: block;
}

.ttsd-location-card-v2__more:hover {
	color: var(--ttsd-navy, #1a2a4a);
}

.ttsd-location-card-v2__more:hover .ttsd-location-card-v2__more-icon {
	background: var(--ttsd-navy, #1a2a4a);
	transform: translateX(2px);
}

@media (max-width: 600px) {
	.ttsd-location-card-v2 {
		/* gap: 16px; */
	}

	.ttsd-location-card-v2__image {
		flex: 0 0 130px;
		padding: 6px;
	}

	.ttsd-location-card-v2__name {
		font-size: 18px;
	}

	.ttsd-location-card-v2__subtitle {
		font-size: 13px;
	}
}

.ttsd-single-class__right-title {
	margin: 0 0 24px;
	font-size: 24px;
	font-weight: 600;
	color: var(--ttsd-navy);
	padding-bottom: 12px;
	border-bottom: 2px solid var(--ttsd-gold);
}

.ttsd-single-class__teachers {
	display: flex;
	flex-direction: column;
}

.ttsd-teacher-card-v2 {
	display: flex;
	align-items: center;
	padding: 20px 0;
	border-bottom: 1px solid #e6e6e6;
}

.ttsd-teacher-card-v2:first-child {
	padding-top: 0;
}

.ttsd-teacher-card-v2:last-child {
	border-bottom: none;
}

.ttsd-teacher-card-v2__image {
	flex: 0 0 50%;
	display: block;
	background: var(--ttsd-white, #ffffff);
	padding: 15px;
	box-shadow: 0 6px 18px rgba(0,0,0,0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ttsd-teacher-card-v2__image:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.ttsd-teacher-card-v2__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.ttsd-teacher-card-v2__body {
	flex: 0 0 50%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding: 15px;
}

.ttsd-teacher-card-v2__name {
	margin: 0 0 20px;
	font-size: 28px;
	line-height: 1.25;
	font-weight: 500;
	color: var(--ttsd-navy, #1a2a4a);
}

.ttsd-teacher-card-v2__name a {
	color: inherit;
	text-decoration: none;
}

.ttsd-teacher-card-v2__name a:hover {
	color: var(--ttsd-gold);
}

.ttsd-teacher-card-v2__styles {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.5;
	color: #555;
}

.ttsd-teacher-card-v2__styles strong {
	color: var(--ttsd-navy, #1a2a4a);
	font-weight: 700;
	margin-right: 4px;
}

.ttsd-teacher-card-v2__more {
	/* margin-top: auto; */
	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-v2__more .ttsd-teacher-card-v2__more-text{
	margin-right: 10px;
}

.ttsd-teacher-card-v2__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-v2__more-icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

.ttsd-teacher-card-v2__more:hover {
	color: #bf382b;
}

.ttsd-teacher-card-v2__more:hover .ttsd-teacher-card-v2__more-icon {
	background: #bf382b;
	transform: translateX(2px);
}

@media (max-width: 600px) {
	.ttsd-teacher-card-v2__image {
		flex: 0 0 40%;
		padding: 5px;
	}

	.ttsd-teacher-card-v2__body{
		flex: 0 0 60%;
	}

	.ttsd-teacher-card-v2__name {
		font-size: 18px;
		margin-bottom: 8px;
	}

	.ttsd-teacher-card-v2__styles {
		font-size: 14px;
		margin-bottom: 14px;
	}
}

/* ================================================================
 * Related Classes Slider
 * ================================================================ */

.ttsd-single-class__related {
	background: var(--ttsd-light-bg);
	padding: 80px 20px;
}

.ttsd-single-class__related-inner {
	max-width: 1440px;
	margin: 0 auto;
}

.ttsd-single-class__related-title {
	margin: 0 0 12px;
	font-size: 28px;
	font-weight: 500;
	color: var(--ttsd-navy);
	font-family: inherit;
	text-align: center;
}

.ttsd-single-class__related-divider {
	width: 80px;
	height: 2px;
	background: var(--ttsd-gold);
	margin: 0 auto 50px;
}

.ttsd-related-swiper {
	position: relative;
	padding: 10px 50px 50px;
}

.ttsd-related-card {
	/* background: var(--ttsd-white); */
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.ttsd-related-card:hover img{
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.ttsd-related-card__image {
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	border: 15px solid #fff;
	box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.ttsd-related-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.ttsd-related-card:hover .ttsd-related-card__image img {
	transform: scale(1.05);
}

.ttsd-related-card__body {
	padding: 20px;
}

.ttsd-related-card__subtitle {
	margin: 0 0 6px;
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--ttsd-gold);
}

.ttsd-related-card__title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.3;
	font-family: inherit;
	color: #000;
}

.ttsd-related-card__title a {
	color: inherit;
	text-decoration: none;
}

.ttsd-related-card__title a:hover,
.ttsd-related-card:hover a {
	color: var(--ttsd-gold);
}

.ttsd-related-card__styles {
	margin: 0;
	font-size: 13px;
	color: #666;
}

.ttsd-related-card__description {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #666;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ttsd-related-swiper .swiper-button-prev,
.ttsd-related-swiper .swiper-button-next {
	color: var(--ttsd-navy);
	width: 40px;
	height: 40px;
	background: var(--ttsd-white);
	border-radius: 50%;
	box-shadow: 0 4px 15px rgba(0,0,0,0.12);
	top: 45%;
}

.ttsd-related-swiper .swiper-button-prev::after,
.ttsd-related-swiper .swiper-button-next::after {
	font-size: 16px;
	font-weight: 700;
}

.ttsd-related-swiper .swiper-button-prev:hover,
.ttsd-related-swiper .swiper-button-next:hover {
	color: var(--ttsd-gold);
}

/* Related card: View More button */
.ttsd-view-more-btn {
	display: inline-flex;
	align-items: center;
	margin-top: 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--ttsd-gold, #c9a96e);
	background: transparent;
	text-decoration: none;
	padding: 4px 0;
	transition: color 0.25s ease;
}

.ttsd-view-more-btn .ttsd-view-more-btn__text{
	margin-right: 10px;
}

.ttsd-view-more-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--ttsd-gold, #c9a96e);
	color: var(--ttsd-white, #ffffff);
	transition: background 0.25s ease, transform 0.25s ease;
}

.ttsd-view-more-btn__icon svg {
	width: 14px;
	height: 14px;
	display: block;
}

.ttsd-view-more-btn:hover,
.ttsd-view-more-btn:focus {
	/* color: #bf382b; */
	outline: none;
}

.ttsd-view-more-btn:hover .ttsd-view-more-btn__icon,
.ttsd-view-more-btn:focus .ttsd-view-more-btn__icon {
	/* background: #bf382b; */
	transform: translateX(2px);
}

.ttsd-related-card:hover .ttsd-view-more-btn__text{
	/* color: #bf382b; */
}

/* ================================================================
 * Timetable Section (single-class)
 * ================================================================ */

.ttsd-single-class__timetable {
	padding: 80px 20px;
	background: var(--ttsd-white, #ffffff);
}

.ttsd-single-class__timetable-inner {
	max-width: 1440px;
	margin: 0 auto;
}

.ttsd-single-class__timetable-title {
	margin: 0 0 20px;
	font-size: 28px;
	font-weight: 500;
	color: var(--ttsd-navy, #1a2a4a);
	text-align: center;
	font-family: inherit;
}

.ttsd-single-class__timetable-divider {
	width: 80px;
	height: 2px;
	background: var(--ttsd-gold, #c9a96e);
	margin: 0 auto 50px;
}

/* Desktop / mobile image switch (inherits .ttsd-timetable base styles
   from ttsd-widget-timetable handle). */
.ttsd-single-class__timetable .ttsd-timetable__image--mobile {
	display: none;
}

.ttsd-single-class__timetable .ttsd-timetable img{
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
	.ttsd-single-class__timetable {
		padding: 50px 16px;
	}
	.ttsd-single-class__timetable-title {
		font-size: 26px;
	}
	.ttsd-single-class__timetable-divider {
		margin-bottom: 32px;
	}
	.ttsd-single-class__timetable .ttsd-timetable--has-mobile .ttsd-timetable__image--desktop {
		display: none;
	}
	.ttsd-single-class__timetable .ttsd-timetable--has-mobile .ttsd-timetable__image--mobile {
		display: block;
	}
}

/* Responsive */
@media (max-width: 960px) {
	.ttsd-single-class__container {
		flex-direction: column;
		/* gap: 40px; */
	}

	.ttsd-single-class__right {
		position: static;
	}

	.ttsd-single-class__title {
		font-size: 32px;
	}

	.ttsd-single-class {
		padding: 50px 16px;
	}

	.ttsd-single-class__related {
		padding: 50px 16px;
	}

	.ttsd-related-swiper {
		padding: 10px 10px 40px;
	}

	.ttsd-related-swiper .swiper-button-prev,
	.ttsd-related-swiper .swiper-button-next {
		display: none;
	}
}

/* ================================================================
 * Book Now Section (button styles live in shortcode-book-now.css,
 * loaded via the `ttsd-booking-button` handle, which is declared as a
 * dependency of `ttsd-template-single-class` in class-assets.php).
 * ================================================================ */

.ttsd-single-class__booking {
	margin: 20px 0 0;
}

@media only screen and (min-width: 1024px) and (max-width: 1439px){
	.ttsd-single-class__container{
		/* gap: 20px; */
	}

	.ttsd-single-class__right,
	.ttsd-single-class__left{
		flex: 0 0 50%;
	}

	.ttsd-teacher-card-v2{
		/* gap: 20px; */
	}

	.ttsd-teacher-card-v2__image{
		flex: 0 0 40%;
	}

	.ttsd-teacher-card-v2__body{
		flex: 0 0 60%;
	}
}