/* ==========================================================================
   NovaBP Blog Component Styles
   Matching Figma 174:6510 & User Specifications Exactly
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* --- Font Family Guarantee (Overrides Elementor Kit Defaults) --- */
body,
body *,
body h1, body h2, body h3, body h4, body h5, body h6,
body .elementor-kit-9 h1,
body .elementor-kit-9 h2,
body .elementor-kit-9 h3,
body .nova-blog,
body .nova-blog * {
	font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* --- Main Container & Reset --- */
.nova-blog {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	box-sizing: border-box;
}

/* The archive is a shortcode, so the band around it is an Elementor container
   rather than theme markup — `.nova-blog-wrap`, set on that container in
   elementor-templates/novabp-blog-listing.json. Its gutter was authored as
   fixed padding in the editor (40/20/80/20, and 20/16/40/16 on mobile), which
   put the blog on a rhythm no other page shared. Driving it from the same
   tokens as everything else is the only way to keep it in step, and it takes
   `!important` because Elementor prints per-element CSS the container's own
   padding controls would otherwise win with. Clear the padding on that
   container in the editor and this rule is the single source. */
.nova-blog-wrap {
	padding: var(--nova-gutter-y) var(--nova-gutter-x) !important;
}

/* --- Hero Section (800px Width Title & Description) --- */
.nova-blog-hero {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	text-align: center !important;
	padding: 40px 0 48px 0 !important;
	width: 100% !important;
	max-width: 800px !important;
	margin: 0 auto !important;
	box-sizing: border-box !important;
}
.nova-blog-hero__eyebrow,
.nova-blog-hero__eyebrow *,
.nova-blog-hero__eyebrow span,
.nova-featured__category,
.nova-featured__category *,
.nova-featured__category span {
	color: #09A500;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.nova-featured__category {
	display: flex;
}

.nova-blog-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	margin-bottom: 16px;
}
.nova-slash {
	color: #09A500;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-right: 6px;
	vertical-align: middle;
}
.nova-slash svg,
.nova-slash-svg {
	display: inline-block;
	width: auto;
	vertical-align: middle;
}
.nova-blog-hero__eyebrow-img {
	display: inline-block;
	max-height: 48px;
	width: auto;
	object-fit: contain;
	margin-bottom: 16px;
}
.nova-blog-hero__eyebrow-icon {
	display: inline-block;
	height: 18px;
	width: auto;
	object-fit: contain;
	vertical-align: middle;
	margin-right: 6px;
}
.nova-blog-hero__title {
	width: 100% !important;
	max-width: 800px !important;
	margin: 0 0 16px 0 !important;
	font-weight: 600;
	font-size: 52px;
	line-height: 1.15;
	color: #021137;
	font-family: "Manrope", sans-serif;
}
.nova-blog-hero__desc {
	width: 100% !important;
	max-width: 800px !important;
	margin: 0 auto !important;
	font-weight: 500;
	font-size: 18px;
	line-height: 1.5;
	color: #021137;
	opacity: 0.85;
	font-family: "Manrope", sans-serif;
}

/* --- Featured Post Hero Container --- */
.nova-featured {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 24px;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto 48px auto;
	padding: 16px;
	background-color: #F5F6F8;
	border: 1px solid #DEE3EE;
	border-radius: 24px;
	box-sizing: border-box;
}
.nova-featured__media {
	flex: 1;
	width: 50%;
	min-height: 420px;
	border-radius: 16px;
	overflow: hidden;
	position: relative;
	background-color: #DEE3EE;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}
.nova-featured__img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.nova-featured__content {
	flex: 1;
	width: 50%;
	padding: 24px 28px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 20px;
	box-sizing: border-box;
}
.nova-featured__top {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.nova-featured__title {
	margin: 0;
	font-weight: 600 !important;
	font-size: 38px !important;
	line-height: 1.25 !important;
	color: #021137 !important;
	font-family: "Manrope", sans-serif !important;
}
.nova-featured__title a {
	color: inherit !important;
	text-decoration: none;
	font-family: "Manrope", sans-serif !important;
}
.nova-featured__title a:hover {
	text-decoration: underline;
}
.nova-featured__excerpt {
	margin: 0;
	font-weight: 500 !important;
	font-size: 16px !important;
	line-height: 1.5 !important;
	color: #35415F !important;
	font-family: "Manrope", sans-serif !important;
}
.nova-featured__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	align-self: flex-start;
	height: 48px;
	padding: 0 24px;
	background-color: #021137;
	color: #FFFFFF !important;
	border-radius: 8px;
	font-weight: 600 !important;
	font-size: 16px;
	text-decoration: none;
	transition: background-color .2s ease;
	font-family: "Manrope", sans-serif !important;
}
.nova-featured__btn span,
.nova-featured__btn svg {
	color: #FFFFFF !important;
}
.nova-featured__btn:hover {
	background-color: #0c2054;
	color: #FFFFFF !important;
}

/* --- Category Filter Buttons (border-radius: 8px) --- */
.nova-filter {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 12px;
	width: 100%;
	margin-bottom: 36px;
}
.nova-filter__btn {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	height: 44px;
	padding: 0 20px;
	border-radius: 8px;
	background-color: #F5F6F8;
	border: 1px solid #DEE3EE;
	color: #021137;
	font-weight: 500 !important;
	font-size: 16px;
	line-height: 1.5;
	white-space: nowrap;
	text-decoration: none;
	transition: all .2s ease;
	font-family: "Manrope", sans-serif !important;
}
.nova-filter__btn:hover,
.nova-filter__btn:focus-visible {
	background-color: #DEE3EE;
	border-color: #CDD4E0;
	color: #021137;
}
.nova-filter__btn.is-active {
	background-color: #021137;
	border-color: #021137;
	color: #FFFFFF;
	font-weight: 600 !important;
}

/* --- Post Grid & Card Layout --- */
.nova-grid {
	display: grid;
	grid-template-columns: repeat(var(--nova-grid-cols, 3), minmax(0, 1fr));
	gap: 24px;
	width: 100%;
}

.nova-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 8px;
	border: 1px solid #DEE3EE;
	border-radius: 20px;
	background-color: #FFFFFF;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
}
.nova-card__media {
	position: relative;
	display: flex;
	align-items: flex-start;
	height: 240px;
	padding: 16px;
	border-radius: 16px;
	background-color: #DEE3EE;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	overflow: hidden;
}
.nova-card__badge {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	color: #021137 !important;
	font-weight: 700 !important;
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
	z-index: 2;
	padding: 6px 14px;
	border-radius: 100px;
	background-color: rgba(255, 255, 255, .95);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	font-family: "Manrope", sans-serif !important;
}
.nova-card__badge span {
	color: #021137 !important;
}
.nova-card__badge .nova-slash {
	color: #12D032 !important;
}

