/**
 * استایل اصلی قالب هیات مذهبی
 * حالت عادی: سبز سنتی ایرانی + جزئیات طلایی
 */

:root {
	--h-bg: #f7f4ec;
	--h-surface: #ffffff;
	--h-surface-2: #f1ecdd;
	--h-ink: #26231c;
	--h-muted: #6e6754;
	--h-green: #0d5c46;
	--h-green-2: #0a4a38;
	--h-green-soft: #e4efe6;
	--h-gold: #b8912f;
	--h-gold-2: #97751f;
	--h-gold-soft: #f5ebcf;
	--h-line: #e4dcc6;
	--h-shadow: 0 10px 30px rgba(38, 35, 28, 0.08);
	--h-radius: 14px;
	--h-accent: #0d5c46;
	--h-accent-ink: #ffffff;
	--h-header-grad: linear-gradient(135deg, #0b4d38, #0d5c46 55%, #12705a);
	--h-topbar-bg: #093d2d;
	--h-hero-overlay: linear-gradient(180deg, rgba(5, 34, 25, 0.82), rgba(5, 34, 25, 0.58) 55%, rgba(247, 244, 236, 0.99));
	--h-star: rgba(255, 255, 255, 0.1);
	--h-font: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
	--h-font-display: 'Amiri', 'Vazirmatn', serif;
}

/* ---------- پایه ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { direction: rtl; }

body {
	margin: 0;
	background: var(--h-bg);
	color: var(--h-ink);
	font-family: var(--h-font);
	font-size: 15.5px;
	line-height: 1.9;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--h-accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--h-gold-2); }

h1, h2, h3, h4 { line-height: 1.5; margin: 0 0 0.5em; }

.heyat-container {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 20px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	clip: rect(0 0 0 0); clip-path: inset(50%);
	overflow: hidden; white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 8px; right: 8px;
	z-index: 100000;
	width: auto; height: auto;
	clip: auto; clip-path: none;
	background: var(--h-surface);
	color: var(--h-accent);
	padding: 10px 18px;
	border-radius: 8px;
	box-shadow: var(--h-shadow);
}

::selection { background: var(--h-gold); color: #fff; }

/* ---------- سربرگ ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 900;
}

.topbar {
	background: var(--h-topbar-bg);
	color: rgba(255, 255, 255, 0.85);
	font-size: 12.5px;
}

.topbar-inner {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 34px;
}

.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-item .ico { width: 13px; height: 13px; fill: currentColor; opacity: 0.8; }
.topbar-spacer { flex: 1; }

.topbar-social { display: inline-flex; align-items: center; gap: 4px; }
.topbar-social a {
	display: inline-flex;
	width: 24px; height: 24px;
	align-items: center; justify-content: center;
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.85);
	transition: background 0.2s ease, color 0.2s ease;
}
.topbar-social a:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.topbar-social svg { width: 14px; height: 14px; fill: currentColor; }

.mainbar {
	background: var(--h-header-grad);
	box-shadow: 0 2px 14px rgba(9, 61, 45, 0.35);
	transition: box-shadow 0.25s ease;
}

.mainbar.is-stuck { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28); }

.mainbar-inner {
	display: flex;
	align-items: center;
	gap: 26px;
	min-height: 76px;
}

.site-branding { display: flex; align-items: center; }

.heyat-logo-default,
.custom-logo-link { display: inline-flex; align-items: center; gap: 12px; }

.custom-logo-link img { max-height: 58px; width: auto; }

.heyat-logo-mark svg { width: 46px; height: 46px; color: var(--h-gold); }

.heyat-logo-text { display: flex; flex-direction: column; line-height: 1.45; }
.heyat-logo-name {
	color: #fff;
	font-weight: 800;
	font-size: 21px;
	letter-spacing: 0.2px;
}
.heyat-logo-slogan {
	color: rgba(255, 255, 255, 0.72);
	font-size: 11.5px;
}

.main-navigation { margin-inline-start: auto; }

.primary-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0; padding: 0;
}

.primary-menu li { position: relative; }

.primary-menu a {
	display: block;
	color: rgba(255, 255, 255, 0.92);
	font-size: 14.5px;
	font-weight: 500;
	padding: 10px 14px;
	border-radius: 10px;
	transition: background 0.2s ease, color 0.2s ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.primary-menu .menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 7px; height: 7px;
	margin-inline-start: 6px;
	border-inline-end: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-3px);
}

.primary-menu .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	min-width: 200px;
	background: var(--h-surface);
	border-radius: 12px;
	box-shadow: var(--h-shadow);
	padding: 8px;
	margin: 0;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all 0.22s ease;
	z-index: 50;
}

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

.primary-menu .sub-menu a { color: var(--h-ink); padding: 9px 12px; font-size: 13.5px; }
.primary-menu .sub-menu a:hover { background: var(--h-green-soft); color: var(--h-green); }

.nav-toggle {
	display: none;
	margin-inline-start: auto;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 10px;
	width: 44px; height: 40px;
	cursor: pointer;
	padding: 9px 10px;
	flex-direction: column;
	justify-content: space-between;
}
.nav-toggle span { display: block; height: 2.5px; background: #fff; border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

/* ---------- بنر مناسبت ---------- */
.occasion-banner { position: relative; z-index: 5; }

.occasion-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-block: 13px;
}

