/**
 * Life Horoscope blog listing
 *
 * Loaded only on /blog/. This file changes presentation only; the WPBakery
 * blog shortcode remains responsible for post content and links.
 */

body.lh-blog-listing {
	background: #f6f7fb;
}

/* ------------------------------------------------------------------
 * Page banner — ~45vh so the celestial image reads clearly without
 * pushing the post list too far down the fold.
 * ------------------------------------------------------------------ */
body.lh-blog-listing .header_box.bg_page_header {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 45vh !important;
	min-height: 220px !important;
	max-height: 45vh !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	background-color: #0a1a4a !important;
}

body.lh-blog-listing .header_box.bg_page_header .stat_img_cont {
	position: absolute !important;
	inset: 0 !important;
	z-index: 1 !important;
	background-size: cover !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
}

body.lh-blog-listing .header_box.bg_page_header .page_title {
	position: relative !important;
	z-index: 3 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

body.lh-blog-listing .header_box.bg_page_header .page_title .container {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	padding: 0 clamp(16px, 4vw, 48px) !important;
}

body.lh-blog-listing .header_box.bg_page_header .title {
	margin: 0 !important;
	text-align: center !important;
}

body.lh-blog-listing .header_box.bg_page_header .title h1 {
	margin: 0 !important;
	color: #fff !important;
	font-size: clamp(36px, 6vw, 64px) !important;
	font-weight: 700 !important;
	line-height: 1.1 !important;
	letter-spacing: 0.02em !important;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

/* Soft vignette so the title stays readable on bright banner areas */
body.lh-blog-listing .header_box.bg_page_header::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		rgba(4, 10, 40, 0.18) 0%,
		rgba(4, 10, 40, 0.08) 45%,
		rgba(4, 10, 40, 0.28) 100%
	);
}

/* Page shell */
.page_content.single_sidebar > .container {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: clamp(28px, 4vw, 48px);
	align-items: start;
	width: min(1240px, calc(100% - 40px)) !important;
	max-width: 1240px !important;
	margin: 0 auto !important;
	padding: clamp(24px, 3.5vw, 40px) 0 72px !important;
}

.page_content.single_sidebar > .container > main {
	order: 1;
	min-width: 0;
	width: 100% !important;
	margin: 0 !important;
}

.page_content.single_sidebar > .container > aside {
	order: 2;
	position: static !important;
	width: 100% !important;
	margin: 0 !important;
}

.page_content main > .wpb-content-wrapper,
.page_content main .cws-content,
.page_content main .vc_row,
.page_content main .cws-column,
.page_content main .vc_column-inner,
.page_content main .wpb_wrapper {
	max-width: 100%;
}

.page_content main .vc_row {
	margin-right: 0 !important;
	margin-left: 0 !important;
}

.page_content main .vc_column_container > .vc_column-inner {
	padding-right: 0 !important;
	padding-left: 0 !important;
}

/* Heading */
.blog_post.posts_grid > .widgettitle {
	position: relative;
	margin: 0 0 28px !important;
	padding: 0 0 16px !important;
	color: #10174c;
	font-size: clamp(28px, 3.2vw, 42px) !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
	letter-spacing: -0.025em;
}

.blog_post.posts_grid > .widgettitle::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 64px;
	height: 4px;
	border-radius: 99px;
	background: linear-gradient(90deg, #e386c5, #8a78dc);
}

/* Neutralise Isotope's single-column absolute positioning. */
.blog_post.posts_grid .cws_vc_shortcode_wrapper,
.blog_post.posts_grid .cws_vc_shortcode_grid {
	width: 100%;
	height: auto !important;
	margin: 0 !important;
}

.blog_post.posts_grid .cws_vc_shortcode_grid {
	display: grid;
	gap: 28px;
}

