/* ==========================================================================
   Shahrakkan Theme Styles — Arabic RTL
   ========================================================================== */

/* ── CSS Custom Properties ─────────────────────────────────────────────── */
:root {
	--color-primary: #21a148;
	--color-primary-dark: #1a8039;
	--color-gold: #ddb434;
	--color-gold-dark: #c4a02e;
	--color-light-green: #b9d861;
	--color-dark: #242021;
	--color-text: #333333;
	--color-text-light: #666666;
	--color-bg: #ffffff;
	--color-bg-light: #f8f9fa;
	--color-bg-alt: #f0f4e8;
	--color-border: #e0e0e0;
	--color-white: #ffffff;

	--font-body: 'Cairo', sans-serif;
	--font-heading: 'Amiri', serif;

	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);

	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 12px;

	--header-height: 80px;
	--transition: 0.3s ease;
}

/* ── Reset & Base ──────────────────────────────────────────────────────── */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	direction: rtl;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--color-text);
	background: var(--color-bg);
	direction: rtl;
	text-align: right;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color var(--transition);
}

a:hover {
	color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--color-dark);
	line-height: 1.4;
	margin-top: 0;
}

/* ── Accessibility ─────────────────────────────────────────────────────── */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal;
}

.screen-reader-text:focus {
	background: var(--color-bg);
	clip: auto;
	display: block;
	font-size: 1rem;
	height: auto;
	right: 5px;
	padding: 15px 23px 14px;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.skip-link:focus {
	background: var(--color-primary);
	color: var(--color-white);
	padding: 10px 20px;
	position: fixed;
	top: 10px;
	right: 10px;
	z-index: 100001;
	border-radius: var(--radius-sm);
}

/* ── Container ─────────────────────────────────────────────────────────── */
.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
	display: inline-block;
	padding: 12px 28px;
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: all var(--transition);
	line-height: 1.4;
}

.btn-primary {
	background: var(--color-primary);
	color: var(--color-white);
}

.btn-primary:hover {
	background: var(--color-primary-dark);
	color: var(--color-white);
}

.btn-donate {
	background: var(--color-primary);
	color: var(--color-white);
	padding: 10px 24px;
	border-radius: var(--radius-sm);
	font-weight: 700;
}

.btn-donate:hover {
	background: var(--color-primary-dark);
	color: var(--color-white);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

.btn-hero {
	background: var(--color-gold);
	color: var(--color-dark);
	padding: 14px 36px;
	font-size: 1.05rem;
	border-radius: var(--radius-sm);
	font-weight: 700;
}

.btn-hero:hover {
	background: var(--color-gold-dark);
	color: var(--color-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.btn-block {
	display: block;
	width: 100%;
}

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--color-white);
	box-shadow: var(--shadow-sm);
	transition: box-shadow var(--transition);
}

.site-header.scrolled {
	box-shadow: var(--shadow-md);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-height);
	gap: 20px;
}

/* Branding — appears on the right in RTL */
.site-branding {
	flex-shrink: 0;
}

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

.site-branding img {
	max-height: 60px;
	width: auto;
}

.site-title-link {
	text-decoration: none;
}

.site-title {
	font-family: var(--font-heading);
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--color-primary);
}

/* Navigation */
.main-navigation {
	flex: 1;
	display: flex;
	justify-content: center;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 4px;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	padding: 10px 16px;
	color: var(--color-dark);
	font-weight: 600;
	font-size: 0.95rem;
	transition: color var(--transition);
	white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
	color: var(--color-primary);
}

/* Dropdowns — open to the right in RTL */
.main-navigation .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 220px;
	background: var(--color-white);
	box-shadow: var(--shadow-lg);
	border-radius: 0 0 var(--radius-md) var(--radius-md);
	padding: 8px 0;
	z-index: 100;
	flex-direction: column;
}

.main-navigation li:hover > .sub-menu {
	display: flex;
}

.main-navigation .sub-menu a {
	padding: 8px 20px;
	font-size: 0.9rem;
	font-weight: 500;
}

.main-navigation .sub-menu a:hover {
	background: var(--color-bg-light);
}

/* Header CTA — appears on the left in RTL */
.header-cta {
	flex-shrink: 0;
}

/* Mobile menu toggle */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	flex-direction: column;
	gap: 5px;
	z-index: 1001;
	align-items: center;
	justify-content: center;
}

.hamburger-line {
	display: block;
	width: 28px;
	height: 3px;
	background: var(--color-dark);
	border-radius: 2px;
	transition: all var(--transition);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
	transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}

/* ── Hero Section — 100vh Full-Viewport Slider ─────────────────────────── */
.hero-section {
	position: relative;
	width: 100%;
	height: 100vh;
	overflow: hidden;
	background: var(--color-dark);
}

.hero-carousel {
	position: relative;
	width: 100%;
	height: 100%;
}

/* ── Slide ──────────────────────────────────────────────────────────────── */
.hero-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	z-index: 0;
	transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

/* Background image — <img> for better perf / preload */
.hero-slide-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 0;
}

/* Ken Burns slow zoom on active slide */
.hero-slide.active .hero-slide-img {
	animation: heroZoom 8s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
	.hero-slide.active .hero-slide-img {
		animation: none;
	}
}

@keyframes heroZoom {
	from { transform: scale(1); }
	to   { transform: scale(1.08); }
}

/* Dark overlay */
.hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	/* background set inline via customizer overlay opacity */
}

/* ── Centered content ──────────────────────────────────────────────────── */
.hero-content {
	position: relative;
	z-index: 2;
	color: var(--color-white);
	max-width: 800px;
	width: 90%;
	padding: 0 20px;
}

/* Staggered fade-up on active slide */
.hero-slide.active .hero-title {
	animation: heroFadeUp 0.8s ease both;
}

.hero-slide.active .hero-subtitle {
	animation: heroFadeUp 0.8s 0.15s ease both;
}

.hero-slide.active .btn-hero {
	animation: heroFadeUp 0.8s 0.3s ease both;
}

@media (prefers-reduced-motion: reduce) {
	.hero-slide.active .hero-title,
	.hero-slide.active .hero-subtitle,
	.hero-slide.active .btn-hero {
		animation: none;
	}
}