.occasion-celebration {
	background: linear-gradient(120deg, #0e6b45, #149962 60%, #c79a2a 160%);
	color: #fff;
	border-bottom: 3px solid var(--h-gold);
}

.occasion-mourning {
	background: linear-gradient(120deg, #0b0b0b, #1c1c1c 70%);
	color: #efe9df;
	border-bottom: 3px solid #b3251f;
}

.occasion-deco { flex: 0 0 auto; }
.occasion-deco svg { width: 34px; height: 34px; color: currentColor; }
.occasion-celebration .occasion-deco svg { color: #ffd876; }
.occasion-mourning .occasion-deco svg { color: #b3251f; }

.occasion-text { display: flex; flex-direction: column; gap: 1px; }
.occasion-title {
	font-family: var(--h-font-display);
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0.2px;
}
.occasion-mourning .occasion-title { font-size: 20px; color: #f0b8b4; }
.occasion-msg { font-size: 12.5px; opacity: 0.88; }
.occasion-hijri { opacity: 0.75; margin-inline-start: 8px; }

/* ---------- هیرو ---------- */
.hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 18% 22%, var(--h-star) 0 2px, transparent 3px),
		radial-gradient(circle at 74% 12%, var(--h-star) 0 2px, transparent 3px),
		radial-gradient(circle at 48% 34%, var(--h-star) 0 1.5px, transparent 2.5px),
		linear-gradient(180deg, #0a4a36, #0d5c46);
	color: #fff;
	text-align: center;
	padding: 74px 0 0;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 50% 120%, rgba(184, 145, 47, 0.35), transparent 55%);
	pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; max-width: 820px; padding-bottom: 88px; }

.hero-kicker {
	font-family: var(--h-font-display);
	color: #f4d47c;
	font-size: 19px;
	margin: 0 0 10px;
	letter-spacing: 0.4px;
}

.hero-title {
	font-size: clamp(26px, 4.6vw, 44px);
	font-weight: 800;
	margin: 0 0 12px;
	text-shadow: 0 3px 22px rgba(0, 0, 0, 0.35);
}

.hero-sub {
	color: rgba(255, 255, 255, 0.85);
	font-size: 16px;
	max-width: 640px;
	margin: 0 auto 26px;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
	display: inline-block;
	padding: 11px 26px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14.5px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
	background: linear-gradient(135deg, var(--h-gold), #d3a94a);
	color: #241c05;
	box-shadow: 0 8px 20px rgba(184, 145, 47, 0.4);
}
.btn-primary:hover { color: #241c05; }

.btn-ghost {
	border: 1.5px solid rgba(255, 255, 255, 0.55);
	color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.hero-skyline {
	display: block;
	width: 100%;
	height: 190px;
	color: #06392a;
	position: relative;
	z-index: 1;
}

/* ---------- سرتیتر بخش‌ها ---------- */
.front-section { padding: 54px 0; }
.front-news { padding-top: 8px; }

.section-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 28px;
}

.section-title {
	font-size: 22px;
	font-weight: 800;
	margin: 0;
	color: var(--h-green);
	white-space: nowrap;
}

.section-orn {
	flex: 1;
	height: 10px;
	background:
		radial-gradient(circle at 50% 50%, var(--h-gold) 0 2.5px, transparent 3px) 0 0 / 14px 4px repeat-x;
	opacity: 0.6;
}

.section-more {
	font-size: 13px;
	font-weight: 700;
	color: var(--h-gold-2);
	white-space: nowrap;
	border-bottom: 1.5px dashed currentColor;
	padding-bottom: 2px;
}

/* ---------- کارت خبر ---------- */
.cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.card {
	background: var(--h-surface);
	border: 1px solid var(--h-line);
	border-radius: var(--h-radius);
	overflow: hidden;
	box-shadow: var(--h-shadow);
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(38, 35, 28, 0.14); }

.card-thumb-link { display: block; aspect-ratio: 640 / 420; overflow: hidden; background: var(--h-surface-2); }
.card-thumb-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-thumb-link img { transform: scale(1.05); }

.card-thumb-placeholder {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	color: var(--h-green);
	background:
		radial-gradient(circle at 20% 25%, rgba(184, 145, 47, 0.14) 0 3px, transparent 4px) 0 0 / 34px 34px,
		radial-gradient(circle at 75% 70%, rgba(13, 92, 70, 0.12) 0 3px, transparent 4px) 0 0 / 34px 34px,
		var(--h-surface-2);
}
.card-thumb-placeholder svg { width: 74px; height: 74px; }

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

.card-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 11.5px;
	color: var(--h-muted);
	margin-bottom: 8px;
}

.card-cats { display: inline-flex; gap: 6px; }
.card-cat {
	background: var(--h-green-soft);
	color: var(--h-green);
	font-weight: 700;
	padding: 2.5px 10px;
	border-radius: 999px;
}
.card-cat:hover { background: var(--h-green); color: #fff; }

.card-title { font-size: 16.5px; font-weight: 700; margin: 0 0 8px; }
.card-title a { color: var(--h-ink); }
.card-title a:hover { color: var(--h-green); }

.card-excerpt { color: var(--h-muted); font-size: 13.5px; margin: 0 0 14px; }

.card-more {
	margin-top: auto;
	font-size: 13px;
	font-weight: 700;
	color: var(--h-green);
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.card-more:hover { color: var(--h-gold-2); }

/* ---------- کارت آلبوم ---------- */
.album-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.album-card {
	background: var(--h-surface);
	border: 1px solid var(--h-line);
	border-radius: var(--h-radius);
	overflow: hidden;
	box-shadow: var(--h-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.album-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(38, 35, 28, 0.14); }

.album-cover {
	position: relative;
	display: block;
	aspect-ratio: 640 / 420;
	overflow: hidden;
	background: var(--h-surface-2);
}
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.album-card:hover .album-cover img { transform: scale(1.06); }

.album-cover-placeholder {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	color: var(--h-gold);
	background: var(--h-green-soft);
}
.album-cover-placeholder svg { width: 64px; height: 64px; }

.album-count {
	position: absolute;
	bottom: 10px;
	inset-inline-start: 10px;
	background: rgba(10, 40, 30, 0.78);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 11px;
	border-radius: 999px;
	backdrop-filter: blur(3px);
}

.album-body { padding: 13px 16px 15px; }
.album-title { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.album-title a { color: var(--h-ink); }
.album-title a:hover { color: var(--h-green); }
.album-date { font-size: 11.5px; color: var(--h-muted); }

/* ---------- برنامه هفتگی ---------- */
.front-programs {
	background:
		radial-gradient(circle at 12% 80%, rgba(184, 145, 47, 0.1) 0 3px, transparent 4px) 0 0 / 40px 40px,
		var(--h-surface-2);
}

.program-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.program-card {
	position: relative;
	background: var(--h-surface);
	border: 1px solid var(--h-line);
	border-inline-start: 4px solid var(--h-gold);
	border-radius: 12px;
	padding: 16px 18px;
	box-shadow: var(--h-shadow);
}

.program-card.is-today {
	border-inline-start-color: var(--h-green);
	background: linear-gradient(135deg, var(--h-green-soft), var(--h-surface));
}

.program-day {
	display: inline-block;
	font-weight: 800;
	color: var(--h-green);
	font-size: 15px;
	margin-bottom: 6px;
}

.program-today-badge {
	position: absolute;
	top: 14px;
	inset-inline-end: 14px;
	background: var(--h-green);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	padding: 2px 10px;
	border-radius: 999px;
}

.program-text { margin: 0; font-size: 13.5px; color: var(--h-muted); white-space: normal; }

.program-list { display: flex; flex-direction: column; gap: 14px; max-width: 860px; }

.program-row {
	display: grid;
	grid-template-columns: 170px 1fr;
	background: var(--h-surface);
	border: 1px solid var(--h-line);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--h-shadow);
}
.program-row.is-today { border-color: var(--h-green); }

.program-row-day {
	background: var(--h-green-soft);
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 18px;
	font-weight: 800;
	color: var(--h-green);
	flex-wrap: wrap;
}
.program-row.is-today .program-row-day { background: var(--h-green); color: #fff; }
.program-row.is-today .program-today-badge { position: static; }
.program-row-body { padding: 14px 18px; font-size: 14px; color: var(--h-muted); }

/* ---------- تماس ---------- */
.front-contact { padding-bottom: 64px; }

.contact-inner {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 30px;
	background: var(--h-header-grad);
	border-radius: 18px;
	padding: 36px 38px;
	color: #fff;
	box-shadow: var(--h-shadow);
	position: relative;
	overflow: hidden;
}
.contact-inner::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.09) 0 3px, transparent 4px) 0 0 / 30px 30px;
	pointer-events: none;
}

.contact-text .section-title { color: #f4d47c; }
.contact-text p { color: rgba(255, 255, 255, 0.85); margin: 0; }

.contact-box {
	position: relative;
	z-index: 1;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 14px;
	padding: 20px 24px;
	font-size: 14px;
}
.contact-box p { margin: 0 0 10px; }
.contact-box p:last-child { margin-bottom: 0; }
.contact-box strong { color: #f4d47c; }

/* ---------- صفحه‌بندی ---------- */
.heyat-container nav.pagination,
.pagination { margin: 30px 0; text-align: center; }

.nav-links { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

.page-numbers {
	display: inline-block;
	min-width: 38px;
	padding: 8px 12px;
	background: var(--h-surface);
	border: 1px solid var(--h-line);
	border-radius: 10px;
	color: var(--h-ink);
	font-size: 13.5px;
	font-weight: 700;
	transition: all 0.2s ease;
}
.page-numbers.current { background: var(--h-green); border-color: var(--h-green); color: #fff; }
.page-numbers:hover:not(.current) { border-color: var(--h-green); color: var(--h-green); }

/* ---------- چیدمان صفحات ---------- */
.page-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 30px;
	padding-block: 34px 56px;
	align-items: start;
}

.content-area { min-width: 0; }

.archive-head {
	background: var(--h-surface);
	border: 1px solid var(--h-line);
	border-radius: var(--h-radius);
	padding: 22px 26px;
	margin-bottom: 24px;
	box-shadow: var(--h-shadow);
	position: relative;
	overflow: hidden;
}
.archive-head::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 0; bottom: 0;
	width: 5px;
	background: linear-gradient(180deg, var(--h-green), var(--h-gold));
}

.page-title { font-size: 21px; font-weight: 800; color: var(--h-green); margin: 0 0 4px; }
.archive-sub { color: var(--h-muted); font-size: 13.5px; margin: 0; }
.archive-sub p { margin: 0; }

/* ---------- نوشته تک ---------- */
.single-post,
.page-article {
	background: var(--h-surface);
	border: 1px solid var(--h-line);
	border-radius: var(--h-radius);
	padding: 28px 30px 30px;
	box-shadow: var(--h-shadow);
}

.entry-header { margin-bottom: 18px; }
.entry-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 12px;
	color: var(--h-muted);
	margin-bottom: 10px;
}
.entry-title { font-size: 24px; font-weight: 800; color: var(--h-ink); margin: 0; }

.entry-thumb {
	margin: 0 0 22px;
	border-radius: 12px;
	overflow: hidden;
}
.entry-thumb img { width: 100%; display: block; }

.entry-content { font-size: 15.5px; }
.entry-content > p { margin: 0 0 1.1em; }
.entry-content h2, .entry-content h3 { color: var(--h-green); margin-top: 1.4em; }
.entry-content blockquote {
	margin: 1.2em 0;
	padding: 14px 20px;
	background: var(--h-green-soft);
	border-inline-start: 4px solid var(--h-green);
	border-radius: 10px;
	font-family: var(--h-font-display);
	font-size: 17px;
	color: var(--h-green-2);
}
.entry-content img, .entry-content .wp-block-image img { border-radius: 12px; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content a { border-bottom: 1px dashed currentColor; }

.entry-tags { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--h-line); font-size: 13px; color: var(--h-muted); }
.tags-label { font-weight: 700; color: var(--h-green); }

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 22px;
}
.post-nav-item a {
	display: block;
	background: var(--h-surface);
	border: 1px solid var(--h-line);
	border-radius: 12px;
	padding: 14px 18px;
	font-size: 13px;
	color: var(--h-muted);
	box-shadow: var(--h-shadow);
	transition: border-color 0.2s ease, color 0.2s ease;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.post-nav-item a:hover { border-color: var(--h-green); color: var(--h-green); }
.post-nav-next { text-align: left; }

.breadcrumb { margin: 18px 0 0; font-size: 13px; }
.breadcrumb a { color: var(--h-muted); }
.breadcrumb a:hover { color: var(--h-green); }

/* ---------- سایدبار ---------- */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }

.widget {
	background: var(--h-surface);
	border: 1px solid var(--h-line);
	border-radius: var(--h-radius);
	padding: 20px 22px;
	box-shadow: var(--h-shadow);
}

.widget-title {
	position: relative;
	font-size: 15.5px;
	font-weight: 800;
	color: var(--h-green);
	margin: 0 0 14px;
	padding-bottom: 10px;
}
.widget-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	inset-inline-start: 0;
	width: 46px; height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--h-gold), transparent);
}

.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding-block: 7px; border-bottom: 1px dashed var(--h-line); font-size: 13.5px; }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--h-ink); }
.widget li a:hover { color: var(--h-green); }

