/**
 * Jazirah Editorial Theme Stylesheet
 * Custom CSS for layout, cards, grids, header, footer, breaking news, slider, widgets, single post, etc.
 */

:root {
	--jz-color-dark: #111111;
	--jz-color-grey: #475569;
	--jz-color-light-grey: #94a3b8;
	--jz-color-border: #e2e8f0;
	--jz-color-bg-light: #f8fafc;
	--jz-color-white: #ffffff;
	--jz-color-dark-bg: #0f172a;
	--jz-color-accent: #fa9000;
	--jz-border-radius: 4px;
	--jz-font-family-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--jz-max-width: 1200px;
	--jz-spacing: 1.5rem;
}

/* ==========================================================================
   Base Resets & Setup
   ========================================================================== */
*, *::before, *::after {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	overflow-x: hidden;
}

.jazirah-theme {
	font-family: var(--jz-font-family-sans);
	color: var(--jz-color-dark);
	background-color: #f1f5f9;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	width: 100%;
	overflow-x: hidden;
}

/* Universal Media Responsive Reset */
img, video, iframe, embed, object {
	max-width: 100% !important;
	height: auto;
	box-sizing: border-box;
}

.jz-container {
	max-width: var(--jz-max-width);
	margin: 0 auto;
	padding: 0 1rem;
	width: 100%;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.jz-container {
		padding: 0 1.5rem;
	}
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.jz-header-wrap {
	background-color: var(--jz-color-white);
	border-bottom: 1px solid var(--jz-color-border);
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.jz-header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.85rem 0;
}

.jz-logo a {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: var(--jz-color-dark);
}

.jz-logo img {
	max-height: 46px;
	width: auto;
}

.jz-logo-text {
	font-family: var(--jz-font-family-sans);
	font-weight: 800;
	font-size: 1.75rem;
	letter-spacing: -0.5px;
	text-transform: uppercase;
}

.jz-logo-text span {
	color: var(--jz-color-accent);
}

/* Navigation Menu */
.jz-nav {
	display: flex;
	align-items: center;
}

.jz-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
}

.jz-menu li {
	position: relative;
	margin: 0 0.85rem;
}

.jz-menu a {
	color: var(--jz-color-dark);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0.5rem 0;
	display: block;
	transition: color 0.2s ease;
}

.jz-menu a:hover,
.jz-menu .current-menu-item > a {
	color: var(--jz-color-accent);
}

/* Submenu dropdown */
.jz-menu li ul {
	position: absolute;
	top: 100%;
	left: 0;
	background-color: var(--jz-color-white);
	border: 1px solid var(--jz-color-border);
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
	min-width: 200px;
	display: none;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	z-index: 100;
}

.jz-menu li ul li {
	margin: 0;
}

.jz-menu li ul a {
	padding: 0.5rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 500;
}

.jz-menu li:hover > ul {
	display: block;
}

/* Header Utilities */
.jz-header-utils {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.jz-search-toggle {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--jz-color-dark);
	padding: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s;
}

.jz-search-toggle:hover {
	color: var(--jz-color-accent);
}

.jz-mobile-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--jz-color-dark);
	padding: 0.5rem;
	align-items: center;
	justify-content: center;
}

/* Trending bar */
.jz-trending-bar {
	background-color: var(--jz-color-bg-light);
	border-bottom: 1px solid var(--jz-color-border);
	padding: 0.45rem 0;
	font-size: 0.825rem;
}

.jz-trending-inner {
	display: flex;
	align-items: center;
	overflow-x: auto;
	white-space: nowrap;
	scrollbar-width: none;
}

.jz-trending-inner::-webkit-scrollbar {
	display: none;
}

.jz-trending-label {
	font-weight: 700;
	color: var(--jz-color-accent);
	margin-right: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	flex-shrink: 0;
}

.jz-trending-items {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
}

.jz-trending-items li {
	margin-right: 1.25rem;
}

.jz-trending-items a {
	color: var(--jz-color-grey);
	text-decoration: none;
	transition: color 0.2s;
}

.jz-trending-items a:hover {
	color: var(--jz-color-dark);
	text-decoration: underline;
}

