/* ==========================================================================
   Blog - public pages
   ========================================================================== */

.blog-heading {
	background-position: center;
}

.blog-category-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.45em 0.95em;
	border-radius: 50rem;
	background-color: var(--lightBlue) !important;
	color: var(--white) !important;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.blog-category-badge:hover {
	background-color: var(--darkBlueGrey) !important;
	color: var(--white) !important;
}

.blog-toolbar {
	margin-top: 0.5rem;
}

.blog-year-filter #reset-filter {
	cursor: pointer;
}

.blog-year-filter #reset-filter:hover,
.blog-year-filter #reset-filter:focus {
	color: var(--darkBlueGrey) !important;
}

@media only screen and (max-width: 767px) {
	.blog-category-select,
	.blog-year-filter {
		flex: 1 0 100%;
		width: 100%;
	}
}

.blog-category-filter .blog-category-pill {
	box-sizing: border-box;
	height: 42px;
	padding: 0 1rem;
}

.blog-category-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 1rem;
	border: 1px solid var(--lightGrey);
	border-radius: 50rem;
	background-color: var(--white);
	color: var(--slateGrey) !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
}

.blog-category-pill.small {
	padding: 0.35rem 0.8rem;
	font-size: 12px;
}

.blog-category-pill:hover,
.blog-category-pill.active {
	border-color: var(--lightBlue);
	background-color: var(--lightBlue);
	color: var(--white) !important;
}

/* --------------------------------------------------------------------------
   Listing cards
   -------------------------------------------------------------------------- */

.blog-list {
	margin-top: 0.5rem;
}

.blog-card {
	padding: 1.75rem 0;
	border-bottom: 1px solid var(--lightGrey);
	background-color: var(--white);
}

.blog-card:first-child {
	padding-top: 0;
}

.blog-card:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.blog-card-thumb {
	position: relative;
	display: block;
	height: 100%;
	min-height: 260px;
	overflow: hidden;
	background-color: var(--lightGrey);
}

.blog-card-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog-card-body {
	padding: 0.25rem 0 0.25rem 2rem;
}

.blog-card-category {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--lightBlue) !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.blog-card-category-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: var(--lightBlue);
	flex-shrink: 0;
}

.blog-card-title {
	margin: 0.85rem 0 1.25rem;
	color: var(--darkBlueGrey);
	font-size: 1.25rem;
	font-weight: 700;
}

.blog-card-title-text {
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.blog-card-title-text:hover,
.blog-card-title-text:focus {
	color: inherit;
	text-decoration: none;
}

.blog-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	color: var(--slateGrey);
	font-size: 12px;
}

.blog-card-meta i {
	margin-right: 0.3rem;
	color: var(--lightBlue);
}

.blog-card-meta-divider {
	display: inline-block;
	width: 1px;
	height: 14px;
	background-color: #d9dee8;
	vertical-align: middle;
}

.blog-thumb-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: linear-gradient(135deg, var(--lightBlue), var(--darkBlueGrey));
	color: var(--white);
}

.blog-thumb-placeholder i {
	font-size: 2.2rem;
	opacity: 0.9;
}

.blog-thumb-placeholder span {
	font-size: 12px;
	letter-spacing: 0.08em;
	opacity: 0.9;
}

.blog-thumb-placeholder.small {
	position: absolute;
	inset: 0;
	min-height: 0;
	height: 100%;
}

.blog-thumb-placeholder.small i {
	font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.blog-pagination-nav {
	margin-top: 2.5rem;
}

.blog-pagination .page-link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 0.65rem;
	border: none;
	border-radius: 50rem !important;
	background-color: var(--white);
	box-shadow: 0 2px 8px rgba(38, 59, 94, 0.08);
	color: var(--slateGrey) !important;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
}

.blog-pagination .page-item.active .page-link {
	background-color: var(--lightBlue);
	color: var(--white) !important;
}

.blog-pagination .page-item.disabled .page-link {
	background-color: #f5f6f8;
	color: var(--slateGrey) !important;
	opacity: 0.45;
}

