/* صفحه مستقل نویسنده - نسخه 2 */
html { margin: 0 !important; }
body.sgb-author-standalone {
	margin: 0 !important;
	min-height: 100%;
	background: #f7f8fa;
	color: #252a32;
}
body.sgb-author-standalone.admin-bar { margin-top: 0 !important; }
body.sgb-author-standalone #wpadminbar { position: fixed; }

.sgb-author-page,
.sgb-author-page * { box-sizing: border-box; }

.sgb-author-page {
	direction: rtl;
	width: 100%;
	min-height: 100vh;
	padding: 26px 0 70px;
	background: #f7f8fa;
	font-family: inherit;
}

.sgb-author-container {
	width: min(calc(100% - 32px), 1040px);
	margin-inline: auto;
}

/* کارت نویسنده در ستون اول یعنی سمت راست */
.sgb-author-top {
	display: grid;
	grid-template-columns: 278px minmax(0, 1fr);
	grid-template-areas: "sidebar main";
	gap: 30px;
	align-items: start;
	direction: rtl;
}

.sgb-author-sidebar {
	grid-area: sidebar;
	min-width: 0;
	direction: rtl;
}

.sgb-author-main {
	grid-area: main;
	min-width: 0;
	direction: rtl;
}

.sgb-author-card,
.sgb-author-sidebar-extra {
	background: #fff;
	border: 1px solid #e8ebef;
	border-radius: 13px;
	box-shadow: 0 7px 22px rgba(31, 39, 51, .06);
}

.sgb-author-card {
	padding: 28px 23px 25px;
	text-align: center;
}

.sgb-author-avatar {
	width: 104px;
	height: 104px;
	margin: 0 auto 19px;
	padding: 5px;
	border-radius: 999px;
	background: linear-gradient(145deg, #3b91ff, #155ddb);
	box-shadow: 0 7px 15px rgba(27, 91, 191, .18);
	overflow: hidden;
}

.sgb-author-avatar-image {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	border: 4px solid #fff;
	border-radius: 999px;
}

.sgb-author-name {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.55;
	color: #181c23;
}

.sgb-author-role {
	margin: 2px 0 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.85;
	color: #1877f2;
}

.sgb-author-socials {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 17px;
}

.sgb-author-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 33px;
	height: 33px;
	border: 1px solid #e5e8ed;
	border-radius: 50%;
	background: #f6f7f9;
	color: #7b8492;
	transition: .2s ease;
}

.sgb-author-socials a:hover {
	transform: translateY(-2px);
	border-color: #cfe0fa;
	background: #edf5ff;
	color: #1877f2;
}

.sgb-author-socials svg { width: 15px; height: 15px; fill: currentColor; }

.sgb-author-expertise {
	margin-top: 27px;
	padding-top: 22px;
	border-top: 1px solid #eceef2;
	text-align: right;
}

.sgb-author-expertise h3 {
	margin: 0 0 13px;
	font-size: 16px;
	font-weight: 800;
	color: #1d222b;
}

.sgb-author-expertise ul { list-style: none; margin: 0; padding: 0; }
.sgb-author-expertise li {
	position: relative;
	margin: 0;
	padding: 8px 27px 8px 0;
	font-size: 13px;
	line-height: 1.7;
	color: #586170;
}
.sgb-author-expertise li::before {
	content: "✓";
	position: absolute;
	right: 0;
	top: 5px;
	font-size: 19px;
	font-weight: 900;
	color: #149647;
}

.sgb-author-sidebar-extra {
	margin-top: 18px;
	padding: 18px;
	font-size: 13px;
	line-height: 2;
	color: #535d6b;
	overflow: hidden;
}
.sgb-author-sidebar-extra > :first-child { margin-top: 0; }
.sgb-author-sidebar-extra > :last-child { margin-bottom: 0; }
.sgb-author-sidebar-extra img { max-width: 100%; height: auto; }

.sgb-author-about-title {
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid #232b35;
	font-size: 25px;
	font-weight: 850;
	line-height: 1.5;
	color: #171c24;
}

