/*
Theme Name: Zaytouna Organization Theme
Theme URI: https://zaitoonaquran.org.ly/
Author: Zaitoona Organization Development Team
Author URI: https://zaitoonaquran.org.ly/
Description: قالب ووردبريس رسمي مستقل وخفيف وسريع لمنظمة الزيتونة لنشر القرآن الكريم — مبني بالكامل بمعيار Zero Build Step وصفر jQuery ودعم RTL أصيل، ومتوافق 100% مع منظومة إضافات الزيتونة (Visual Blocks, Library Hub, Video Hub, Gallery Hub).
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zaitoona-theme
Tags: rtl-language-support, custom-logo, custom-menu, featured-images, full-width-template, threaded-comments
*/

/* ==========================================================================
   1. Design Tokens & Clean Modern Reset (Zero Legacy Bloat)
   ========================================================================== */

:root {
	--zq-olive-950: #151f0d;
	--zq-olive-900: #1d2912;
	--zq-olive-800: #2D3D1E;
	--zq-olive-700: #364924;
	--zq-olive-600: #3f5729;
	--zq-olive-100: #eef2e8;
	--zq-gold-600: #8a6a28;
	--zq-gold-500: #b38e46;
	--zq-gold-400: #c5a059;
	--zq-gold-200: #ead9b4;
	--zq-gold-100: #f7f0de;
	--zq-cream: #F7F5EE;
	--zq-surface: #ffffff;
	--zq-text: #1e241b;
	--zq-text-muted: #4b5546;
	--zq-border: rgba(45, 61, 30, 0.14);
	--zq-radius: 12px;
	--zq-container-max: 1280px;
	--zq-page-max: 1140px;
	--zq-reading-max: 980px;
	--zq-font: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	line-height: 1.75;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	overflow-x: clip;
}

body {
	margin: 0;
	padding: 0;
	background-color: var(--zq-cream);
	color: var(--zq-text);
	font-family: var(--zq-font);
	font-size: 1rem;
	line-height: 1.8;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video,
canvas {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--zq-olive-800);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

a:hover {
	color: var(--zq-gold-600);
}

:focus-visible {
	outline: 2.5px solid var(--zq-gold-400);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.zt-skip-link {
	position: fixed;
	top: -100px;
	inset-inline-start: 1rem;
	z-index: 100000;
	padding: 0.65rem 1.25rem;
	border-radius: 0.5rem;
	background-color: var(--zq-olive-900);
	color: #ffffff;
	border: 2px solid var(--zq-gold-400);
	font-weight: 700;
	text-decoration: none;
}

.zt-skip-link:focus {
	top: 1rem;
	color: #ffffff;
}

.zt-container {
	width: 94%;
	max-width: var(--zq-container-max);
	margin-inline: auto;
}

.zt-page-container {
	width: 94%;
	max-width: var(--zq-page-max);
	margin-inline: auto;
}

.zt-reading-container {
	width: 94%;
	max-width: var(--zq-reading-max);
	margin-inline: auto;
}

#main-content.zt-site-content {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	min-height: 55vh;
}

/* ==========================================================================
   2. Site Header: Top Bar + Central Branding + Sticky Olive Navbar
   ========================================================================== */

.zt-header {
	width: 100%;
	background-color: var(--zq-surface);
	position: relative;
	z-index: 900;
}

/* 2.1 Top Utility Bar — Calm Cream (`#F7F5EE`) + Subtle Border (`#e5e0d3`) + Olive Text */
.zt-topbar {
	background-color: #F7F5EE;
	color: #2D3D1E;
	border-bottom: 1px solid #e5e0d3;
	font-size: 0.84rem;
}

.zt-topbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.25rem;
	min-height: 42px;
	padding-block: 0.35rem;
}

.zt-topbar__start {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1rem;
}

.zt-topbar__date {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: #2D3D1E;
	font-weight: 700;
}

.zt-topbar__date svg {
	color: #9e7b32;
	flex: 0 0 auto;
}

.zt-topbar__divider {
	width: 1px;
	height: 15px;
	background-color: #d8d1c0;
	display: inline-block;
}

.zt-top-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1.05rem;
}

.zt-top-menu li {
	margin: 0;
}

.zt-top-menu a {
	color: #2D3D1E;
	text-decoration: none;
	font-weight: 600;
	padding-block: 0.2rem;
	transition: color 150ms ease;
}