/* Search Modal Overlay */
.jz-search-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(15, 23, 42, 0.85);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	padding: 1rem;
}

.jz-search-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

.jz-search-modal {
	background: var(--jz-color-white);
	padding: 2rem;
	width: 100%;
	max-width: 550px;
	border-radius: var(--jz-border-radius);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	position: relative;
}

.jz-search-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	background: none;
	border: none;
	font-size: 1.75rem;
	cursor: pointer;
	color: var(--jz-color-light-grey);
	line-height: 1;
}

.jz-search-form {
	display: flex;
	gap: 0.5rem;
	width: 100%;
}

.jz-search-input {
	flex: 1;
	padding: 0.75rem 1rem;
	border: 1px solid var(--jz-color-border);
	border-radius: var(--jz-border-radius);
	font-size: 0.95rem;
	outline: none;
	min-width: 0;
}

.jz-search-input:focus {
	border-color: var(--jz-color-accent);
}

.jz-search-submit {
	background-color: var(--jz-color-accent);
	color: var(--jz-color-white);
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: var(--jz-border-radius);
	cursor: pointer;
	font-weight: 600;
	white-space: nowrap;
}

/* ==========================================================================
   Breaking News Marquee
   ========================================================================== */
.jz-breaking-wrap {
	background-color: var(--jz-color-dark-bg);
	color: var(--jz-color-white);
	display: flex;
	align-items: stretch;
	overflow: hidden;
	height: 38px;
	font-size: 0.825rem;
	width: 100%;
}

.jz-breaking-label {
	background-color: var(--jz-color-accent);
	color: var(--jz-color-white);
	padding: 0 1.25rem;
	display: flex;
	align-items: center;
	font-weight: 800;
	letter-spacing: 0.5px;
	white-space: nowrap;
	position: relative;
	z-index: 10;
	flex-shrink: 0;
}

.jz-breaking-label::after {
	content: '';
	position: absolute;
	right: -10px;
	top: 0;
	bottom: 0;
	width: 0;
	height: 0;
	border-top: 19px solid transparent;
	border-bottom: 19px solid transparent;
	border-left: 10px solid var(--jz-color-accent);
}

.jz-breaking-marquee {
	flex: 1;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.jz-breaking-marquee-content {
	display: flex;
	gap: 2rem;
	position: absolute;
	white-space: nowrap;
	animation: jz-marquee-scroll 28s linear infinite;
}

.jz-breaking-marquee-content:hover {
	animation-play-state: paused;
}

.jz-breaking-item {
	display: flex;
	align-items: center;
	color: var(--jz-color-white);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s;
}

.jz-breaking-item::before {
	content: '■';
	color: var(--jz-color-accent);
	margin-right: 0.75rem;
	font-size: 0.65rem;
}

.jz-breaking-item:hover {
	color: var(--jz-color-accent);
}

@keyframes jz-marquee-scroll {
	0% { transform: translateX(100%); }
	100% { transform: translateX(-100%); }
}

/* ==========================================================================
   Main Grid Layout (Rock-solid Desktop & Mobile Columns)
   ========================================================================== */
.jz-main-grid {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-start;
	gap: 2rem;
	padding: 1.5rem 0 3.5rem 0;
	width: 100%;
	box-sizing: border-box;
}

.jz-main-content {
	flex: 1 1 0%;
	width: calc(100% - 340px - 2rem);
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.jz-sidebar {
	flex: 0 0 340px;
	width: 340px;
	min-width: 340px;
	max-width: 340px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

.jz-main-grid.no-sidebar .jz-main-content {
	width: 100% !important;
	max-width: 100% !important;
	flex: 1 1 100%;
}

@media (max-width: 1023px) {
	.jz-main-grid {
		flex-direction: column;
		gap: 2rem;
	}

	.jz-main-content {
		width: 100% !important;
		max-width: 100% !important;
		flex: 1 1 100%;
	}

	.jz-sidebar {
		width: 100% !important;
		min-width: 100% !important;
		max-width: 100% !important;
		flex: 1 1 100%;
	}
}

/* ==========================================================================
   Featured Slider / Carousel
   ========================================================================== */
.jz-slider-container {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: var(--jz-border-radius);
	background-color: #0f172a;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.jz-slider-track {
	display: flex;
	transition: transform 0.5s ease-in-out;
	width: 100%;
}

.jz-slide {
	min-width: 100%;
	width: 100%;
	flex-shrink: 0;
	position: relative;
}

.jz-slide-card {
	position: relative;
	width: 100%;
	height: 420px;
	overflow: hidden;
}

@media (max-width: 640px) {
	.jz-slide-card {
		height: 320px;
	}
}

.jz-slide-img-wrap {
	width: 100%;
	height: 100%;
}

.jz-slide-img-wrap img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
}

.jz-slide-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 2rem;
	background: linear-gradient(0deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 60%, transparent 100%);
	color: var(--jz-color-white);
}

@media (max-width: 640px) {
	.jz-slide-overlay {
		padding: 1.25rem;
	}
}

.jz-slide-overlay .jz-card-meta {
	color: #94a3b8;
	margin-bottom: 0.5rem;
}

.jz-slide-overlay .jz-card-meta a {
	color: var(--jz-color-accent);
}

.jz-slide-title {
	font-size: clamp(1.2rem, 3vw, 1.75rem);
	font-weight: 800;
	line-height: 1.3;
	margin: 0 0 0.5rem 0;
	color: var(--jz-color-white);
}

.jz-slide-title a {
	color: inherit;
	text-decoration: none;
}

.jz-slide-title a:hover {
	color: var(--jz-color-accent);
}

.jz-slide-excerpt {
	font-size: 0.9rem;
	color: #cbd5e1;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
}

@media (max-width: 640px) {
	.jz-slide-excerpt {
		display: none;
	}
}

/* Slider Navigation Buttons */
.jz-slider-prev,
.jz-slider-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(15, 23, 42, 0.65);
	color: var(--jz-color-white);
	border: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: background 0.2s, transform 0.2s;
	font-size: 1.1rem;
	backdrop-filter: blur(4px);
}