.blog_post.posts_grid .cws_vc_shortcode_grid > article.item {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	float: none !important;
	transform: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Post cards */
.blog_post.posts_grid .posts_grid_post_wrapper {
	display: grid;
	grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
	min-height: 238px;
	overflow: hidden;
	border: 1px solid #e7e9f2;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 34px rgba(22, 29, 78, 0.08);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.blog_post.posts_grid article.item:hover .posts_grid_post_wrapper {
	transform: translateY(-3px);
	border-color: rgba(139, 119, 218, 0.3);
	box-shadow: 0 16px 42px rgba(22, 29, 78, 0.13);
}

.blog_post.posts_grid .posts_grid_post_media {
	position: relative;
	min-width: 0;
	min-height: 238px;
	overflow: hidden;
	background:
		radial-gradient(circle at 30% 35%, rgba(138, 117, 220, 0.28), transparent 55%),
		linear-gradient(145deg, #1a2158 0%, #3d2f78 55%, #6a4ea8 100%);
}

.blog_post.posts_grid .posts_grid_post_media .pic,
.blog_post.posts_grid .posts_grid_post_media .pic img {
	width: 100% !important;
	height: 100% !important;
	min-height: 238px;
}

.blog_post.posts_grid .posts_grid_post_media .pic img {
	display: block;
	object-fit: cover;
	transition: transform 300ms ease;
}

/* Missing / broken featured images keep a neat coloured panel */
.blog_post.posts_grid .posts_grid_post_media .pic img.is-broken,
.blog_post.posts_grid .posts_grid_post_media .pic img[src=""],
.page_content.single_sidebar aside .post_thumb img.is-broken {
	opacity: 0 !important;
}

.blog_post.posts_grid article.item:hover .posts_grid_post_media .pic img {
	transform: scale(1.035);
}

.blog_post.posts_grid .posts_grid_post_media .hover-effect {
	background: rgba(17, 24, 77, 0.12) !important;
	opacity: 0;
	transition: opacity 180ms ease;
}

.blog_post.posts_grid article.item:hover .posts_grid_post_media .hover-effect {
	opacity: 1;
}

.blog_post.posts_grid .posts_grid_post_media .meta_date {
	position: absolute;
	z-index: 3;
	top: 16px;
	left: 16px;
	margin: 0;
}

.blog_post.posts_grid .posts_grid_post_media .date-content {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px;
	min-width: 0;
	padding: 8px 12px !important;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 10px;
	background: rgba(16, 23, 76, 0.88) !important;
	box-shadow: 0 6px 16px rgba(7, 11, 42, 0.2);
	color: #fff;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.blog_post.posts_grid .posts_grid_post_media .date-c,
.blog_post.posts_grid .posts_grid_post_media .date-c:first-child {
	display: inline !important;
	margin: 0 !important;
	color: inherit !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-transform: none;
}

.blog_post.posts_grid .posts_grid_post_info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	padding: clamp(22px, 3vw, 32px);
}

.blog_post.posts_grid .posts_grid_post_title {
	margin: 0 0 9px !important;
	line-height: 1.2 !important;
}

.blog_post.posts_grid .posts_grid_post_title a {
	color: #161c52 !important;
	font-size: clamp(22px, 2.2vw, 30px) !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.blog_post.posts_grid .posts_grid_post_title a:hover {
	color: #7c64d5 !important;
}

.blog_post.posts_grid .posts_grid_post_meta.post_info {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 0 0 15px !important;
	color: #7b8098;
	font-size: 13px;
}

.blog_post.posts_grid .posts_grid_post_meta a {
	color: #646a87;
}

.blog_post.posts_grid .posts_grid_post_content {
	margin: 0 !important;
	color: #555c75;
	font-size: 15px;
	line-height: 1.72;
}

.blog_post.posts_grid .posts_grid_post_content p {
	margin: 0 !important;
}

.blog_post.posts_grid .btn-read-more {
	margin: auto 0 0 !important;
	padding-top: 20px;
}

.blog_post.posts_grid .more-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 9px 18px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: linear-gradient(135deg, #8a75dc, #d77fbd) !important;
	box-shadow: 0 7px 18px rgba(137, 116, 218, 0.22);
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: 0.045em;
	text-decoration: none !important;
}

.blog_post.posts_grid .more-link:hover {
	box-shadow: 0 9px 22px rgba(137, 116, 218, 0.32);
	transform: translateY(-1px);
}

.blog_post.posts_grid .posts_grid_post_info > hr {
	display: none;
}

.blog_post.posts_grid .posts_grid_post_info > .post_meta:last-child {
	order: -1;
	margin: 0 0 13px !important;
}

.blog_post.posts_grid .posts_grid_post_terms {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 !important;
}

.blog_post.posts_grid .posts_grid_post_terms a {
	display: inline-flex;
	padding: 5px 10px;
	border-radius: 999px;
	background: #f0edfc;
	color: #715cc3 !important;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Sidebar */
.page_content.single_sidebar aside .cws-widget {
	margin: 0 0 22px !important;
	padding: 22px;
	border: 1px solid #e7e9f2;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 26px rgba(22, 29, 78, 0.06);
}

.page_content.single_sidebar aside .cws-widget::before,
.page_content.single_sidebar aside .cws-widget::after,
.page_content.single_sidebar aside .cws-widget > .cws-widget-circle {
	display: none !important;
}

.page_content.single_sidebar aside .widget-title {
	margin: 0 0 16px !important;
	padding: 0 !important;
	color: #171d52;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.page_content.single_sidebar aside .widget-title .inherit-wt {
	padding: 0 !important;
}

.page_content.single_sidebar aside .search-form {
	position: relative;
}

.page_content.single_sidebar aside .search-form label {
	display: block;
	margin: 0 !important;
}

.page_content.single_sidebar aside .search-form input[type="search"] {
	width: 100% !important;
	height: 46px;
	padding: 0 44px 0 15px !important;
	border: 1px solid #dfe2ed !important;
	border-radius: 12px !important;
	background: #f8f9fc !important;
	color: #222843 !important;
	font-size: 14px;
}

.page_content.single_sidebar aside .search-form input[type="search"]:focus {
	border-color: #8a75dc !important;
	box-shadow: 0 0 0 3px rgba(138, 117, 220, 0.14);
	outline: 0;
}

.page_content.single_sidebar aside #wp-calendar {
	width: 100%;
	table-layout: fixed;
}

.page_content.single_sidebar aside #wp-calendar caption {
	margin-bottom: 10px;
	color: #171d52;
	font-size: 15px;
	font-weight: 700;
}

.page_content.single_sidebar aside #wp-calendar th,
.page_content.single_sidebar aside #wp-calendar td {
	height: 34px;
	padding: 3px !important;
	border: 0 !important;
	background: transparent !important;
	color: #666d89;
	font-size: 12px;
	text-align: center;
}

.page_content.single_sidebar aside #wp-calendar th {
	color: #8a75dc;
	font-weight: 700;
}

