/*
Theme Name: فن العبارات
Theme URI: https://wordsfn.com
Author: Hussain Al-Malki
Author URI: https://wordsfn.com
Description: ثيم فن العبارات — عربي بالكامل، بدون سايدبار، مُحسَّن للسيو والأداء
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: wordsfn
Tags: arabic, rtl, blog, no-sidebar, full-width
*/

/* ════════════════════════════════════════════
   VARIABLES
════════════════════════════════════════════ */
:root {
	--ivory:   #faf6ef;
	--ivory2:  #f3ede2;
	--ivory3:  #e8dfd0;
	--ink:     #1a1410;
	--ink2:    #2e2520;
	--ink3:    #4a3f35;
	--muted:   #8a7d72;
	--rust:    #8b3a2a;
	--rust2:   #a94535;
	--rust3:   #c45a3f;
	--rustlt:  #f5ece9;
	--gold:    #b8892a;
	--border:  #d8cfc4;
	--border2: #c8bdb1;
	--ff-h:    'Amiri', serif;
	--ff-b:    'Cairo', sans-serif;
}

/* ════════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════════ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
	background: var(--ivory);
	color: var(--ink);
	font-family: var(--ff-b);
	font-size: 16px;
	line-height: 1.7;
	direction: rtl;
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--rust); }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* ════════════════════════════════════════════
   HEADER
════════════════════════════════════════════ */
.site-header {
	background: var(--ink2);
	border-bottom: 2px solid var(--rust);
	position: sticky;
	top: 0;
	z-index: 200;
	box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 40px;
	height: 64px;
}

/* ── LOGO ── */
.site-logo a {
	display: flex;
	align-items: baseline;
	gap: 10px;
	text-decoration: none;
}
.logo-name {
	font-family: var(--ff-h);
	font-size: 2rem;
	font-weight: 700;
	color: #faf6ef;
	line-height: 1;
}
.logo-dot { color: var(--rust3); }
.logo-tagline {
	font-family: var(--ff-b);
	font-size: 11px;
	font-weight: 300;
	color: var(--muted);
	letter-spacing: 0.12em;
}

/* ── HEADER SEARCH ── */
.header-search {
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(255,255,255,0.07);
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 6px;
	padding: 7px 14px;
	width: 220px;
	transition: border-color .2s;
}
.header-search:focus-within { border-color: rgba(196,90,63,0.6); }
.header-search input {
	background: none;
	border: none;
	outline: none;
	font-family: var(--ff-b);
	font-size: 13px;
	color: #e8dfd0;
	width: 100%;
	direction: rtl;
}
.header-search input::placeholder { color: var(--muted); }
.header-search button {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	color: var(--muted);
	display: flex;
	align-items: center;
	transition: color .2s;
}
.header-search button:hover { color: var(--rust3); }

