/* Foroshandeh Blog Redesign — scoped under .fsh-blog */
.fsh-blog {
	--fsh-primary: #7c3aed;
	--fsh-primary-dark: #5b21b6;
	--fsh-accent: #d946ef;
	--fsh-ink: #1f1b2e;
	--fsh-muted: #605b75;
	--fsh-soft: #f5f1ff;
	--fsh-line: #ebe5fa;
	--fsh-radius: 22px;
	--fsh-shadow: 0 1px 2px rgba(60, 30, 120, .05), 0 12px 32px -12px rgba(88, 40, 190, .18);
	--fsh-shadow-hover: 0 2px 4px rgba(60, 30, 120, .06), 0 24px 48px -14px rgba(88, 40, 190, .30);
	direction: rtl;
	text-align: right;
	max-width: 1240px;
	margin: 0 auto;
	padding: 24px 20px 72px;
	color: var(--fsh-ink);
	font-family: inherit;
	line-height: 1.8;
	box-sizing: border-box;
}
.fsh-blog *, .fsh-blog *::before, .fsh-blog *::after { box-sizing: border-box; }
.fsh-blog a { text-decoration: none; color: inherit; }
.fsh-blog ul, .fsh-blog ol { list-style: none; margin: 0; padding: 0; }
.fsh-blog h1, .fsh-blog h2, .fsh-blog h3, .fsh-blog p { margin: 0; }
.fsh-blog a:focus-visible, .fsh-blog button:focus-visible, .fsh-blog input:focus-visible {
	outline: 3px solid rgba(124, 58, 237, .45);
	outline-offset: 3px;
	border-radius: 10px;
}

/* Buttons */
.fsh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 24px; border-radius: 14px; font-weight: 700; font-size: 15px;
	line-height: 1.4; cursor: pointer; border: 0;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.fsh-btn:hover { transform: translateY(-2px); }
