/*
 * Blog listing - Ecomus blog-grid.html.
 *
 * Loaded by inc/blog.php on the Posts page, the archives and search only.
 * Rules under "Ecomus base styles" are mined from assets/css/styles-bk.css;
 * the "Local overrides" blocks are ours.
 *
 * Relative image paths resolve against assets/css/, so this file and
 * assets/images/ must stay siblings.
 */


/* =============================================================================
 * LAYOUT WRAPPER
 * ========================================================================== */

/*
 * GeneratePress makes .site-content a flex row. Without this wrapper every
 * section in the template becomes its own flex item.
 */
.ibf-blog {
	flex: 1 1 100%;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 0;
	margin: 0;
}
/*
 * GeneratePress puts 50px side padding on #page, which insets the
 * full-bleed page-title band. The Ecomus sections bring their own
 * .container / .container-full padding.
 */
body.blog #page,
body.archive #page,
body.search #page {
	padding-left: 0;
	padding-right: 0;
}

/* =============================================================================
 * SECTION 1 : PAGE TITLE
 * ========================================================================== */

/* --- Ecomus base styles for this section (from styles-bk.css) --- */

.tf-page-title {
	padding: 69px 0 65px;
	background-image: url(../images/shop/file/page-title-blog.png);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.tf-page-title .heading {
	font-size: 42px;
	font-weight: 400;
	line-height: 50px;
}

.tf-page-title .breadcrumbs {
	gap: 14px;
	margin-top: 5px;
}

.tf-page-title .breadcrumbs li {
	color: rgb(84, 84, 84);
}

.tf-page-title .breadcrumbs i {
	font-size: 10px;
}

@media only screen and (max-width: 1024px) {
	.tf-page-title .heading {
		font-size: 32px;
		line-height: 38px;
	}
}

@media only screen and (max-width: 767px) {
	.tf-page-title {
		padding: 52px 0 49px;
	}

	.tf-page-title .heading {
		font-size: 22px;
		line-height: 26px;
	}
}

/* =============================================================================
 * SECTION 2 : ARTICLE GRID
 * ========================================================================== */

/* --- Ecomus base styles for this section (from styles-bk.css) --- */

.blog-grid-main {
	padding: 36px 0 37px;
}

.blog-article-item {
	margin-bottom: 37px;
}

.blog-article-item .article-thumb {
	border-radius: 10px;
	overflow: hidden;
	position: relative;
}

.blog-article-item .article-thumb a {
	width: 100%;
	height: 100%;
}

.blog-article-item .article-thumb a img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all 1s;
}

.blog-article-item .article-thumb a:hover img {
	transform: scale(1.1);
}

.blog-article-item .article-label {
	position: absolute;
	bottom: 18px;
	left: 18px;
	text-transform: uppercase;
	display: flex;
	gap: 10px;
}

.blog-article-item .article-label a {
	background-color: var(--white);
	color: var(--main);
	font-size: 10px;
	font-weight: 700;
	line-height: 12px;
	padding: 0 16px;
	height: 31px;
	border-color: var(--white);
}

.blog-article-item .article-content {
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding-top: 30px;
}

.blog-article-item .article-title a {
	font-size: 20px;
	font-weight: 400;
	line-height: 30px;
	color: var(--main);
}

.blog-article-item .article-title a:hover {
	color: var(--primary);
}

.btn-sm {
	padding-left: 18px;
	padding-right: 18px;
}

.btn-line {
	padding: 0;
	padding-bottom: 7px;
	color: var(--main);
	position: relative;
}

.btn-line .icon {
	margin-inline-start: 8px;
	display: inline-block;
	font-size: 8px;
}

.btn-line::after {
	position: absolute;
	content: "";
	left: 0;
	bottom: 0;
	right: 0;
	height: 1px;
	background-color: var(--main);
	transition: all 0.3s ease-in-out;
}

.btn-line:hover { color: var(--primary); }
.btn-line:hover::after { background-color: var(--primary); }

.wg-pagination {
	display: flex;
	gap: 11px;
}

.wg-pagination .pagination-item {
	width: 45px;
	height: 39px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	border-radius: 3px;
	overflow: hidden;
}

.wg-pagination .active .pagination-item {
	background-color: var(--main);
	color: var(--white);
	box-shadow: rgba(0, 0, 0, 0.2) 1px 1px 10px 0px;
}

/* --- Local overrides --- */

/*
 * The template's cards are all the same height because its images are.
 * Real uploads are not, so the thumb gets a fixed ratio and the card is a
 * column, which keeps the grid rows even.
 */
.ibf-blog-grid .blog-article-item { height: 100%; }

.ibf-blog-grid .article-thumb { aspect-ratio: 4 / 3; }

.ibf-blog-grid .article-thumb:has(> a:empty) { display: none; }

.ibf-blog-grid .wg-pagination { justify-content: center; margin-top: 20px; }

.ibf-blog-grid .ibf-no-posts { padding: 40px 0 80px; text-align: center; }

@media only screen and (max-width: 767px) {
	.ibf-blog-grid .blog-article-item { margin-bottom: 28px; }
	.ibf-blog-grid .article-title a { font-size: 17px; line-height: 26px; }
}