@keyframes heroFadeUp {
	from {
		opacity: 0;
		transform: translateY(28px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero-title {
	font-family: var(--font-heading);
	font-size: clamp(2rem, 5vw, 3.8rem);
	font-weight: 700;
	color: var(--color-white);
	margin: 0 0 18px;
	line-height: 1.3;
	text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.hero-subtitle {
	font-size: clamp(1rem, 2vw, 1.25rem);
	margin: 0 auto 32px;
	max-width: 600px;
	opacity: 0.92;
	line-height: 1.9;
	text-shadow: 0 1px 8px rgba(0,0,0,.2);
}

.btn-hero {
	display: inline-block;
	background: var(--color-gold);
	color: var(--color-dark);
	padding: 15px 44px;
	font-family: var(--font-body);
	font-size: 1.05rem;
	font-weight: 700;
	border-radius: var(--radius-sm);
	border: none;
	text-decoration: none;
	transition: all var(--transition);
	cursor: pointer;
}

.btn-hero:hover {
	background: var(--color-gold-dark);
	color: var(--color-dark);
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(0,0,0,.25);
}

/* ── Navigation arrows — left/right edges ──────────────────────────────── */
.hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,.4);
	background: rgba(255,255,255,.1);
	color: var(--color-white);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--transition);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
	background: rgba(255,255,255,.25);
	border-color: var(--color-white);
	transform: translateY(-50%) scale(1.08);
}

/* RTL: "next" arrow on the right, "prev" on the left */
.hero-arrow--next {
	right: 24px;
}

.hero-arrow--prev {
	left: 24px;
}

/* ── Dot indicators — bottom center ────────────────────────────────────── */
.hero-dots {
	position: absolute;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 4;
	display: flex;
	gap: 10px;
}

.hero-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255,255,255,.35);
	border: 2px solid rgba(255,255,255,.5);
	padding: 0;
	cursor: pointer;
	transition: all var(--transition);
}

.hero-dot:hover {
	background: rgba(255,255,255,.6);
	border-color: var(--color-white);
}

.hero-dot.active {
	background: var(--color-gold);
	border-color: var(--color-gold);
	transform: scale(1.2);
}

/* ── Progress bar — top of hero ────────────────────────────────────────── */
.hero-progress {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: rgba(255,255,255,.15);
	z-index: 5;
}

.hero-progress-bar {
	height: 100%;
	width: 0;
	background: var(--color-gold);
	transition: none;
}

.hero-progress-bar.running {
	transition: width linear;
	width: 100%;
}

/* ── Scroll-down indicator ─────────────────────────────────────────────── */
.hero-scroll-down {
	position: absolute;
	bottom: 70px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 4;
	color: rgba(255,255,255,.7);
	animation: scrollBounce 2s ease-in-out infinite;
	text-decoration: none;
	transition: color var(--transition);
}

.hero-scroll-down:hover {
	color: var(--color-white);
}

@keyframes scrollBounce {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50%      { transform: translateX(-50%) translateY(8px); }
}

/* ── Stats Section ─────────────────────────────────────────────────────── */
.stats-section {
	padding: 60px 0;
	background: var(--color-bg-alt);
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.stat-card {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	padding: 32px 20px;
	text-align: center;
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.stat-icon {
	color: var(--color-primary);
	margin-bottom: 16px;
}

.stat-icon svg {
	display: inline-block;
}

.stat-number {
	font-family: var(--font-heading);
	font-size: 2.2rem;
	font-weight: 700;
	color: var(--color-primary);
	margin-bottom: 4px;
}

.stat-label {
	font-size: 0.95rem;
	color: var(--color-text-light);
	font-weight: 600;
}

/* ── Section Headers ───────────────────────────────────────────────────── */
.section-header {
	text-align: center;
	margin-bottom: 40px;
}

.section-title {
	font-size: 2.2rem;
	color: var(--color-dark);
	margin-bottom: 8px;
	position: relative;
	display: inline-block;
}

.section-title::after {
	content: '';
	display: block;
	width: 60px;
	height: 3px;
	background: var(--color-gold);
	margin: 12px auto 0;
	border-radius: 2px;
}

.section-subtitle {
	font-size: 1.05rem;
	color: var(--color-text-light);
	max-width: 600px;
	margin: 0 auto;
}

/* ── News / Tabs Section ───────────────────────────────────────────────── */
.news-section {
	padding: 70px 0;
	background: var(--color-bg);
}

.tabs {
	margin-top: 10px;
}

.tab-nav {
	display: flex;
	justify-content: center;
	gap: 4px;
	margin-bottom: 32px;
	border-bottom: 2px solid var(--color-border);
	padding-bottom: 0;
}

.tab-btn {
	background: none;
	border: none;
	padding: 12px 28px;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-text-light);
	cursor: pointer;
	position: relative;
	transition: color var(--transition);
	margin-bottom: -2px;
	border-bottom: 3px solid transparent;
}

.tab-btn:hover {
	color: var(--color-primary);
}

.tab-btn.active {
	color: var(--color-primary);
	border-bottom-color: var(--color-primary);
}

.tab-panel {
	display: none;
}

.tab-panel.active {
	display: block;
}

.tab-panel[hidden] {
	display: none;
}

.cards-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
	background: var(--color-white);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.card-image {
	display: block;
	height: 200px;
	overflow: hidden;
}

.card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition);
}

.card:hover .card-image img {
	transform: scale(1.05);
}

.card-image-placeholder {
	background: var(--color-bg-alt);
	display: flex;
	align-items: center;
	justify-content: center;
}

.card-image-placeholder img {
	width: 60px;
	height: 60px;
	object-fit: contain;
}

.card-body {
	padding: 20px;
}

.card-meta {
	display: flex;
	gap: 12px;
	margin-bottom: 8px;
	font-size: 0.85rem;
	color: var(--color-text-light);
}

.card-meta a {
	color: var(--color-text-light);
}

.card-date {
	color: var(--color-text-light);
	font-size: 0.85rem;
}

.card-title {
	font-size: 1.15rem;
	margin-bottom: 8px;
	font-family: var(--font-heading);
	line-height: 1.5;
}

.card-title a {
	color: var(--color-dark);
}

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

.card-excerpt {
	font-size: 0.9rem;
	color: var(--color-text-light);
	margin-bottom: 12px;
	line-height: 1.7;
}

.card-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--color-primary);
}

.card-link:hover {
	color: var(--color-primary-dark);
	gap: 10px;
}