/* ── MAIN NAV ── */
.main-nav {
	background: var(--ink);
	border-top: 1px solid rgba(255,255,255,0.05);
}
.main-nav ul {
	display: flex;
	align-items: center;
	padding: 0 40px;
	list-style: none;
	margin: 0;
}
.main-nav ul li a {
	display: block;
	padding: 12px 18px;
	font-family: var(--ff-b);
	font-size: 14px;
	font-weight: 400;
	color: #c8bdb1;
	transition: color .2s;
	border-bottom: 2px solid transparent;
	position: relative;
	top: 1px;
	text-decoration: none;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a,
.main-nav ul li.current-menu-ancestor > a {
	color: #faf6ef;
	border-bottom-color: var(--rust3);
}

/* ── MOBILE TOGGLE ── */
.menu-toggle {
	display: none;
	background: none;
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: 5px;
	padding: 6px 10px;
	cursor: pointer;
	color: #e8dfd0;
	font-size: 18px;
}
.mobile-menu {
	display: none;
	background: var(--ink);
	border-top: 1px solid rgba(255,255,255,0.07);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { padding: 10px 20px; }
.mobile-menu ul li a {
	display: block;
	padding: 10px 0;
	font-size: 15px;
	color: #c8bdb1;
	border-bottom: 1px solid rgba(255,255,255,0.05);
	text-decoration: none;
}
.mobile-menu ul li a:hover { color: #faf6ef; }

/* ════════════════════════════════════════════
   BREADCRUMB
════════════════════════════════════════════ */
.breadcrumb-bar {
	background: var(--ivory2);
	border-bottom: 1px solid var(--border);
	padding: 10px 40px;
}
.breadcrumb-inner {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--muted);
	flex-wrap: wrap;
}
.breadcrumb-inner a { color: var(--rust); }
.breadcrumb-inner a:hover { text-decoration: underline; }
.bc-sep { color: var(--border2); }

/* ════════════════════════════════════════════
   HOME — HERO
════════════════════════════════════════════ */
.hero-section {
	background: linear-gradient(160deg, var(--ink2) 0%, #2a1e17 100%);
	padding: 44px 40px 50px;
	position: relative;
	overflow: hidden;
}
.hero-section::before {
	content: '❝';
	font-family: var(--ff-h);
	font-size: 380px;
	font-weight: 700;
	color: rgba(139,58,42,0.07);
	position: absolute;
	top: -80px;
	left: -20px;
	line-height: 1;
	pointer-events: none;
	user-select: none;
}

.hero-label {
	display: inline-block;
	background: var(--rust);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 4px 14px;
	border-radius: 3px;
	margin-bottom: 20px;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 50px;
	align-items: start;
}

.hero-post-cat {
	display: inline-block;
	background: rgba(139,58,42,0.3);
	color: var(--rust3);
	padding: 3px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 14px;
}
.hero-post-title {
	font-family: var(--ff-h);
	font-size: 2.5rem;
	font-weight: 700;
	color: #faf6ef;
	line-height: 1.5;
	margin-bottom: 14px;
	text-decoration: none;
	display: block;
}
.hero-post-title:hover { color: var(--ivory3); }
.hero-excerpt {
	font-size: 15px;
	color: #b8a99a;
	line-height: 1.85;
	margin-bottom: 22px;
	max-width: 580px;
}
.hero-meta {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 13px;
	color: var(--muted);
}
.hero-read-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--rust);
	color: #fff;
	font-family: var(--ff-b);
	font-size: 14px;
	font-weight: 700;
	padding: 10px 24px;
	border-radius: 6px;
	margin-top: 22px;
	transition: background .2s;
	text-decoration: none;
}
.hero-read-btn:hover { background: var(--rust2); color: #fff; }

/* ── HERO SIDEBAR (TOP POSTS) ── */
.hero-trending-title {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.15em;
	color: var(--muted);
	margin-bottom: 14px;
	text-transform: uppercase;
}
.trending-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 0;
	border-bottom: 1px solid rgba(255,255,255,0.07);
}
.trending-item:last-child { border-bottom: none; }
.trending-num {
	font-family: var(--ff-h);
	font-size: 2rem;
	font-weight: 700;
	color: rgba(139,58,42,0.35);
	line-height: 1;
	flex-shrink: 0;
	width: 32px;
}
.trending-post-title {
	font-family: var(--ff-h);
	font-size: 1.1rem;
	color: #d8cfc4;
	line-height: 1.55;
	text-decoration: none;
	display: block;
}
.trending-post-title:hover { color: #faf6ef; }
.trending-cat {
	font-size: 11px;
	color: var(--rust3);
	margin-top: 4px;
	font-weight: 700;
}

/* ════════════════════════════════════════════
   HOME — CATEGORIES STRIP
════════════════════════════════════════════ */
.cats-section {
	background: var(--ivory2);
	border-top: 3px solid var(--rust);
	border-bottom: 1px solid var(--border);
	padding: 28px 40px;
}
.cats-section-title {
	font-family: var(--ff-h);
	font-size: 1.2rem;
	color: var(--ink3);
	margin-bottom: 18px;
	display: flex;
	align-items: center;
	gap: 12px;
}
.cats-section-title::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--border);
}
.cats-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 10px;
}
.cat-card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 8px;
	border-top: 3px solid transparent;
	padding: 16px 12px;
	text-align: center;
	text-decoration: none;
	display: block;
	transition: all .2s;
}
.cat-card:hover {
	border-top-color: var(--rust);
	box-shadow: 0 4px 16px rgba(139,58,42,0.08);
	transform: translateY(-2px);
	color: inherit;
}
.cat-card-icon {
	font-family: var(--ff-h);
	font-size: 22px;
	margin-bottom: 8px;
	display: block;
	line-height: 1;
}
.cat-card-name {
	font-family: var(--ff-b);
	font-size: 13px;
	font-weight: 600;
	color: var(--ink3);
	display: block;
	line-height: 1.3;
}
.cat-card-count {
	font-size: 11px;
	color: var(--muted);
	margin-top: 4px;
	display: block;
}

