/*
 * Bontoy blog news cards.
 * Slider shell, arrows, viewport, track and dots reuse bon-viewed-products.
 */

.bon-blog-news .bon-blog-news__header {
	position: relative;
}

.bon-blog-news__all {
	position: absolute;
	top: 50%;
	right: 0;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--bon-color-primary, #a54bd9);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	transform: translateY(-50%);
	transition: opacity 0.2s ease;
}

.bon-blog-news__all:hover,
.bon-blog-news__all:focus {
	color: var(--bon-color-primary, #a54bd9);
	text-decoration: none;
	opacity: 0.75;
}

.bon-blog-news .bon-viewed-card--news {
	flex: 0 0 calc((100% - 32px) / 3);
	width: calc((100% - 32px) / 3);
	max-width: calc((100% - 32px) / 3);
	min-width: 0;
	border: 0 !important;
	border-radius: 0;
	background: transparent;
	overflow: visible !important;
}

.bon-blog-news .bon-viewed-card--news::after {
	display: none !important;
	content: none !important;
}

.bon-news-card__image-link {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 16px;
	background: #f6f6f6;
	overflow: hidden;
	text-decoration: none;
}

.bon-news-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
	.bon-news-card__image-link:hover .bon-news-card__image {
		transform: scale(1.025);
	}
}

.bon-news-card__title {
	display: -webkit-box;
	min-height: 25px;
	margin: 12px 0 8px;
	overflow: hidden;
	color: #242424;
	font-size: 15px;
	font-weight: 500;
	line-height: 21px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.bon-news-card__title a {
	color: inherit;
	text-decoration: none;
}

.bon-news-card__title a:hover,
.bon-news-card__title a:focus {
	color: var(--bon-color-primary, #a54bd9);
	text-decoration: none;
}

.bon-news-card__date {
	display: block;
	color: #CDCDCD;
	font-size: 13px;
	font-weight: 400;
	line-height: 1;
}

@media (max-width: 991px) {
	.bon-blog-news .bon-viewed-card--news {
		flex-basis: calc((100% - 16px) / 2);
		width: calc((100% - 16px) / 2);
		max-width: calc((100% - 16px) / 2);
	}
}

@media (max-width: 767px) {
	.bon-blog-news {
		margin-top: 38px;
		margin-bottom: 38px;
	}

	.bon-blog-news__all {
		display: none;
	}

	.bon-blog-news .bon-viewed-products__header {
		margin-bottom: 24px;
	}

	.bon-blog-news .bon-viewed-products__title {
		font-size: 28px;
	}

	.bon-blog-news .bon-viewed-card--news {
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
		min-width: 100%;
		border-right: 0 !important;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}

	.bon-blog-news .bon-viewed-card--news:nth-child(odd):not(:last-child) {
		border-right: 0 !important;
	}

	.bon-news-card__image-link {
		border-radius: 14px;
	}

	.bon-news-card__title {
		min-height: 20px;
		margin-top: 16px;
		margin-bottom: 12px;
		font-size: 20px;
		font-weight: 500;
		line-height: 27px;
	}

	.bon-news-card__date {
		font-size: 16px;
		line-height: 1.2;
	}

	.bon-blog-news .bon-viewed-products__pagination {
		margin-top: 22px;
	}
}

/* =========================================
   Standard blog listing page
   ========================================= */

.bon-blog-page,
.bon-blog-article {
	width: 100%;
	padding: 20px 0 70px;
	background: #ffffff;
}

.bon-blog-page__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: flex-start;
	gap: 28px;
	min-width: 0;
}

.bon-blog-page__layout.has-left {
	grid-template-columns: 240px minmax(0, 1fr);
}

.bon-blog-page__layout.has-right {
	grid-template-columns: minmax(0, 1fr) 240px;
}

.bon-blog-page__layout.has-left.has-right {
	grid-template-columns: 220px minmax(0, 1fr) 220px;
}

.bon-blog-page__content,
.bon-blog-page__sidebar {
	min-width: 0;
}

.bon-blog-page__title {
	margin: 22px 0 28px;
	color: #242424;
	font-size: 30px;
	font-weight: 500;
	line-height: 1.15;
}

.bon-blog-page__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 34px 16px;
	width: 100%;
}

.bon-blog-page__grid .bon-viewed-card--news {
	width: 100%;
	max-width: none;
	min-width: 0;
	border: 0 !important;
	border-radius: 0;
	background: transparent;
	box-shadow: none !important;
	overflow: visible !important;
}

.bon-blog-page__grid .bon-viewed-card--news::after {
	display: none !important;
	content: none !important;
}

.bon-blog-page__grid .bon-news-card__title {
	margin-top: 10px;
	margin-bottom: 6px;
}

