/*-------------------------------------------------------------------------------------
	Blog Listing & Blog Detail Pages
	Extends the sales theme (assets_frontend/sales/css/style.css).
	Reuses site tokens: #3c3c3c text / #f10f44 blue / #feda30 yellow /
	#011226 footer / Poppins font / .reg-btn, .title, .pd-70, .custom-list-arrow
-------------------------------------------------------------------------------------*/

/* ================================================== */
/* # Blog Header Navigation (Home / Blog links)        */
/* ================================================== */

.blog-header-nav {
	display: flex;
	align-items: center;
	gap: 30px;
	margin-top: 15px;
}

.blog-header-nav a {
	font-weight: 600;
	font-size: 15px;
	letter-spacing: .3px;
	text-transform: uppercase;
	color: #3c3c3c;
	position: relative;
	padding-bottom: 3px;
}

.blog-header-nav a:hover,
.blog-header-nav a.active {
	color: #f10f44;
}

.blog-header-nav a.active:after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -3px;
	height: 2px;
	background-color: #f10f44;
}

@media (min-width: 768px) {
	.blog-header-nav {
		margin-top: 0;
	}
}

/* ================================================== */
/* # Breadcrumb                                        */
/* ================================================== */

.blog-breadcrumb {
	font-size: 14px;
	font-weight: 600;
	color: #8c8c8c;
}

.blog-breadcrumb a {
	color: #f10f44;
}

.blog-breadcrumb a:hover {
	color: #f10f44;
}

.blog-breadcrumb .sep {
	margin: 0 8px;
	color: #c7c7c7;
}

.blog-breadcrumb .current {
	color: #3c3c3c;
}

/* ================================================== */
/* # Blog Page Title (reuses .title h2 / h3 pattern)   */
/* ================================================== */

.blog-page-title {
	padding-top: 55px;
	padding-bottom: 25px;
}

/* ================================================== */
/* # Category Filter                                   */
/* ================================================== */

.blog-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-bottom: 50px;
}

.blog-filter button,
.blog-filter a {
	border: 1px solid #dcdcdc;
	background-color: #fff;
	color: #717171;
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .3px;
	padding: 10px 24px;
	border-radius: 30px;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	transition: all .3s ease;
}

.blog-filter button:hover,
.blog-filter a:hover {
	border-color: #f10f44;
	color: #f10f44;
}

.blog-filter button.active,
.blog-filter a.active {
	background-color: #f10f44;
	border-color: #f10f44;
	color: #fff;
}

/* ================================================== */
/* # Blog Card                                         */
/* ================================================== */

.blog-grid {
	row-gap: 30px;
}

.blog-card {
	background-color: #fff;
	height: 100%;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 5px rgba(0, 0, 0, .2);
	transition: all .3s ease;
	display: flex;
	flex-direction: column;
}

.blog-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 35px rgba(0, 0, 0, .16);
}

.blog-card-img {
	display: block;
	position: relative;
	overflow: hidden;
	height: 220px;
	background-color: #f1f1f1;
}

.blog-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.blog-card:hover .blog-card-img img {
	transform: scale(1.08);
}

.blog-category-badge {
	position: absolute;
	left: 15px;
	top: 15px;
	background-color: #f10f44;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .3px;
	padding: 6px 14px;
	border-radius: 30px;
}

.blog-card-body {
	padding: 26px 25px 25px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.blog-meta {
	display: flex;
	align-items: center;
	font-size: 13px;
	font-weight: 600;
	color: #8c8c8c;
	text-transform: uppercase;
	letter-spacing: .3px;
	margin-bottom: 12px;
}

.blog-meta img {
	width: 14px;
	margin-right: 8px;
	opacity: .7;
}

.blog-card-body h3 {
	font-size: 21px;
	font-weight: 700;
	line-height: 1.35;
	margin-bottom: 12px;
}

.blog-card-body h3 a {
	color: #3c3c3c;
}

.blog-card-body h3 a:hover {
	color: #f10f44;
}

.blog-card-body p {
	color: #717171;
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 22px;
}

.read-more-link {
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .3px;
	color: #f10f44;
	margin-top: auto;
}

.read-more-link .arrow {
	margin-left: 6px;
	transition: transform .3s ease;
	display: inline-block;
}

.read-more-link:hover {
	color: #f10f44;
}

.read-more-link:hover .arrow {
	transform: translateX(4px);
}

/* Empty filter state */
.blog-empty {
	text-align: center;
	padding: 70px 15px;
	color: #8c8c8c;
	font-size: 18px;
	font-weight: 500;
}

/* ================================================== */
/* # Pagination                                        */
/* ================================================== */

.blog-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
}

