/**
 * Homepage V2 — same visual system as Single V2 / newsletter prototype.
 * Scoped to .yl-home-v2 so Single V2 and the rest of the site stay untouched.
 */

.yl-home-v2 {
	--yl-v2-navy: #002c4b;
	--yl-v2-blue: #0073c6;
	--yl-v2-green: #8cc63e;
	--yl-v2-accent: #f37021;
	--yl-v2-charcoal: #1a2129;
	--yl-v2-slate-50: #f8fafc;
	--yl-v2-slate-600: #475569;
	--yl-v2-slate-700: #334155;
	--yl-v2-slate-900: #0f172b;
	--yl-v2-border: #e2e8f0;
	background: #fff;
}

.yl-home-v2 .blog-lists-wrapper,
.yl-home-v2 .blog-lists-wrapper p,
.yl-home-v2 .blog-lists-wrapper a,
.yl-home-v2 .blog-lists-wrapper .btn {
	font-family: "Montserrat", var(--wp--preset--font-family--montserrat, sans-serif);
}

.yl-home-v2 .blog-lists-wrapper h1,
.yl-home-v2 .blog-lists-wrapper h2,
.yl-home-v2 .blog-lists-wrapper h3,
.yl-home-v2 .blog-lists-wrapper h4,
.yl-home-v2 .blog-lists-wrapper .wp-block-post-title,
.yl-home-v2 .blog-lists-wrapper .home-welcome-title,
.yl-home-v2 .blog-lists-wrapper .featured-posts-heading,
.yl-home-v2 .blog-lists-wrapper .featured-post-title {
	font-family: "Blinker", var(--wp--preset--font-family--blinker, sans-serif);
}

.yl-home-v2 .blog-lists-wrapper {
	color: var(--yl-v2-slate-700);
	padding-top: 1.5rem !important;
	padding-bottom: 3rem !important;
}

.yl-home-v2 .blog-lists-wrapper a {
	color: var(--yl-v2-blue);
}

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */

.yl-home-v2 .post-first-section,
.yl-home-v2 .lists-post-section,
.yl-home-v2 .page-navi-wrapper {
	box-sizing: border-box;
	max-width: 1280px;
	padding-bottom: 2.5rem;
}

.yl-home-v2 .post-first-section {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 32%);
	align-items: start;
	gap: 2.5rem;
	flex-wrap: nowrap;
}

.yl-home-v2 .single-posts-wrapper,
.yl-home-v2 .home-sidebar-panel {
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	min-width: 0;
}

/* -------------------------------------------------------------------------
   Welcome / intro
   ------------------------------------------------------------------------- */

.yl-home-v2 .home-welcome-content {
	margin-bottom: 1.75rem;
}

.yl-home-v2 .home-welcome-title,
.yl-home-v2 .single-posts-wrapper > .home-welcome-content h2.home-welcome-title {
	color: var(--yl-v2-slate-900) !important;
	font-size: clamp(1.875rem, 4vw, 3rem) !important;
	font-weight: 800 !important;
	line-height: 1.1 !important;
	letter-spacing: -0.02em;
	margin: 0 0 0.75rem !important;
}

.yl-home-v2 .home-welcome-text,
.yl-home-v2 .home-welcome-text p {
	color: var(--yl-v2-slate-700) !important;
	font-size: 1.125rem !important;
	font-weight: 400 !important;
	line-height: 1.7 !important;
	margin: 0 !important;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.yl-home-v2 .blog-lists-wrapper a.btn,
.yl-home-v2 .blog-lists-wrapper a.btn-primary,
.yl-home-v2 .single-posts-container a.btn,
.yl-home-v2 .cta-full-width a.btn,
.yl-home-v2 .cta-full-width.yellow-bg a.btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	box-sizing: border-box;
	width: auto !important;
	max-width: 100%;
	background: var(--yl-v2-accent) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 999px !important;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	line-height: 1.2 !important;
	font-size: 0.85rem !important;
	font-weight: 700 !important;
	padding: 0.85rem 1.35rem !important;
	box-shadow: 0 4px 12px rgba(243, 112, 33, 0.28);
	transition: filter 0.15s ease;
}

.yl-home-v2 .single-posts-container a.btn {
	margin: 0.15rem 1.35rem 0 !important;
}

.yl-home-v2 .cta-full-width a.btn,
.yl-home-v2 .cta-full-width.yellow-bg a.btn {
	margin: 0 !important;
}

.yl-home-v2 .blog-lists-wrapper a.btn:hover,
.yl-home-v2 .blog-lists-wrapper a.btn:focus,
.yl-home-v2 .single-posts-container a.btn:hover,
.yl-home-v2 .cta-full-width a.btn:hover,
.yl-home-v2 .cta-full-width.yellow-bg a.btn:hover {
	filter: brightness(1.06);
	background: var(--yl-v2-accent) !important;
	color: #fff !important;
}