.sgb-author-bio {
	font-size: 14px;
	line-height: 2.2;
	color: #4f5967;
}
.sgb-author-bio p { margin: 0 0 12px; }
.sgb-author-bio > :first-child { margin-top: 0; }
.sgb-author-bio > :last-child { margin-bottom: 0; }
.sgb-author-bio strong,
.sgb-author-bio b { color: #252c36; }
.sgb-author-bio img { max-width: 100%; height: auto; }

.sgb-author-divider {
	height: 11px;
	margin: 22px 0 13px;
	background: #dedede;
}

.sgb-author-quality {
	background: #fff;
	border: 1px solid #e8eaee;
	border-radius: 12px;
	box-shadow: 0 6px 18px rgba(32, 39, 51, .055);
	overflow: hidden;
}

.sgb-author-quality-item {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	padding: 17px 19px;
}
.sgb-author-quality-item + .sgb-author-quality-item { border-top: 1px solid #eef0f3; }

.sgb-author-quality-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #f0f4f8;
}
.sgb-author-quality-icon.is-standard { color: #d92d20; }
.sgb-author-quality-icon.is-review { color: #222933; }
.sgb-author-quality-icon svg { width: 22px; height: 22px; fill: currentColor; }
.sgb-author-quality strong {
	display: block;
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 800;
	color: #272d36;
}
.sgb-author-quality p { margin: 0; font-size: 12px; line-height: 1.9; color: #6a7280; }
.sgb-author-quality a { color: #1473e6; font-weight: 600; }

.sgb-author-before-posts {
	margin-top: 58px;
	font-size: 14px;
	line-height: 2;
	color: #4f5967;
}
.sgb-author-before-posts > :first-child { margin-top: 0; }
.sgb-author-before-posts > :last-child { margin-bottom: 0; }
.sgb-author-before-posts img { display: block; max-width: 100%; height: auto; margin-inline: auto; }

.sgb-author-posts { margin-top: 60px; }
.sgb-author-before-posts + .sgb-author-posts { margin-top: 24px; }

.sgb-author-section-heading {
	display: flex;
	align-items: center;
	margin: 0 0 30px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.6;
	color: #242a33;
}
.sgb-author-section-heading::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #d9dde3;
}
.sgb-author-section-heading span {
	display: inline-block;
	padding: 7px 15px;
	background: #fff;
	border: 1px solid #d9dde3;
}

.sgb-author-post-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px 17px;
}

.sgb-author-post-card {
	min-width: 0;
	margin: 0;
	background: #fff;
	border: 1px solid #e8eaee;
	border-radius: 9px;
	box-shadow: 0 4px 14px rgba(32, 40, 52, .055);
	overflow: hidden;
	transition: transform .22s ease, box-shadow .22s ease;
}
.sgb-author-post-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(32, 40, 52, .1); }

.sgb-author-post-thumb {
	display: block;
	aspect-ratio: 16 / 9;
	background: #e9edf3;
	overflow: hidden;
}
.sgb-author-post-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}
.sgb-author-post-card:hover .sgb-author-post-thumb img { transform: scale(1.035); }
.sgb-author-post-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #eef2f7, #dfe6ef);
}
.sgb-author-post-body { padding: 12px 13px 14px; text-align: right; }
.sgb-author-post-title {
	display: -webkit-box;
	min-height: 50px;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.8;
}
.sgb-author-post-title a { color: #1683ef; text-decoration: none; }
.sgb-author-post-title a:hover { color: #0b5fb8; }
.sgb-author-post-date { display: block; margin-top: 8px; font-size: 11px; line-height: 1.6; color: #8a929e; }

.sgb-author-pagination { margin-top: 38px; text-align: center; }
.sgb-author-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.sgb-author-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 11px;
	border: 1px solid #dde1e7;
	border-radius: 7px;
	background: #fff;
	color: #434b57;
	text-decoration: none;
}
.sgb-author-pagination .page-numbers.current,
.sgb-author-pagination a.page-numbers:hover { border-color: #1683ef; background: #1683ef; color: #fff; }
.sgb-author-empty { padding: 34px 20px; background: #fff; border: 1px solid #e6e9ed; border-radius: 10px; text-align: center; color: #646d79; }

@media (max-width: 1024px) {
	.sgb-author-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 849px) {
	.sgb-author-page { padding-top: 22px; }
	.sgb-author-top {
		grid-template-columns: 1fr;
		grid-template-areas: "sidebar" "main";
		gap: 25px;
	}
	.sgb-author-sidebar { width: min(100%, 540px); margin-inline: auto; }
	.sgb-author-about-title { font-size: 22px; }
	.sgb-author-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sgb-author-posts { margin-top: 42px; }
}

@media (max-width: 560px) {
	.sgb-author-container { width: min(calc(100% - 24px), 1040px); }
	.sgb-author-card { padding: 24px 19px 22px; }
	.sgb-author-quality-item { grid-template-columns: 36px minmax(0, 1fr); padding: 15px 13px; }
	.sgb-author-quality-icon { width: 34px; height: 34px; }
	.sgb-author-section-heading { font-size: 17px; }
	.sgb-author-section-heading::after { display: none; }
	.sgb-author-section-heading span { width: 100%; text-align: center; }
	.sgb-author-post-grid { grid-template-columns: 1fr; gap: 15px; }
	.sgb-author-post-title { min-height: auto; }
}
