.cf-blog-page {
	--cf-blog-radius: 24px;
	--cf-blog-shadow: 0 18px 50px rgba(4, 42, 45, 0.08);
}

.cf-blog-archive {
	padding: 100px 0;
	background:
		radial-gradient(ellipse 80% 50% at 50% 0%, rgba(1, 146, 151, 0.06), transparent 60%),
		var(--secondary-color);
}

.cf-blog-filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: #fff;
	border: 1px solid rgba(1, 146, 151, 0.12);
	border-radius: 16px;
	padding: 18px 22px;
	margin-bottom: 36px;
	box-shadow: var(--cf-blog-shadow);
}

.cf-blog-filter-bar p {
	margin: 0;
	color: var(--primary-color);
}

.cf-blog-card {
	height: 100%;
	background: #fff;
	border-radius: 22px;
	border: 1px solid rgba(1, 146, 151, 0.1);
	box-shadow: 0 12px 36px rgba(4, 42, 45, 0.06);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

.cf-blog-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--cf-blog-shadow);
}

.cf-blog-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	flex: 0 0 auto;
	background: #dfe8e9;
}

.cf-blog-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.cf-blog-card:hover .cf-blog-card__media img {
	transform: scale(1.05);
}

.cf-blog-card__date {
	position: absolute;
	left: 14px;
	bottom: 14px;
	background: rgba(4, 42, 45, 0.88);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	padding: 7px 11px;
	border-radius: 999px;
}

.cf-blog-card__body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 10px;
}

.cf-blog-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--dark-color);
	text-transform: uppercase;
}

.cf-blog-card__meta span::before {
	content: '';
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: rgba(1, 146, 151, 0.45);
	display: inline-block;
	margin-right: 8px;
	vertical-align: middle;
}

.cf-blog-card__body h2 {
	font-size: 1.08rem;
	line-height: 1.4;
	margin: 0;
	height: calc(1.4em * 2);
	color: var(--primary-color);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

.cf-blog-card__body h2 a {
	color: inherit;
	text-decoration: none;
}

.cf-blog-card__body h2 a:hover {
	color: var(--dark-color);
}

.cf-blog-card__body p {
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-color);
	margin: 0;
	height: calc(1.6em * 2);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

.cf-blog-card__link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	margin-top: auto;
	padding-top: 4px;
	font-size: 14px;
	font-weight: 700;
	color: var(--dark-color);
	text-decoration: none;
}

.cf-blog-card__link i {
	font-size: 12px;
	transition: transform 0.3s ease;
}

.cf-blog-card__link:hover i {
	transform: translateX(4px);
}

.cf-blog-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}

.cf-hashtag {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--primary-color);
	background: rgba(115, 237, 124, 0.22);
	border: 1px solid rgba(1, 146, 151, 0.18);
	text-decoration: none;
	transition: background 0.25s ease, color 0.25s ease;
}

.cf-hashtag:hover {
	background: var(--accent-color);
	color: var(--primary-color);
}

.cf-blog-pagination {
	margin-top: 48px;
}

.cf-blog-pagination ul {
	display: flex;
	justify-content: center;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.cf-blog-pagination a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: #fff;
	color: var(--primary-color);
	font-weight: 700;
	text-decoration: none;
	border: 1px solid rgba(1, 146, 151, 0.12);
}

.cf-blog-pagination li.active a,
.cf-blog-pagination a:hover {
	background: var(--accent-color);
	border-color: transparent;
}

.cf-blog-empty {
	text-align: center;
	padding: 60px 20px;
	background: #fff;
	border-radius: var(--cf-blog-radius);
}

/* ---------- Elegant article detail ---------- */
.cf-blog-single .page-header {
	padding-bottom: 140px;
}

.cf-article-shell {
	margin-top: -90px;
	position: relative;
	z-index: 2;
	padding-bottom: 40px;
	background: linear-gradient(180deg, transparent 0 60px, var(--secondary-color) 60px);
}

.cf-article-panel {
	width: 100%;
	max-width: 100%;
	margin: 0;
	background: #fff;
	border-radius: 32px;
	overflow: hidden;
	border: 1px solid rgba(1, 146, 151, 0.1);
	box-shadow: 0 28px 80px rgba(4, 42, 45, 0.12);
}