.jz-slider-prev:hover,
.jz-slider-next:hover {
	background: var(--jz-color-accent);
	transform: translateY(-50%) scale(1.08);
}

.jz-slider-prev {
	left: 1rem;
}

.jz-slider-next {
	right: 1rem;
}

/* Slider Pagination Dots */
.jz-slider-dots {
	position: absolute;
	bottom: 0.85rem;
	right: 2rem;
	display: flex;
	gap: 0.4rem;
	z-index: 10;
}

.jz-slider-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s, transform 0.2s;
}

.jz-slider-dot.active {
	background: var(--jz-color-accent);
	transform: scale(1.2);
}

/* Section Header View All Link */
.jz-section-view-all:hover {
	color: var(--jz-color-dark) !important;
}

/* ==========================================================================
   Article Cards & Grids (Index, Search, Category, Archive)
   ========================================================================== */
.jz-hero-section {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
	.jz-hero-section {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}
}

.jz-card {
	background-color: var(--jz-color-white);
	border: 1px solid var(--jz-color-border);
	border-radius: var(--jz-border-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s, transform 0.2s;
	min-width: 0;
}

.jz-card:hover {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
	transform: translateY(-2px);
}

.jz-card-link {
	text-decoration: none;
	color: inherit;
}

.jz-card-img-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
	overflow: hidden;
	background-color: #e2e8f0;
}

.jz-card-img-wrap img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.jz-card:hover .jz-card-img-wrap img {
	transform: scale(1.04);
}