.widget-posts a { display: block; font-weight: 500; }
.widget-post-date { font-size: 11px; color: var(--h-muted); }
.widget-cats li { display: flex; justify-content: space-between; align-items: center; }

.sidebar-occasion {
	background: linear-gradient(135deg, var(--h-green-soft), var(--h-surface));
}
.occasion-date { font-size: 12px; color: var(--h-muted); margin: 0 0 8px; }
.occasion-name { font-weight: 700; font-size: 14.5px; color: var(--h-ink); margin: 0 0 10px; }
.occasion-plain { font-weight: 500; color: var(--h-muted); }

.mode-chip {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 12px;
	border-radius: 999px;
}
.mode-chip.mode-celebration { background: var(--h-green); color: #fff; }
.mode-chip.mode-mourning { background: #b3251f; color: #fff; }

.sidebar-program .program-day-name { font-weight: 800; color: var(--h-green); margin: 0 0 6px; }
.sidebar-program .program-text { margin: 0; font-size: 13.5px; color: var(--h-muted); }

/* ---------- گالری و لایت‌باکس ---------- */
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
	background: var(--h-surface);
	border: 1px solid var(--h-line);
	color: var(--h-muted);
	font-size: 12.5px;
	font-weight: 700;
	padding: 6px 16px;
	border-radius: 999px;
	transition: all 0.2s ease;
}
.chip:hover, .chip.is-active { background: var(--h-green); border-color: var(--h-green); color: #fff; }

.album-single .entry-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.lightbox-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin-top: 20px;
}
.lightbox-item {
	display: block;
	aspect-ratio: 1;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--h-line);
}
.lightbox-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.lightbox-item:hover img { transform: scale(1.07); }