.zt-top-menu a:hover,
.zt-top-menu li.current-menu-item > a {
	color: #8a6a28;
}

.zt-topbar__end {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.zt-top-search {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0;
}

.zt-top-search__input {
	width: 210px;
	height: 32px;
	padding: 0.25rem 0.85rem;
	padding-inline-end: 2.15rem;
	border-radius: 999px;
	border: 1px solid #d9d2c2;
	background-color: #ffffff;
	color: #2D3D1E;
	font-family: inherit;
	font-size: 0.82rem;
	transition: width 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.zt-top-search__input::placeholder {
	color: #70786a;
}

.zt-top-search__input:focus {
	outline: none;
	width: 250px;
	border-color: #c5a059;
	box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

.zt-top-search__btn {
	position: absolute;
	inset-inline-end: 0.4rem;
	top: 50%;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #2D3D1E;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: color 150ms ease;
}

.zt-top-search__btn:hover {
	color: #8a6a28;
}

@media (max-width: 820px) {
	.zt-topbar .zt-top-menu,
	.zt-topbar .zt-topbar__divider,
	.zt-topbar .zt-top-search {
		display: none;
	}

	.zt-topbar__inner {
		justify-content: center;
	}
}

/* 2.2 Spacious Centered Brand Banner (`#ffffff`, `padding: 18px 0`, `max-height: 195px`) */
.zt-branding,
.zt-brand-banner {
	background-color: #ffffff;
	padding: 18px 0;
}

.zt-branding__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.zt-brand-link,
.custom-logo-link {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	text-decoration: none;
	color: #2D3D1E;
	max-width: 100%;
}

.custom-logo,
.zt-brand-logo,
.zt-brand-link img,
.zt-brand-banner img {
	display: block;
	width: auto !important;
	height: auto !important;
	max-height: 195px !important;
	max-width: min(560px, 90vw) !important;
	object-fit: contain;
	margin-inline: auto;
	transition: transform 200ms ease;
}

.zt-brand-link:hover .zt-brand-logo,
.custom-logo-link:hover .custom-logo {
	transform: scale(1.015);
}

.zt-brand-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.zt-brand-title {
	margin: 0;
	font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem);
	font-weight: 800;
	line-height: 1.3;
	color: #2D3D1E;
}

.zt-brand-tagline {
	margin: 0.2rem 0 0;
	font-size: clamp(0.82rem, 0.78rem + 0.2vw, 0.94rem);
	font-weight: 600;
	color: #8a6a28;
}

@media (max-width: 768px) {
	.zt-branding,
	.zt-brand-banner {
		padding: 14px 0;
	}

	.custom-logo,
	.zt-brand-logo,
	.zt-brand-link img,
	.zt-brand-banner img {
		max-height: 130px !important;
		max-width: 84vw !important;
	}
}

/* 2.3 Executive Sticky Deep Olive Primary Navigation Bar (`#2D3D1E` + `3px solid #c5a059`) */
.zt-navbar {
	position: sticky;
	top: 0;
	z-index: 950;
	background-color: #2D3D1E;
	border-top: 1px solid rgba(197, 160, 89, 0.25);
	border-bottom: 3px solid #c5a059;
	box-shadow: 0 6px 20px rgba(21, 31, 13, 0.16);
}

body.admin-bar .zt-navbar {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .zt-navbar {
		top: 0;
	}
}

.zt-navbar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	gap: 1rem;
}

.zt-primary-nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
}

.zt-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
}

.zt-menu > li {
	position: relative;
	margin: 0;
}

.zt-menu > li > a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-height: 56px;
	padding: 0.5rem 1.2rem;
	color: #ffffff;
	font-family: var(--zq-font);
	font-size: 0.98rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-decoration: none;
	position: relative;
	transition: background-color 160ms ease, color 160ms ease;
}

.zt-menu > li.menu-item-has-children > a::after {
	content: '▾';
	font-size: 0.76rem;
	color: #c5a059;
	margin-inline-start: 0.22rem;
}

.zt-menu > li:hover > a,
.zt-menu > li:focus-within > a,
.zt-menu > li.current-menu-item > a,
.zt-menu > li.current-menu-ancestor > a {
	background-color: rgba(197, 160, 89, 0.18);
	color: #f5dfb0;
}