.jz-card-content {
	padding: 1.15rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

.jz-card-meta {
	font-size: 0.75rem;
	color: var(--jz-color-light-grey);
	margin-bottom: 0.4rem;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.5px;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.jz-card-meta a {
	color: var(--jz-color-accent);
	text-decoration: none;
}

.jz-card-title {
	font-size: 1.15rem;
	margin: 0 0 0.5rem 0;
	line-height: 1.35;
	font-weight: 700;
	color: var(--jz-color-dark);
	word-break: break-word;
}

.jz-card-title a {
	text-decoration: none;
	color: inherit;
}

.jz-card-title a:hover {
	color: var(--jz-color-accent);
}

.jz-card-excerpt {
	font-size: 0.875rem;
	color: var(--jz-color-grey);
	line-height: 1.55;
	margin-bottom: 0.75rem;
	flex: 1;
	word-break: break-word;
}

.jz-card-hero .jz-card-title {
	font-size: 1.5rem;
}

.jz-hero-stack {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	min-width: 0;
}

.jz-card-list {
	display: flex;
	flex-direction: row;
	gap: 1rem;
	background-color: var(--jz-color-white);
	border: 1px solid var(--jz-color-border);
	border-radius: var(--jz-border-radius);
	padding: 0.75rem;
	min-width: 0;
	transition: box-shadow 0.2s;
}

.jz-card-list:hover {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.jz-card-list .jz-card-img-wrap {
	width: 110px;
	height: 85px;
	aspect-ratio: auto;
	flex-shrink: 0;
	border-radius: var(--jz-border-radius);
}

.jz-card-list .jz-card-content {
	padding: 0;
	justify-content: center;
	min-width: 0;
}

.jz-card-list .jz-card-title {
	font-size: 0.95rem;
	margin: 0;
	line-height: 1.35;
}

/* Category Sections */
.jz-cat-sections-wrapper {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.jz-cat-section {
	border-top: 2px solid var(--jz-color-dark);
	padding-top: 1rem;
}

.jz-cat-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.25rem;
}

.jz-cat-title {
	font-size: 1.3rem;
	font-weight: 800;
	text-transform: uppercase;
	margin: 0;
	position: relative;
	display: inline-block;
}

.jz-cat-title::before {
	content: '';
	position: absolute;
	left: 0;
	bottom: -1rem;
	width: 100%;
	height: 2px;
	background-color: var(--jz-color-accent);
}

.jz-cat-view-all {
	font-size: 0.825rem;
	font-weight: 700;
	color: var(--jz-color-accent);
	text-decoration: none;
	text-transform: uppercase;
}

.jz-cat-view-all:hover {
	text-decoration: underline;
}

.jz-cat-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

@media (min-width: 768px) {
	.jz-cat-layout {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}
}

.jz-cat-secondary-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.jz-cat-secondary-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ==========================================================================
   Sidebar & Widgets Styling (Custom & Standard WordPress Widgets)
   ========================================================================== */
.jz-widget {
	background-color: var(--jz-color-white);
	border: 1px solid var(--jz-color-border);
	border-radius: var(--jz-border-radius);
	padding: 1.25rem;
	box-sizing: border-box;
	min-width: 0;
	width: 100%;
}

.jz-widget-title,
.widget-title {
	font-size: 1rem;
	font-weight: 800;
	text-transform: uppercase;
	border-bottom: 2px solid var(--jz-color-dark);
	padding-bottom: 0.4rem;
	margin: 0 0 1rem 0;
	color: var(--jz-color-dark);
	letter-spacing: 0.5px;
}

.jz-widget-posts {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.jz-widget-post-item {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	min-width: 0;
}

.jz-widget-post-img {
	width: 68px;
	height: 68px;
	flex-shrink: 0;
	border-radius: var(--jz-border-radius);
	overflow: hidden;
	background-color: #e2e8f0;
}

.jz-widget-post-img img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
}

.jz-widget-post-content {
	flex: 1;
	min-width: 0;
}

.jz-widget-post-title {
	font-size: 0.875rem;
	font-weight: 600;
	margin: 0 0 0.25rem 0;
	line-height: 1.35;
	word-break: break-word;
}

.jz-widget-post-title a {
	text-decoration: none;
	color: inherit;
}

.jz-widget-post-title a:hover {
	color: var(--jz-color-accent);
}

.jz-widget-post-date {
	font-size: 0.75rem;
	color: var(--jz-color-light-grey);
}

/* Standard WordPress Widget Support */
.jz-widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.jz-widget ul li {
	padding: 0.45rem 0;
	border-bottom: 1px solid var(--jz-color-border);
	font-size: 0.9rem;
}

.jz-widget ul li:last-child {
	border-bottom: none;
}

.jz-widget a {
	color: var(--jz-color-dark);
	text-decoration: none;
	transition: color 0.2s;
}

.jz-widget a:hover {
	color: var(--jz-color-accent);
}

.jz-widget select,
.jz-widget input[type="text"],
.jz-widget input[type="search"] {
	width: 100%;
	padding: 0.6rem 0.8rem;
	border: 1px solid var(--jz-color-border);
	border-radius: var(--jz-border-radius);
	font-size: 0.9rem;
	outline: none;
}

.jz-widget .tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.jz-widget .tagcloud a {
	background: var(--jz-color-bg-light);
	border: 1px solid var(--jz-color-border);
	padding: 0.25rem 0.6rem;
	border-radius: var(--jz-border-radius);
	font-size: 0.75rem !important;
	color: var(--jz-color-grey);
}

.jz-widget .tagcloud a:hover {
	background: var(--jz-color-accent);
	color: var(--jz-color-white);
	border-color: var(--jz-color-accent);
}

/* ==========================================================================
   Single Post & Page (Strictly Constrained, No Overflow)
   ========================================================================== */
.jz-article {
	background-color: var(--jz-color-white);
	border: 1px solid var(--jz-color-border);
	border-radius: var(--jz-border-radius);
	padding: 2.25rem;
	margin-bottom: 2rem;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

@media (max-width: 767px) {
	.jz-article {
		padding: 1.25rem;
	}
}

.jz-breadcrumb {
	font-size: 0.8rem;
	color: var(--jz-color-light-grey);
	text-transform: uppercase;
	margin-bottom: 1rem;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.jz-breadcrumb a {
	color: var(--jz-color-accent);
	text-decoration: none;
}

.jz-post-title {
	font-size: clamp(1.5rem, 3.5vw, 2.25rem);
	font-weight: 800;
	line-height: 1.25;
	margin: 0 0 1.25rem 0;
	color: var(--jz-color-dark);
	word-break: break-word;
}

.jz-post-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	border-top: 1px solid var(--jz-color-border);
	border-bottom: 1px solid var(--jz-color-border);
	padding: 0.75rem 0;
	margin-bottom: 1.5rem;
	font-size: 0.85rem;
	color: var(--jz-color-grey);
}

.jz-author-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
}

.jz-author-avatar img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
}

.jz-author-name {
	font-weight: 700;
	color: var(--jz-color-dark);
}

.jz-post-featured-image {
	width: 100%;
	max-width: 100%;
	margin-bottom: 2rem;
	border-radius: var(--jz-border-radius);
	overflow: hidden;
	background-color: var(--jz-color-bg-light);
}

.jz-post-featured-image img {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: 480px;
	object-fit: cover;
	display: block;
}

/* Post Content Typography & Gutenberg Block Styling */
.jz-post-content {
	font-family: var(--jz-font-family-sans);
	font-size: 1.0625rem;
	line-height: 1.8;
	color: #1e293b;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	word-break: break-word;
	overflow-wrap: break-word;
}

.jz-post-content > * {
	max-width: 100%;
}

.jz-post-content p {
	margin: 0 0 1.5rem 0;
}

.jz-post-content h1,
.jz-post-content h2,
.jz-post-content h3,
.jz-post-content h4,
.jz-post-content h5,
.jz-post-content h6 {
	color: var(--jz-color-dark);
	font-weight: 700;
	line-height: 1.35;
	margin: 2rem 0 1rem 0;
	word-break: break-word;
}

.jz-post-content h1 { font-size: 1.85rem; }
.jz-post-content h2 { font-size: 1.55rem; border-bottom: 1px solid var(--jz-color-border); padding-bottom: 0.4rem; }
.jz-post-content h3 { font-size: 1.3rem; }
.jz-post-content h4 { font-size: 1.15rem; }
.jz-post-content h5 { font-size: 1.05rem; }
.jz-post-content h6 { font-size: 0.95rem; }

.jz-post-content a {
	color: var(--jz-color-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.2s;
}

.jz-post-content a:hover {
	color: var(--jz-color-dark);
}

.jz-post-content ul,
.jz-post-content ol {
	margin: 0 0 1.5rem 1.5rem;
	padding: 0;
}

.jz-post-content li {
	margin-bottom: 0.5rem;
}

/* Responsive Images inside post content */
.jz-post-content img,
.entry-content img,
.jz-article img,
.wp-block-image img,
figure img {
	max-width: 100% !important;
	height: auto !important;
	border-radius: var(--jz-border-radius);
	display: block;
	box-sizing: border-box;
}

.wp-block-image,
figure.wp-block-image,
figure {
	max-width: 100%;
	margin: 1.5rem 0;
	box-sizing: border-box;
}

.wp-block-image.aligncenter,
.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.wp-block-image.alignleft,
.alignleft {
	float: left;
	margin: 0.5rem 1.5rem 1rem 0;
	max-width: 50%;
}

.wp-block-image.alignright,
.alignright {
	float: right;
	margin: 0.5rem 0 1rem 1.5rem;
	max-width: 50%;
}

@media (max-width: 640px) {
	.wp-block-image.alignleft,
	.alignleft,
	.wp-block-image.alignright,
	.alignright {
		float: none;
		margin: 1rem 0;
		max-width: 100%;
		width: 100%;
	}
}

figcaption,
.wp-caption-text {
	font-size: 0.85rem;
	color: var(--jz-color-light-grey);
	margin-top: 0.5rem;
	text-align: center;
	font-style: italic;
}

/* Block Gallery */
.wp-block-gallery,
.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1rem;
	margin: 1.5rem 0;
	padding: 0;
	list-style: none;
}

.wp-block-gallery .wp-block-image {
	margin: 0;
}

/* Columns */
.wp-block-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin: 1.5rem 0;
}

.wp-block-column {
	flex: 1 1 240px;
	min-width: 0;
}

/* Blockquotes */
.jz-post-content blockquote,
.entry-content blockquote {
	border-left: 4px solid var(--jz-color-accent);
	padding: 1rem 1.5rem;
	margin: 1.5rem 0;
	background-color: var(--jz-color-bg-light);
	font-style: italic;
	color: var(--jz-color-dark);
	border-radius: 0 var(--jz-border-radius) var(--jz-border-radius) 0;
}

.jz-post-content blockquote p:last-child {
	margin-bottom: 0;
}

/* Tables */
.jz-post-content table,
.entry-content table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	font-size: 0.95rem;
	display: block;
	overflow-x: auto;
}