/* ── Donations Section ─────────────────────────────────────────────────── */
.donations-section {
	padding: 70px 0;
	background: var(--color-bg-light);
}

.donation-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.donation-card {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	padding: 32px 24px;
	text-align: center;
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition), box-shadow var(--transition);
	border-top: 4px solid var(--color-primary);
}

.donation-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.donation-icon {
	color: var(--color-primary);
	margin-bottom: 16px;
}

.donation-icon svg {
	display: inline-block;
}

.donation-title {
	font-size: 1.25rem;
	margin-bottom: 10px;
	color: var(--color-dark);
}

.donation-desc {
	font-size: 0.9rem;
	color: var(--color-text-light);
	margin-bottom: 20px;
	line-height: 1.7;
}

.btn-donate-card {
	display: inline-block;
	padding: 10px 28px;
	background: var(--color-gold);
	color: var(--color-dark);
	font-weight: 700;
	font-size: 0.95rem;
	border-radius: var(--radius-sm);
	transition: all var(--transition);
}

.btn-donate-card:hover {
	background: var(--color-gold-dark);
	color: var(--color-dark);
	transform: translateY(-1px);
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
	background: var(--color-dark);
	color: rgba(255, 255, 255, 0.8);
}

.footer-main {
	padding: 60px 0 40px;
}

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

.footer-col .widget-title,
.footer-col h4 {
	color: var(--color-white);
	font-size: 1.2rem;
	margin-bottom: 20px;
	position: relative;
	padding-bottom: 12px;
}

.footer-col .widget-title::after,
.footer-col h4::after {
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	width: 40px;
	height: 2px;
	background: var(--color-gold);
}

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

.footer-menu li {
	margin-bottom: 8px;
}

.footer-menu a {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.95rem;
	transition: color var(--transition);
}

.footer-menu a:hover {
	color: var(--color-gold);
}

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

.contact-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	font-size: 0.95rem;
}

.contact-list svg {
	flex-shrink: 0;
	opacity: 0.7;
}

.social-links {
	display: flex;
	gap: 12px;
}

.social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: var(--color-white);
	transition: all var(--transition);
}

.social-link:hover {
	background: var(--color-primary);
	color: var(--color-white);
	transform: translateY(-2px);
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 20px 0;
	text-align: center;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
	margin: 0;
}

/* Footer widget styles */
.site-footer .widget {
	margin-bottom: 20px;
}

.site-footer .widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.site-footer .widget li {
	margin-bottom: 8px;
}

.site-footer .widget a {
	color: rgba(255, 255, 255, 0.7);
	transition: color var(--transition);
}

.site-footer .widget a:hover {
	color: var(--color-gold);
}

/* Mobile Donate Bar */
.mobile-donate-bar {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 999;
	background: var(--color-white);
	padding: 10px 16px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* ── Page Header Banner ────────────────────────────────────────────────── */
.page-header-banner {
	background: linear-gradient(225deg, var(--color-dark) 0%, #3a3536 100%);
	padding: 50px 0;
	text-align: center;
}

.page-header-banner .page-title {
	color: var(--color-white);
	font-size: 2.4rem;
	margin: 0;
}

.archive-description {
	color: rgba(255, 255, 255, 0.8);
	margin-top: 10px;
	font-size: 1.05rem;
}

/* ── Content Area ──────────────────────────────────────────────────────── */
.content-area {
	padding: 50px 0;
}

.single-post-layout,
.archive-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 40px;
}

.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}

/* ── Single Post ───────────────────────────────────────────────────────── */
.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 20px;
	font-size: 0.9rem;
	color: var(--color-text-light);
}

.entry-meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.entry-meta a {
	color: var(--color-text-light);
}

.entry-meta a:hover {
	color: var(--color-primary);
}

.post-thumbnail {
	margin-bottom: 24px;
	border-radius: var(--radius-md);
	overflow: hidden;
}

.entry-content {
	font-size: 1.05rem;
	line-height: 1.9;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 32px;
	margin-bottom: 12px;
}

.entry-content p {
	margin-bottom: 16px;
}

.entry-content img {
	border-radius: var(--radius-sm);
}

.entry-content blockquote {
	border-right: 4px solid var(--color-primary);
	border-left: none;
	padding: 16px 24px 16px 16px;
	margin: 24px 0;
	background: var(--color-bg-light);
	border-radius: var(--radius-sm) 0 0 var(--radius-sm);
	font-style: italic;
}

.entry-tags {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--color-border);
	font-size: 0.9rem;
}

.tags-label {
	font-weight: 600;
}

.entry-tags a {
	color: var(--color-primary);
}

.post-navigation {
	display: flex;
	justify-content: space-between;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--color-border);
}

.post-navigation a {
	font-weight: 600;
	font-size: 0.95rem;
}

/* ── Sidebar / Widgets ─────────────────────────────────────────────────── */
.widget-area .widget {
	background: var(--color-bg-light);
	padding: 24px;
	border-radius: var(--radius-md);
	margin-bottom: 24px;
}

.widget-area .widget-title {
	font-size: 1.15rem;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--color-primary);
}

.widget-area .widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget-area .widget li {
	padding: 6px 0;
	border-bottom: 1px solid var(--color-border);
}

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

/* ── Pagination ────────────────────────────────────────────────────────── */
.pagination {
	margin-top: 40px;
	text-align: center;
}

.pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: var(--radius-sm);
	background: var(--color-bg-light);
	color: var(--color-text);
	font-weight: 600;
	font-size: 0.9rem;
	transition: all var(--transition);
}

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

/* ── 404 Page ──────────────────────────────────────────────────────────── */
.error-404-content {
	text-align: center;
	padding: 60px 0;
	max-width: 500px;
	margin: 0 auto;
}

.error-code {
	font-family: var(--font-heading);
	font-size: 8rem;
	font-weight: 700;
	color: var(--color-primary);
	line-height: 1;
	margin-bottom: 16px;
	opacity: 0.3;
}

.error-404-content p {
	font-size: 1.1rem;
	color: var(--color-text-light);
	margin-bottom: 24px;
}

.search-form-wrap {
	margin-bottom: 24px;
}

/* ── Search Form ───────────────────────────────────────────────────────── */
.search-form {
	display: flex;
	max-width: 400px;
	margin: 0 auto;
}

.search-form .search-field {
	flex: 1;
	padding: 12px 16px;
	border: 2px solid var(--color-border);
	border-left: none;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-family: var(--font-body);
	font-size: 0.95rem;
	outline: none;
	transition: border-color var(--transition);
}

