/* ==========================================================================
   JLS Computers — Blog Styles
   Loaded on blog views only (see inc/blog.php)
   Brand: #2C5697 | Poppins headings / Inter body
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero (archive + category/tag)
   -------------------------------------------------------------------------- */

.jls-blog-hero {
	background: linear-gradient(135deg, #2C5697 0%, #1e3d6e 100%);
	color: #fff;
	padding: 56px 20px 64px;
}

.jls-blog-hero-inner {
	max-width: 1600px;
	margin: 0 auto;
}

.jls-hero-breadcrumbs {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	opacity: 0.75;
	margin-bottom: 16px;
}

.jls-hero-breadcrumbs a {
	color: #fff;
	text-decoration: none;
}

.jls-hero-breadcrumbs a:hover {
	text-decoration: underline;
}

.jls-hero-breadcrumbs .sep {
	margin: 0 8px;
}

.jls-blog-hero h1 {
	font-family: 'Poppins', sans-serif;
	font-weight: 900;
	text-transform: uppercase;
	font-size: clamp(2rem, 4vw, 3rem);
	margin: 0 0 12px;
	color: #fff;
	letter-spacing: 0.5px;
}

.jls-blog-hero p {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	max-width: 640px;
	margin: 0;
	opacity: 0.9;
	line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Archive grid
   -------------------------------------------------------------------------- */

.jls-blog-archive {
	max-width: 1600px;
	margin: 0 auto;
	padding: 48px 20px 64px;
}

.jls-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

@media (max-width: 1024px) {
	.jls-blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.jls-blog-grid {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------------------------------------
   Post card
   -------------------------------------------------------------------------- */

.jls-blog-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jls-blog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(44, 86, 151, 0.12);
}

.jls-blog-card-media {
	display: block;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #2C5697 0%, #4A90D9 100%);
	overflow: hidden;
	position: relative;
}

.jls-blog-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.jls-blog-card-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Poppins', sans-serif;
	font-weight: 900;
	font-size: 2rem;
	color: rgba(255, 255, 255, 0.4);
	letter-spacing: 4px;
}

.jls-blog-card-body {
	padding: 20px 22px 22px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.jls-post-badge {
	display: inline-block;
	align-self: flex-start;
	background: #eef3fa;
	color: #2C5697;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	padding: 4px 10px;
	border-radius: 999px;
	margin-bottom: 12px;
}

.jls-blog-card-title {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 1.1rem;
	line-height: 1.35;
	margin: 0 0 10px;
	text-transform: none;
}

.jls-blog-card-title a {
	color: #111827;
	text-decoration: none;
}

.jls-blog-card-title a:hover {
	color: #2C5697;
}

.jls-blog-card-excerpt {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: #4b5563;
	margin: 0 0 16px;
	flex: 1;
}

.jls-blog-card-meta,
.jls-post-meta {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	color: #6b7280;
}

.jls-blog-card-meta .dot,
.jls-post-meta .dot {
	margin: 0 6px;
}

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

.jls-blog-pagination {
	margin-top: 48px;
	text-align: center;
}

.jls-blog-pagination .nav-links {
	display: inline-flex;
	gap: 8px;
	font-family: 'Inter', sans-serif;
}

.jls-blog-pagination .page-numbers {
	display: inline-block;
	min-width: 40px;
	padding: 9px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	color: #374151;
	text-decoration: none;
	font-size: 14px;
}

.jls-blog-pagination .page-numbers.current {
	background: #2C5697;
	border-color: #2C5697;
	color: #fff;
}

.jls-blog-pagination .page-numbers:hover:not(.current) {
	border-color: #2C5697;
	color: #2C5697;
}

/* --------------------------------------------------------------------------
   Single post — header
   -------------------------------------------------------------------------- */

.jls-single-post {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px 0;
}

.jls-post-breadcrumbs {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 24px;
}

.jls-post-breadcrumbs a {
	color: #2C5697;
	text-decoration: none;
}

.jls-post-breadcrumbs a:hover {
	text-decoration: underline;
}

.jls-post-breadcrumbs .sep {
	margin: 0 8px;
}

.jls-post-header {
	max-width: 820px;
	margin-bottom: 28px;
}

.jls-post-title {
	font-family: 'Poppins', sans-serif;
	font-weight: 900;
	text-transform: uppercase;
	font-size: clamp(1.6rem, 3.2vw, 2.4rem);
	line-height: 1.2;
	color: #111827;
	margin: 10px 0 14px;
	letter-spacing: 0.3px;
}

.jls-post-featured {
	margin-bottom: 40px;
	border-radius: 12px;
	overflow: hidden;
}

.jls-post-featured img {
	width: 100%;
	height: auto;
	display: block;
}

/* --------------------------------------------------------------------------
   Single post — layout (content + sticky sidebar)
   -------------------------------------------------------------------------- */

.jls-post-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 56px;
	align-items: start;
}

@media (max-width: 900px) {
	.jls-post-layout {
		grid-template-columns: 1fr;
	}

	.jls-post-sidebar {
		order: 2;
	}
}

.jls-post-sidebar-inner {
	position: sticky;
	top: 110px; /* clear the sticky header */
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* --------------------------------------------------------------------------
   Article typography
   -------------------------------------------------------------------------- */

.jls-post-content {
	font-family: 'Inter', sans-serif;
	font-size: 16.5px;
	line-height: 1.75;
	color: #374151;
}

.jls-post-content h2,
.jls-post-content h3 {
	font-family: 'Poppins', sans-serif;
	color: #111827;
	text-transform: none;
	scroll-margin-top: 120px; /* anchor offset under sticky header */
}

.jls-post-content h2 {
	font-size: 1.45rem;
	font-weight: 700;
	margin: 2em 0 0.8em;
	padding-bottom: 10px;
	border-bottom: 2px solid #eef3fa;
}

.jls-post-content h3 {
	font-size: 1.15rem;
	font-weight: 600;
	margin: 1.6em 0 0.6em;
}

.jls-post-content a {
	color: #2C5697;
}

.jls-post-content img {
	border-radius: 10px;
	height: auto;
	max-width: 100%;
}

.jls-post-content blockquote {
	border-left: 4px solid #2C5697;
	background: #f8fafc;
	margin: 1.5em 0;
	padding: 16px 22px;
	border-radius: 0 8px 8px 0;
	font-style: normal;
	color: #1f2937;
}

.jls-post-content ul,
.jls-post-content ol {
	padding-left: 1.4em;
	margin: 1em 0 1.5em;
}

.jls-post-content li {
	margin-bottom: 0.5em;
}

.jls-post-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	font-size: 14.5px;
}

.jls-post-content table th {
	background: #2C5697;
	color: #fff;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	text-align: left;
	padding: 10px 14px;
}

.jls-post-content table td {
	border: 1px solid #e5e7eb;
	padding: 10px 14px;
}

.jls-post-content table tr:nth-child(even) td {
	background: #f8fafc;
}

/* --------------------------------------------------------------------------
   Sidebar widgets
   -------------------------------------------------------------------------- */

.jls-sidebar-widget {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 22px;
}

.jls-sidebar-widget h3 {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #111827;
	margin: 0 0 14px;
}

/* Table of contents */

.jls-toc ul {
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
}

.jls-toc li {
	margin-bottom: 8px;
}

.jls-toc li.toc-level-3 {
	padding-left: 16px;
	font-size: 13px;
}

.jls-toc a {
	color: #4b5563;
	text-decoration: none;
	display: block;
	line-height: 1.45;
}

.jls-toc a:hover {
	color: #2C5697;
}

html {
	scroll-behavior: smooth;
}

/* Shop CTA */

.jls-shop-cta {
	background: linear-gradient(135deg, #2C5697 0%, #1e3d6e 100%);
	border: none;
	color: #fff;
}

.jls-shop-cta h3 {
	color: #fff;
}

.jls-shop-cta p {
	font-family: 'Inter', sans-serif;
	font-size: 13.5px;
	line-height: 1.6;
	opacity: 0.9;
	margin: 0 0 16px;
}

.jls-shop-cta-btn {
	display: inline-block;
	background: #fff;
	color: #2C5697 !important;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 13.5px;
	padding: 10px 18px;
	border-radius: 8px;
	text-decoration: none !important;
	transition: transform 0.15s ease;
}

.jls-shop-cta-btn:hover {
	transform: translateY(-2px);
}

/* Recent posts */

.jls-recent-posts ul {
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: 'Inter', sans-serif;
}

.jls-recent-posts li {
	padding: 10px 0;
	border-bottom: 1px solid #f3f4f6;
}

.jls-recent-posts li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.jls-recent-posts a {
	color: #111827;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	display: block;
}

.jls-recent-posts a:hover {
	color: #2C5697;
}

.jls-recent-posts span {
	font-size: 12px;
	color: #9ca3af;
}

/* --------------------------------------------------------------------------
   Related posts
   -------------------------------------------------------------------------- */

.jls-related-posts {
	max-width: 1200px;
	margin: 64px auto 0;
	padding: 48px 20px 64px;
	border-top: 1px solid #e5e7eb;
}

.jls-related-posts > h2 {
	font-family: 'Poppins', sans-serif;
	font-weight: 900;
	text-transform: uppercase;
	font-size: 1.5rem;
	color: #111827;
	margin: 0 0 28px;
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */

.jls-blog-empty {
	text-align: center;
	padding: 64px 20px;
	font-family: 'Inter', sans-serif;
	color: #4b5563;
}

.jls-blog-empty h2 {
	font-family: 'Poppins', sans-serif;
	font-weight: 900;
	text-transform: uppercase;
	color: #111827;
}
