/**
 * Blog / news archive page styles.
 */

.tbpt-blog-page {
	--tbpt-blog-red: #ed1c24;
	--tbpt-blog-red-hover: #d41920;
	--tbpt-blog-text: #1a1a1a;
	--tbpt-blog-muted: #8f8f8f;
	--tbpt-blog-border: #e5e5e5;
	--tbpt-blog-bg: #fff;
}

.tbpt-blog-page__breadcrumb-wrap {
	padding: 14px 0 0;
	margin-bottom: 20px;
}

.tbpt-blog-page__breadcrumb {
	color: var(--tbpt-blog-muted);
	font-size: 13px;
}

.tbpt-blog-page__breadcrumb a {
	color: var(--tbpt-blog-muted);
	text-decoration: none;
}

.tbpt-blog-page__breadcrumb a:hover {
	color: var(--tbpt-blog-red);
}

.tbpt-blog-page__banner {
	margin-bottom: 32px;
}

.tbpt-blog-page__main {
	padding-bottom: 48px;
}

.tbpt-blog-page__grid {
	margin: 0 -12px;
}

.tbpt-blog-page__col {
	padding: 0 12px 24px;
}

/* Post card */
.tbpt-blog-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--tbpt-blog-border);
	border-radius: 10px;
	background: var(--tbpt-blog-bg);
	overflow: hidden;
}

.tbpt-blog-card__media {
	position: relative;
	display: block;
	overflow: hidden;
}

.tbpt-blog-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.tbpt-blog-card__image--placeholder {
	background: linear-gradient(135deg, #f7f3ea 0%, #efe8da 100%);
}

.tbpt-blog-card__date-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	min-height: 58px;
	padding: 6px 8px;
	border-radius: 4px;
	background: var(--tbpt-blog-red);
	color: #fff;
	text-align: center;
	line-height: 1.1;
}

.tbpt-blog-card__date-day {
	font-size: 22px;
	font-weight: 700;
}

.tbpt-blog-card__date-month {
	margin-top: 2px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.tbpt-blog-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 16px 16px 18px;
}

.tbpt-blog-card__category {
	margin: 0 0 8px;
	color: var(--tbpt-blog-red);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
}

.tbpt-blog-card__title {
	margin: 0 0 10px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
}

.tbpt-blog-card__title a {
	color: var(--tbpt-blog-text);
	text-decoration: none;
}

.tbpt-blog-card__title a:hover {
	color: var(--tbpt-blog-red);
}

.tbpt-blog-card__excerpt {
	display: -webkit-box;
	margin: 0 0 14px;
	overflow: hidden;
	color: var(--tbpt-blog-muted);
	font-size: 14px;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.tbpt-blog-card__read-more {
	margin-top: auto;
	color: var(--tbpt-blog-red);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.tbpt-blog-card__read-more:hover {
	color: var(--tbpt-blog-red-hover);
}

/* Pagination */
.tbpt-blog-pagination {
	margin-top: 12px;
	padding-top: 8px;
}

.tbpt-blog-pagination__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tbpt-blog-pagination__item {
	margin: 0;
}

.tbpt-blog-pagination__link,
.tbpt-blog-pagination__link.current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--tbpt-blog-border);
	border-radius: 999px;
	background: #f3f3f3;
	color: var(--tbpt-blog-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}

.tbpt-blog-pagination__link:hover {
	border-color: var(--tbpt-blog-red);
	color: var(--tbpt-blog-red);
}

.tbpt-blog-pagination__link.current.is-active {
	border-color: var(--tbpt-blog-red);
	background: var(--tbpt-blog-red);
	color: #fff;
}

.tbpt-blog-pagination__link.prev,
.tbpt-blog-pagination__link.next {
	font-size: 18px;
}

.tbpt-blog-page__footer-blocks {
	margin-top: 48px;
}

@media (max-width: 849px) {
	.tbpt-blog-page__grid {
		margin: 0 -8px;
	}

	.tbpt-blog-page__col {
		padding: 0 8px 16px;
	}

	.tbpt-blog-card__title {
		font-size: 16px;
	}
}