.zt-menu > li:hover > a::before,
.zt-menu > li.current-menu-item > a::before,
.zt-menu > li.current-menu-ancestor > a::before {
	content: '';
	position: absolute;
	bottom: 0;
	inset-inline: 0.7rem;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background-color: #c5a059;
}

/* Desktop Dropdown Sub-menus */
.zt-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0.45rem 0;
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	min-width: 230px;
	background-color: var(--zq-olive-900);
	border: 1px solid rgba(197, 160, 89, 0.45);
	border-top: 3px solid var(--zq-gold-400);
	border-radius: 0 0 0.65rem 0.65rem;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
	z-index: 980;
}

.zt-menu li:hover > .sub-menu,
.zt-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.zt-menu .sub-menu li {
	position: relative;
	margin: 0;
}

.zt-menu .sub-menu a {
	display: block;
	padding: 0.55rem 1.1rem;
	color: rgba(247, 245, 238, 0.92);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(197, 160, 89, 0.12);
}

.zt-menu .sub-menu li:last-child > a {
	border-bottom: 0;
}

.zt-menu .sub-menu a:hover,
.zt-menu .sub-menu li.current-menu-item > a {
	background-color: rgba(197, 160, 89, 0.22);
	color: #ffffff;
}

.zt-menu .sub-menu .sub-menu {
	top: 0;
	inset-inline-start: 100%;
	border-radius: 0.65rem;
}

/* Mobile Navbar Controls */
.zt-mobile-bar {
	display: none;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.zt-burger-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.45rem 0.9rem;
	border-radius: 0.55rem;
	border: 1.5px solid rgba(197, 160, 89, 0.65);
	background: rgba(197, 160, 89, 0.14);
	color: #ffffff;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
}

.zt-burger-btn:hover {
	background-color: var(--zq-gold-400);
	color: var(--zq-olive-950);
}

.zt-mobile-bar__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 38px;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	background-color: var(--zq-gold-400);
	color: var(--zq-olive-950);
	font-size: 0.82rem;
	font-weight: 800;
	text-decoration: none;
}

@media (max-width: 960px) {
	.zt-primary-nav {
		display: none;
	}

	.zt-mobile-bar {
		display: flex;
	}
}

/* 2.4 Slide-Out Mobile Drawer */
.zt-drawer-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1990;
	background: rgba(15, 22, 9, 0.62);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.zt-drawer-backdrop[hidden] {
	display: none !important;
}

.zt-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	inset-inline-start: 0;
	z-index: 2000;
	width: min(86vw, 340px);
	background: linear-gradient(180deg, var(--zq-olive-900) 0%, var(--zq-olive-950) 100%);
	color: #ffffff;
	border-inline-end: 3px solid var(--zq-gold-400);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	transform: translateX(0);
	transition: transform 220ms ease;
}

.zt-drawer[hidden] {
	display: none !important;
}

.zt-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1rem 1.15rem;
	border-bottom: 1px solid rgba(197, 160, 89, 0.28);
}

.zt-drawer__title {
	font-size: 1rem;
	font-weight: 800;
	color: var(--zq-gold-200);
}

.zt-drawer__close {
	min-width: 40px;
	min-height: 40px;
	border-radius: 0.5rem;
	border: 1px solid rgba(197, 160, 89, 0.5);
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.zt-drawer__search {
	padding: 0.95rem 1.15rem;
	border-bottom: 1px solid rgba(197, 160, 89, 0.18);
}

.zt-drawer__search form {
	display: flex;
	gap: 0.45rem;
	margin: 0;
}

.zt-drawer__search input {
	flex: 1 1 auto;
	min-height: 40px;
	padding: 0.45rem 0.8rem;
	border-radius: 0.5rem;
	border: 1px solid rgba(197, 160, 89, 0.4);
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	font-family: inherit;
	font-size: 0.9rem;
}

.zt-drawer__search input::placeholder {
	color: rgba(247, 245, 238, 0.65);
}

.zt-drawer__search button {
	min-height: 40px;
	padding: 0.45rem 0.9rem;
	border-radius: 0.5rem;
	border: 0;
	background-color: var(--zq-gold-400);
	color: var(--zq-olive-950);
	font-family: inherit;
	font-weight: 800;
	cursor: pointer;
}

.zt-drawer-menu {
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
}

.zt-drawer-menu li {
	margin: 0;
	border-bottom: 1px solid rgba(197, 160, 89, 0.12);
}

.zt-drawer-item-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.zt-drawer-menu a {
	flex: 1 1 auto;
	display: block;
	padding: 0.78rem 1.15rem;
	color: rgba(247, 245, 238, 0.95);
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
}

.zt-drawer-menu a:hover,
.zt-drawer-menu li.current-menu-item > a,
.zt-drawer-menu li.current-menu-item > .zt-drawer-item-row > a {
	color: var(--zq-gold-400);
	background: rgba(197, 160, 89, 0.1);
}

.zt-submenu-toggle {
	min-width: 44px;
	min-height: 44px;
	border: 0;
	border-inline-start: 1px solid rgba(197, 160, 89, 0.15);
	background: transparent;
	color: var(--zq-gold-400);
	font-size: 0.95rem;
	cursor: pointer;
	transition: transform 160ms ease;
}

.zt-submenu-toggle[aria-expanded="true"] {
	transform: rotate(180deg);
}

.zt-drawer-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0 0.85rem 0.45rem 0;
	background: rgba(0, 0, 0, 0.22);
}