.jz-post-content th,
.jz-post-content td {
	padding: 0.75rem 1rem;
	border: 1px solid var(--jz-color-border);
	text-align: left;
}

.jz-post-content th {
	background-color: var(--jz-color-bg-light);
	font-weight: 700;
}

/* Code & Pre */
.jz-post-content pre,
.entry-content pre {
	background-color: #0f172a;
	color: #e2e8f0;
	padding: 1.25rem;
	border-radius: var(--jz-border-radius);
	overflow-x: auto;
	font-size: 0.9rem;
	line-height: 1.6;
	margin: 1.5rem 0;
}

.jz-post-content code,
.entry-content code {
	background-color: var(--jz-color-bg-light);
	color: #e11d48;
	padding: 0.2rem 0.4rem;
	border-radius: 4px;
	font-size: 0.875em;
}

.jz-post-content pre code {
	background: transparent;
	color: inherit;
	padding: 0;
}

/* Embeds, Videos, iframes */
.wp-block-embed,
.embed-youtube,
.wp-block-embed__wrapper,
.jz-post-content iframe,
.jz-post-content video {
	max-width: 100% !important;
	box-sizing: border-box;
}

.jz-post-tags {
	margin-top: 2rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.jz-tag-btn {
	background-color: var(--jz-color-bg-light);
	color: var(--jz-color-grey);
	border: 1px solid var(--jz-color-border);
	padding: 0.35rem 0.85rem;
	font-size: 0.825rem;
	text-decoration: none;
	border-radius: var(--jz-border-radius);
	transition: background 0.2s, color 0.2s;
}

.jz-tag-btn:hover {
	background-color: var(--jz-color-accent);
	color: var(--jz-color-white);
	border-color: var(--jz-color-accent);
}

/* Post Navigation (Prev / Next) */
.jz-post-nav {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin: 2rem 0;
	width: 100%;
}

@media (min-width: 640px) {
	.jz-post-nav {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

.jz-nav-card {
	background-color: var(--jz-color-white);
	border: 1px solid var(--jz-color-border);
	border-radius: var(--jz-border-radius);
	padding: 1.15rem;
	transition: border-color 0.2s, box-shadow 0.2s;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.jz-nav-card:hover {
	border-color: var(--jz-color-accent);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.jz-nav-label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--jz-color-accent);
	letter-spacing: 0.5px;
}

.jz-nav-title {
	font-size: 0.925rem;
	font-weight: 600;
	color: var(--jz-color-dark);
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.jz-nav-card.jz-next {
	text-align: right;
}

/* Related Posts block */
.jz-related-posts {
	margin-top: 2.5rem;
	width: 100%;
}

.jz-related-title {
	font-size: 1.2rem;
	font-weight: 800;
	text-transform: uppercase;
	margin-bottom: 1.25rem;
	border-bottom: 2px solid var(--jz-color-dark);
	padding-bottom: 0.4rem;
	letter-spacing: 0.5px;
}

.jz-related-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	width: 100%;
}

@media (min-width: 640px) {
	.jz-related-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ==========================================================================
   Comments Section
   ========================================================================== */
.jz-comments-wrap {
	background-color: var(--jz-color-white);
	border: 1px solid var(--jz-color-border);
	border-radius: var(--jz-border-radius);
	padding: 2.25rem;
	margin-top: 2rem;
	box-sizing: border-box;
	width: 100%;
}

@media (max-width: 767px) {
	.jz-comments-wrap {
		padding: 1.25rem;
	}
}

.comment-list,
.children {
	list-style: none;
	padding: 0;
	margin: 0;
}

.comment-list > li {
	border-bottom: 1px solid var(--jz-color-border);
	padding: 1.5rem 0;
}

.comment-list > li:last-child {
	border-bottom: none;
}

.children {
	margin-left: 2rem;
	border-left: 2px solid var(--jz-color-border);
	padding-left: 1rem;
}

@media (max-width: 640px) {
	.children {
		margin-left: 1rem;
		padding-left: 0.5rem;
	}
}

.comment-body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.comment-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.comment-author .avatar {
	border-radius: 50%;
	width: 36px;
	height: 36px;
}

.comment-author .fn {
	font-weight: 700;
	font-style: normal;
	color: var(--jz-color-dark);
}

.comment-metadata {
	font-size: 0.8rem;
	color: var(--jz-color-light-grey);
}

.comment-metadata a {
	color: inherit;
	text-decoration: none;
}

.comment-content {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #334155;
}

.reply a {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--jz-color-accent);
	text-decoration: none;
}

/* Comment Form */
#respond {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--jz-color-border);
}

.comment-reply-title {
	font-size: 1.25rem;
	font-weight: 800;
	margin-bottom: 1rem;
	color: var(--jz-color-dark);
}

#commentform {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

#commentform p {
	margin: 0;
	width: 100%;
}

#commentform label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
	color: var(--jz-color-dark);
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--jz-color-border);
	border-radius: var(--jz-border-radius);
	font-family: var(--jz-font-family-sans);
	font-size: 0.95rem;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.2s;
	background: var(--jz-color-white);
}