.blog-pagination .page-link:hover,
.blog-pagination .page-link:focus {
	background-color: var(--lightBlue);
	color: var(--white) !important;
}

/* --------------------------------------------------------------------------
   Detail
   -------------------------------------------------------------------------- */

.blog-preview-banner {
	background-color: #3d4f63;
	color: #fff;
	font-size: 14px;
	line-height: 1.5;
}

.blog-preview-banner strong {
	margin-right: 0.35rem;
}

.blog-preview-banner-text {
	opacity: 0.92;
}

.blog-preview-banner .btn {
	color: #3d4f63;
}

body.blog-detail-page header.sticky-top {
	z-index: 1030;
}

@media (min-width: 768px) {
	body.blog-detail-page .sticky-element {
		top: 153px;
	}
}

.blog-article-meta {
	padding: 1rem 1.25rem;
	border: 1px solid var(--lightGrey);
	border-radius: 14px;
	background-color: var(--lightWhite);
}

.blog-article-meta-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background-color: var(--lightBlue);
	color: var(--white);
	flex-shrink: 0;
}

.blog-article-meta-label {
	color: var(--slateGrey);
	font-size: 11px;
	line-height: 1.4;
	letter-spacing: 0.02em;
}

.blog-article-meta-value {
	color: var(--darkBlueGrey);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.blog-article-meta-link {
	color: var(--darkBlueGrey);
	font-weight: 600;
	text-decoration: none;
}

.blog-article-meta-link:hover {
	color: var(--lightBlue);
}

.blog-hero-figure {
	margin: 0;
}

.blog-hero-image {
	max-height: 520px;
	object-fit: cover;
	box-shadow: none;
}

.blog-content {
	color: var(--slateGrey);
	font-size: 16px;
	line-height: 2;
	overflow-wrap: anywhere;
}

.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5 {
	position: relative;
	padding-left: 0.8rem;
}

.blog-content h2::before,
.blog-content h3::before,
.blog-content h4::before,
.blog-content h5::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 3px;
	border-radius: 10px;
	background-color: var(--lightBlue);
}

.blog-content h2 {
	margin: 2.2rem 0 1rem;
	font-size: 1.5rem;
}

.blog-content h3 {
	margin: 1.8rem 0 0.8rem;
	font-size: 1.2rem;
}

.blog-content h4,
.blog-content h5 {
	margin: 1.5rem 0 0.7rem;
	font-size: 1.05rem;
}

.blog-content p {
	margin-bottom: 1.4rem;
}

.blog-content ul,
.blog-content ol {
	margin-bottom: 1.4rem;
	padding-left: 1.4rem;
}

.blog-content li {
	margin-bottom: 0.5rem;
}

.blog-content img {
	max-width: 100%;
	height: auto;
	margin: 1rem 0;
	border-radius: 12px;
	box-shadow: none;
}

.blog-content blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--lightBlue);
	border-radius: 0 12px 12px 0;
	background-color: var(--N5-BG);
	color: var(--darkBlueGrey);
}

.blog-content blockquote p:last-child {
	margin-bottom: 0;
}

.blog-content a.blog-lightbox {
	display: inline-block;
	max-width: 100%;
	color: inherit !important;
	line-height: 0;
	text-decoration: none;
}