.cf-article-cover {
	position: relative;
	margin: 8px 48px 12px;
	border-radius: 22px;
	overflow: hidden;
	background: #e8eeef;
	box-shadow: 0 12px 36px rgba(4, 42, 45, 0.1);
	border: 1px solid rgba(1, 146, 151, 0.1);
}

.cf-article-cover img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	max-height: 480px;
	object-fit: cover;
	object-position: center center;
	display: block;
	filter: none;
	transform: none;
	image-rendering: auto;
}

.cf-article-header {
	padding: 40px 48px 8px;
	max-width: none;
}

.cf-article-title {
	font-size: clamp(1.85rem, 3.4vw, 2.75rem);
	font-weight: 700;
	line-height: 1.18;
	color: var(--primary-color);
	margin: 0 0 16px;
	letter-spacing: -0.02em;
	max-width: 52rem;
}

.cf-article-deck {
	font-size: 1.125rem;
	line-height: 1.75;
	color: #667273;
	margin: 0 0 28px;
	max-width: 48rem;
}

.cf-article-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 12px 20px;
	padding: 18px 0 8px;
	border-top: 1px solid rgba(4, 42, 45, 0.08);
}

.cf-article-stats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
}

.cf-article-stats li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #3f4b4c;
}

.cf-article-stats i {
	color: var(--dark-color);
	font-size: 14px;
}

.cf-article-divider {
	padding: 8px 48px 0;
}

.cf-article-divider span {
	display: block;
	height: 1px;
	background: linear-gradient(90deg, rgba(1, 146, 151, 0.35), rgba(115, 237, 124, 0.55), transparent);
}

.cf-article-content {
	padding: 28px 48px 40px;
	border-bottom: none;
	margin: 0;
	overflow: hidden;
	max-width: none;
}

.cf-article-content > p:first-of-type {
	font-size: 1.15rem;
	line-height: 1.85;
	color: #3d4849;
}

.cf-article-content > p:first-of-type::first-letter {
	float: left;
	font-size: 3.4rem;
	line-height: 0.9;
	font-weight: 700;
	color: var(--primary-color);
	padding: 6px 10px 0 0;
}

.cf-article-tags {
	margin-bottom: 18px;
}

.cf-article-content p,
.cf-article-content li {
	font-size: 17px;
	line-height: 1.85;
	color: #4a5556;
}

.cf-article-content p {
	max-width: 48rem;
	margin-bottom: 1.15em;
}

.cf-article-content p strong,
.cf-article-content li strong {
	color: var(--primary-color);
	font-weight: 700;
}

.cf-article-content h2 {
	font-size: clamp(1.35rem, 2.2vw, 1.7rem);
	font-weight: 700;
	color: var(--primary-color);
	margin: 2em 0 0.7em;
	letter-spacing: -0.01em;
	padding-left: 16px;
	border-left: 3px solid var(--accent-color);
}

.cf-article-content h3 {
	font-size: 1.25rem;
	color: var(--primary-color);
	margin: 1.6em 0 0.55em;
}

/* Unordered lists */
.cf-article-content ul {
	list-style: none !important;
	padding: 8px 0 8px 0 !important;
	margin: 0 0 1.75em !important;
	max-width: 48rem;
}

.cf-article-content ul > li {
	position: relative;
	list-style: none !important;
	margin: 0 0 12px !important;
	padding: 14px 18px 14px 48px !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	line-height: 1.65 !important;
	color: #3f4b4c !important;
	background: #f7faf9;
	border: 1px solid rgba(1, 146, 151, 0.1);
	border-radius: 14px;
}

.cf-article-content ul > li::before {
	content: '' !important;
	position: absolute;
	left: 18px;
	top: 1.35em;
	transform: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: linear-gradient(145deg, var(--accent-color), var(--dark-color));
	box-shadow: 0 0 0 4px rgba(115, 237, 124, 0.2);
}

.cf-article-content ul > li::marker {
	content: none !important;
	font-size: 0 !important;
}

/* Ordered / step lists */
.cf-article-content ol {
	list-style: none !important;
	counter-reset: cf-steps;
	padding: 4px 0 !important;
	margin: 0 0 1.75em !important;
	max-width: 48rem;
}