/* ════════════════════════════════════════════
   SECTION HEADER
════════════════════════════════════════════ */
.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}
.section-title {
	font-family: var(--ff-h);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--ink2);
	display: flex;
	align-items: center;
	gap: 10px;
}
.section-title::before {
	content: '';
	width: 4px;
	height: 24px;
	background: var(--rust);
	border-radius: 2px;
	display: inline-block;
	flex-shrink: 0;
}
.section-more {
	font-size: 13px;
	color: var(--rust);
	font-weight: 700;
	border: 1px solid var(--rust);
	border-radius: 20px;
	padding: 4px 16px;
	transition: all .2s;
	text-decoration: none;
}
.section-more:hover { background: var(--rust); color: #fff; }

/* ════════════════════════════════════════════
   POSTS GRID
════════════════════════════════════════════ */
.posts-section { padding: 40px; }

.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.posts-grid.two-col { grid-template-columns: repeat(2, 1fr); }

/* ── POST CARD ── */
.post-card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 10px;
	overflow: hidden;
	transition: all .25s;
	display: flex;
	flex-direction: column;
}
.post-card:hover {
	box-shadow: 0 8px 32px rgba(26,20,16,0.1);
	transform: translateY(-3px);
}

.post-card-thumb {
	position: relative;
	height: 180px;
	overflow: hidden;
	background: var(--ivory3);
}
.post-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s;
}
.post-card:hover .post-card-thumb img { transform: scale(1.04); }

.post-card-thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.thumb-quote {
	font-family: var(--ff-h);
	font-size: 5rem;
	color: rgba(139,58,42,0.14);
	line-height: 1;
	user-select: none;
}

.post-card-cat-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: var(--rust);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 3px;
	letter-spacing: 0.03em;
	text-decoration: none;
}
.post-card-cat-badge:hover { background: var(--rust2); color: #fff; }

.post-card-body {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.post-card-title {
	font-family: var(--ff-h);
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--ink2);
	line-height: 1.55;
	margin-bottom: 10px;
	text-decoration: none;
	display: block;
}
.post-card-title:hover { color: var(--rust); }

.post-card-excerpt {
	font-size: 13.5px;
	color: var(--ink3);
	line-height: 1.75;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 14px;
	flex: 1;
}
.post-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
	color: var(--muted);
	border-top: 1px solid var(--ivory3);
	padding-top: 12px;
	margin-top: auto;
}

/* ── LARGE CARD (first post on home) ── */
.post-card.is-large .post-card-thumb { height: 240px; }
.post-card.is-large .post-card-title { font-size: 1.45rem; }
.post-card.is-large .post-card-excerpt { -webkit-line-clamp: 4; }

/* ════════════════════════════════════════════
   QUOTE DIVIDER
════════════════════════════════════════════ */
.quote-divider {
	background: var(--ink2);
	padding: 50px 40px;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.quote-divider::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--rust), var(--gold), var(--rust), transparent);
}
.quote-divider-text {
	font-family: var(--ff-h);
	font-size: 1.9rem;
	font-style: italic;
	color: #e8dfd0;
	line-height: 1.7;
	max-width: 700px;
	margin: 0 auto 14px;
}
.quote-divider-author {
	font-size: 14px;
	color: var(--muted);
	font-weight: 300;
}

/* ════════════════════════════════════════════
   SINGLE POST
════════════════════════════════════════════ */
.single-wrap {
	max-width: 800px;
	margin: 0 auto;
	padding: 40px 20px 60px;
}

/* ── POST HEADER ── */
.post-header { margin-bottom: 28px; }
.post-cat-link {
	display: inline-block;
	background: var(--rustlt);
	color: var(--rust2);
	font-size: 12px;
	font-weight: 700;
	padding: 4px 14px;
	border-radius: 4px;
	margin-bottom: 14px;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: background .2s;
}
.post-cat-link:hover { background: var(--rust); color: #fff; }
.post-title {
	font-family: var(--ff-h);
	font-size: 2.4rem;
	font-weight: 700;
	color: var(--ink);
	line-height: 1.5;
	margin-bottom: 18px;
}
.post-info {
	display: flex;
	align-items: center;
	gap: 18px;
	font-size: 13px;
	color: var(--muted);
	flex-wrap: wrap;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--border);
}
.post-info-sep { color: var(--border2); }
.post-share-quick {
	display: flex;
	gap: 8px;
	margin-right: auto;
}
.share-btn-sm {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all .2s;
	color: var(--muted);
	font-size: 13px;
}
.share-btn-sm:hover { border-color: var(--rust); color: var(--rust); }