/* -------------------------------------------------------------------------
   Featured post (first item)
   ------------------------------------------------------------------------- */

.yl-home-v2 .post-first-section .single-posts-container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	background: #fff;
	border: 1px solid rgba(226, 232, 240, 0.9);
	border-radius: 1rem;
	box-shadow: 0 8px 24px rgba(15, 23, 43, 0.08);
	overflow: hidden;
	padding: 0 0 1.5rem;
}

.yl-home-v2 .post-first-section .single-posts-container .posts-item-image,
.yl-home-v2 .lists-post-section .single-posts-container .posts-item-image {
	align-self: stretch;
	width: 100%;
	min-height: 0;
	aspect-ratio: 16 / 9;
	margin: 0 0 1.15rem !important;
	padding: 0 !important;
	border-radius: 0;
	overflow: hidden;
}

.yl-home-v2 .single-posts-container .posts-item-image img {
	border-radius: 0;
}

.yl-home-v2 .post-first-section .post-item-title,
.yl-home-v2 .post-first-section .post-item-excerpt {
	box-sizing: border-box;
	width: 100%;
	padding: 0 1.35rem;
}

.yl-home-v2 .blog-lists-wrapper .wp-block-post-title,
.yl-home-v2 .single-posts-wrapper .single-posts-container h2,
.yl-home-v2 .blog_listing .wp-block-post-title {
	margin: 0 0 0.5rem !important;
	min-height: 0 !important;
	line-height: 1.2 !important;
}

.yl-home-v2 .blog-lists-wrapper .wp-block-post-title a,
.yl-home-v2 .blog_listing .wp-block-post-title a,
.yl-home-v2 .home .blog_listing .wp-block-post-title a,
.yl-home-v2 .single-posts-wrapper .single-posts-container h2 a {
	color: var(--yl-v2-navy) !important;
	font-weight: 700 !important;
	text-decoration: none;
	line-height: 1.25;
}

.yl-home-v2 .post-first-section .wp-block-post-title a {
	font-size: clamp(1.45rem, 2.4vw, 1.85rem) !important;
}

.yl-home-v2 .blog-lists-wrapper .wp-block-post-title a:hover {
	color: var(--yl-v2-blue) !important;
}

.yl-home-v2 .single-posts-container .post-item-meta {
	padding-bottom: 0.65rem;
	justify-content: flex-start;
	gap: 0.75rem;
}

.yl-home-v2 .single-posts-container .post-item-meta .post-item-categories,
.yl-home-v2 .single-posts-container .post-item-meta .post-item-categories a {
	color: var(--yl-v2-blue) !important;
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.2;
	width: auto;
}

.yl-home-v2 .single-posts-container .post-item-excerpt,
.yl-home-v2 .blog_listing .wp-block-post-excerpt,
.yl-home-v2 .blog_listing .wp-block-post-excerpt p {
	padding-bottom: 0;
	text-align: left !important;
}

.yl-home-v2 .blog_listing .wp-block-post-excerpt p {
	color: var(--yl-v2-slate-700) !important;
	font-size: 1rem !important;
	font-weight: 400 !important;
	line-height: 1.6 !important;
	margin: 0 0 1.15rem !important;
}

/* -------------------------------------------------------------------------
   Card grid (remaining posts)
   ------------------------------------------------------------------------- */

.yl-home-v2 .lists-post-section {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	justify-content: stretch;
}

.yl-home-v2 .lists-post-section .single-posts-container {
	width: 100% !important;
	max-width: none !important;
	margin: 0;
	background: #fff;
	border: 1px solid rgba(226, 232, 240, 0.9);
	border-radius: 1rem;
	box-shadow: 0 8px 24px rgba(15, 23, 43, 0.08);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 0 0 1.35rem;
}

.yl-home-v2 .lists-post-section .single-posts-container h2,
.yl-home-v2 .lists-post-section .single-posts-container .wp-block-post-title {
	min-height: 0 !important;
}

.yl-home-v2 .lists-post-section .wp-block-post-title a {
	font-size: 1.25rem !important;
	line-height: 1.25 !important;
}

.yl-home-v2 .lists-post-section .post-item-title,
.yl-home-v2 .lists-post-section .post-item-excerpt {
	box-sizing: border-box;
	width: 100%;
	padding: 0 1.25rem;
}

.yl-home-v2 .lists-post-section .single-posts-container a.btn {
	margin: 0.15rem 1.25rem 0 !important;
}