.zt-drawer-menu .sub-menu[hidden] {
	display: none !important;
}

.zt-drawer-menu .sub-menu a {
	padding: 0.6rem 1.15rem;
	font-size: 0.88rem;
	font-weight: 600;
}

.zt-drawer__secondary {
	margin-top: auto;
	padding: 1rem 1.15rem 1.35rem;
	border-top: 1px solid rgba(197, 160, 89, 0.22);
}

.zt-drawer__sec-label {
	display: block;
	margin-bottom: 0.55rem;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--zq-gold-400);
}

.zt-drawer-top-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.zt-drawer-top-links a {
	display: inline-block;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	background: rgba(197, 160, 89, 0.15);
	border: 1px solid rgba(197, 160, 89, 0.35);
	color: var(--zq-gold-200);
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
}

/* ==========================================================================
   3. Page, Single, Archive, & 404 Templates
   ========================================================================== */

/* 3.1 Full-Width Zaitoona Blocks Page (Zero Margin/Container Restriction) */
.zt-fullwidth-main,
.zt-fullwidth-article {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

/* 3.2 Standard Boxed Content Page (`max-width: 1140px`) */
.zt-page-banner {
	background: linear-gradient(135deg, var(--zq-olive-900) 0%, var(--zq-olive-800) 56%, var(--zq-olive-700) 100%);
	border-bottom: 4px solid var(--zq-gold-400);
	padding: clamp(2rem, 4.2vw, 3.1rem) 0;
	color: #ffffff;
	text-align: center;
}

.zt-page-banner__badge {
	display: inline-block;
	margin-bottom: 0.6rem;
	padding: 0.25rem 0.95rem;
	border-radius: 999px;
	background: rgba(197, 160, 89, 0.18);
	border: 1px solid rgba(197, 160, 89, 0.55);
	color: var(--zq-gold-200);
	font-size: 0.82rem;
	font-weight: 700;
}

.zt-page-banner__title {
	margin: 0;
	font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.4rem);
	font-weight: 800;
	line-height: 1.35;
	color: #ffffff;
}

.zt-page-banner__desc {
	margin: 0.65rem auto 0;
	max-width: 65ch;
	color: rgba(247, 245, 238, 0.9);
	font-size: 1rem;
}

.zt-boxed-section {
	padding-block: clamp(2rem, 4vw, 3.25rem);
}

.zt-boxed-card {
	background-color: var(--zq-surface);
	border: 1px solid var(--zq-border);
	border-top: 4px solid var(--zq-gold-400);
	border-radius: var(--zq-radius);
	padding: clamp(1.5rem, 3.8vw, 2.75rem);
	box-shadow: 0 10px 28px rgba(29, 41, 18, 0.06);
}

/* Rich Typography inside Pages & Posts */
.zt-prose {
	font-size: 1.125rem;
	line-height: 1.95;
	color: var(--zq-text);
	overflow-wrap: break-word;
}

.zt-prose > *:first-child {
	margin-top: 0;
}

.zt-prose > *:last-child {
	margin-bottom: 0;
}

.zt-prose h2,
.zt-prose h3,
.zt-prose h4 {
	color: var(--zq-olive-800);
	font-weight: 800;
	line-height: 1.4;
	margin: 1.85rem 0 0.8rem;
}