.hlb {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(8, 8, 8, 0.92);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 30px;
}
.hlb.is-open { display: flex; }
.hlb img {
	max-width: min(1100px, 92vw);
	max-height: 84vh;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.hlb-caption {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 13px;
	background: rgba(0, 0, 0, 0.55);
	padding: 6px 16px;
	border-radius: 999px;
	max-width: 80vw;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.hlb-btn {
	position: absolute;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
	width: 44px; height: 44px;
	border-radius: 50%;
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	font-size: 20px;
	transition: background 0.2s ease;
}
.hlb-btn:hover { background: rgba(255, 255, 255, 0.28); }
.hlb-close { top: 22px; inset-inline-start: 22px; }
.hlb-prev { inset-inline-start: 22px; top: 50%; transform: translateY(-50%); }
.hlb-next { inset-inline-end: 22px; top: 50%; transform: translateY(-50%); }

/* ---------- حالت خالی ---------- */
.empty-state {
	background: var(--h-surface);
	border: 1.5px dashed var(--h-line);
	border-radius: var(--h-radius);
	padding: 44px 26px;
	text-align: center;
	color: var(--h-muted);
	max-width: 680px;
	margin-inline: auto;
}
.front-empty { text-align: center; color: var(--h-muted); background: var(--h-surface); border: 1.5px dashed var(--h-line); border-radius: var(--h-radius); padding: 34px; }
.empty-state .search-form { margin-top: 18px; }

.error-404 { padding-block: 40px 70px; }
.notfound-dome { width: 110px; height: 110px; color: var(--h-green); margin-bottom: 8px; }
.notfound-search { max-width: 420px; margin: 18px auto 0; }

/* ---------- فرم‌ها ---------- */
.search-form { display: flex; gap: 8px; }

.search-field,
.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="url"],
.entry-content textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	background: var(--h-bg);
	border: 1.5px solid var(--h-line);
	border-radius: 10px;
	padding: 11px 14px;
	font-family: var(--h-font);
	font-size: 14px;
	color: var(--h-ink);
	transition: border-color 0.2s ease;
}
.search-field:focus, .comment-form textarea:focus, .comment-form input:focus { outline: none; border-color: var(--h-green); }