#commentform input:focus,
#commentform textarea:focus {
	border-color: var(--jz-color-accent);
}

#commentform textarea {
	min-height: 120px;
	resize: vertical;
}

#commentform .form-submit #submit {
	background-color: var(--jz-color-accent);
	color: var(--jz-color-white);
	border: none;
	padding: 0.8rem 2rem;
	border-radius: var(--jz-border-radius);
	font-weight: 700;
	cursor: pointer;
	font-size: 0.95rem;
	transition: opacity 0.2s;
}

#commentform .form-submit #submit:hover {
	opacity: 0.9;
}

/* ==========================================================================
   Author Profile Card
   ========================================================================== */
.jz-author-profile {
	background-color: var(--jz-color-white);
	border: 1px solid var(--jz-color-border);
	border-radius: var(--jz-border-radius);
	padding: 2rem;
	display: flex;
	gap: 1.5rem;
	align-items: center;
	margin-bottom: 2rem;
}

.jz-author-profile-avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
}

.jz-author-profile-avatar img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

.jz-author-profile-content h2 {
	margin: 0 0 0.5rem 0;
	font-size: 1.25rem;
	font-weight: 800;
}

.jz-author-profile-bio {
	font-size: 0.95rem;
	color: var(--jz-color-grey);
	margin-bottom: 0.5rem;
}