.yl-home-v2 .lists-post-section .post-item-excerpt {
	flex: 1 1 auto;
}

/* -------------------------------------------------------------------------
   Sidebar — Featured Posts → V2 “Recent Articles” treatment
   ------------------------------------------------------------------------- */

.yl-home-v2 .home-sidebar-panel .yl-home-explore {
	background: var(--yl-v2-slate-50);
	border: 1px solid var(--yl-v2-border);
	border-radius: 1.25rem;
	box-shadow: 0 10px 28px rgba(15, 23, 43, 0.06);
	margin-bottom: 1.25rem;
	padding: 1.5rem;
}

.yl-home-v2 .home-sidebar-panel .yl-home-explore__label {
	display: flex !important;
	align-items: center;
	gap: 0.55rem;
	color: #62748e !important;
	font-family: "Montserrat", var(--wp--preset--font-family--montserrat, sans-serif) !important;
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 0.85rem !important;
	padding: 0 0 0.95rem !important;
	border-bottom: 1px solid var(--yl-v2-border);
}

.yl-home-v2 .home-sidebar-panel .yl-home-explore__label::before {
	content: "";
	display: inline-block;
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 999px;
	background: var(--yl-v2-blue);
	flex: 0 0 auto;
}

.yl-home-v2 .home-sidebar-panel .listing-posts-category {
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	display: block;
	width: 100%;
	height: 3rem;
	margin: 0 !important;
	padding: 0 2.75rem 0 1.15rem !important;
	background-color: #fff !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23002c4b' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 1.1rem center !important;
	background-size: 12px 8px !important;
	border: 1px solid var(--yl-v2-border) !important;
	border-radius: 999px !important;
	box-shadow: none;
	color: var(--yl-v2-navy) !important;
	font-family: "Montserrat", var(--wp--preset--font-family--montserrat, sans-serif) !important;
	font-size: 0.8rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em;
	line-height: 3rem;
	cursor: pointer;
}

.yl-home-v2 .home-sidebar-panel .listing-posts-category:hover {
	border-color: #cbd5e1 !important;
}

.yl-home-v2 .home-sidebar-panel .listing-posts-category:focus {
	outline: none !important;
	border-color: var(--yl-v2-blue) !important;
	box-shadow: 0 0 0 3px rgba(0, 115, 198, 0.15);
}

.yl-home-v2 .home-sidebar-panel .featured-posts-sidebar {
	background: var(--yl-v2-slate-50) !important;
	border: 1px solid var(--yl-v2-border) !important;
	border-radius: 1.25rem !important;
	box-shadow: 0 10px 28px rgba(15, 23, 43, 0.06) !important;
	padding: 1.5rem !important;
}

.yl-home-v2 .home-sidebar-panel .featured-posts-heading {
	display: flex !important;
	align-items: center;
	gap: 0.55rem;
	background: none !important;
	-webkit-background-clip: unset !important;
	background-clip: unset !important;
	-webkit-text-fill-color: #62748e !important;
	color: #62748e !important;
	font-family: "Montserrat", var(--wp--preset--font-family--montserrat, sans-serif) !important;
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 0.85rem !important;
	padding: 0 0 0.95rem !important;
	border-bottom: 1px solid var(--yl-v2-border);
}

.yl-home-v2 .home-sidebar-panel .featured-posts-heading::before {
	content: "";
	display: inline-block;
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 999px;
	background: var(--yl-v2-blue);
	flex: 0 0 auto;
}

.yl-home-v2 .home-sidebar-panel .featured-posts-list {
	gap: 0 !important;
}

.yl-home-v2 .home-sidebar-panel .featured-post-item {
	height: auto !important;
	background: transparent !important;
	border: none !important;
	border-bottom: 1px solid var(--yl-v2-border) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	overflow: visible !important;
	padding: 1rem 0 !important;
	transform: none !important;
}

.yl-home-v2 .home-sidebar-panel .featured-post-item:last-child {
	border-bottom: none !important;
	padding-bottom: 0.15rem !important;
}

.yl-home-v2 .home-sidebar-panel .featured-post-item::before,
.yl-home-v2 .home-sidebar-panel .featured-post-item::after,
.yl-home-v2 .home-sidebar-panel .featured-post-thumbnail,
.yl-home-v2 .home-sidebar-panel .featured-post-thumbnail::after,
.yl-home-v2 .home-sidebar-panel .featured-post-excerpt {
	display: none !important;
}

.yl-home-v2 .home-sidebar-panel .featured-post-item:hover {
	transform: none !important;
	box-shadow: none !important;
}

.yl-home-v2 .home-sidebar-panel .featured-post-content {
	position: static !important;
	padding: 0 !important;
	gap: 0.35rem !important;
}