.fsh-btn--primary { background: linear-gradient(135deg, var(--fsh-primary), var(--fsh-accent)); color: #fff !important; box-shadow: 0 10px 24px -8px rgba(124, 58, 237, .55); }
.fsh-btn--ghost { background: #fff; color: var(--fsh-primary-dark) !important; border: 1.5px solid var(--fsh-line); }
.fsh-btn--light { background: #fff; color: var(--fsh-primary-dark) !important; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .25); }
.fsh-btn--block { width: 100%; }

/* Hero */
.fsh-hero {
	position: relative; overflow: hidden; border-radius: 32px;
	padding: 56px 48px; margin-bottom: 28px;
	background: linear-gradient(135deg, #f3ecff 0%, #fbeaff 55%, #fff 100%);
	border: 1px solid var(--fsh-line);
}
.fsh-hero__content { position: relative; z-index: 2; max-width: 640px; }
.fsh-eyebrow {
	display: inline-block; padding: 4px 14px; border-radius: 999px; margin-bottom: 14px;
	background: #fff; color: var(--fsh-primary-dark); font-size: 13px; font-weight: 700;
	border: 1px solid var(--fsh-line);
}
.fsh-hero h1 { font-size: clamp(26px, 4vw, 42px); line-height: 1.45; font-weight: 900; color: var(--fsh-ink); }
.fsh-hero p { margin-top: 12px; color: var(--fsh-muted); font-size: 17px; }
.fsh-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.fsh-hero__blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 1; }
.fsh-hero__blob--1 { width: 340px; height: 340px; left: -90px; top: -120px; background: radial-gradient(circle, rgba(124, 58, 237, .28), transparent 70%); }
.fsh-hero__blob--2 { width: 260px; height: 260px; left: 140px; bottom: -130px; background: radial-gradient(circle, rgba(217, 70, 239, .28), transparent 70%); }

/* Toolbar */
.fsh-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; scroll-margin-top: 90px; }
.fsh-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.fsh-tabs a {
	padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
	background: #fff; border: 1.5px solid var(--fsh-line); color: var(--fsh-muted);
	transition: all .2s ease;
}
.fsh-tabs a:hover { border-color: var(--fsh-primary); color: var(--fsh-primary-dark); }
.fsh-tabs a.is-active { background: var(--fsh-primary); border-color: var(--fsh-primary); color: #fff; }
.fsh-search { position: relative; width: 100%; max-width: 300px; }
.fsh-search input {
	width: 100%; height: 46px; padding: 0 18px 0 48px; border-radius: 14px;
	border: 1.5px solid var(--fsh-line); background: #fff; font-size: 14px; font-family: inherit; color: var(--fsh-ink);
}
.fsh-search button {
	position: absolute; left: 6px; top: 6px; width: 34px; height: 34px; border: 0; border-radius: 10px;
	background: var(--fsh-soft); color: var(--fsh-primary-dark); cursor: pointer;
	display: flex; align-items: center; justify-content: center; padding: 0;
}

/* Layout */
.fsh-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.fsh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

/* Card */
.fsh-card {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border: 1px solid var(--fsh-line); border-radius: var(--fsh-radius);
	box-shadow: var(--fsh-shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.fsh-card:hover { transform: translateY(-5px); box-shadow: var(--fsh-shadow-hover); }
.fsh-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--fsh-soft); overflow: hidden; }
.fsh-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform .5s ease; }
.fsh-card:hover .fsh-card__media img { transform: scale(1.04); }
.fsh-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #ede4ff, #fbe4ff); }
.fsh-badge {
	position: absolute; top: 14px; right: 14px; padding: 4px 14px; border-radius: 999px;
	background: rgba(255, 255, 255, .92); color: var(--fsh-primary-dark); font-size: 12.5px; font-weight: 700;
	backdrop-filter: blur(6px);
}
.fsh-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 18px; gap: 10px; }
.fsh-card__title { font-size: 19px; line-height: 1.6; font-weight: 800; color: var(--fsh-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fsh-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.fsh-card__title a:hover { color: var(--fsh-primary); }
.fsh-card__excerpt { color: var(--fsh-muted); font-size: 14.5px; line-height: 1.95; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fsh-card__foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--fsh-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.fsh-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: #7b7692; font-size: 12.5px; }
.fsh-meta li { display: inline-flex; align-items: center; gap: 5px; }
.fsh-more { display: inline-flex; align-items: center; gap: 6px; color: var(--fsh-primary); font-weight: 700; font-size: 13.5px; }
.fsh-more svg { transition: transform .2s ease; }
.fsh-card:hover .fsh-more svg { transform: translateX(-4px); }

/* Inline CTA */
.fsh-inline-cta {
	grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
	padding: 30px 34px; border-radius: 26px; color: #fff;
	background: linear-gradient(120deg, var(--fsh-primary-dark), var(--fsh-primary) 55%, var(--fsh-accent));
	box-shadow: 0 20px 44px -18px rgba(124, 58, 237, .6);
}
.fsh-inline-cta h3 { font-size: 24px; font-weight: 900; color: #fff; line-height: 1.5; }
.fsh-inline-cta p { margin-top: 4px; color: rgba(255, 255, 255, .88); font-size: 15px; }

/* Sidebar */
.fsh-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 22px; }
.fsh-side-cta {
	padding: 26px 24px; border-radius: 26px; color: #fff;
	background: linear-gradient(160deg, var(--fsh-primary-dark), var(--fsh-primary) 60%, var(--fsh-accent));
	box-shadow: 0 20px 44px -18px rgba(124, 58, 237, .6);
}
.fsh-side-cta__icon { display: inline-flex; width: 50px; height: 50px; align-items: center; justify-content: center; border-radius: 16px; background: rgba(255, 255, 255, .18); margin-bottom: 12px; }
.fsh-side-cta h3 { font-size: 20px; font-weight: 900; line-height: 1.6; color: #fff; }
.fsh-side-cta ul { margin: 14px 0 20px; display: grid; gap: 8px; font-size: 14px; }
.fsh-side-cta li { display: flex; align-items: center; gap: 8px; }
.fsh-side-cta li svg { flex: none; padding: 2px; border-radius: 50%; background: rgba(255, 255, 255, .25); width: 20px; height: 20px; }
.fsh-popular { padding: 22px; background: #fff; border: 1px solid var(--fsh-line); border-radius: 24px; box-shadow: var(--fsh-shadow); }
.fsh-popular h3 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.fsh-popular ol { display: grid; gap: 14px; }
.fsh-popular a { display: flex; align-items: center; gap: 12px; }
.fsh-popular__thumb { flex: none; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: var(--fsh-soft); }
.fsh-popular__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.fsh-popular__title { font-size: 13.5px; font-weight: 700; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fsh-popular a:hover .fsh-popular__title { color: var(--fsh-primary); }

/* Pagination */
.fsh-pagination { margin-top: 40px; }
.fsh-pagination ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.fsh-page {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
	border-radius: 14px; background: #fff; border: 1.5px solid var(--fsh-line); color: var(--fsh-ink);
	font-weight: 700; font-size: 15px; transition: all .2s ease;
}
a.fsh-page:hover { border-color: var(--fsh-primary); color: var(--fsh-primary); transform: translateY(-2px); }
.fsh-page.is-current { background: linear-gradient(135deg, var(--fsh-primary), var(--fsh-accent)); border-color: transparent; color: #fff; box-shadow: 0 10px 22px -8px rgba(124, 58, 237, .6); }
.fsh-page--gap { border: 0; background: transparent; min-width: 24px; padding: 0; }

/* Empty */
.fsh-empty { padding: 56px 24px; text-align: center; background: #fff; border: 1px dashed var(--fsh-line); border-radius: var(--fsh-radius); display: grid; gap: 18px; justify-items: center; color: var(--fsh-muted); }

/* Responsive */
@media (max-width: 1024px) {
	.fsh-layout { grid-template-columns: 1fr; }
	.fsh-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
	.fsh-blog { padding: 16px 14px 56px; }
	.fsh-hero { padding: 34px 22px; border-radius: 24px; }
	.fsh-grid, .fsh-sidebar { grid-template-columns: 1fr; }
	.fsh-search { max-width: none; }
	.fsh-inline-cta { padding: 24px 22px; }
	.fsh-inline-cta .fsh-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.fsh-blog * { transition: none !important; }
}