.jz-author-profile-count {
	font-size: 0.8rem;
	color: var(--jz-color-light-grey);
	font-weight: 700;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.jz-pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 2rem 0;
}

.jz-pagination .page-numbers {
	padding: 0.5rem 1rem;
	border: 1px solid var(--jz-color-border);
	text-decoration: none;
	color: var(--jz-color-dark);
	font-weight: 600;
	border-radius: var(--jz-border-radius);
	transition: background 0.2s;
	background: var(--jz-color-white);
}

.jz-pagination .page-numbers:hover,
.jz-pagination .page-numbers.current {
	background-color: var(--jz-color-accent);
	color: var(--jz-color-white);
	border-color: var(--jz-color-accent);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.jz-footer-wrap {
	background-color: var(--jz-color-dark-bg);
	color: #cbd5e1;
	padding: 3.5rem 0 2rem 0;
	margin-top: auto;
	border-top: 4px solid var(--jz-color-accent);
}

.jz-footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	margin-bottom: 3rem;
}

@media (min-width: 768px) {
	.jz-footer-grid {
		grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
	}
}

.jz-footer-col h3 {
	color: var(--jz-color-white);
	font-size: 1.05rem;
	font-weight: 800;
	margin: 0 0 1.25rem 0;
	text-transform: uppercase;
	position: relative;
	padding-bottom: 0.5rem;
	letter-spacing: 0.5px;
}