.search-form .search-field:focus {
	border-color: var(--color-primary);
}

.search-form .search-submit {
	padding: 12px 20px;
	background: var(--color-primary);
	color: var(--color-white);
	border: none;
	border-radius: var(--radius-sm) 0 0 var(--radius-sm);
	font-family: var(--font-body);
	font-weight: 600;
	cursor: pointer;
	transition: background var(--transition);
}

.search-form .search-submit:hover {
	background: var(--color-primary-dark);
}

/* ── Comments ──────────────────────────────────────────────────────────── */
.comments-area {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid var(--color-border);
}

.comments-title {
	font-size: 1.4rem;
	margin-bottom: 24px;
}

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

.comment-list .comment {
	padding: 20px 0;
	border-bottom: 1px solid var(--color-border);
}

.comment-list .comment-body {
	display: flex;
	gap: 16px;
}

.comment-list .comment-author img {
	border-radius: 50%;
}

.comment-respond {
	margin-top: 32px;
}

.comment-form label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	font-size: 0.9rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 14px;
	border: 2px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 0.95rem;
	margin-bottom: 16px;
	outline: none;
	transition: border-color var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--color-primary);
}

.comment-form .submit {
	background: var(--color-primary);
	color: var(--color-white);
	border: none;
	padding: 12px 28px;
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-weight: 700;
	cursor: pointer;
	transition: background var(--transition);
}

.comment-form .submit:hover {
	background: var(--color-primary-dark);
}

/* ── No Posts ───────────────────────────────────────────────────────────── */
.no-results {
	text-align: center;
	padding: 60px 20px;
}

.no-posts-message {
	text-align: center;
	padding: 40px;
	color: var(--color-text-light);
	font-size: 1rem;
}

/* ── Page Content ──────────────────────────────────────────────────────── */
.page-content {
	max-width: 800px;
	margin: 0 auto;
}

/* ── WordPress Block Styles ────────────────────────────────────────────── */
.wp-block-image {
	margin-bottom: 24px;
}

.alignwide {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}

.alignfull {
	width: 100vw;
	margin-right: calc(-50vw + 50%);
}

/* ── Page Links ────────────────────────────────────────────────────────── */
.page-links {
	margin-top: 24px;
	font-weight: 600;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* ── Tablet (max-width: 1200px) ────────────────────────────────────────── */
@media (max-width: 1200px) {
	.donation-cards {
		grid-template-columns: repeat(2, 1fr);
	}

	.main-navigation a {
		padding: 10px 12px;
		font-size: 0.9rem;
	}
}

/* ── Tablet (max-width: 992px) ─────────────────────────────────────────── */
@media (max-width: 992px) {
	:root {
		--header-height: 70px;
	}

	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.cards-row {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-columns {
		grid-template-columns: repeat(2, 1fr);
	}

	.single-post-layout,
	.archive-layout {
		grid-template-columns: 1fr;
	}

	.content-sidebar {
		max-width: 500px;
	}

	.hero-title {
		font-size: 2.6rem;
	}
}

/* ── Mobile (max-width: 768px) ─────────────────────────────────────────── */
@media (max-width: 768px) {
	:root {
		--header-height: 64px;
	}

	.header-inner {
		justify-content: space-between;
	}

	/* Mobile Navigation — slides from the right in RTL */
	.menu-toggle {
		display: flex;
		position: relative;
		z-index: 1002;
	}

	.main-navigation {
		position: fixed;
		top: 0;
		right: -100%;
		left: auto;
		width: 280px;
		height: 100vh;
		background: var(--color-white);
		box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
		padding: 20px 0;
		overflow-y: auto;
		transition: right var(--transition);
		z-index: 1000;
		flex-direction: column;
	}

	.main-navigation.toggled {
		right: 0;
	}

	.main-navigation::before {
		content: 'القائمة';
		display: block;
		padding: 20px 24px;
		font-size: 1.2rem;
		font-weight: 700;
		color: var(--color-dark);
		border-bottom: 2px solid var(--color-primary);
		margin-bottom: 10px;
	}

	.main-navigation ul {
		flex-direction: column;
		gap: 0;
		display: flex;
	}

	.main-navigation li {
		width: 100%;
	}

	.main-navigation a {
		padding: 14px 24px;
		border-bottom: 1px solid var(--color-border);
		font-size: 1rem;
		display: block;
	}

	.main-navigation .current-menu-item > a {
		background: var(--color-bg-light);
		color: var(--color-primary);
		border-right: 3px solid var(--color-primary);
	}

	.main-navigation .sub-menu {
		position: static;
		box-shadow: none;
		border-radius: 0;
		padding: 0;
		display: flex;
		background: var(--color-bg-light);
	}

	.main-navigation .sub-menu a {
		padding-right: 40px;
	}

	/* Mobile menu overlay */
	.nav-overlay {
		display: none;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.5);
		z-index: 999;
	}

	.nav-open .nav-overlay {
		display: block;
	}

	.site-footer {
		padding-bottom: 20px;
	}

	/* Hero */
	.hero-section {
		height: 70vh;
		min-height: 400px;
	}

	.hero-title {
		font-size: 2rem;
	}

	.hero-subtitle {
		font-size: 1rem;
	}

	/* Stats */
	.stats-section {
		padding: 40px 0;
	}

	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.stat-card {
		padding: 24px 16px;
	}

	.stat-number {
		font-size: 1.8rem;
	}

	/* Cards */
	.cards-row {
		grid-template-columns: 1fr;
	}

	.donation-cards {
		grid-template-columns: 1fr;
	}

	/* Footer */
	.footer-columns {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	/* News */
	.news-section {
		padding: 50px 0;
	}

	.tab-btn {
		padding: 10px 16px;
		font-size: 0.9rem;
	}

	/* Section headers */
	.section-title {
		font-size: 1.8rem;
	}

	.page-header-banner .page-title {
		font-size: 1.8rem;
	}

	.page-header-banner {
		padding: 35px 0;
	}

	/* Posts */
	.posts-grid {
		grid-template-columns: 1fr;
	}
}

/* ── Small Mobile (max-width: 480px) ───────────────────────────────────── */
@media (max-width: 480px) {
	.hero-title {
		font-size: 1.6rem;
	}

	.hero-subtitle {
		font-size: 0.9rem;
	}

	.btn-hero {
		padding: 12px 24px;
		font-size: 0.95rem;
	}

	.container {
		padding: 0 16px;
	}

	.stats-grid {
		grid-template-columns: 1fr;
	}

	.error-code {
		font-size: 5rem;
	}
}

/* ── Print Styles ──────────────────────────────────────────────────────── */
@media print {
	.site-header,
	.site-footer,
	.mobile-donate-bar,
	.hero-controls,
	.post-navigation,
	.comments-area {
		display: none;
	}

	body {
		font-size: 12pt;
		color: #000;
	}
}

/* ==========================================================================
   Campaigns Section
   ========================================================================== */

.campaigns-section {
	padding: 70px 0;
	background: var(--color-bg-light);
}

.campaigns-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.campaigns-grid-3 {
	grid-template-columns: repeat(3, 1fr);
}

.campaigns-archive-grid {
	grid-template-columns: repeat(3, 1fr);
}

.campaigns-footer {
	text-align: center;
	margin-top: 40px;
}

/* Campaign Card */
.campaign-card {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition), box-shadow var(--transition);
}

.campaign-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.campaign-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.campaign-card-image {
	position: relative;
	height: 180px;
	overflow: hidden;
	background: var(--color-bg-alt);
}

.campaign-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition);
}

