/* SHA Manage Instructors — shared frontend */

.sha-bio-wrap {
	margin: 0 0 22px;
}

.sha-bio-excerpt,
.sha-bio-full {
	color: rgba(255, 255, 255, 0.7);
	font-size: 15px;
	line-height: 1.7;
}

.sha-bio-toggle {
	display: inline-block;
	margin-top: 8px;
	padding: 0;
	border: none;
	border-bottom: 1px solid rgba(196, 245, 66, 0.5);
	background: none;
	color: #c4f542;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.sha-bio-toggle:hover {
	color: #ffffff;
	border-bottom-color: #ffffff;
}

.sha-bio-wrap.is-expanded .sha-bio-excerpt {
	display: none;
}

.sha-bio-wrap.is-expanded .sha-bio-full[hidden] {
	display: block;
}

.sha-bio-wrap:not(.is-expanded) .sha-bio-full {
	display: none;
}

/* Front page block */
.sha-front {
	--sha-bg: #0e0b2e;
	--sha-accent: #c4f542;
	--sha-text: #ffffff;
	--sha-muted: rgba(255, 255, 255, 0.72);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--sha-text);
	background: var(--sha-bg);
	padding: 48px 32px;
	box-sizing: border-box;
}

.sha-front-inner {
	max-width: var(--sha-front-max-width, 1400px);
	margin: 0 auto;
	width: 100%;
}

.sha-front-heading {
	display: flex;
	align-items: baseline;
	gap: 16px;
	margin: 0 0 32px;
}

.sha-front-heading span:first-child {
	color: var(--sha-accent);
	font-size: 11px;
	letter-spacing: 0.18em;
	font-weight: 600;
	text-transform: uppercase;
	white-space: nowrap;
}

.sha-front-heading span:last-child {
	flex: 1;
	height: 1px;
	background: rgba(196, 245, 66, 0.35);
}

.sha-front-card {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 4px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
}

.sha-front-card.is-founder {
	border-color: rgba(196, 245, 66, 0.35);
}

.sha-front-portrait {
	aspect-ratio: 1 / 1;
	background: linear-gradient(180deg, #1a1545 0%, #0e0b2e 100%);
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sha-front-portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sha-front-portrait .sha-initials {
	font-family: Georgia, serif;
	color: rgba(196, 245, 66, 0.45);
	font-size: 48px;
	font-weight: 500;
}

.sha-front-name {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 22px;
	font-weight: 500;
	margin: 0 0 6px;
	line-height: 1.15;
}

.sha-front-title {
	color: rgba(196, 245, 66, 0.85);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0 0 14px;
	font-weight: 600;
}

.sha-front .sha-bio-wrap {
	margin-bottom: 16px;
}

.sha-front .sha-bio-excerpt,
.sha-front .sha-bio-full {
	font-size: 14px;
}

.sha-front-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 16px;
}

.sha-front-tag {
	border: 1px solid rgba(196, 245, 66, 0.35);
	color: rgba(196, 245, 66, 0.9);
	font-size: 10px;
	letter-spacing: 0.05em;
	padding: 4px 10px;
	border-radius: 2px;
}

.sha-front-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	color: var(--sha-text);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid rgba(196, 245, 66, 0.5);
	padding-bottom: 3px;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.sha-front-link:hover {
	color: var(--sha-accent);
	border-bottom-color: var(--sha-accent);
}

.sha-front-courses {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sha-front-course {
	display: block;
	font-family: Georgia, serif;
	font-size: 14px;
	font-style: italic;
	color: var(--sha-text);
	text-decoration: none;
	padding: 6px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	transition: color 0.15s ease, padding-left 0.15s ease;
}

.sha-front-course:hover {
	color: var(--sha-accent);
	padding-left: 4px;
}

/* Grid layout */
.sha-front-grid {
	display: grid;
	gap: 24px;
}

.sha-front-grid.sha-cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.sha-front-grid.sha-cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

.sha-front-grid.sha-cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

/* Carousel layout */
.sha-front-carousel {
	position: relative;
}

.sha-front-carousel.sha-controls-side .sha-carousel-shell {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 12px !important;
	width: 100% !important;
	box-sizing: border-box;
}

.sha-front-carousel.sha-controls-side .sha-carousel-body {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	width: auto !important;
	max-width: 100%;
}

.sha-front-carousel.sha-controls-side .sha-carousel-btn-side {
	display: inline-flex !important;
	flex: 0 0 auto !important;
	flex-shrink: 0 !important;
	width: 44px !important;
	max-width: 44px !important;
	align-self: center !important;
}

.sha-front-carousel.sha-controls-side .sha-carousel-nav-dots {
	display: flex !important;
	justify-content: center !important;
	margin-top: 16px !important;
	width: 100% !important;
}

/* Prevent theme rules from stacking side arrows below the track */
.sha-front-carousel.sha-controls-side .sha-carousel-shell > .sha-carousel-btn-side {
	position: static !important;
	float: none !important;
	clear: none !important;
	margin: 0 !important;
}

.sha-carousel-nav-bottom {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 24px;
}

.sha-carousel-viewport {
	overflow: hidden;
}

.sha-carousel-track {
	display: flex;
	transition: transform 0.35s ease;
	will-change: transform;
}

.sha-carousel-slide {
	flex: 0 0 100%;
	min-width: 0;
	padding: 0 2px;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.sha-front-carousel.sha-carousel-per-2 .sha-carousel-slide {
		flex: 0 0 50%;
	}

	.sha-front-carousel.sha-carousel-per-3 .sha-carousel-slide {
		flex: 0 0 33.333%;
	}
}

.sha-carousel-btn {
	width: 44px;
	height: 44px;
	border: 1px solid rgba(196, 245, 66, 0.35);
	border-radius: 4px;
	background: transparent;
	color: var(--sha-accent);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.sha-carousel-btn:hover:not(:disabled) {
	background: rgba(196, 245, 66, 0.12);
	border-color: var(--sha-accent);
}

.sha-carousel-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.sha-carousel-dots {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

.sha-carousel-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	padding: 0;
	background: rgba(255, 255, 255, 0.25);
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.sha-carousel-dot.is-active {
	background: var(--sha-accent);
	transform: scale(1.2);
}

@media (max-width: 960px) {
	.sha-front-grid.sha-cols-3,
	.sha-front-grid.sha-cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.sha-front {
		padding: 32px 20px;
	}

	.sha-front-grid.sha-cols-2,
	.sha-front-grid.sha-cols-3,
	.sha-front-grid.sha-cols-4 {
		grid-template-columns: 1fr;
	}
}