.blog-pagination button {
	min-width: 42px;
	height: 42px;
	border: 1px solid #dcdcdc;
	background-color: #fff;
	color: #3c3c3c;
	font-weight: 600;
	font-size: 15px;
	border-radius: 50%;
	cursor: pointer;
	transition: all .3s ease;
	padding: 0 8px;
}

.blog-pagination button:hover:not(:disabled):not(.active) {
	border-color: #f10f44;
	color: #f10f44;
}

.blog-pagination button.active {
	background-color: #f10f44;
	border-color: #f10f44;
	color: #fff;
}

.blog-pagination button:disabled {
	opacity: .4;
	cursor: not-allowed;
}

/* ================================================== */
/* # Blog Detail Page                                  */
/* ================================================== */

.blog-detail-section {
	padding-top: 45px;
}

.blog-detail-header {
	text-align: center;
	max-width: 840px;
	margin: 0 auto 35px;
}

.blog-detail-header .blog-category-pill {
	display: inline-block;
	background-color: #f10f44;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	padding: 7px 20px;
	border-radius: 30px;
	margin-bottom: 20px;
}

.blog-detail-header h1 {
	font-size: 42px;
	font-weight: 800;
	line-height: 1.25;
	margin-bottom: 22px;
}

.blog-detail-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 25px;
}

.blog-author {
	display: flex;
	align-items: center;
}

.blog-author img {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	object-fit: cover;
	margin-right: 12px;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px #e1e1e1;
}

.blog-author .blog-author-info {
	text-align: left;
}

.blog-author .name {
	font-size: 15px;
	font-weight: 700;
	color: #3c3c3c;
	display: block;
	line-height: 1.3;
}

.blog-author .role {
	font-size: 13px;
	color: #8c8c8c;
	display: block;
}

.blog-detail-date {
	font-size: 14px;
	font-weight: 600;
	color: #8c8c8c;
	display: flex;
	align-items: center;
}

.blog-detail-date img {
	width: 16px;
	margin-right: 8px;
	opacity: .7;
}

.blog-detail-featured-img {
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 15px 35px rgba(0, 0, 0, .15);
	margin-bottom: 50px;
}

.blog-detail-featured-img img {
	width: 100%;
	display: block;
}

.blog-detail-content {
	max-width: 800px;
	margin: 0 auto;
}

.blog-detail-content p {
	font-size: 18px;
	line-height: 1.85;
	color: #3c3c3c;
	margin-bottom: 24px;
}

.blog-detail-content h3 {
	font-size: 26px;
	font-weight: 700;
	margin: 42px 0 18px;
}

.blog-detail-content ul.custom-list-arrow {
	margin-bottom: 26px;
}

.blog-detail-content blockquote {
	border-left: 4px solid #f10f44;
	background-color: #f8f8f8;
	padding: 24px 30px;
	font-size: 21px;
	font-weight: 600;
	font-style: italic;
	color: #3c3c3c;
	margin: 35px 0;
	border-radius: 0 8px 8px 0;
}

.blog-share {
	max-width: 800px;
	margin: 45px auto 0;
	padding-top: 30px;
	border-top: 1px solid #e1e1e1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
}

.blog-share .blog-tags span {
	display: inline-block;
	background-color: #f1f1f1;
	color: #717171;
	font-size: 13px;
	font-weight: 600;
	padding: 7px 18px;
	border-radius: 30px;
	margin: 0 8px 8px 0;
}

.blog-back-link {
	font-weight: 700;
	color: #f10f44;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .3px;
	white-space: nowrap;
}

.blog-back-link:hover {
	color: #f10f44;
}

/* ================================================== */
/* # Related Posts                                     */
/* ================================================== */

.related-posts-section {
	background-color: #f1f1f1;
}

/* ================================================== */
/* # Responsive                                        */
/* ================================================== */

@media (max-width: 1023px) {
	.blog-detail-header h1 {
		font-size: 34px;
	}
}

@media (max-width: 767.98px) {
	.blog-page-title {
		padding-top: 35px;
	}
	.blog-detail-header h1 {
		font-size: 26px;
	}
	.blog-detail-content p {
		font-size: 16px;
	}
	.blog-detail-content h3 {
		font-size: 22px;
	}
	.blog-detail-content blockquote {
		font-size: 17px;
		padding: 20px 22px;
	}
	.blog-card-img {
		height: 210px;
	}
	.blog-detail-meta {
		gap: 15px;
	}
	.blog-filter {
		gap: 8px;
		margin-bottom: 35px;
	}
	.blog-filter button {
		padding: 8px 16px;
		font-size: 13px;
	}
	.blog-share {
		justify-content: center;
		text-align: center;
	}
}

@media (max-width: 479px) {
	.blog-detail-header h1 {
		font-size: 22px;
	}
}
