/* TEACH Blog Posts */

.teach-blog-posts {
	--tbp-accent: #f5861f;
	--tbp-accent-dark: #e07310;
	--tbp-text: #1a1a1a;
	--tbp-muted: #555;
	--tbp-placeholder: #dcdcdc;
	font-size: 15px;
	color: var(--tbp-text);
}

.tbp-card {
	display: flex;
	align-items: center;
	gap: 28px;
	margin: 0 0 36px;
}

.tbp-thumb {
	flex: 0 0 200px;
	display: block;
	height: 148px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--tbp-placeholder);
}

.tbp-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tbp-body {
	flex: 1 1 auto;
	min-width: 0;
}

.tbp-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 4px;
}

.tbp-title a {
	color: var(--tbp-text);
	text-decoration: none;
}

.tbp-title a:hover {
	color: var(--tbp-accent-dark);
}

.tbp-date {
	font-size: 13px;
	color: var(--tbp-muted);
	margin: 0 0 10px;
}

.tbp-excerpt {
	font-size: 13px;
	line-height: 1.55;
	margin: 0 0 12px;
}

.tbp-more {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: var(--tbp-accent);
	text-decoration: none;
}

.tbp-more:hover {
	color: var(--tbp-accent-dark);
	text-decoration: underline;
}

.tbp-arrow {
	display: inline-block;
	transition: transform 0.15s ease;
}

.tbp-more:hover .tbp-arrow {
	transform: translateX(3px);
}

.tbp-empty {
	background: #f5f5f5;
	border-radius: 8px;
	padding: 16px 20px;
	color: var(--tbp-muted);
	margin: 0 0 12px;
}

@media (max-width: 560px) {
	.tbp-card {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.tbp-thumb {
		flex-basis: auto;
		width: 100%;
		height: 180px;
	}
}

/* ---------- single article page ---------- */

.tbp-article-page {
	--tbp-accent: #f5861f;
	--tbp-accent-dark: #e07310;
	--tbp-text: #1a1a1a;
	--tbp-muted: #555;
	--tbp-placeholder: #dcdcdc;
	padding: 28px 0 0;
	font-size: 15px;
	color: var(--tbp-text);
}

/* Breadcrumb and article are constrained; the related band spans full width. */
.tbp-article-page .tbp-breadcrumb,
.tbp-article-page .tbp-article {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

.tbp-breadcrumb {
	font-size: 13px;
	color: var(--tbp-muted);
	margin: 0 0 28px;
}

.tbp-breadcrumb a {
	color: var(--tbp-muted);
	text-decoration: none;
}

.tbp-breadcrumb a:hover {
	color: var(--tbp-accent-dark);
}

.tbp-breadcrumb-sep {
	margin: 0 8px;
}

.tbp-breadcrumb-current {
	color: var(--tbp-text);
	font-weight: 600;
}

.tbp-article-title {
	font-size: 34px;
	font-weight: 700;
	margin: 0 0 6px;
}

.tbp-article-date {
	font-size: 13px;
	color: var(--tbp-muted);
	margin: 0 0 22px;
}

.tbp-article-image {
	margin: 0 0 26px;
}

.tbp-article-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.tbp-article-image figcaption {
	font-size: 12px;
	font-style: italic;
	color: var(--tbp-muted);
	margin-top: 8px;
}

.tbp-article-content {
	font-size: 15px;
	line-height: 1.65;
	margin: 0 0 44px;
}

.tbp-article-content p {
	margin: 0 0 18px;
}

/* ---------- related posts (Continue Reading) ---------- */

.tbp-related {
	--tbp-accent: #f5861f;
	--tbp-accent-dark: #e07310;
	--tbp-text: #1a1a1a;
	--tbp-muted: #555;
	--tbp-placeholder: #dcdcdc;
	font-size: 15px;
	color: var(--tbp-text);
}

/* Full-width gray band when used on the article page. */
.tbp-article-page .tbp-related {
	background: #f0f0f0;
	padding: 44px 20px 30px;
}

/*
 * Break the gray band and the after-article section out of any max-width
 * wrapper the theme places around the page content. 100vw includes the
 * scrollbar, so the body class (added only on article pages) clips the
 * few extra pixels instead of causing a horizontal scrollbar.
 */
body.tbp-article-template {
	overflow-x: hidden;
}

body.tbp-article-template .tbp-article-page .tbp-related,
body.tbp-article-template .tbp-article-after {
	box-sizing: border-box;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: none;
}

.tbp-related-inner {
	max-width: 1060px;
	margin: 0 auto;
}

.tbp-related-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 22px;
}

.tbp-related-heading {
	font-size: 22px;
	font-weight: 700;
	margin: 0;
}

.tbp-view-all {
	font-size: 13px;
	font-weight: 600;
	color: var(--tbp-text);
	text-decoration: none;
	white-space: nowrap;
}

.tbp-view-all:hover {
	color: var(--tbp-accent-dark);
}

.tbp-view-all:hover .tbp-arrow {
	transform: translateX(3px);
}

.tbp-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.tbp-related-thumb {
	flex: none;
	width: 100%;
	height: 170px;
	margin: 0 0 14px;
	border-radius: 6px;
}

.tbp-related-title {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 4px;
}

.tbp-related-title a {
	color: var(--tbp-text);
	text-decoration: none;
}

.tbp-related-title a:hover {
	color: var(--tbp-accent-dark);
}

.tbp-related-card .tbp-date {
	margin: 0 0 12px;
}

.tbp-read {
	display: inline-block;
	background: #fff;
	border: 1px solid var(--tbp-accent);
	border-radius: 6px;
	color: var(--tbp-accent);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	padding: 4px 16px;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.tbp-read:hover,
.tbp-read:focus {
	background: var(--tbp-accent);
	color: #fff;
}

@media (max-width: 800px) {
	.tbp-related-grid {
		grid-template-columns: 1fr;
	}

	.tbp-article-title {
		font-size: 26px;
	}
}