.page_content.single_sidebar aside #wp-calendar td a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #f0edfc;
	color: #705cc2;
	font-weight: 700;
}

.page_content.single_sidebar aside #wp-calendar #today {
	border-radius: 8px;
	background: #8a75dc !important;
	color: #fff !important;
	font-weight: 700;
}

.page_content.single_sidebar aside .post_item {
	margin: 0 !important;
	padding: 12px 0 !important;
	border-bottom: 1px solid #eceef5;
}

.page_content.single_sidebar aside .post_item:last-child {
	padding-bottom: 0 !important;
	border-bottom: 0;
}

.page_content.single_sidebar aside .post_preview {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 11px;
	align-items: center;
}

.page_content.single_sidebar aside .post_thumb {
	grid-row: 1 / span 2;
	width: 64px;
	height: 54px;
	overflow: hidden;
	border-radius: 9px;
	background: linear-gradient(145deg, #1a2158, #6a4ea8);
}

.page_content.single_sidebar aside .post_thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

.page_content.single_sidebar aside .post_date {
	color: #8a90a6;
	font-size: 11px;
	line-height: 1.2;
}

.page_content.single_sidebar aside .post_title {
	line-height: 1.3;
}

.page_content.single_sidebar aside .post_title a {
	color: #252b55;
	font-size: 13px;
	font-weight: 700;
}

/* Keyboard visibility */
.blog_post.posts_grid a:focus-visible,
.page_content.single_sidebar aside a:focus-visible,
.page_content.single_sidebar aside input:focus-visible {
	outline: 3px solid rgba(138, 117, 220, 0.42);
	outline-offset: 3px;
}

@media (max-width: 1024px) {
	.page_content.single_sidebar > .container {
		grid-template-columns: minmax(0, 1fr) 270px;
		gap: 28px;
	}

	.blog_post.posts_grid .posts_grid_post_wrapper {
		grid-template-columns: minmax(190px, 32%) minmax(0, 1fr);
	}
}

@media (max-width: 900px) {
	.page_content.single_sidebar > .container {
		display: flex !important;
		flex-direction: column;
		width: min(100% - 32px, 760px) !important;
		padding-top: 34px !important;
	}

	.page_content.single_sidebar > .container > main,
	.page_content.single_sidebar > .container > aside {
		width: 100% !important;
	}

	.page_content.single_sidebar > .container > aside {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.page_content.single_sidebar aside .cws-widget {
		min-width: 0;
		margin: 0 !important;
	}
}

@media (max-width: 680px) {
	body.lh-blog-listing .header_box.bg_page_header {
		height: 45vh !important;
		min-height: 200px !important;
		max-height: 45vh !important;
	}

	body.lh-blog-listing .header_box.bg_page_header .title h1 {
		font-size: clamp(28px, 9vw, 40px) !important;
	}

	.page_content.single_sidebar > .container {
		width: min(100% - 24px, 560px) !important;
		padding: 22px 0 56px !important;
	}

	.blog_post.posts_grid > .widgettitle {
		margin-bottom: 22px !important;
	}

	.blog_post.posts_grid .cws_vc_shortcode_grid {
		gap: 20px;
	}

	.blog_post.posts_grid .posts_grid_post_wrapper {
		display: block;
		min-height: 0;
		border-radius: 15px;
	}

	.blog_post.posts_grid .posts_grid_post_media,
	.blog_post.posts_grid .posts_grid_post_media .pic,
	.blog_post.posts_grid .posts_grid_post_media .pic img {
		min-height: 0;
		height: 210px !important;
	}

	.blog_post.posts_grid .posts_grid_post_info {
		padding: 20px;
	}

	.blog_post.posts_grid .posts_grid_post_title a {
		font-size: 22px !important;
	}

	.blog_post.posts_grid .posts_grid_post_content {
		font-size: 14px;
		line-height: 1.65;
	}

	.blog_post.posts_grid .btn-read-more {
		padding-top: 17px;
	}

	.page_content.single_sidebar > .container > aside {
		display: block;
	}

	.page_content.single_sidebar aside .cws-widget {
		margin-bottom: 18px !important;
		padding: 19px;
	}
}

@media (max-width: 420px) {
	.blog_post.posts_grid .posts_grid_post_media,
	.blog_post.posts_grid .posts_grid_post_media .pic,
	.blog_post.posts_grid .posts_grid_post_media .pic img {
		height: 185px !important;
	}

	.blog_post.posts_grid .posts_grid_post_info {
		padding: 18px 16px;
	}

	.page_content.single_sidebar aside .post_preview {
		grid-template-columns: 56px minmax(0, 1fr);
	}

	.page_content.single_sidebar aside .post_thumb {
		width: 56px;
		height: 50px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.blog_post.posts_grid .posts_grid_post_wrapper,
	.blog_post.posts_grid .posts_grid_post_media .pic img,
	.blog_post.posts_grid .more-link {
		transition: none;
	}
}

/* ---- Top category filter (centered under banner) ---- */
.lh-blog-cats-wrap {
	width: min(1240px, calc(100% - 40px));
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(20px, 3vw, 32px) 0 0;
	box-sizing: border-box;
}

.lh-blog-cats {
	margin: 0;
	padding: 20px 22px 18px;
	border: 1px solid #e7e9f2;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 26px rgba(22, 29, 78, 0.06);
	text-align: center;
}

/* Never show the filter inside a post card */
article .lh-blog-cats,
.posts_grid_post_wrapper .lh-blog-cats,
.posts_grid_post_info .lh-blog-cats,
.post_wrapper .lh-blog-cats {
	display: none !important;
}

.lh-blog-cats-label {
	margin: 0 0 14px !important;
	color: #171d52 !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	text-align: center !important;
}

.lh-blog-cats-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

/* wpautop sometimes injects <br> between pill links — hide them */
.lh-blog-cats-list br {
	display: none !important;
}

.lh-blog-cat {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 16px !important;
	border: 1px solid #dfe2ed !important;
	border-radius: 999px !important;
	background: #f7f8fc !important;
	color: #2a3160 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.lh-blog-cat:hover {
	border-color: rgba(138, 117, 220, 0.45) !important;
	background: #f0edfc !important;
	color: #5d4db0 !important;
	transform: translateY(-1px);
}

.lh-blog-cat.is-active,
.lh-blog-cat[aria-current="page"] {
	border-color: transparent !important;
	background: linear-gradient(135deg, #8a75dc, #6f5cc4) !important;
	color: #fff !important;
	box-shadow: 0 8px 18px rgba(111, 92, 196, 0.28);
}

.lh-blog-cat-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: rgba(16, 23, 76, 0.08);
	color: inherit;
	font-size: 12px;
	font-weight: 700;
}

.lh-blog-cat.is-active .lh-blog-cat-count,
.lh-blog-cat[aria-current="page"] .lh-blog-cat-count {
	background: rgba(255, 255, 255, 0.22);
}

.lh-blog-status {
	margin: 0 0 18px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #f0edfc;
	color: #5d4db0;
	font-size: 14px;
	font-weight: 600;
}

.lh-blog-status.is-error {
	background: #fde8ec;
	color: #b42318;
}

.lh-blog-pager {
	display: flex;
	justify-content: center;
	margin: 28px 0 8px;
}

.lh-blog-load-more,
.lh-blog-readmore {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 22px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #8a75dc, #6f5cc4);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(111, 92, 196, 0.25);
}

.lh-blog-readmore {
	margin-top: 14px;
	min-height: 36px;
	padding: 8px 16px;
	font-size: 13px;
	box-shadow: none;
	background: #f0edfc;
	color: #5d4db0 !important;
}

.lh-blog-readmore:hover {
	background: #e4dff8;
}

.lh-blog-load-more:hover {
	filter: brightness(1.05);
}

/* Sidebar: Calendar / Gallery / Categories removed from the blog listing */
.page-id-62128.page_content aside .cws-widget:has(.calendar_wrap),
.page-id-62128 aside .cws-widget:has(.calendar_wrap),
body.page-id-62128 aside .cws-widget:has(#wp-calendar),
body.page-id-62128 aside .cws-widget:has(.wp-calendar-table),
body.page-id-62128 aside .cws-widget:has(.gallery),
body.page-id-62128 aside .cws-widget:has(.gallery-icon),
body.page-id-62128 aside .cws-widget:has(.cat-item) {
	display: none !important;
}

/* Title-based fallback when :has() content differs */
body.page-id-62128 aside .cws-widget:has(.inherit-wt) {
	/* no-op placeholder — specific hides above */
}

@media (max-width: 680px) {
	.lh-blog-cats-wrap {
		width: min(100% - 24px, 560px);
		padding-top: 16px;
	}

	.lh-blog-cats {
		margin-bottom: 0;
		padding: 14px;
	}

	.lh-blog-cats-list {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 4px;
	}

	.lh-blog-cat {
		flex: 0 0 auto;
		white-space: nowrap;
	}
}

/* ==================================================================
 * Single post — carries the listing's banner, card and type language
 * through to the article you land on from /blog/.
 * ================================================================== */

body.lh-blog-single {
	background: #f6f7fb;
}

/* No hero on an article: the header box collapses to a plain title band that
 * sits on the page background, directly above the article card. */
body.lh-blog-single .header_box.bg_page_header {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	margin: 0 !important;
	padding: clamp(30px, 4.5vw, 56px) 0 0 !important;
	overflow: visible !important;
	background: transparent !important;
}

body.lh-blog-single .header_box.bg_page_header::before,
body.lh-blog-single .header_box.bg_page_header::after {
	display: none !important;
}

body.lh-blog-single .header_box.bg_page_header .page_title {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

body.lh-blog-single .header_box.bg_page_header .page_title > .container {
	width: min(940px, calc(100% - 40px)) !important;
	max-width: 940px !important;
	margin: 0 auto !important;
	padding: 0 !important;
	text-align: center;
}

body.lh-blog-single .header_box.bg_page_header .title {
	margin: 0 !important;
	text-align: center !important;
}

body.lh-blog-single .header_box.bg_page_header .title h1 {
	margin: 0 !important;
	color: #161d4e !important;
	font-size: clamp(25px, 3.1vw, 40px) !important;
	font-weight: 700 !important;
	line-height: 1.22 !important;
	letter-spacing: -0.01em;
	/* Keep the post title exactly as written — the theme capitalises headings. */
	text-transform: none !important;
	text-shadow: none !important;
}

body.lh-blog-single .header_box.bg_page_header .bread-crumbs {
	margin-top: 12px !important;
	color: #6d7398 !important;
	font-size: 13px !important;
	text-align: center !important;
}

body.lh-blog-single .header_box.bg_page_header .bread-crumbs a,
body.lh-blog-single .header_box.bg_page_header .bread-crumbs .delimiter,
body.lh-blog-single .header_box.bg_page_header .bread-crumbs .current {
	color: #6d7398 !important;
}

/* Article shell.
 * The theme switches .grid_row to content-box in its mobile media queries, so
 * its width + padding overflowed the viewport. Everything here is border-box
 * and capped at 100% to keep the article inside the screen. */
body.lh-blog-single .page_content > main {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	padding: clamp(28px, 4vw, 52px) 0 clamp(48px, 6vw, 84px) !important;
}

body.lh-blog-single .page_content > main > .grid_row,
body.lh-blog-single section.news.single,
body.lh-blog-single section.news.single article.item,
body.lh-blog-single .grid_row.single_related {
	box-sizing: border-box !important;
	max-width: 100% !important;
}

body.lh-blog-single .page_content > main > .grid_row {
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Long words and inline links should wrap rather than push the card wider. */
body.lh-blog-single section.news.single .post_content,
body.lh-blog-single section.news.single .post_content * {
	max-width: 100%;
	overflow-wrap: break-word;
}

body.lh-blog-single section.news.single .cws_wrapper,
body.lh-blog-single section.news.single .grid {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.lh-blog-single section.news.single {
	width: min(880px, calc(100% - 36px)) !important;
	max-width: 880px !important;
	margin: 0 auto !important;
	padding: 0 !important;
}

body.lh-blog-single section.news.single article.item {
	display: flex !important;
	flex-direction: column;
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: clamp(24px, 4vw, 48px) !important;
	border: 1px solid #e7e9f2;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 12px 38px rgba(22, 29, 78, 0.08);
}

/* The banner already carries the title as the page H1. */
body.lh-blog-single section.news.single article.item > .ce_title {
	display: none !important;
}

body.lh-blog-single section.news.single article.item > hr {
	display: none !important;
}

/* Meta row: date, then author, then category, above the article body. */
body.lh-blog-single section.news.single article.item > .post_info_part {
	order: 1;
}

body.lh-blog-single section.news.single article.item > .post_info {
	order: 2;
}

body.lh-blog-single section.news.single article.item > .post_meta {
	order: 3;
}

body.lh-blog-single section.news.single article.item > .post_content {
	order: 4;
}

body.lh-blog-single section.news.single article.item > .post_info,
body.lh-blog-single section.news.single article.item > .post_info_part {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	float: none !important;
	width: auto !important;
	min-height: 0 !important;
	margin: 0 0 12px !important;
	padding: 0 !important;
	border: 0 !important;
	color: #7b8098 !important;
	font-size: 13px !important;
}

body.lh-blog-single section.news.single article.item .media_part {
	display: none !important;
}

body.lh-blog-single section.news.single article.item .date.new_style {
	position: static !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
}

body.lh-blog-single section.news.single article.item .date-content {
	display: inline-flex !important;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px;
	padding: 6px 13px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #f0edfc !important;
	box-shadow: none !important;
}

body.lh-blog-single section.news.single article.item .date-c,
body.lh-blog-single section.news.single article.item .date-c:first-child {
	display: inline !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	color: #6a57bd !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
}

body.lh-blog-single section.news.single article.item > .post_meta {
	margin: 0 0 20px !important;
	padding: 0 !important;
	border: 0 !important;
}

body.lh-blog-single section.news.single article.item > .post_meta hr {
	display: none !important;
}

body.lh-blog-single section.news.single article.item .post_category a {
	display: inline-flex;
	padding: 5px 12px;
	border-radius: 999px;
	background: #f0edfc;
	color: #715cc3 !important;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none !important;
}

/* Article body */
body.lh-blog-single section.news.single .post_content {
	margin: 0 !important;
	padding-top: clamp(18px, 2.4vw, 26px) !important;
	border-top: 1px solid #eceef6;
	color: #454c67;
	font-size: 16.5px;
	line-height: 1.85;
}

body.lh-blog-single section.news.single .post_content p {
	margin: 0 0 1.25em !important;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

body.lh-blog-single section.news.single .post_content h2,
body.lh-blog-single section.news.single .post_content h3,
body.lh-blog-single section.news.single .post_content h4 {
	margin: 1.75em 0 0.55em !important;
	color: #161c52 !important;
	font-weight: 700 !important;
	line-height: 1.28 !important;
}

body.lh-blog-single section.news.single .post_content > *:first-child {
	margin-top: 0 !important;
}

body.lh-blog-single section.news.single .post_content h2 {
	font-size: clamp(20px, 2.3vw, 26px) !important;
}

body.lh-blog-single section.news.single .post_content h3 {
	font-size: clamp(18px, 2vw, 22px) !important;
}

body.lh-blog-single section.news.single .post_content h4 {
	font-size: clamp(16px, 1.7vw, 19px) !important;
}

body.lh-blog-single section.news.single .post_content strong,
body.lh-blog-single section.news.single .post_content b {
	color: #2b3160;
	font-weight: 700;
}

body.lh-blog-single section.news.single .post_content a {
	color: #7c64d5;
	text-decoration: underline;
	text-underline-offset: 2px;
}

body.lh-blog-single section.news.single .post_content a:hover {
	color: #5a44ad;
}

body.lh-blog-single section.news.single .post_content ul,
body.lh-blog-single section.news.single .post_content ol {
	margin: 0 0 1.25em 1.15em !important;
	padding: 0 !important;
}

body.lh-blog-single section.news.single .post_content li {
	margin: 0 0 0.5em !important;
	padding: 0 !important;
	line-height: inherit;
}

body.lh-blog-single section.news.single .post_content li::before {
	display: none !important;
}

body.lh-blog-single section.news.single .post_content img {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
}

body.lh-blog-single section.news.single .post_content blockquote {
	margin: 1.6em 0 !important;
	padding: 18px 22px !important;
	border: 0 !important;
	border-left: 4px solid #8a75dc !important;
	border-radius: 0 12px 12px 0;
	background: #f5f3fd;
	color: #3c4260;
	font-style: normal;
}

body.lh-blog-single section.news.single .post_content table {
	width: 100%;
	margin: 0 0 1.5em;
	border-collapse: collapse;
	font-size: 15px;
}

body.lh-blog-single section.news.single .post_content th,
body.lh-blog-single section.news.single .post_content td {
	padding: 10px 14px !important;
	border: 1px solid #e7e9f2 !important;
	text-align: left;
}

body.lh-blog-single section.news.single .post_content th {
	background: #f4f2fc;
	color: #2b3160;
	font-weight: 700;
}

body.lh-blog-single section.news.single .post_content .wp-block-buttons {
	margin: 2em 0 0.4em !important;
}

body.lh-blog-single section.news.single .post_content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 26px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: linear-gradient(135deg, #8a75dc, #d77fbd) !important;
	box-shadow: 0 8px 22px rgba(137, 116, 218, 0.25);
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: 0.02em;
	text-decoration: none !important;
}

/* Related posts — same cards as the listing, sized for a 4-up row.
 * Matches the article shell's .grid_row selector specificity so the wider
 * full-width rule above does not win. */
body.lh-blog-single .page_content > main > .grid_row.single_related,
body.lh-blog-single .grid_row.single_related {
	width: min(1180px, calc(100% - 36px)) !important;
	max-width: 1180px !important;
	margin: 0 auto clamp(48px, 6vw, 84px) !important;
	padding: 0 !important;
}

body.lh-blog-single .single_related .cws_wrapper {
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
}

body.lh-blog-single .single_related .widgettitle {
	position: relative;
	margin: 0 0 26px !important;
	padding: 0 0 14px !important;
	color: #10174c !important;
	font-size: clamp(22px, 2.6vw, 30px) !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: -0.02em;
}

body.lh-blog-single .single_related .widgettitle::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 56px;
	height: 4px;
	border-radius: 99px;
	background: linear-gradient(90deg, #e386c5, #8a78dc);
}

/* Slider.
 *
 * The theme's owl carousel drives this section, but it initialises a beat after
 * the page paints. Until it does, the cards would stack full width, so the
 * :not(.owl-carousel) rules below hold them in the same 4-up row that owl will
 * produce. Once owl adds its classes these stop applying and it takes over. */
body.lh-blog-single .single_related .cws_vc_shortcode_carousel:not(.owl-carousel),
body.lh-blog-single .single_related .cws_vc_shortcode_grid {
	display: flex !important;
	width: 100% !important;
	height: auto !important;
	gap: 22px;
	overflow: hidden;
}

body.lh-blog-single .single_related .cws_vc_shortcode_carousel:not(.owl-carousel) > article.item,
body.lh-blog-single .single_related .cws_vc_shortcode_grid > article.item {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	flex: 0 0 calc((100% - 3 * 22px) / 4);
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	transform: none !important;
}

/* Owl sizes its items from this wrapper's width, so keep it exactly as wide as
 * the row; otherwise a fifth card peeks past the edge. */
body.lh-blog-single .single_related .cws_vc_shortcode_wrapper,
body.lh-blog-single .single_related .cws_vc_shortcode_carousel {
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Owl's own layout: flex the track so cards in a row share a height, and use
 * item padding for the gutter (owl v1 has no gap of its own). */
body.lh-blog-single .single_related .owl-wrapper-outer {
	overflow: hidden;
}

body.lh-blog-single .single_related .owl-wrapper {
	display: flex !important;
	align-items: stretch;
}

/* border-box so the gutter comes out of the width owl assigns, instead of
 * widening each item and pushing cards past the container. */
body.lh-blog-single .single_related .owl-item {
	box-sizing: border-box !important;
	float: none !important;
	flex: 0 0 auto;
	padding-right: 22px;
}

body.lh-blog-single .single_related .owl-item > article.item {
	width: 100% !important;
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

/* Title row: section heading left, arrows right. */
body.lh-blog-single .single_related .posts_grid.posts_grid_carousel {
	padding-top: 0 !important;
}

body.lh-blog-single .single_related .widget_header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}

/* .clearfix's ::after would otherwise count as a third flex item and strand the
 * arrows in the middle of the row. */
body.lh-blog-single .single_related .widget_header::before,
body.lh-blog-single .single_related .widget_header::after {
	display: none !important;
}

body.lh-blog-single .single_related .carousel_nav {
	display: flex !important;
	position: static !important;
	flex: 0 0 auto;
	gap: 8px;
	margin: 0 0 26px !important;
}

/* The theme pins these to the bottom corners of the slider; bring them back
 * into the title row. */
body.lh-blog-single .single_related .carousel_nav span.prev,
body.lh-blog-single .single_related .carousel_nav span.next {
	position: static !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 40px !important;
	height: 40px !important;
	margin: 0 !important;
	padding: 0;
	border: 1px solid #e0e3ef !important;
	border-radius: 50% !important;
	background: #fff;
	box-shadow: 0 6px 18px rgba(22, 29, 78, 0.07);
	color: #5b4fa8 !important;
	/* The spans carry the words "Previous" / "Next"; the glyph below is the
	 * visible label, so zero out the text without hiding it from assistive tech. */
	font-size: 0 !important;
	line-height: 1 !important;
	cursor: pointer;
	transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

/* The glyph carries its own small bordered circle; the span is the button now. */
body.lh-blog-single .single_related .carousel_nav span.prev::before,
body.lh-blog-single .single_related .carousel_nav span.next::after {
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	color: inherit !important;
	font-size: 14px !important;
	line-height: 1 !important;
}

body.lh-blog-single .single_related .carousel_nav span.prev:hover,
body.lh-blog-single .single_related .carousel_nav span.next:hover {
	border-color: transparent !important;
	background: linear-gradient(135deg, #8a75dc, #d77fbd);
	box-shadow: 0 8px 22px rgba(137, 116, 218, 0.3);
	color: #fff !important;
}

body.lh-blog-single .single_related .posts_grid_post_wrapper {
	display: flex !important;
	flex-direction: column;
	min-height: 0 !important;
	height: 100%;
	border-radius: 16px;
	/* The theme equalises card heights with a 99999px padding trick; the flex
	 * track above does that job, so undo it. */
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
	background: #fff !important;
}

body.lh-blog-single .single_related .posts_grid_post_media,
body.lh-blog-single .single_related .posts_grid_post_media .pic,
body.lh-blog-single .single_related .posts_grid_post_media .pic img {
	min-height: 0 !important;
	height: 158px !important;
}

/* The listing's JS hides broken thumbs; single posts do not load it, so keep
 * the alt text from printing over the placeholder panel. */
body.lh-blog-single .single_related .posts_grid_post_media .pic {
	color: transparent;
	font-size: 0;
	line-height: 0;
}

body.lh-blog-single .single_related .posts_grid_post_media .meta_date {
	top: 12px;
	left: 12px;
}

body.lh-blog-single .single_related .posts_grid_post_media .date-content {
	padding: 6px 10px !important;
}

body.lh-blog-single .single_related .posts_grid_post_info {
	flex: 1 1 auto;
	padding: 18px !important;
}

body.lh-blog-single .single_related .posts_grid_post_title a {
	font-size: 17px !important;
	letter-spacing: -0.01em;
}

body.lh-blog-single .single_related .posts_grid_post_meta.post_info {
	margin: 0 0 10px !important;
	font-size: 12px;
}

body.lh-blog-single .single_related .posts_grid_post_content {
	font-size: 13.5px;
	line-height: 1.62;
}

body.lh-blog-single .single_related .btn-read-more {
	padding-top: 15px;
}

@media (max-width: 1100px) {
	body.lh-blog-single
		.single_related
		.cws_vc_shortcode_carousel:not(.owl-carousel)
		> article.item,
	body.lh-blog-single .single_related .cws_vc_shortcode_grid > article.item {
		flex-basis: calc((100% - 2 * 22px) / 3);
	}
}

@media (max-width: 860px) {
	body.lh-blog-single
		.single_related
		.cws_vc_shortcode_carousel:not(.owl-carousel)
		> article.item,
	body.lh-blog-single .single_related .cws_vc_shortcode_grid > article.item {
		flex-basis: calc((100% - 22px) / 2);
	}
}

@media (max-width: 680px) {
	body.lh-blog-single .header_box.bg_page_header {
		padding: 26px 0 0 !important;
	}

	body.lh-blog-single section.news.single article.item {
		border-radius: 16px;
	}

	body.lh-blog-single section.news.single .post_content {
		font-size: 15.5px;
		line-height: 1.78;
	}

	body.lh-blog-single .single_related .cws_vc_shortcode_carousel:not(.owl-carousel),
	body.lh-blog-single .single_related .cws_vc_shortcode_grid {
		gap: 16px;
	}

	body.lh-blog-single
		.single_related
		.cws_vc_shortcode_carousel:not(.owl-carousel)
		> article.item,
	body.lh-blog-single .single_related .cws_vc_shortcode_grid > article.item {
		flex-basis: 100%;
	}

	body.lh-blog-single .single_related .owl-item {
		padding-right: 16px;
	}

	body.lh-blog-single .single_related .carousel_nav,
	body.lh-blog-single .single_related .lh-rel-nav {
		margin-bottom: 20px !important;
	}

	body.lh-blog-single .single_related .posts_grid_post_media,
	body.lh-blog-single .single_related .posts_grid_post_media .pic,
	body.lh-blog-single .single_related .posts_grid_post_media .pic img {
		height: 190px !important;
	}
}