.zt-prose h2 {
	font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.65rem);
	padding-bottom: 0.35rem;
	border-bottom: 2px solid rgba(197, 160, 89, 0.35);
}

.zt-prose p {
	margin: 0 0 1.3rem;
}

.zt-prose blockquote {
	margin: 1.5rem 0;
	padding: 1.1rem 1.35rem;
	border-inline-start: 4px solid var(--zq-gold-400);
	background-color: var(--zq-cream);
	border-radius: 0.65rem;
	color: var(--zq-olive-800);
	font-weight: 600;
}

.zt-prose img,
.zt-prose video,
.zt-prose iframe,
.zt-prose figure {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

.zt-prose .alignwide,
.zt-prose .alignfull {
	max-width: 100%;
}

/* 3.3 Archive & Blog Cards Grid (`index.php` & `archive.php`) */
.zt-cards-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.4rem;
}

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

@media (min-width: 980px) {
	.zt-cards-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.zt-card {
	background-color: var(--zq-surface);
	border: 1px solid var(--zq-border);
	border-bottom: 3px solid var(--zq-gold-400);
	border-radius: var(--zq-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 6px 20px rgba(29, 41, 18, 0.05);
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.zt-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(29, 41, 18, 0.12);
}

.zt-card__media {
	position: relative;
	display: block;
	width: 100%;
	min-height: 200px;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(135deg, var(--zq-olive-900) 0%, var(--zq-olive-800) 60%, var(--zq-olive-700) 100%);
	text-decoration: none;
}

.zt-card__img {
	width: 100%;
	height: 100%;
	min-height: 200px;
	object-fit: cover;
	display: block;
}

.zt-card__fallback {
	width: 100%;
	height: 100%;
	min-height: 200px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 1rem;
	color: var(--zq-gold-200);
}

.zt-card__fallback-ring {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	padding: 0.45rem;
	background-color: var(--zq-cream);
	border: 2.5px solid var(--zq-gold-400);
	display: flex;
	align-items: center;
	justify-content: center;
}

.zt-card__fallback-ring img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.zt-card__badge {
	position: absolute;
	top: 0.75rem;
	inset-inline-start: 0.75rem;
	padding: 0.22rem 0.7rem;
	border-radius: 999px;
	background: rgba(29, 41, 18, 0.86);
	border: 1px solid rgba(197, 160, 89, 0.65);
	color: var(--zq-gold-200);
	font-size: 0.75rem;
	font-weight: 700;
}

.zt-card__body {
	padding: 1.15rem 1.25rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1 1 auto;
}

.zt-card__date {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--zq-gold-600);
}

.zt-card__title {
	margin: 0;
	font-size: 1.08rem;
	font-weight: 700;
	line-height: 1.5;
}

.zt-card__title a {
	color: var(--zq-olive-800);
	text-decoration: none;
}

.zt-card__title a:hover {
	color: var(--zq-gold-600);
}

.zt-card__excerpt {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.75;
	color: var(--zq-text-muted);
}

.zt-card__foot {
	margin-top: auto;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(45, 61, 30, 0.08);
}

.zt-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--zq-olive-800);
	text-decoration: none;
}

/* Pagination */
.zt-pagination {
	margin-top: 2.25rem;
}

.zt-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
}

.zt-pagination .page-numbers {
	min-width: 42px;
	min-height: 42px;
	padding: 0.4rem 0.85rem;
	border-radius: 0.6rem;
	border: 1.5px solid rgba(45, 61, 30, 0.2);
	background-color: var(--zq-surface);
	color: var(--zq-olive-800);
	font-weight: 700;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.zt-pagination .page-numbers.current {
	background-color: var(--zq-olive-800);
	border-color: var(--zq-gold-400);
	color: #ffffff;
}

.zt-pagination a.page-numbers:hover {
	background-color: rgba(197, 160, 89, 0.22);
	border-color: var(--zq-gold-400);
}

/* 3.4 Editorial Single Post (`single.php`) */
.zt-single-hero {
	background: linear-gradient(135deg, var(--zq-olive-900) 0%, var(--zq-olive-800) 56%, var(--zq-olive-700) 100%);
	border-bottom: 4px solid var(--zq-gold-400);
	padding: clamp(2rem, 4.5vw, 3.25rem) 0;
	color: #ffffff;
}

.zt-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.85rem;
	color: rgba(247, 245, 238, 0.78);
	margin-bottom: 0.95rem;
}