.search-submit {
	flex: 0 0 auto;
	width: 46px;
	border: 0;
	border-radius: 10px;
	background: var(--h-green);
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: background 0.2s ease;
}
.search-submit svg { width: 17px; height: 17px; fill: #fff; }
.search-submit:hover { background: var(--h-green-2); }

.comment-form p { margin: 0 0 14px; }
.comment-form label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--h-ink); }
.comment-form .submit,
.entry-content .wp-block-button__link {
	background: var(--h-green);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 11px 30px;
	font-family: var(--h-font);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease;
}
.comment-form .submit:hover { background: var(--h-green-2); }

.comments-area { margin-top: 26px; background: var(--h-surface); border: 1px solid var(--h-line); border-radius: var(--h-radius); padding: 24px 26px; box-shadow: var(--h-shadow); }
.comments-title { font-size: 17px; color: var(--h-green); }
.comment-list { list-style: none; padding: 0; margin: 0 0 22px; }
.comment-list .comment { border-bottom: 1px dashed var(--h-line); padding: 14px 0; }
.comment-list .children { list-style: none; padding-inline-start: 26px; }
.comment-author img { border-radius: 50%; margin-inline-end: 8px; vertical-align: middle; }
.comment-metadata { font-size: 11.5px; color: var(--h-muted); }
.comment-content { font-size: 14px; margin-top: 6px; }
.reply a { font-size: 12px; font-weight: 700; }
.no-comments { color: var(--h-muted); }

