/**
 * Public teacher one-pager (insideyoga.org). Follows the design-system
 * language: 16px cards, --iy-* tokens with fallbacks, 100px pill buttons.
 * Event cards inside reuse iy-events-search.css card styles.
 */

.iy-teacher {
	padding: 24px 0 60px;
}

.iy-teacher__container {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 20px;
}

.iy-teacher__back {
	display: inline-block;
	margin: 16px 0 20px;
	font-size: 14px;
	color: var(--iy-muted, #6b6b6b);
	text-decoration: none;
}
.iy-teacher__back:hover {
	color: var(--iy-teal, #3B6063);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.iy-teacher__hero {
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 32px;
	background: var(--iy-card, #fff);
	border: 1px solid var(--iy-line, #ececec);
	border-radius: 16px;
	margin-bottom: 20px;
}

.iy-teacher__avatar {
	width: 160px;
	height: 160px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--iy-line, #ececec);
	box-shadow: 0 0 0 4px rgba(167, 118, 55, 0.12);
	flex-shrink: 0;
}

.iy-teacher__name {
	margin: 0 0 8px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--iy-heading, #1c2b2c);
}

.iy-teacher__level {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 14px;
	background: var(--iy-gold-soft, #f6efe6);
	color: var(--iy-gold, #A77637);
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
}

.iy-teacher__meta {
	margin: 12px 0 0;
	font-size: 15px;
	color: var(--iy-muted, #6b6b6b);
}

/* ── Grid ─────────────────────────────────────────────────────────────── */

.iy-teacher__grid {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 20px;
	align-items: start;
}

.iy-teacher__card {
	background: var(--iy-card, #fff);
	border: 1px solid var(--iy-line, #ececec);
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 20px;
}

.iy-teacher__card-title {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 700;
	color: var(--iy-heading, #1c2b2c);
}

.iy-teacher__bio {
	font-size: 15px;
	line-height: 1.65;
	color: var(--iy-text, #3a3a3a);
}

.iy-teacher__events .iy-event-card {
	margin-bottom: 12px;
}

/* ── CTA ──────────────────────────────────────────────────────────────── */

.iy-teacher__cta-text {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--iy-muted, #6b6b6b);
}

.iy-teacher__cta-btn {
	display: block;
	padding: 12px 24px;
	background: var(--iy-teal, #3B6063);
	color: #fff !important;
	border-radius: 100px;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: background 0.15s ease;
}
.iy-teacher__cta-btn:hover {
	background: var(--iy-teal-dark, #2e4d4f);
	color: #fff;
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 900px) {
	.iy-teacher__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.iy-teacher__hero {
		flex-direction: column;
		text-align: center;
		gap: 16px;
		padding: 24px 20px;
	}
	.iy-teacher__avatar {
		width: 120px;
		height: 120px;
	}
	.iy-teacher__level {
		margin: 0 auto;
	}
}