.campaign-card:hover .campaign-card-image img {
	transform: scale(1.05);
}

.campaign-card-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--color-text-light);
}

.campaign-status {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 4px 12px;
	border-radius: var(--radius-sm);
	font-size: 0.8rem;
	font-weight: 600;
}

.campaign-status-active {
	background: #d4edda;
	color: #155724;
}

.campaign-status-ended {
	background: #f8d7da;
	color: #721c24;
}

.campaign-status-upcoming {
	background: #fff3cd;
	color: #856404;
}

.campaign-card-body {
	padding: 20px;
}

.campaign-card-title {
	font-family: var(--font-heading);
	font-size: 1.15rem;
	margin: 0 0 10px;
	color: var(--color-dark);
	line-height: 1.4;
}

.campaign-card-dates {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	color: var(--color-text-light);
	margin-bottom: 10px;
}

.campaign-card-excerpt {
	font-size: 0.9rem;
	color: var(--color-text-light);
	line-height: 1.6;
	margin-bottom: 12px;
}

.campaign-card-link-text {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--color-primary);
	transition: gap var(--transition);
}

.campaign-card:hover .campaign-card-link-text {
	gap: 10px;
}

/* Campaign Filters */
.campaign-filters {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 32px;
}

.filter-btn {
	padding: 8px 20px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--color-text-light);
	background: var(--color-bg-light);
	transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
	background: var(--color-primary);
	color: var(--color-white);
}

/* Single Campaign */
.campaign-header {
	background: linear-gradient(225deg, var(--color-dark) 0%, #3a3536 100%);
	padding: 60px 0;
	text-align: center;
}

.campaign-header-content {
	max-width: 800px;
	margin: 0 auto;
}

.campaign-header .campaign-status {
	position: static;
	display: inline-block;
	margin-bottom: 16px;
}

.campaign-title {
	font-size: 2.4rem;
	color: var(--color-white);
	margin: 0 0 16px;
}

.campaign-dates {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 1.05rem;
}

.campaign-single {
	max-width: 800px;
	margin: 0 auto;
}

.campaign-featured-image {
	margin-bottom: 30px;
	border-radius: var(--radius-md);
	overflow: hidden;
}

.campaign-content {
	font-size: 1.05rem;
	line-height: 1.9;
}

.related-campaigns {
	margin-top: 60px;
	padding-top: 40px;
	border-top: 1px solid var(--color-border);
}

.related-title {
	font-size: 1.5rem;
	margin-bottom: 24px;
	text-align: center;
}

/* ==========================================================================
   Login Page
   ========================================================================== */

.login-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-bg-light);
	padding: 40px 20px;
}

.login-container {
	width: 100%;
	max-width: 420px;
}

.login-box {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	padding: 40px;
	box-shadow: var(--shadow-lg);
}

.login-header {
	text-align: center;
	margin-bottom: 32px;
}

.login-logo {
	margin-bottom: 20px;
}

.login-logo img {
	max-height: 60px;
	margin: 0 auto;
}

.login-title {
	font-size: 1.8rem;
	margin: 0 0 8px;
	color: var(--color-dark);
}

.login-subtitle {
	color: var(--color-text-light);
	margin: 0;
}

.login-form .form-group {
	margin-bottom: 20px;
}

.login-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--color-text);
}

.login-form .form-input {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 1rem;
	transition: border-color var(--transition);
}

.login-form .form-input:focus {
	outline: none;
	border-color: var(--color-primary);
}

.form-group-checkbox {
	display: flex;
	align-items: center;
}

.checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.login-links {
	text-align: center;
	margin-top: 16px;
}

.login-links a {
	font-size: 0.9rem;
	color: var(--color-text-light);
}

.login-links a:hover {
	color: var(--color-primary);
}

.login-footer {
	text-align: center;
	margin-top: 24px;
}

.login-footer a {
	color: var(--color-text-light);
	font-size: 0.9rem;
}

/* ==========================================================================
   Dashboard
   ========================================================================== */

.dashboard-page {
	min-height: 100vh;
	background: var(--color-bg-light);
}

.dashboard-container {
	display: flex;
	min-height: 100vh;
}

/* Dashboard Sidebar */
.dashboard-sidebar {
	width: 260px;
	background: var(--color-dark);
	color: var(--color-white);
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 0;
	right: 0;
	height: 100vh;
	z-index: 100;
}

.sidebar-user {
	padding: 24px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	gap: 12px;
}

.user-avatar img {
	border-radius: 50%;
}

.user-name {
	display: block;
	font-weight: 600;
	font-size: 1rem;
}

.user-role {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.6);
}

.sidebar-nav {
	flex: 1;
	padding: 20px 0;
}

.sidebar-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar-nav li a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 24px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.95rem;
	transition: all var(--transition);
}

.sidebar-nav li a:hover,
.sidebar-nav li.active a {
	background: rgba(255, 255, 255, 0.1);
	color: var(--color-white);
}

.sidebar-nav li.active a {
	border-right: 3px solid var(--color-primary);
}