.zt-breadcrumb a {
	color: var(--zq-gold-200);
	text-decoration: none;
}

.zt-breadcrumb a:hover {
	color: #ffffff;
	text-decoration: underline;
}

.zt-single-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.8rem 1.2rem;
	margin-bottom: 0.85rem;
}

.zt-cat-pill {
	display: inline-flex;
	padding: 0.26rem 0.9rem;
	border-radius: 999px;
	background-color: var(--zq-gold-400);
	color: var(--zq-olive-950);
	font-size: 0.82rem;
	font-weight: 800;
	text-decoration: none;
}

.zt-cat-pill:hover {
	background-color: var(--zq-cream);
	color: var(--zq-olive-800);
}

.zt-single-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.88rem;
	color: rgba(247, 245, 238, 0.9);
}

.zt-single-title {
	margin: 0;
	font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.45rem);
	font-weight: 800;
	line-height: 1.45;
	color: #ffffff;
}

.zt-single-body {
	padding-block: clamp(1.75rem, 3.8vw, 2.75rem);
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

.zt-featured-frame {
	margin: 0;
	width: 100%;
	max-height: 480px;
	border-radius: 14px;
	overflow: hidden;
	border: 2px solid rgba(197, 160, 89, 0.55);
	box-shadow: 0 14px 34px rgba(29, 41, 18, 0.14);
}

.zt-featured-frame img {
	display: block;
	width: 100%;
	max-height: 480px;
	object-fit: cover;
}

.zt-share-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	background-color: var(--zq-surface);
	border: 1px solid var(--zq-border);
	border-radius: var(--zq-radius);
	padding: 1.1rem 1.35rem;
}

.zt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 44px;
	padding: 0.55rem 1.35rem;
	border-radius: 0.65rem;
	border: 1.5px solid var(--zq-olive-800);
	background-color: var(--zq-olive-800);
	color: #ffffff;
	font-family: inherit;
	font-size: 0.94rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.zt-btn:hover {
	background-color: var(--zq-gold-400);
	border-color: var(--zq-gold-400);
	color: var(--zq-olive-950);
}

.zt-btn--gold {
	background-color: var(--zq-gold-400);
	border-color: var(--zq-gold-400);
	color: var(--zq-olive-950);
}

.zt-btn--gold:hover {
	background-color: #ffffff;
	border-color: #ffffff;
	color: var(--zq-olive-800);
}

.zt-btn--outline {
	background-color: var(--zq-cream);
	border-color: rgba(45, 61, 30, 0.25);
	color: var(--zq-olive-800);
	min-height: 40px;
	padding: 0.45rem 0.95rem;
	font-size: 0.86rem;
}

.zt-btn--outline.is-copied {
	background-color: var(--zq-olive-800);
	border-color: var(--zq-olive-800);
	color: var(--zq-gold-200);
}

.zt-share-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.zt-related-sec {
	padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.75rem, 5vw, 4rem);
	border-top: 1px solid var(--zq-border);
}

.zt-section-heading {
	margin: 0 0 1.4rem;
	padding-inline-start: 0.85rem;
	border-inline-start: 4px solid var(--zq-gold-400);
	font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.7rem);
	font-weight: 800;
	color: var(--zq-olive-800);
}

/* 3.5 404 Error Page (`404.php`) */
.zt-404 {
	padding: clamp(3rem, 7vw, 5.5rem) 0;
	text-align: center;
}

.zt-404__card {
	max-width: 680px;
	margin-inline: auto;
	background-color: var(--zq-surface);
	border: 1px solid var(--zq-border);
	border-top: 5px solid var(--zq-gold-400);
	border-radius: 16px;
	padding: clamp(2rem, 5vw, 3.25rem);
	box-shadow: 0 14px 36px rgba(29, 41, 18, 0.08);
}

.zt-404__code {
	display: inline-block;
	padding: 0.3rem 1.1rem;
	border-radius: 999px;
	background-color: var(--zq-gold-100);
	color: var(--zq-gold-600);
	font-size: 0.95rem;
	font-weight: 800;
	margin-bottom: 0.75rem;
}