.jz-footer-col h3::before {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 40px;
	height: 2px;
	background-color: var(--jz-color-accent);
}

.jz-footer-about img {
	max-height: 42px;
	margin-bottom: 1rem;
	width: auto;
}

.jz-footer-about p {
	font-size: 0.875rem;
	line-height: 1.6;
	margin: 0 0 1.5rem 0;
}

.jz-footer-socials {
	display: flex;
	gap: 0.75rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.jz-footer-socials a {
	background-color: rgba(255, 255, 255, 0.08);
	color: var(--jz-color-white);
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.jz-footer-socials a:hover {
	background-color: var(--jz-color-accent);
}

.jz-footer-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.jz-footer-list li {
	margin-bottom: 0.75rem;
}

.jz-footer-list a {
	color: #cbd5e1;
	text-decoration: none;
	font-size: 0.875rem;
	transition: color 0.2s;
}

.jz-footer-list a:hover {
	color: var(--jz-color-accent);
}

.jz-footer-tags-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.jz-footer-tags-cloud a {
	background-color: rgba(255, 255, 255, 0.08);
	color: #cbd5e1;
	padding: 0.3rem 0.6rem;
	font-size: 0.75rem;
	text-decoration: none;
	border-radius: var(--jz-border-radius);
	transition: background 0.2s, color 0.2s;
}

.jz-footer-tags-cloud a:hover {
	background-color: var(--jz-color-accent);
	color: var(--jz-color-white);
}

.jz-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.85rem;
	color: #94a3b8;
}

@media (min-width: 640px) {
	.jz-footer-bottom {
		flex-direction: row;
	}
}

/* ==========================================================================
   Mobile Nav Overrides
   ========================================================================== */
@media (max-width: 767px) {
	.jz-menu {
		display: none;
	}
	.jz-menu.active {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: var(--jz-color-white);
		border-top: 1px solid var(--jz-color-border);
		border-bottom: 1px solid var(--jz-color-border);
		padding: 1rem 1.5rem;
		box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	}
	.jz-menu.active li {
		margin: 0.5rem 0;
	}
	.jz-mobile-toggle {
		display: flex;
	}
	.jz-hero-section {
		grid-template-columns: 1fr;
	}
	.jz-card-hero .jz-card-title {
		font-size: 1.35rem;
	}
	.jz-cat-layout {
		grid-template-columns: 1fr;
	}
}