.sidebar-stats {
	padding: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-stats h4 {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.5);
	margin: 0 0 12px;
	text-transform: uppercase;
}

.sidebar-stats ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar-stats li {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	font-size: 0.9rem;
}

.stat-label {
	color: rgba(255, 255, 255, 0.7);
}

.stat-value {
	font-weight: 600;
}

.stat-draft {
	color: #adb5bd;
}

.stat-pending {
	color: #ffc107;
}

.stat-published {
	color: #28a745;
}

.sidebar-footer {
	padding: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.9rem;
	border-radius: var(--radius-sm);
	transition: all var(--transition);
}

.sidebar-link:hover {
	background: rgba(255, 255, 255, 0.1);
	color: var(--color-white);
}

.sidebar-logout:hover {
	background: rgba(220, 53, 69, 0.2);
	color: #ff6b6b;
}

/* Dashboard Main */
.dashboard-main {
	flex: 1;
	margin-right: 260px;
	display: flex;
	flex-direction: column;
}

.dashboard-header {
	background: var(--color-white);
	padding: 20px 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: var(--shadow-sm);
}

.dashboard-header h1 {
	font-size: 1.5rem;
	margin: 0;
}

.dashboard-header-actions {
	display: flex;
	gap: 12px;
}

.dashboard-header-actions .btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.dashboard-content {
	flex: 1;
	padding: 30px;
}

/* Messages */
.shahrakkan-message {
	padding: 14px 20px;
	border-radius: var(--radius-sm);
	margin-bottom: 20px;
	font-size: 0.95rem;
}

.shahrakkan-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.shahrakkan-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.shahrakkan-info {
	background: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

/* Post List */
.post-list-container {
	background: var(--color-white);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}

.post-list-table-wrapper {
	overflow-x: auto;
}

.post-list-table {
	width: 100%;
	border-collapse: collapse;
}

.post-list-table th,
.post-list-table td {
	padding: 16px 20px;
	text-align: right;
	border-bottom: 1px solid var(--color-border);
}

.post-list-table th {
	background: var(--color-bg-light);
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--color-text-light);
}

.post-list-table tbody tr:hover {
	background: var(--color-bg-light);
}

.post-title-cell {
	display: flex;
	align-items: center;
	gap: 12px;
}

.post-thumb {
	width: 50px;
	height: 50px;
	border-radius: var(--radius-sm);
	overflow: hidden;
	flex-shrink: 0;
}

.post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-title-content strong {
	display: block;
	margin-bottom: 4px;
}

.view-link {
	font-size: 0.8rem;
	color: var(--color-text-light);
}

.col-status {
	width: 120px;
}

.col-date {
	width: 120px;
}

.col-actions {
	width: 100px;
}

/* Status Badges */
.status-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: var(--radius-sm);
	font-size: 0.8rem;
	font-weight: 600;
}

.status-draft {
	background: #e9ecef;
	color: #6c757d;
}

.status-pending {
	background: #fff3cd;
	color: #856404;
}

.status-published {
	background: #d4edda;
	color: #155724;
}

.status-scheduled {
	background: #cce5ff;
	color: #004085;
}

/* Action Buttons */
.action-buttons {
	display: flex;
	gap: 8px;
}

.inline-form {
	display: inline;
}

.btn-sm {
	padding: 6px 12px;
	font-size: 0.85rem;
}

.btn-danger {
	background: #dc3545;
	color: var(--color-white);
}

.btn-danger:hover {
	background: #c82333;
	color: var(--color-white);
}

.btn-success {
	background: #28a745;
	color: var(--color-white);
}

.btn-success:hover {
	background: #218838;
	color: var(--color-white);
}

.btn-outline {
	background: transparent;
	border: 1px solid var(--color-border);
	color: var(--color-text);
}

.btn-outline:hover {
	background: var(--color-bg-light);
}

.btn-secondary {
	background: var(--color-bg-light);
	color: var(--color-text);
}

.btn-secondary:hover {
	background: var(--color-border);
}

/* Empty State */
.empty-state {
	text-align: center;
	padding: 60px 20px;
}

.empty-state-icon {
	color: var(--color-text-light);
	opacity: 0.5;
	margin-bottom: 20px;
}

.empty-state h3 {
	font-size: 1.3rem;
	margin-bottom: 8px;
}

.empty-state p {
	color: var(--color-text-light);
	margin-bottom: 20px;
}

/* Post Form */
.post-form-container {
	background: var(--color-white);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	padding: 30px;
}

.post-form {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 30px;
}

.form-main {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.form-sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form-group {
	display: flex;
	flex-direction: column;
}

.form-group label {
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--color-text);
}

.form-group .required {
	color: #dc3545;
}

.form-input,
.form-textarea {
	padding: 12px 16px;
	border: 2px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 1rem;
	transition: border-color var(--transition);
}

.form-input:focus,
.form-textarea:focus {
	outline: none;
	border-color: var(--color-primary);
}

.form-input-lg {
	font-size: 1.2rem;
	padding: 14px 18px;
}

.form-textarea {
	resize: vertical;
	min-height: 200px;
	line-height: 1.7;
}

.form-help {
	font-size: 0.85rem;
	color: var(--color-text-light);
	margin-top: 6px;
}

.form-row {
	display: flex;
	gap: 20px;
}

.form-group-half {
	flex: 1;
}

.form-select {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 1rem;
	background: var(--color-white);
	transition: border-color var(--transition);
	min-height: 120px;
}

.form-select:focus {
	outline: none;
	border-color: var(--color-primary);
}

/* Form Box */
.form-box {
	background: var(--color-bg-light);
	border-radius: var(--radius-md);
	padding: 20px;
}

.form-box-title {
	font-size: 0.95rem;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--color-border);
}

.post-status-display {
	margin-bottom: 12px;
}

.form-actions-box .btn {
	margin-bottom: 10px;
	justify-content: center;
}

.form-actions-box .btn:last-child {
	margin-bottom: 0;
}

/* Featured Image Uploader */
.featured-image-uploader {
	text-align: center;
}

.image-preview {
	width: 100%;
	height: 150px;
	background: var(--color-bg);
	border: 2px dashed var(--color-border);
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
	overflow: hidden;
}

.image-preview.has-image {
	border-style: solid;
}

.image-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.image-actions {
	display: flex;
	gap: 8px;
	justify-content: center;
}

.hidden {
	display: none !important;
}