.bon-blog-page__pagination {
	justify-content: center;
	margin-top: 44px;
}

.bon-blog-page__pagination .bon-category-pagination__links {
	margin: 0 auto;
}

.bon-blog-page__empty {
	padding: 40px 0;
	color: #999999;
	font-size: 14px;
}

/* =========================================
   Standard blog article page
   ========================================= */

.bon-blog-article__layout {
	display: grid;
	grid-template-columns: minmax(0, 880px) minmax(240px, 300px);
	align-items: flex-start;
	justify-content: space-between;
	gap: 54px;
	margin-top: 20px;
}

.bon-blog-article__layout--full {
	grid-template-columns: minmax(0, 900px);
	justify-content: start;
}

.bon-blog-article__content,
.bon-blog-article__related {
	min-width: 0;
}

.bon-blog-article__header {
	margin-bottom: 20px;
}

.bon-blog-article__title {
	margin: 0 0 8px;
	color: #242424;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.2;
}

.bon-blog-article__date {
	display: block;
	color: #d0d0d0;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.2;
}

.bon-blog-article__hero {
	width: 100%;
	margin-bottom: 28px;
	border-radius: 16px;
	background: #f6f6f6;
	overflow: hidden;
}

.bon-blog-article__hero-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: center;
}

.bon-blog-article__description {
	color: #333333;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.65;
}

.bon-blog-article__description h2,
.bon-blog-article__description h3,
.bon-blog-article__description h4 {
	margin-top: 28px;
	margin-bottom: 12px;
	color: var(--bon-color-primary, #a54bd9);
	font-weight: 500;
	line-height: 1.25;
}

.bon-blog-article__description p {
	margin: 0 0 16px;
}

.bon-blog-article__description ul,
.bon-blog-article__description ol {
	margin: 0 0 18px;
	padding-left: 22px;
}

.bon-blog-article__description img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 28px 0;
	border-radius: 16px;
}

.bon-blog-article__description a {
	color: var(--bon-color-primary, #a54bd9);
}

.bon-blog-article__related-title {
	margin: 2px 0 18px;
	color: #242424;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
}

.bon-blog-article__related-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.bon-blog-related-card {
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	overflow: visible !important;
}

.bon-blog-related-card::after {
	display: none !important;
	content: none !important;
}

.bon-blog-related-card .bon-news-card__image-link {
	border-radius: 12px;
}

.bon-blog-related-card .bon-news-card__title {
	min-height: 36px;
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 18px;
}

.bon-blog-article__downloads,
.bon-blog-article__reviews {
	margin-top: 34px;
}

.bon-blog-article__download {
	display: block;
	margin-bottom: 8px;
	color: var(--bon-color-primary, #a54bd9);
}

.bon-blog-article__reviews h2 {
	font-size: 22px;
	font-weight: 500;
}

.bon-blog-article__rating-input {
	display: flex;
	align-items: center;
	gap: 8px;
}

@media (max-width: 991px) {
	.bon-blog-page__layout.has-left,
	.bon-blog-page__layout.has-right,
	.bon-blog-page__layout.has-left.has-right {
		grid-template-columns: minmax(0, 1fr);
	}

	.bon-blog-page__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bon-blog-article__layout {
		grid-template-columns: minmax(0, 1fr) 240px;
		gap: 32px;
	}
}

@media (max-width: 767px) {
	.bon-blog-page,
	.bon-blog-article {
		padding-top: 10px;
		padding-bottom: 48px;
	}

	.bon-blog-page__title {
		margin-top: 18px;
		margin-bottom: 24px;
		font-size: 26px;
	}

	.bon-blog-page__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
	}

	.bon-blog-page__grid .bon-news-card__title {
		min-height: auto;
		font-size: 18px;
		line-height: 24px;
	}

	.bon-blog-page__grid .bon-news-card__date {
		font-size: 14px;
	}

	.bon-blog-page__pagination {
		justify-content: flex-start;
		margin-top: 34px;
	}

	.bon-blog-article__layout,
	.bon-blog-article__layout--full {
		grid-template-columns: minmax(0, 1fr);
		gap: 42px;
	}

	.bon-blog-article__title {
		font-size: 23px;
	}

	.bon-blog-article__hero {
		margin-bottom: 22px;
		border-radius: 14px;
	}

	.bon-blog-article__description {
		font-size: 14px;
		line-height: 1.6;
	}

	.bon-blog-article__description img {
		margin: 22px 0;
		border-radius: 14px;
	}

	.bon-blog-article__related-title {
		font-size: 22px;
	}

	.bon-blog-article__related-list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

@media (max-width: 480px) {
	.bon-blog-article__related-list {
		grid-template-columns: minmax(0, 1fr);
	}
}