.yl-home-v2 .home-sidebar-panel .featured-post-title {
	margin: 0 !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: var(--yl-v2-navy) !important;
	text-shadow: none !important;
}

.yl-home-v2 .home-sidebar-panel .featured-post-title a {
	color: var(--yl-v2-navy) !important;
	text-decoration: none;
}

.yl-home-v2 .home-sidebar-panel .featured-post-title a:hover {
	color: var(--yl-v2-blue) !important;
}

.yl-home-v2 .home-sidebar-panel .featured-post-categories {
	margin: 0 !important;
	order: -1;
}

.yl-home-v2 .home-sidebar-panel .featured-post-category {
	background: none !important;
	box-shadow: none !important;
	color: var(--yl-v2-blue) !important;
	font-size: 0.7rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0 !important;
	border-radius: 0 !important;
	backdrop-filter: none !important;
}

.yl-home-v2 .home-sidebar-panel .featured-post-category:hover {
	transform: none !important;
	color: var(--yl-v2-navy) !important;
}

/* -------------------------------------------------------------------------
   Mid-page CTAs (keep full-width structure, V2 color language)
   ------------------------------------------------------------------------- */

.yl-home-v2 .cta-full-width,
.yl-home-v2 .cta-full-width.yellow-bg {
	background: linear-gradient(145deg, var(--yl-v2-navy) 0%, #0a5fa8 45%, var(--yl-v2-blue) 100%) !important;
	box-shadow: 0 12px 28px rgba(0, 44, 75, 0.18);
	margin-bottom: 2.5rem;
	padding: 3.5rem 1.5rem !important;
}

.yl-home-v2 .cta-full-width h3,
.yl-home-v2 .cta-full-width.yellow-bg h3,
.yl-home-v2 .cta-full-width .home-welcome-content-inner,
.yl-home-v2 .cta-full-width .home-welcome-content-inner p,
.yl-home-v2 .cta-full-width .home-welcome-content-inner h2,
.yl-home-v2 .cta-full-width .home-welcome-content-inner h3 {
	color: #fff !important;
	font-family: "Blinker", var(--wp--preset--font-family--blinker, sans-serif);
	font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
	font-weight: 800 !important;
	letter-spacing: -0.02em;
	line-height: 1.2 !important;
	margin: 0 0 1.25rem !important;
}

.yl-home-v2 .cta-full-width.yellow-bg a.btn {
	font-size: 0.85rem !important;
	padding: 0.9rem 1.75rem !important;
}

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

.yl-home-v2 .page-navi-wrapper {
	text-align: center;
	padding-top: 0.5rem;
}

.yl-home-v2 .page-navi-wrapper .wp-pagenavi a,
.yl-home-v2 .page-navi-wrapper .wp-pagenavi span,
.yl-home-v2 .wp-pagenavi a,
.yl-home-v2 .wp-pagenavi span {
	border: none !important;
	border-radius: 999px;
	color: var(--yl-v2-navy) !important;
	font-family: "Montserrat", var(--wp--preset--font-family--montserrat, sans-serif);
	font-size: 0.9rem;
	font-weight: 600;
	padding: 0.45rem 0.85rem !important;
}

.yl-home-v2 .wp-pagenavi span.current {
	background: var(--yl-v2-slate-50);
	color: var(--yl-v2-blue) !important;
}

.yl-home-v2 .previouspostslink,
.yl-home-v2 .nextpostslink {
	background: var(--yl-v2-accent) !important;
	border: none !important;
	border-radius: 999px !important;
	color: #fff !important;
	height: auto;
	padding: 0.45rem 1rem !important;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 1080px) {
	.yl-home-v2 .post-first-section {
		grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
		gap: 1.5rem;
	}
}

@media (max-width: 781px) {
	.yl-home-v2 .post-first-section,
	.yl-home-v2 .lists-post-section,
	.yl-home-v2 .page-navi-wrapper {
		padding-left: 1.25rem !important;
		padding-right: 1.25rem !important;
	}

	.yl-home-v2 .post-first-section,
	.yl-home-v2 .lists-post-section {
		grid-template-columns: 1fr;
	}

	.yl-home-v2 .single-posts-wrapper,
	.yl-home-v2 .home-sidebar-panel,
	.yl-home-v2 .lists-post-section .single-posts-container {
		width: 100% !important;
		max-width: none;
	}

	.yl-home-v2 .lists-post-section .single-posts-container {
		margin-left: 0;
		margin-right: 0;
	}

	.yl-home-v2 .cta-full-width,
	.yl-home-v2 .cta-full-width.yellow-bg {
		padding: 2.25rem 1.25rem !important;
		margin-bottom: 2rem;
	}
}