/* Responsive Dashboard */
@media (max-width: 1200px) {
	.campaigns-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 992px) {
	.dashboard-sidebar {
		width: 220px;
	}

	.dashboard-main {
		margin-right: 220px;
	}

	.post-form {
		grid-template-columns: 1fr;
	}

	.form-sidebar {
		order: -1;
	}

	.campaigns-grid-3,
	.campaigns-archive-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.dashboard-sidebar {
		position: fixed;
		right: -280px;
		width: 280px;
		transition: right var(--transition);
	}

	.dashboard-sidebar.open {
		right: 0;
	}

	.dashboard-main {
		margin-right: 0;
	}

	.dashboard-header {
		padding: 16px 20px;
	}

	.dashboard-content {
		padding: 20px;
	}

	.post-list-table th,
	.post-list-table td {
		padding: 12px 16px;
	}

	.form-row {
		flex-direction: column;
		gap: 16px;
	}

	.campaigns-grid,
	.campaigns-grid-3,
	.campaigns-archive-grid {
		grid-template-columns: 1fr;
	}

	.campaign-title {
		font-size: 1.8rem;
	}

	.login-box {
		padding: 30px 24px;
	}
}

@media (max-width: 480px) {
	.campaign-filters {
		flex-wrap: wrap;
	}

	.filter-btn {
		flex: 1 1 45%;
		text-align: center;
	}
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.contact-layout {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 40px;
	align-items: start;
}

.contact-form-section {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	padding: 40px;
	box-shadow: var(--shadow-sm);
}

.contact-form-section h2 {
	font-size: 1.6rem;
	margin: 0 0 10px;
}

.contact-intro {
	color: var(--color-text-light);
	margin-bottom: 30px;
}

.contact-form .form-group {
	margin-bottom: 20px;
}

.contact-form label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 0.95rem;
}

.contact-form .required {
	color: #dc3545;
}

.contact-form .form-input,
.contact-form .form-textarea {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 1rem;
	transition: border-color var(--transition);
}

.contact-form .form-input:focus,
.contact-form .form-textarea:focus {
	outline: none;
	border-color: var(--color-primary);
}

.contact-form .form-textarea {
	resize: vertical;
	min-height: 150px;
}

.contact-form .btn-lg {
	padding: 14px 32px;
	font-size: 1rem;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* Contact Info Section */
.contact-info-section {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.contact-info-box,
.contact-social-box,
.contact-map-box {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	padding: 24px;
	box-shadow: var(--shadow-sm);
}

.contact-info-box h3,
.contact-social-box h3,
.contact-map-box h3 {
	font-size: 1.15rem;
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--color-primary);
}

.contact-info-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.contact-info-list li {
	display: flex;
	gap: 14px;
	margin-bottom: 20px;
}

.contact-info-list li:last-child {
	margin-bottom: 0;
}

.contact-icon {
	width: 44px;
	height: 44px;
	background: var(--color-bg-alt);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-primary);
	flex-shrink: 0;
}

.contact-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.contact-text strong {
	font-size: 0.9rem;
	color: var(--color-text-light);
	margin-bottom: 2px;
}

.contact-text span {
	font-size: 0.95rem;
	color: var(--color-dark);
}

/* Contact Social */
.contact-social-box .social-links {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.contact-social-box .social-link {
	width: 44px;
	height: 44px;
	background: var(--color-bg-alt);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-text);
	transition: all var(--transition);
}

.contact-social-box .social-link:hover {
	background: var(--color-primary);
	color: var(--color-white);
	transform: translateY(-2px);
}

/* Contact Map */
.contact-map {
	border-radius: var(--radius-sm);
	overflow: hidden;
	height: 200px;
}

.contact-map iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.map-placeholder {
	height: 100%;
	background: var(--color-bg-alt);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--color-text-light);
	text-align: center;
	padding: 20px;
}

.map-placeholder svg {
	margin-bottom: 10px;
	opacity: 0.5;
}

.map-placeholder p {
	margin: 0;
	font-size: 0.85rem;
}

/* Contact Page Responsive */
@media (max-width: 992px) {
	.contact-layout {
		grid-template-columns: 1fr;
	}

	.contact-info-section {
		order: -1;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.contact-info-box {
		grid-column: span 2;
	}
}

@media (max-width: 768px) {
	.contact-form-section {
		padding: 24px;
	}

	.contact-info-section {
		grid-template-columns: 1fr;
	}

	.contact-info-box {
		grid-column: span 1;
	}

	.contact-form .form-row {
		flex-direction: column;
		gap: 0;
	}
}

/* ==========================================================================
   Media Gallery Section
   ========================================================================== */

.gallery-section {
	padding: 70px 0;
	background: var(--color-bg-light);
}

.gallery-tabs {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 32px;
}

.gallery-tab {
	padding: 10px 24px;
	border: none;
	border-radius: var(--radius-sm);
	background: var(--color-white);
	color: var(--color-text-light);
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--transition);
}

.gallery-tab:hover {
	background: var(--color-bg-alt);
	color: var(--color-primary);
}

.gallery-tab.active {
	background: var(--color-primary);
	color: var(--color-white);
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.gallery-item {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.gallery-item.hidden {
	display: none;
}

.gallery-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.gallery-thumb {
	position: relative;
	height: 200px;
	overflow: hidden;
	background: var(--color-bg-alt);
}

.gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition);
}

.gallery-item:hover .gallery-thumb img {
	transform: scale(1.05);
}

.gallery-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
	opacity: 1;
}

.gallery-icon {
	color: var(--color-white);
	margin-bottom: 8px;
}

.gallery-overlay .image-count {
	color: var(--color-white);
	font-size: 0.9rem;
	font-weight: 600;
}

.video-overlay {
	opacity: 1;
	background: rgba(0, 0, 0, 0.3);
}

.play-button {
	width: 64px;
	height: 64px;
	background: rgba(255, 0, 0, 0.9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-white);
	transition: all var(--transition);
}

.gallery-item:hover .play-button {
	transform: scale(1.1);
	background: #ff0000;
}

.gallery-title {
	padding: 16px 20px;
	margin: 0;
	font-size: 1rem;
	font-family: var(--font-heading);
	color: var(--color-dark);
	background: var(--color-white);
}

.gallery-more {
	text-align: center;
	margin-top: 40px;
}

.no-gallery {
	text-align: center;
	padding: 40px;
	color: var(--color-text-light);
	grid-column: 1 / -1;
}

