/* Istikharati brand layer for Hello Elementor */

:root {
	--isti-bg: #0d1b17;
	--isti-bg-soft: #11241f;
	--isti-surface: #f5f7f6;
	--isti-ink: #14231f;
	--isti-muted: #5b6b65;
	--isti-gold: #d4af37;
	--isti-gold-soft: #fce08b;
	--isti-emerald: #0f5132;
	--isti-emerald-bright: #047857;
	--isti-border: rgba(212, 175, 55, 0.35);
	--isti-font: "Noto Naskh Arabic", "Amiri", "Segoe UI", Tahoma, sans-serif;
	--isti-display: "Amiri", "Noto Naskh Arabic", serif;
}

body {
	font-family: var(--isti-font);
	background: var(--isti-surface);
	color: var(--isti-ink);
}

body.isti-hub-page,
body.isti-result-page {
	background: var(--isti-bg);
}

/* ——— Header ——— */
.isti-site-header.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	display: block;
	padding: 0;
	background: linear-gradient(180deg, #0f241e 0%, #0d1b17 100%);
	border-bottom: 1px solid var(--isti-border);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	direction: rtl;
}

.isti-header-inner {
	width: min(1120px, calc(100% - 2rem));
	margin: 0 auto;
	min-height: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.65rem 0;
}

.isti-site-header .site-branding {
	flex-direction: row;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.isti-site-header .custom-logo-link {
	display: block;
	line-height: 0;
}

.isti-site-header .custom-logo {
	width: 48px !important;
	height: 48px !important;
	max-height: 48px !important;
	object-fit: contain;
	border-radius: 50%;
	border: 1px solid var(--isti-border);
	background: rgba(255, 255, 255, 0.04);
}

.isti-brand-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.isti-brand-name {
	margin: 0;
	font-family: var(--isti-display);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--isti-gold-soft);
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.isti-brand-name a {
	color: inherit;
	text-decoration: none;
}

.isti-brand-tag {
	margin: 0.15rem 0 0;
	font-size: 0.72rem;
	color: rgba(231, 229, 228, 0.72);
	line-height: 1.3;
}

.isti-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--isti-border);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--isti-gold-soft);
	cursor: pointer;
}

.isti-nav-toggle span,
.isti-nav-toggle span::before,
.isti-nav-toggle span::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	position: relative;
}

.isti-nav-toggle span::before,
.isti-nav-toggle span::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
}

.isti-nav-toggle span::before { top: -6px; }
.isti-nav-toggle span::after { top: 6px; }

.isti-site-header .site-navigation {
	flex: 1;
	justify-content: center;
}

.isti-site-header .site-navigation ul.menu {
	gap: 0.15rem;
	justify-content: center;
	margin: 0;
}