/* ── FEATURED IMAGE ── */
.post-featured-img {
	width: 100%;
	height: 380px;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 32px;
	background: var(--ivory3);
	display: flex;
	align-items: center;
	justify-content: center;
}
.post-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.post-featured-quote {
	font-family: var(--ff-h);
	font-size: 8rem;
	color: rgba(139,58,42,0.12);
	line-height: 1;
	user-select: none;
}

/* ── POST CONTENT ── */
.post-content {
	font-family: var(--ff-b);
	font-size: 17px;
	line-height: 2;
	color: var(--ink3);
}
.post-content p { margin-bottom: 22px; }
.post-content h2 {
	font-family: var(--ff-h);
	font-size: 1.65rem;
	font-weight: 700;
	color: var(--ink2);
	margin: 36px 0 16px;
	padding-right: 16px;
	border-right: 3px solid var(--rust);
}
.post-content h3 {
	font-family: var(--ff-h);
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--ink2);
	margin: 28px 0 12px;
}
.post-content blockquote {
	background: var(--ivory2);
	border-right: 4px solid var(--gold);
	padding: 20px 24px;
	border-radius: 0 8px 8px 0;
	margin: 28px 0;
	font-family: var(--ff-h);
	font-size: 1.15rem;
	font-style: italic;
	color: var(--ink2);
	line-height: 1.85;
}
.post-content ul, .post-content ol {
	padding-right: 24px;
	margin-bottom: 20px;
}
.post-content li {
	margin-bottom: 8px;
	list-style: disc;
}
.post-content ol li { list-style: decimal; }
.post-content a { color: var(--rust); text-decoration: underline; }
.post-content img { border-radius: 8px; margin: 20px 0; }
.post-content strong { color: var(--ink2); font-weight: 700; }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
.post-content th, .post-content td {
	border: 1px solid var(--border);
	padding: 10px 14px;
	text-align: right;
}
.post-content th {
	background: var(--ivory2);
	font-weight: 700;
	color: var(--ink2);
}
.post-content code {
	background: var(--ivory2);
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 14px;
	direction: ltr;
	display: inline-block;
}

/* ── COPY BOX SHORTCODE ── */
.wf-copy-box {
	background: var(--ivory2);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 22px;
	margin: 28px 0;
}
.wf-copy-box-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}
.wf-copy-box-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--ink3);
}
.wf-copy-btn {
	background: var(--rust);
	color: #fff;
	border: none;
	font-family: var(--ff-b);
	font-size: 13px;
	font-weight: 700;
	padding: 6px 18px;
	border-radius: 20px;
	cursor: pointer;
	transition: background .2s;
}
.wf-copy-btn:hover { background: var(--rust2); }
.wf-copy-btn.copied { background: #2e7d32; }
.wf-copy-text {
	font-family: var(--ff-h);
	font-size: 1.1rem;
	color: var(--ink2);
	line-height: 1.9;
	direction: rtl;
}

/* ── TAGS ── */
.post-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 32px 0 24px;
}
.tag-pill {
	background: var(--ivory2);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 4px 14px;
	font-size: 13px;
	color: var(--ink3);
	font-weight: 600;
	text-decoration: none;
	transition: all .2s;
}
.tag-pill:hover { border-color: var(--rust); color: var(--rust); }

