:root {
	--tsbh-blue: #0b4d84;
	--tsbh-blue-dark: #07375f;
	--tsbh-yellow: #fbbd18;
	--tsbh-ink: #14213d;
	--tsbh-muted: #667085;
	--tsbh-line: #e4e9f0;
	--tsbh-soft: #f7f9fc;
}

.tsbh-blog,
.tsbh-home {
	width: min(1180px, calc(100% - 32px));
	margin: 32px auto 54px;
	color: var(--tsbh-ink);
}

.tsbh-blog__intro {
	padding: clamp(24px, 4vw, 44px);
	text-align: center;
	background: linear-gradient(135deg, #fff8df 0%, #fff 54%, #eef7ff 100%);
	border: 1px solid var(--tsbh-line);
	border-radius: 24px;
	box-shadow: 0 18px 42px rgba(20, 33, 61, .08);
}

.tsbh-blog__intro h2,
.tsbh-home__head h2 {
	margin: 4px 0 8px;
	color: var(--tsbh-blue);
	font-size: clamp(1.55rem, 3vw, 2.35rem);
	line-height: 1.15;
}

.tsbh-blog__intro > p:last-child {
	max-width: 660px;
	margin: 0 auto;
	color: var(--tsbh-muted);
	font-size: 1rem;
}

.tsbh-eyebrow {
	margin: 0;
	color: var(--tsbh-blue);
	font-size: .76rem;
	font-weight: 850;
	letter-spacing: .12em;
}

.tsbh-filters {
	display: flex;
	margin: 24px 0;
	padding: 4px 2px 8px;
	align-items: center;
	gap: 9px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.tsbh-filter {
	display: inline-flex;
	min-height: 42px;
	padding: 9px 14px;
	align-items: center;
	justify-content: center;
	gap: 7px;
	flex: 0 0 auto;
	color: var(--tsbh-ink) !important;
	font-size: .88rem;
	font-weight: 750;
	text-decoration: none !important;
	background: #fff;
	border: 1px solid var(--tsbh-line);
	border-radius: 999px;
	transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.tsbh-filter svg,
.tsbh-badge svg,
.tsbh-category-list svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tsbh-filter:hover,
.tsbh-filter:focus-visible,
.tsbh-filter.is-active {
	color: #fff !important;
	background: var(--tsbh-blue);
	border-color: var(--tsbh-blue);
	outline: none;
	transform: translateY(-1px);
}

.tsbh-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.tsbh-card {
	display: flex;
	min-width: 0;
	overflow: hidden;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--tsbh-line);
	border-radius: 19px;
	box-shadow: 0 12px 34px rgba(20, 33, 61, .07);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tsbh-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 18px 42px rgba(20, 33, 61, .12);
	transform: translateY(-3px);
}

.tsbh-card__media {
	display: block;
	height: 210px;
	overflow: hidden;
	background: linear-gradient(135deg, #fff7dc, #eef7ff);
}

.tsbh-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.tsbh-card:hover .tsbh-card__media img {
	transform: scale(1.035);
}

.tsbh-card__placeholder {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	color: var(--tsbh-blue);
}

.tsbh-card__placeholder svg {
	width: 76px;
	height: 76px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.25;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tsbh-card--red .tsbh-card__placeholder { color: #b42318; background: #fff1f0; }
.tsbh-card--green .tsbh-card__placeholder { color: #16794b; background: #ecfdf3; }
.tsbh-card--purple .tsbh-card__placeholder { color: #6941c6; background: #f4f0ff; }
.tsbh-card--orange .tsbh-card__placeholder { color: #b54708; background: #fff6ed; }

.tsbh-card__body {
	display: flex;
	padding: 18px;
	flex: 1;
	flex-direction: column;
}

.tsbh-card__meta {
	display: flex;
	margin-bottom: 10px;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.tsbh-card__meta time {
	color: var(--tsbh-muted);
	font-size: .73rem;
	white-space: nowrap;
}

.tsbh-badge {
	display: inline-flex;
	min-width: 0;
	align-items: center;
	gap: 5px;
	color: var(--tsbh-blue);
	font-size: .73rem;
	font-weight: 800;
}

.tsbh-card--red .tsbh-badge { color: #b42318; }
.tsbh-card--green .tsbh-badge { color: #16794b; }
.tsbh-card--purple .tsbh-badge { color: #6941c6; }
.tsbh-card--orange .tsbh-badge { color: #b54708; }

.tsbh-card__body h3 {
	margin: 0 0 9px;
	font-size: 1.13rem;
	line-height: 1.28;
}

.tsbh-card__body h3 a {
	color: var(--tsbh-ink) !important;
	text-decoration: none !important;
}

.tsbh-card__body p {
	display: -webkit-box;
	margin: 0 0 15px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	color: var(--tsbh-muted);
	font-size: .9rem;
	line-height: 1.55;
}

.tsbh-card__more,
.tsbh-all-link {
	margin-top: auto;
	color: var(--tsbh-blue) !important;
	font-size: .87rem;
	font-weight: 800;
	text-decoration: none !important;
}

.tsbh-card__more:hover,
.tsbh-all-link:hover {
	color: var(--tsbh-blue-dark) !important;
}

.tsbh-home {
	padding: clamp(22px, 3vw, 34px);
	background: var(--tsbh-soft);
	border: 1px solid var(--tsbh-line);
	border-radius: 24px;
}

.tsbh-home__head {
	display: flex;
	margin-bottom: 20px;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
}

.tsbh-home__head h2 {
	font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.tsbh-grid--home .tsbh-card__media {
	height: 184px;
}

.tsbh-empty {
	padding: 54px 20px;
	text-align: center;
	background: var(--tsbh-soft);
	border: 1px dashed #c9d3df;
	border-radius: 20px;
}

.tsbh-empty svg {
	width: 58px;
	height: 58px;
	fill: none;
	stroke: var(--tsbh-blue);
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tsbh-empty h3 {
	margin: 12px 0 6px;
	color: var(--tsbh-blue);
}

.tsbh-empty p {
	margin: 0;
	color: var(--tsbh-muted);
}

.tsbh-pagination ul {
	display: flex;
	margin: 28px 0 0;
	padding: 0;
	align-items: center;
	justify-content: center;
	gap: 7px;
	list-style: none;
}

.tsbh-pagination a,
.tsbh-pagination span {
	display: inline-flex;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	align-items: center;
	justify-content: center;
	color: var(--tsbh-blue) !important;
	font-size: .84rem;
	font-weight: 750;
	text-decoration: none !important;
	background: #fff;
	border: 1px solid var(--tsbh-line);
	border-radius: 10px;
}

.tsbh-pagination .current {
	color: #fff !important;
	background: var(--tsbh-blue);
	border-color: var(--tsbh-blue);
}

.tsbh-public-share {
	display: flex;
	margin: 30px 0 8px;
	padding: 16px 18px;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: #fff8df;
	border: 1px solid #f1d577;
	border-radius: 14px;
}

.tsbh-public-share > div {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.tsbh-public-share a {
	padding: 7px 11px;
	color: var(--tsbh-blue) !important;
	font-size: .8rem;
	font-weight: 750;
	text-decoration: none !important;
	background: #fff;
	border: 1px solid #e6ca6d;
	border-radius: 999px;
}

@media (max-width: 920px) {
	.tsbh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
	.tsbh-blog,
	.tsbh-home {
		width: min(100% - 20px, 1180px);
		margin-top: 20px;
		margin-bottom: 34px;
	}

	.tsbh-blog__intro,
	.tsbh-home { border-radius: 17px; }
	.tsbh-grid { grid-template-columns: 1fr; gap: 14px; }
	.tsbh-card { border-radius: 15px; }
	.tsbh-card__media,
	.tsbh-grid--home .tsbh-card__media { height: 190px; }
	.tsbh-home__head { display: block; }
	.tsbh-all-link { display: inline-block; margin-top: 6px; }
	.tsbh-public-share { display: block; }
	.tsbh-public-share > div { margin-top: 10px; }
	.tsbh-pagination .prev,
	.tsbh-pagination .next { font-size: 0; }
	.tsbh-pagination .prev::after { content: "←"; font-size: .9rem; }
	.tsbh-pagination .next::after { content: "→"; font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
	.tsbh-card,
	.tsbh-card__media img,
	.tsbh-filter { transition: none; }
}