.isti-site-header .site-navigation ul.menu li a {
	color: rgba(247, 244, 234, 0.9);
	font-size: 0.92rem;
	font-weight: 600;
	padding: 0.55rem 0.85rem;
	border-radius: 999px;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.isti-site-header .site-navigation ul.menu li a:hover,
.isti-site-header .site-navigation ul.menu li.current-menu-item > a,
.isti-site-header .site-navigation ul.menu li.current_page_item > a {
	color: #0d1b17;
	background: linear-gradient(135deg, #fce08b 0%, #d4af37 55%, #997920 100%);
}

.isti-header-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1rem;
	border-radius: 999px;
	background: linear-gradient(135deg, #fce08b 0%, #d4af37 50%, #997920 100%);
	color: #0d1b17 !important;
	font-weight: 800;
	font-size: 0.88rem;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 8px 18px rgba(212, 175, 55, 0.25);
}

.isti-header-cta:hover {
	filter: brightness(1.05);
}

@media (max-width: 900px) {
	.isti-nav-toggle {
		display: inline-flex;
		order: 2;
		margin-inline-start: auto;
	}

	.isti-header-cta {
		order: 3;
		padding: 0.5rem 0.8rem;
		font-size: 0.8rem;
	}

	.isti-site-header .site-navigation {
		display: none;
		order: 4;
		flex: 0 0 100%;
		width: 100%;
		padding-bottom: 0.75rem;
	}

	.isti-site-header.is-nav-open .site-navigation {
		display: block;
	}

	.isti-site-header .site-navigation ul.menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0.35rem;
	}

	.isti-site-header .site-navigation ul.menu li a {
		border-radius: 10px;
	}

	.isti-brand-tag {
		display: none;
	}
}

/* ——— Footer ——— */
.isti-site-footer.site-footer {
	direction: rtl;
	background: linear-gradient(180deg, #11241f 0%, #0a1512 100%);
	color: #e7e5e4;
	border-top: 1px solid var(--isti-border);
	padding: 2.5rem 0 1.5rem;
	margin-top: 0;
}

.isti-footer-inner {
	width: min(1120px, calc(100% - 2rem));
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 2rem;
}

.isti-footer-brand .isti-footer-logo {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 1px solid var(--isti-border);
	object-fit: contain;
	margin-bottom: 0.75rem;
	background: rgba(255, 255, 255, 0.04);
}

.isti-footer-brand h2 {
	margin: 0 0 0.5rem;
	font-family: var(--isti-display);
	font-size: 1.35rem;
	color: var(--isti-gold-soft);
}

.isti-footer-brand p {
	margin: 0;
	color: rgba(231, 229, 228, 0.78);
	line-height: 1.8;
	font-size: 0.92rem;
}

.isti-footer-col h3 {
	margin: 0 0 0.85rem;
	font-size: 1rem;
	color: var(--isti-gold);
}

.isti-footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.isti-footer-col a {
	color: rgba(247, 244, 234, 0.88);
	text-decoration: none;
	font-size: 0.92rem;
}

.isti-footer-col a:hover {
	color: var(--isti-gold-soft);
}

.isti-footer-donate {
	display: inline-flex;
	margin-top: 0.75rem;
	padding: 0.55rem 0.95rem;
	border-radius: 999px;
	background: linear-gradient(135deg, #fce08b 0%, #d4af37 50%, #997920 100%);
	color: #0d1b17 !important;
	font-weight: 800;
	text-decoration: none !important;
	font-size: 0.88rem;
}

.isti-footer-bottom {
	width: min(1120px, calc(100% - 2rem));
	margin: 1.75rem auto 0;
	padding-top: 1rem;
	border-top: 1px solid rgba(212, 175, 55, 0.2);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem;
	font-size: 0.82rem;
	color: rgba(231, 229, 228, 0.65);
}

@media (max-width: 800px) {
	.isti-footer-inner {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

/* ——— Site-wide donate float ——— */
.isti-donate-float {
	position: fixed;
	left: 1rem;
	bottom: 1.25rem;
	z-index: 9999;
	width: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	max-width: min(20rem, calc(100vw - 2rem));
	padding: 0.7rem 1rem 0.7rem 0.7rem;
	border-radius: 9999px;
	text-decoration: none;
	direction: rtl;
	color: #022c22;
	background: linear-gradient(135deg, #fce08b 0%, #d4af37 50%, #997920 100%);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(212, 175, 55, 0.45);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.isti-donate-float:hover,
.isti-donate-float:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(251, 191, 36, 0.7);
	outline: none;
}

.isti-donate-float__icon {
	flex-shrink: 0;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 9999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(2, 44, 34, 0.12);
	color: #7f1d1d;
}

.isti-donate-float__text {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.isti-donate-float__title {
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.45;
	color: #1c1917;
}

.isti-donate-float__cta {
	font-size: 0.72rem;
	font-weight: 800;
	color: #064e3b;
}

@media (max-width: 640px) {
	.isti-donate-float {
		left: 0.75rem;
		bottom: 0.9rem;
		max-width: calc(100vw - 1.5rem);
	}

	.isti-donate-float__title {
		font-size: 0.72rem;
	}
}

/* ——— Blog archive ——— */
.isti-blog-main {
	direction: rtl;
	width: min(1120px, calc(100% - 2rem));
	margin: 0 auto;
	padding: 2rem 0 3rem;
}

.isti-blog-header {
	margin-bottom: 1.75rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(15, 81, 50, 0.15);
}

.isti-blog-header .entry-title {
	margin: 0 0 0.4rem;
	font-family: var(--isti-display);
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	color: var(--isti-emerald);
}

.isti-blog-header .archive-description {
	margin: 0;
	color: var(--isti-muted);
	line-height: 1.7;
}

.isti-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.35rem;
}

.isti-post-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid rgba(15, 81, 50, 0.1);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 20px rgba(13, 27, 23, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.isti-post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 28px rgba(13, 27, 23, 0.1);
}

.isti-post-thumb {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e8eeeb;
}

.isti-post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.isti-post-card:hover .isti-post-thumb img {
	transform: scale(1.04);
}

.isti-post-details {
	padding: 1.05rem 1.15rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	flex-grow: 1;
}

.isti-post-meta {
	font-size: 0.78rem;
	color: var(--isti-muted);
}

.isti-post-details .entry-title {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.5;
	font-family: var(--isti-display);
}

.isti-post-details .entry-title a {
	color: var(--isti-ink);
	text-decoration: none;
}

.isti-post-details .entry-title a:hover {
	color: var(--isti-emerald);
}

.isti-post-details .entry-summary {
	margin: 0;
	font-size: 0.9rem;
	color: var(--isti-muted);
	line-height: 1.7;
}

.isti-post-more {
	margin-top: auto;
	align-self: flex-start;
	color: var(--isti-emerald);
	font-weight: 700;
	font-size: 0.88rem;
	text-decoration: none;
}

.isti-pagination {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2rem;
}

.isti-pagination a {
	color: var(--isti-emerald);
	font-weight: 700;
	text-decoration: none;
}

/* ——— Single post ——— */
.isti-single-main {
	direction: rtl;
	width: min(760px, calc(100% - 2rem));
	margin: 0 auto;
	padding: 2rem 0 3rem;
}

.isti-single-main .page-header {
	margin-bottom: 1.25rem;
}

.isti-single-main .entry-title {
	margin: 0 0 0.5rem;
	font-family: var(--isti-display);
	font-size: clamp(1.7rem, 3.2vw, 2.4rem);
	line-height: 1.35;
	color: var(--isti-emerald);
}

.isti-single-meta {
	color: var(--isti-muted);
	font-size: 0.88rem;
	margin-bottom: 1.25rem;
}

.isti-single-thumb {
	margin: 0 0 1.5rem;
	border-radius: 16px;
	overflow: hidden;
}

.isti-single-thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.isti-single-main .page-content {
	font-size: 1.05rem;
	line-height: 1.95;
	color: #24332e;
}

.isti-single-main .page-content a {
	color: var(--isti-emerald-bright);
}

.isti-cta-box {
	max-width: 560px;
	width: calc(100% - 0px);
	margin: 2.5rem auto 0;
	padding: 1.6rem 1.25rem;
	background: linear-gradient(135deg, #064e3b 0%, #0d1b17 100%);
	border-radius: 16px;
	text-align: center;
	border: 1px solid rgba(212, 175, 55, 0.35);
	box-shadow: 0 14px 28px rgba(6, 78, 59, 0.28);
}

.isti-cta-box h3 {
	margin: 0 0 0.9rem;
	color: #fff;
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.45;
}

.isti-cta-box a {
	display: inline-block;
	padding: 0.7rem 1.5rem;
	background: linear-gradient(135deg, #fce08b 0%, #d4af37 50%, #997920 100%);
	color: #111827 !important;
	font-weight: 800;
	text-decoration: none !important;
	border-radius: 999px;
}

.isti-post-tags {
	margin-top: 1.5rem;
}

.isti-post-tags a {
	display: inline-block;
	margin: 0 0 0.35rem 0.35rem;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	background: rgba(15, 81, 50, 0.08);
	color: var(--isti-emerald);
	text-decoration: none;
	font-size: 0.82rem;
}