.no-gallery-items {
	text-align: center;
	padding: 40px;
	color: var(--color-text-light);
}

/* Lightbox Modal */
.lightbox-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(0, 0, 0, 0.95);
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.lightbox-modal.active {
	display: flex;
}

.lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	border-radius: 50%;
	color: var(--color-white);
	font-size: 32px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--transition);
	z-index: 10001;
}

.lightbox-close:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 56px;
	height: 56px;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	border-radius: 50%;
	color: var(--color-white);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--transition);
	z-index: 10001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
	background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
	left: 20px;
}

.lightbox-next {
	right: 20px;
}

.lightbox-content {
	max-width: 90%;
	max-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox-image {
	max-width: 100%;
	max-height: 80vh;
	border-radius: var(--radius-md);
	box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-thumbnails {
	display: flex;
	gap: 8px;
	margin-top: 20px;
	max-width: 80%;
	overflow-x: auto;
	padding: 10px 0;
}

.lightbox-thumb {
	width: 60px;
	height: 60px;
	border-radius: var(--radius-sm);
	overflow: hidden;
	cursor: pointer;
	opacity: 0.5;
	transition: all var(--transition);
	flex-shrink: 0;
}

.lightbox-thumb:hover,
.lightbox-thumb.active {
	opacity: 1;
	transform: scale(1.1);
}

.lightbox-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lightbox-counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: var(--color-white);
	font-size: 0.9rem;
	background: rgba(0, 0, 0, 0.5);
	padding: 6px 16px;
	border-radius: var(--radius-sm);
}

/* Gallery Page Archive */
.gallery-archive {
	padding: 50px 0;
}

.gallery-archive .gallery-grid {
	grid-template-columns: repeat(3, 1fr);
}

/* Responsive Gallery */
@media (max-width: 1200px) {
	.gallery-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 992px) {
	.gallery-grid,
	.gallery-archive .gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.gallery-section {
		padding: 50px 0;
	}

	.gallery-tabs {
		flex-wrap: wrap;
	}

	.gallery-tab {
		flex: 1 1 45%;
		text-align: center;
	}

	.gallery-grid,
	.gallery-archive .gallery-grid {
		grid-template-columns: 1fr;
	}

	.gallery-thumb {
		height: 220px;
	}

	.lightbox-prev,
	.lightbox-next {
		width: 44px;
		height: 44px;
	}

	.lightbox-prev {
		left: 10px;
	}

	.lightbox-next {
		right: 10px;
	}

	.lightbox-thumbnails {
		display: none;
	}
}

@media (max-width: 480px) {
	.gallery-tab {
		flex: 1 1 100%;
	}
}

/* ==========================================================================
   About Page
   ========================================================================== */

.about-content {
	max-width: 900px;
	margin: 0 auto;
}

.about-article {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	padding: 40px;
	box-shadow: var(--shadow-sm);
}

.about-featured-image {
	margin: -40px -40px 30px -40px;
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	overflow: hidden;
}

.about-featured-image img {
	width: 100%;
	height: auto;
}

.about-default {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.about-section {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	padding: 32px;
	box-shadow: var(--shadow-sm);
}

.about-section h2 {
	font-size: 1.6rem;
	margin: 0 0 16px;
	color: var(--color-primary);
	position: relative;
	padding-bottom: 12px;
}

.about-section h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	width: 50px;
	height: 3px;
	background: var(--color-gold);
	border-radius: 2px;
}

.about-section p {
	font-size: 1.05rem;
	line-height: 1.9;
	color: var(--color-text);
	margin: 0;
}

.values-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-top: 24px;
}

.value-card {
	background: var(--color-bg-light);
	border-radius: var(--radius-md);
	padding: 24px;
	text-align: center;
	transition: transform var(--transition), box-shadow var(--transition);
}

.value-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.value-icon {
	width: 64px;
	height: 64px;
	background: var(--color-primary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
	color: var(--color-white);
}

.value-card h3 {
	font-size: 1.1rem;
	margin: 0 0 8px;
	color: var(--color-dark);
}

.value-card p {
	font-size: 0.9rem;
	color: var(--color-text-light);
	margin: 0;
	line-height: 1.6;
}

.goals-list {
	list-style: none;
	padding: 0;
	margin: 16px 0 0;
}

.goals-list li {
	position: relative;
	padding: 12px 0 12px 32px;
	border-bottom: 1px solid var(--color-border);
	font-size: 1rem;
	line-height: 1.7;
}

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

.goals-list li::before {
	content: '';
	position: absolute;
	right: 0;
	top: 18px;
	width: 8px;
	height: 8px;
	background: var(--color-primary);
	border-radius: 50%;
}

/* About Page Responsive */
@media (max-width: 992px) {
	.values-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.about-article {
		padding: 24px;
	}

	.about-featured-image {
		margin: -24px -24px 24px -24px;
	}

	.about-section {
		padding: 24px;
	}

	.values-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Media Gallery Page Template
   ========================================================================== */

.page-template-page-media .content-area {
	padding: 50px 0;
}

/* ==========================================================================
   Video Modal
   ========================================================================== */

.video-modal {
	position: fixed;
	inset: 0;
	z-index: 10001;
	display: none;
	align-items: center;
	justify-content: center;
}

.video-modal.active {
	display: flex;
}

.video-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.95);
}

.video-modal-container {
	position: relative;
	width: 90%;
	max-width: 1000px;
	z-index: 1;
}

.video-modal-close {
	position: absolute;
	top: -50px;
	right: 0;
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	border-radius: 50%;
	color: var(--color-white);
	font-size: 28px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--transition);
}

.video-modal-close:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: rotate(90deg);
}

.video-modal-content {
	background: #000;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.video-wrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	height: 0;
}

.video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.video-info {
	padding: 20px 24px;
	background: var(--color-dark);
	color: var(--color-white);
	text-align: right;
}

.video-title {
	font-family: var(--font-heading);
	font-size: 1.4rem;
	margin: 0 0 10px;
	color: var(--color-white);
}

.video-description {
	font-size: 0.95rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.8);
	margin: 0;
}

/* Video Modal Responsive */
@media (max-width: 768px) {
	.video-modal-container {
		width: 95%;
	}

	.video-modal-close {
		top: -45px;
		width: 40px;
		height: 40px;
		font-size: 24px;
	}
}