.zt-404__title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.55rem, 1.25rem + 1.1vw, 2.15rem);
	font-weight: 800;
	color: var(--zq-olive-800);
}

.zt-404__desc {
	margin: 0 0 1.5rem;
	color: var(--zq-text-muted);
}

.zt-404__search {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	max-width: 460px;
	margin: 0 auto 1.5rem;
}

.zt-404__search input {
	flex: 1 1 220px;
	min-height: 44px;
	padding: 0.5rem 0.95rem;
	border-radius: 0.65rem;
	border: 1.5px solid rgba(45, 61, 30, 0.22);
	background-color: var(--zq-cream);
	font-family: inherit;
	font-size: 0.95rem;
}

.zt-404__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
}

/* ==========================================================================
   4. Site Footer (Responsive 3-Column Deep Olive & Gold)
   ========================================================================== */

.zt-footer {
	background: linear-gradient(180deg, var(--zq-olive-800) 0%, var(--zq-olive-950) 100%);
	color: rgba(247, 245, 238, 0.88);
	border-top: 4px solid var(--zq-gold-400);
	margin-top: auto;
}

.zt-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.25rem;
	padding-block: clamp(2.5rem, 5vw, 3.75rem);
}

@media (min-width: 860px) {
	.zt-footer__grid {
		grid-template-columns: 1.25fr 0.95fr 1fr;
		gap: 2.75rem;
	}
}

.zt-footer__brand {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin-bottom: 1rem;
}

.zt-footer__logo-ring {
	flex: 0 0 auto;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	padding: 0.4rem;
	background-color: var(--zq-cream);
	border: 2px solid var(--zq-gold-400);
	display: flex;
	align-items: center;
	justify-content: center;
}

.zt-footer__logo-ring img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.zt-footer__org-name {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 800;
	color: #ffffff;
}

.zt-footer__about {
	margin: 0 0 1.25rem;
	font-size: 0.93rem;
	line-height: 1.85;
	color: rgba(247, 245, 238, 0.82);
}

.zt-footer__heading {
	margin: 0 0 1.1rem;
	padding-bottom: 0.45rem;
	border-bottom: 2px solid rgba(197, 160, 89, 0.35);
	font-size: 1.08rem;
	font-weight: 800;
	color: var(--zq-gold-200);
}

.zt-footer__links,
.zt-footer__contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.zt-footer__links a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: rgba(247, 245, 238, 0.88);
	font-size: 0.93rem;
	font-weight: 600;
	text-decoration: none;
}

.zt-footer__links a::before {
	content: '‹';
	color: var(--zq-gold-400);
	font-weight: 800;
}

.zt-footer__links a:hover {
	color: var(--zq-gold-400);
}

.zt-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-size: 0.93rem;
	color: rgba(247, 245, 238, 0.9);
}

.zt-footer__contact svg {
	flex: 0 0 auto;
	margin-top: 0.25rem;
	color: var(--zq-gold-400);
}

.zt-footer__contact a {
	color: var(--zq-gold-200);
	font-weight: 700;
	text-decoration: none;
}

.zt-footer__contact a:hover {
	color: #ffffff;
	text-decoration: underline;
}

.zt-footer__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.zt-social-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 38px;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	background: rgba(197, 160, 89, 0.16);
	border: 1px solid rgba(197, 160, 89, 0.48);
	color: var(--zq-gold-200);
	font-size: 0.84rem;
	font-weight: 700;
	text-decoration: none;
}

.zt-social-pill:hover {
	background-color: var(--zq-gold-400);
	border-color: var(--zq-gold-400);
	color: var(--zq-olive-950);
}

.zt-footer__bottom {
	background-color: rgba(10, 16, 6, 0.45);
	border-top: 1px solid rgba(197, 160, 89, 0.2);
	padding-block: 1rem;
	font-size: 0.86rem;
}

.zt-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.zt-footer__copy {
	margin: 0;
	color: rgba(247, 245, 238, 0.78);
}

/* Floating Scroll-to-Top Button */
.zt-to-top {
	position: fixed;
	bottom: 1.35rem;
	inset-inline-start: 1.35rem;
	z-index: 880;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid var(--zq-gold-400);
	background-color: var(--zq-olive-800);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, background-color 150ms ease;
}

.zt-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.zt-to-top:hover {
	background-color: var(--zq-gold-400);
	color: var(--zq-olive-950);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