.cf-article-content ol > li {
	position: relative;
	list-style: none !important;
	counter-increment: cf-steps;
	display: block;
	margin: 0 0 14px !important;
	padding: 18px 20px 18px 72px !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	line-height: 1.65 !important;
	color: #3f4b4c !important;
	background: #fff;
	border: 1px solid rgba(1, 146, 151, 0.12);
	border-radius: 16px;
	box-shadow: 0 8px 22px rgba(4, 42, 45, 0.04);
}

.cf-article-content ol > li::before {
	content: counter(cf-steps) !important;
	position: absolute;
	left: 16px;
	top: 16px;
	transform: none;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: linear-gradient(145deg, #042A2D 0%, #019297 100%);
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	font-style: normal !important;
	line-height: 40px !important;
	text-align: center;
	letter-spacing: 0;
	box-shadow: 0 8px 18px rgba(1, 146, 151, 0.22);
}

.cf-article-content ol > li::marker {
	content: none !important;
	font-size: 0 !important;
}

.cf-article-content ol > li strong {
	display: inline;
	color: var(--primary-color);
	font-weight: 700;
	font-size: 16px;
}

.cf-article-content a {
	color: var(--dark-color);
	font-weight: 600;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.cf-article-content a:hover {
	color: var(--primary-color);
}

.cf-article-topics {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
	padding: 22px 48px 36px;
	border-top: 1px solid rgba(4, 42, 45, 0.07);
	background: linear-gradient(180deg, #fff, rgba(242, 241, 237, 0.55));
}

.cf-article-topics__label {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--dark-color);
}

.cf-article-topics .cf-blog-tags {
	margin: 0;
}

.cf-article-cta {
	width: 100%;
	max-width: 100%;
	margin: 28px 0 0;
}

.cf-article-cta__inner {
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	padding: 40px 42px;
	background:
		radial-gradient(ellipse 70% 90% at 100% 0%, rgba(115, 237, 124, 0.28), transparent 55%),
		linear-gradient(135deg, #042A2D 0%, #06494e 55%, #019297 100%);
	color: #fff;
	box-shadow: 0 22px 60px rgba(4, 42, 45, 0.18);
}

.cf-article-cta__eyebrow {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent-color);
	margin: 0 0 12px;
}

.cf-article-cta h2 {
	font-size: clamp(1.4rem, 2.5vw, 1.9rem);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 12px;
	color: #fff;
}

.cf-article-cta p {
	margin: 0;
	max-width: 36rem;
	color: rgba(255, 255, 255, 0.82);
	line-height: 1.7;
}

.cf-article-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.cf-related-posts {
	padding: 56px 0 100px;
	background: var(--secondary-color);
}

.cf-home-blog {
	padding: 100px 0;
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 70% 50% at 0% 50%, rgba(115, 237, 124, 0.1), transparent 55%),
		radial-gradient(ellipse 60% 50% at 100% 20%, rgba(1, 146, 151, 0.08), transparent 50%),
		#fff;
}

.cf-home-blog .section-title {
	margin-bottom: 48px;
}

.cf-home-blog-grid {
	align-items: stretch;
}

.cf-home-blog__footer {
	text-align: center;
	margin-top: 36px;
}

.cf-home-blog__footer .btn-default {
	padding: 16px 46px 16px 22px;
	letter-spacing: 0;
}

.cf-home-blog__footer .btn-default::before {
	top: 50%;
	right: 18px;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	background-size: contain;
}

.cf-home-blog__footer .btn-default:hover::before {
	transform: translateY(-50%) rotate(45deg);
}

@media (max-width: 991px) {
	.cf-blog-archive {
		padding: 70px 0;
	}

	.cf-blog-single .page-header {
		padding-bottom: 120px;
	}

	.cf-article-shell {
		margin-top: -80px;
	}

	.cf-article-header,
	.cf-article-content,
	.cf-article-divider,
	.cf-article-topics {
		padding-left: 26px;
		padding-right: 26px;
	}

	.cf-article-cover {
		margin: 4px 26px 8px;
		border-radius: 16px;
	}

	.cf-article-cover img {
		aspect-ratio: 16 / 10;
		max-height: 360px;
	}

	.cf-article-cta__inner {
		padding: 32px 26px;
	}
}

@media (max-width: 767px) {
	.cf-home-blog {
		padding: 72px 0;
	}

	.cf-article-panel {
		border-radius: 22px;
	}

	.cf-article-content > p:first-of-type::first-letter {
		font-size: 2.8rem;
	}
}