/* ── SHARE BAR ── */
.post-share-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	background: var(--ivory2);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 16px 20px;
	margin-bottom: 32px;
}
.share-bar-label {
	font-size: 14px;
	font-weight: 700;
	color: var(--ink3);
}
.share-social { display: flex; gap: 8px; flex-wrap: wrap; }
.share-social a {
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 700;
	border: 1px solid var(--border);
	background: #fff;
	color: var(--ink3);
	text-decoration: none;
	transition: all .2s;
}
.share-social a.wa:hover  { background: #25d366; color: #fff; border-color: #25d366; }
.share-social a.tw:hover  { background: #000; color: #fff; border-color: #000; }
.share-social a.tg:hover  { background: #0088cc; color: #fff; border-color: #0088cc; }
.share-copy-btn {
	padding: 6px 16px;
	border-radius: 20px;
	font-family: var(--ff-b);
	font-size: 13px;
	font-weight: 700;
	border: 1px solid var(--border);
	background: #fff;
	color: var(--ink3);
	cursor: pointer;
	transition: all .2s;
}
.share-copy-btn:hover { background: var(--rust); color: #fff; border-color: var(--rust); }

/* ── RELATED POSTS ── */
.related-posts {
	background: var(--ivory2);
	border-top: 1px solid var(--border);
	padding: 36px 40px 40px;
}
.related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 20px;
}
.related-card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 16px;
	text-decoration: none;
	display: block;
	transition: all .2s;
}
.related-card:hover {
	border-color: var(--rust3);
	box-shadow: 0 4px 12px rgba(139,58,42,0.08);
	transform: translateY(-2px);
}
.related-cat { font-size: 11px; color: var(--rust); font-weight: 700; margin-bottom: 6px; }
.related-title {
	font-family: var(--ff-h);
	font-size: 1.05rem;
	color: var(--ink2);
	line-height: 1.55;
}

/* ════════════════════════════════════════════
   ARCHIVE / CATEGORY
════════════════════════════════════════════ */
.archive-header {
	background: var(--ink2);
	padding: 36px 40px;
	border-bottom: 3px solid var(--rust);
}
.archive-header-label {
	font-size: 12px;
	color: var(--muted);
	letter-spacing: 0.1em;
	margin-bottom: 6px;
	text-transform: uppercase;
}
.archive-title {
	font-family: var(--ff-h);
	font-size: 2.2rem;
	font-weight: 700;
	color: #faf6ef;
	margin-bottom: 8px;
}
.archive-desc {
	font-size: 14px;
	color: #b8a99a;
	max-width: 560px;
	line-height: 1.75;
}
.archive-count {
	font-size: 13px;
	color: var(--muted);
	margin-top: 10px;
}
.archive-body { padding: 32px 40px; }

/* ════════════════════════════════════════════
   PAGINATION
════════════════════════════════════════════ */
.pagination-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 36px;
}
.pagination-wrap a,
.pagination-wrap span {
	width: 38px;
	height: 38px;
	border-radius: 6px;
	border: 1px solid var(--border);
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	color: var(--ink3);
	text-decoration: none;
	transition: all .2s;
}
.pagination-wrap a:hover { border-color: var(--rust); color: var(--rust); }
.pagination-wrap span.current { background: var(--rust); border-color: var(--rust); color: #fff; }
.pagination-wrap span.dots { border: none; background: none; cursor: default; }

/* ════════════════════════════════════════════
   404 & SEARCH
════════════════════════════════════════════ */
.error-page {
	text-align: center;
	padding: 80px 40px;
}
.error-code {
	font-family: var(--ff-h);
	font-size: 8rem;
	color: var(--ivory3);
	line-height: 1;
	margin-bottom: 0;
}
.error-title {
	font-family: var(--ff-h);
	font-size: 2rem;
	color: var(--ink2);
	margin-bottom: 14px;
}
.error-text { font-size: 15px; color: var(--muted); margin-bottom: 30px; }
.btn-primary {
	display: inline-block;
	background: var(--rust);
	color: #fff;
	font-family: var(--ff-b);
	font-size: 15px;
	font-weight: 700;
	padding: 12px 30px;
	border-radius: 8px;
	text-decoration: none;
	transition: background .2s;
}
.btn-primary:hover { background: var(--rust2); color: #fff; }

.search-header { background: var(--ivory2); padding: 30px 40px; border-bottom: 1px solid var(--border); }
.search-header h1 { font-family: var(--ff-h); font-size: 1.8rem; color: var(--ink2); }
.search-header p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.search-body { padding: 32px 40px; }
.no-results { text-align: center; padding: 60px 20px; }
.no-results p { font-size: 15px; color: var(--muted); }

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.site-footer {
	background: #141010;
	border-top: 3px solid var(--rust);
}

/* ── MAIN GRID ── */
.footer-main {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

/* ── يمين: الشعر ── */
.footer-quote-col {
	padding: 44px 44px 36px;
	border-left: 1px solid rgba(255,255,255,0.05);
}
.footer-logo {
	font-family: var(--ff-h);
	font-size: 1.75rem;
	font-weight: 700;
	color: #f0ead8;
	text-decoration: none;
	display: block;
	line-height: 1;
	margin-bottom: 24px;
}
.footer-logo:hover { color: #f0ead8; }
.footer-logo-dot { color: var(--rust3); }
.footer-poem {
	border-right: 2px solid rgba(196,90,63,0.28);
	padding-right: 18px;
	margin-bottom: 14px;
}
.footer-poem p {
	font-family: var(--ff-h);
	font-size: 1.05rem;
	font-style: italic;
	color: #8a7d72;
	line-height: 2;
	margin: 0;
}
.footer-poem-author {
	display: block;
	font-family: var(--ff-b);
	font-size: 12px;
	font-weight: 700;
	color: var(--rust3);
	font-style: normal;
	letter-spacing: 0.05em;
	padding-right: 20px;
}

/* ── يسار: سوشال + أقسام ── */
.footer-right-col {
	padding: 44px 44px 36px;
	display: flex;
	flex-direction: column;
	gap: 32px;
}
.footer-col-title {
	font-family: var(--ff-b);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.13em;
	color: var(--rust3);
	text-transform: uppercase;
	margin: 0 0 14px;
}

/* SOCIAL ROW */
.footer-social-row {
	display: flex;
	flex-direction: row;
	gap: 8px;
	flex-wrap: wrap;
}
.fsi {
	width: 38px;
	height: 38px;
	border-radius: 8px;
	border: 1px solid rgba(255,255,255,0.09);
	background: rgba(255,255,255,0.03);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6a5f55;
	text-decoration: none;
	flex-shrink: 0;
	transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.fsi:hover { transform: translateY(-2px); color: #fff; }
.fsi-fb:hover { background: #1877f2; border-color: #1877f2; }
.fsi-tw:hover { background: #111;    border-color: #333; }
.fsi-yt:hover { background: #ff0000; border-color: #ff0000; }
.fsi-ig:hover { background: #c13584; border-color: #c13584; }
.fsi-tg:hover { background: #0088cc; border-color: #0088cc; }

/* FOOTER NAV */
.footer-links {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.footer-links li a {
	font-family: var(--ff-b);
	font-size: 14px;
	color: #5a5048;
	text-decoration: none;
	transition: color .2s;
}
.footer-links li a:hover { color: #c0b4a8; }

/* ── BOTTOM ── */
.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 44px;
	border-top: 1px solid rgba(255,255,255,0.04);
	font-family: var(--ff-b);
	font-size: 12px;
	color: #342a24;
}
.footer-bottom a { color: #342a24; text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: var(--rust3); }
.footer-bottom-links { display: flex; align-items: center; gap: 10px; }
.footer-bottom-links span { color: #2a2018; }

/* ── WIDGETS ── */
.widget-area { display: flex; flex-direction: column; gap: 28px; }
.widget-title {
	font-family: var(--ff-h);
	font-size: 1.2rem;
	color: var(--ink2);
	margin-bottom: 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--rust);
}
.widget ul li { padding: 7px 0; border-bottom: 1px solid var(--ivory3); font-size: 14px; }
.widget ul li a { color: var(--ink3); text-decoration: none; }
.widget ul li a:hover { color: var(--rust); }

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 1024px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-side { display: none; }
	.cats-grid { grid-template-columns: repeat(4, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
	.header-top { padding: 0 20px; }
	.header-search { display: none; }
	.main-nav { display: none; }
	.menu-toggle { display: block; }
	.hero-section { padding: 30px 20px; }
	.hero-post-title { font-size: 1.8rem; }
	.cats-section { padding: 20px; }
	.cats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.posts-section { padding: 24px 20px; }
	.posts-grid { grid-template-columns: 1fr; }
	.posts-grid.two-col { grid-template-columns: 1fr; }
	.archive-header { padding: 24px 20px; }
	.archive-body { padding: 20px; }
	.breadcrumb-bar { padding: 10px 20px; }
	.single-wrap { padding: 24px 16px 40px; }
	.post-title { font-size: 1.8rem; }
	.post-content { font-size: 16px; }
	.post-featured-img { height: 240px; }
	.related-posts { padding: 28px 20px; }
	.related-grid { grid-template-columns: 1fr; }
	.footer-main { grid-template-columns: 1fr; }
	.footer-quote-col { padding: 32px 24px; border-left: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
	.footer-right-col { padding: 28px 24px; }
	.footer-bottom { flex-direction: column; gap: 8px; text-align: center; padding: 12px 20px; }
	.quote-divider { padding: 36px 20px; }
	.quote-divider-text { font-size: 1.4rem; }
}

@media (max-width: 480px) {
	.cats-grid { grid-template-columns: repeat(2, 1fr); }
	.section-title { font-size: 1.2rem; }
	.archive-title { font-size: 1.6rem; }
}