.blog-content a {
	color: var(--lightBlue) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.blog-content .table-responsive {
	margin: 1.5rem 0;
	background-image: linear-gradient(to right, white, white, white), linear-gradient(to right, white, white, white), linear-gradient(to right, rgba(0, 0, 20, .1), rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)), linear-gradient(to left, rgba(0, 0, 20, .1), rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
	background-position: left center, right center, left center, right center;
	background-repeat: no-repeat;
	background-color: white;
	background-size: 20px 100%, 20px 100%, 10px 100%, 10px 100%;
	background-attachment: local, local, scroll, scroll;
}

.blog-content table {
	width: 100%;
	margin: 1.5rem 0;
	border-collapse: collapse;
}

.blog-content .table-responsive > table {
	margin: 0;
}

.blog-content .table-responsive > .table > :not(caption) > * > * {
	background-color: transparent;
	box-shadow: none;
}

.blog-content th,
.blog-content td {
	padding: 0.65rem 0.8rem;
	border: 1px solid var(--lightGrey);
	background-color: transparent;
}

.blog-content th {
	background-color: var(--lightWhite);
	color: var(--darkBlueGrey);
	white-space: nowrap;
}

.blog-content .table td {
	color: var(--slateGrey);
	font-size: 14px;
}

@media only screen and (max-width: 767px) {
	.blog-content .table {
		white-space: nowrap;
	}
}

.blog-content pre {
	overflow: auto;
	padding: 1rem;
	border-radius: 12px;
	background-color: var(--darkBlueGrey);
	color: var(--white);
}

.blog-content code {
	padding: 0.15rem 0.35rem;
	border-radius: 4px;
	background-color: #f1f3f7;
	font-size: 0.9em;
}

.blog-content pre code {
	padding: 0;
	background-color: transparent;
}

.blog-content .ql-align-center {
	text-align: center;
}

.blog-content .ql-align-right {
	text-align: right;
}

.blog-content .ql-align-justify {
	text-align: justify;
}

.blog-content .ql-indent-1 { padding-left: 2rem; }
.blog-content .ql-indent-2 { padding-left: 4rem; }
.blog-content .ql-indent-3 { padding-left: 6rem; }
.blog-content .ql-indent-4 { padding-left: 8rem; }

.blog-content .ql-size-small { font-size: 0.85em; }
.blog-content .ql-size-large { font-size: 1.25em; }
.blog-content .ql-size-huge { font-size: 1.6em; }

.blog-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--lightGrey);
	border-radius: 50%;
	background-color: var(--white);
	color: var(--slateGrey);
	text-decoration: none;
	transition: all 0.2s ease;
}

.blog-share-btn.copy {
	width: auto;
	padding: 0 1rem;
	border-radius: 50rem;
	gap: 0.4rem;
}

.blog-share-btn.facebook:hover {
	border-color: #1877f2;
	background-color: #1877f2;
	color: var(--white);
}

.blog-share-btn.whatsapp:hover {
	border-color: #25d366;
	background-color: #25d366;
	color: var(--white);
}

.blog-share-btn.copy:hover {
	border-color: var(--lightBlue);
	background-color: var(--lightBlue);
	color: var(--white);
}

.blog-sidebar-title {
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--lightGrey);
}

.blog-related-list {
	display: flex;
	flex-direction: column;
}

.blog-related-item {
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--lightGrey);
	color: inherit;
}

.blog-related-item:first-child {
	padding-top: 0;
}

.blog-related-item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.blog-related-item:hover .text-dblue {
	color: var(--lightBlue) !important;
}

.blog-related-thumb {
	position: relative;
	width: 80px;
	height: 60px;
	flex-shrink: 0;
	background-color: var(--lightGrey);
}

.blog-related-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	box-shadow: none;
}

.blog-related-text {
	min-width: 0;
}

.blog-related-title {
	display: -webkit-box;
	overflow: hidden;
	overflow-wrap: anywhere;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

@media only screen and (max-width: 767px) {
	.blog-card {
		padding: 1.5rem 0;
	}

	.blog-card-thumb {
		min-height: 210px;
		height: 210px;
	}

	.blog-card-body {
		padding: 1.25rem 0 0;
	}

	.blog-card-title {
		font-size: 1.1rem;
	}

	.blog-card-footer .inquiry-btn {
		margin-left: auto;
	}

	.blog-article-meta {
		padding: 0.875rem 1rem;
	}

	.blog-article-meta-icon {
		width: 34px;
		height: 34px;
	}

	.blog-content {
		font-size: 15px;
		line-height: 1.95;
	}

	.blog-content h2 {
		font-size: 1.3rem;
	}
}