/* ---------- درباره هیات ---------- */
.about-head { text-align: center; padding-block: 30px; }
.about-head::before { display: none; }
.about-mark svg { width: 64px; height: 64px; color: var(--h-gold); }
.about-info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	margin-top: 26px;
}
.about-info-card {
	background: var(--h-surface);
	border: 1px solid var(--h-line);
	border-radius: var(--h-radius);
	padding: 20px 24px;
	box-shadow: var(--h-shadow);
}
.about-info-card h3 { font-size: 15px; color: var(--h-green); margin-bottom: 10px; }
.about-info-card p, .about-info-card li { font-size: 13.5px; color: var(--h-muted); margin: 0; }
.about-info-card ul { list-style: none; padding: 0; margin: 0; }
.about-info-card li { padding-block: 5px; }

/* ---------- پاورقی ---------- */
.site-footer {
	margin-top: 40px;
	background: linear-gradient(180deg, #0a4231, #072e22);
	color: rgba(255, 255, 255, 0.82);
	position: relative;
}

.footer-pattern {
	height: 8px;
	background:
		radial-gradient(circle at 50% 50%, var(--h-gold) 0 3px, transparent 4px) 0 0 / 26px 8px repeat-x;
	opacity: 0.7;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1.2fr;
	gap: 34px;
	padding-block: 38px 30px;
}

.footer-brand .heyat-logo-name { font-size: 18px; }
.footer-brand .heyat-logo-slogan { font-size: 11px; }
.footer-brand .heyat-logo-mark svg { width: 40px; height: 40px; }
.footer-desc { font-size: 13px; color: rgba(255, 255, 255, 0.68); margin: 12px 0 14px; }

.footer-title { font-size: 15px; color: #f4d47c; margin-bottom: 14px; }

.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { padding-block: 5px; font-size: 13.5px; }
.footer-menu a { color: rgba(255, 255, 255, 0.8); }
.footer-menu a:hover { color: #f4d47c; }

.footer-contact-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.footer-contact-list li { padding-block: 5px; }
.fc-label { color: #f4d47c; font-weight: 700; margin-inline-end: 6px; }

.footer-social { display: flex; gap: 8px; }
.footer-social a {
	display: inline-flex;
	width: 36px; height: 36px;
	align-items: center; justify-content: center;
	background: rgba(255, 255, 255, 0.09);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	color: #fff;
	transition: background 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover { background: var(--h-gold); transform: translateY(-3px); color: #241c05; }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 14px; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- انیمیشن ---------- */
.h-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.h-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
	.h-reveal { opacity: 1; transform: none; transition: none; }
	* { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 1080px) {
	.cards-grid { grid-template-columns: repeat(2, 1fr); }
	.album-grid { grid-template-columns: repeat(3, 1fr); }
	.lightbox-grid { grid-template-columns: repeat(3, 1fr); }
	.page-layout { grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 900px) {
	.page-layout { grid-template-columns: 1fr; }
	.sidebar { position: static; }
	.program-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }

	.nav-toggle { display: flex; }
	.main-navigation {
		position: absolute;
		top: 100%;
		inset-inline: 0;
		background: var(--h-green-2);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
		box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
	}
	.main-navigation.is-open { max-height: 70vh; overflow-y: auto; }
	.primary-menu { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 18px; }
	.primary-menu a { padding: 12px 10px; border-radius: 8px; }
	.primary-menu .sub-menu {
		position: static;
		opacity: 1; visibility: visible; transform: none;
		background: rgba(0, 0, 0, 0.18);
		box-shadow: none;
		margin-bottom: 8px;
		display: none;
	}
	.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }
	.primary-menu .sub-menu a { color: rgba(255, 255, 255, 0.85); }

	.hero { padding-top: 54px; }
	.hero-inner { padding-bottom: 70px; }
}

@media (max-width: 640px) {
	body { font-size: 15px; }
	.topbar-hijri { display: none; }
	.cards-grid { grid-template-columns: 1fr; }
	.album-grid { grid-template-columns: repeat(2, 1fr); }
	.lightbox-grid { grid-template-columns: repeat(2, 1fr); }
	.program-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 26px; }
	.post-nav { grid-template-columns: 1fr; }
	.program-row { grid-template-columns: 1fr; }
	.contact-inner { grid-template-columns: 1fr; padding: 26px 22px; }
	.section-title { white-space: normal; font-size: 19px; }
	.occasion-title { font-size: 16px; }
	.occasion-msg { display: none; }
	.mainbar-inner { min-height: 66px; }
	.heyat-logo-name { font-size: 17px; }
	.heyat-logo-slogan { display: none; }
}

@media (max-width: 420px) {
	.album-grid { grid-template-columns: 1fr; }
}