/* Floating Circle Arrow Button on Hover */
.nova-card__arrow {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: #FFFFFF;
	box-shadow: 0 4px 12px rgba(2, 17, 55, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #021137;
	opacity: 0;
	transform: scale(0.85);
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 2;
}
.nova-card__arrow svg {
	width: 20px;
	height: 20px;
}

/* Hover State Effects */
.nova-card:hover {
	transform: translateY(-4px);
	background: linear-gradient(180deg, #D7E1F6 0%, #FFFFFF 100%);
	border-color: #96B5F9;
	box-shadow: none;
}
.nova-card:hover .nova-card__arrow {
	opacity: 1;
	transform: scale(1);
}

.nova-card__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	padding: 16px 12px 12px 12px;
}
.nova-card__meta {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	color: #35415F;
	font-weight: 500 !important;
	font-size: 14px;
	line-height: 1.3;
	font-family: "Manrope", sans-serif !important;
}
.nova-card__dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background-color: #C2C6CF;
	flex-shrink: 0;
}
.nova-card__text {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.nova-card__title {
	margin: 0;
	font-weight: 600 !important;
	font-size: 20px !important;
	line-height: 1.35 !important;
	color: #021137 !important;
	font-family: "Manrope", sans-serif !important;
}
.nova-card__title a {
	color: inherit !important;
	text-decoration: none;
	font-family: "Manrope", sans-serif !important;
}
.nova-card__title a:hover {
	text-decoration: underline;
}
.nova-card__excerpt {
	margin: 0;
	color: #35415F !important;
	font-weight: 500 !important;
	font-size: 15px !important;
	line-height: 1.5 !important;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-family: "Manrope", sans-serif !important;
}

/* --- Caret-Only Pagination --- */
.nova-pagination {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 48px;
	width: 100%;
}
.nova-pagination__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px !important;
	color: #021137;
	background: transparent;
	text-decoration: none;
	transition: background-color .2s ease;
}
.nova-pagination__nav:hover:not(.is-disabled) {
	background-color: #F5F6F8;
}
.nova-pagination__nav.is-disabled {
	opacity: 0.35;
	cursor: default;
}
.nova-pagination__icon {
	width: 16px;
	height: 16px;
}
.nova-pagination__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px !important;
	color: #021137;
	font-weight: 500 !important;
	font-size: 16px;
	text-decoration: none;
	transition: all .2s ease;
	font-family: "Manrope", sans-serif !important;
}
.nova-pagination__item:hover:not(.is-current) {
	background-color: #F5F6F8;
}
.nova-pagination__item.is-current {
	background-color: #021137;
	color: #FFFFFF;
	font-weight: 600 !important;
}
.nova-pagination__dots {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 40px;
	color: #021137;
	font-size: 16px;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
	.nova-featured {
		flex-direction: column;
	}
	.nova-featured__media,
	.nova-featured__content {
		width: 100%;
	}
	.nova-featured__media {
		min-height: 300px;
	}
	.nova-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 767px) {
	.nova-blog-hero__title {
		font-size: 36px !important;
	}
	.nova-featured__title {
		font-size: 28px !important;
	}
	.nova-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.nova-filter {
		gap: 8px;
	}
	.nova-filter__btn {
		height: 40px;
		padding: 0 16px;
		font-size: 14px;
	}
}
