/*
Theme Name: Shakiba
Theme URI: https://www.shakibaabutalebi.ir/
Author: Shakiba Abutalebi
Author URI: https://www.shakibaabutalebi.ir/
Description: پوسته حرفه‌ای، مدرن و راست‌چین برای سایت شخصی و رزومه؛ سازگار با افزونه المنتور، دارای صفحه اصلی تک‌صفحه‌ای و بخش وبلاگ.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shakiba
Tags: blog, portfolio, rtl-language-support, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ------------------------------------------------------------------
   1. توکن‌ها و پایه
------------------------------------------------------------------ */
:root {
	--navy: #0b3b6e;
	--navy-deep: #072a51;
	--blue: #1478d4;
	--blue-soft: #2e9be0;
	--ink: #0f2440;
	--muted: #5d7189;
	--soft: #f3f8fd;
	--soft-2: #eaf2fa;
	--line: #e2ebf4;
	--white: #ffffff;
	--success: #12a67a;
	--radius: 18px;
	--radius-lg: 26px;
	--shadow-sm: 0 6px 18px rgba(11, 59, 110, 0.07);
	--shadow: 0 18px 44px rgba(11, 59, 110, 0.12);
	--header-h: 78px;
	--container: 1160px;
	--font: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 2;
	color: var(--ink);
	background: var(--white);
	direction: rtl;
	text-align: right;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

body.nav-open {
	overflow: hidden;
}

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

a {
	color: var(--blue);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--navy);
}

h1, h2, h3, h4, h5 {
	margin: 0 0 14px;
	line-height: 1.6;
	font-weight: 800;
	color: var(--navy);
	letter-spacing: -0.2px;
}

p {
	margin: 0 0 16px;
}

ul, ol {
	margin: 0 0 16px;
	padding: 0 22px 0 0;
}

button {
	font-family: inherit;
}

.container {
	width: min(var(--container), 92%);
	margin-inline: auto;
}

.skip-link {
	position: absolute;
	right: -9999px;
	top: 0;
	background: var(--navy);
	color: #fff;
	padding: 10px 18px;
	z-index: 200;
	border-radius: 0 0 10px 10px;
}

.skip-link:focus {
	right: 12px;
	color: #fff;
}

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

/* ------------------------------------------------------------------
   2. دکمه‌ها
------------------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	border: 1px solid transparent;
	border-radius: 13px;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	line-height: 1.6;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
	background: linear-gradient(135deg, var(--navy), var(--blue-soft));
	color: #fff;
	box-shadow: 0 12px 26px rgba(11, 59, 110, 0.24);
}

.btn-primary:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 32px rgba(11, 59, 110, 0.3);
	color: #fff;
}

.btn-ghost {
	background: var(--white);
	border-color: var(--line);
	color: var(--navy);
}

.btn-ghost:hover {
	background: var(--soft);
	transform: translateY(-3px);
	color: var(--navy);
}

.btn-sm {
	padding: 9px 18px;
	font-size: 14px;
	border-radius: 11px;
}

/* ------------------------------------------------------------------
   3. هدر
------------------------------------------------------------------ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
	border-bottom-color: var(--line);
	box-shadow: 0 8px 26px rgba(11, 59, 110, 0.08);
}

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

.brand {
	display: flex;
	align-items: center;
	min-width: 0;
}

.brand a {
	display: flex;
	align-items: center;
	gap: 11px;
	color: var(--navy);
}

.brand .custom-logo-link {
	display: flex;
	align-items: center;
}

.custom-logo {
	max-height: 52px;
	width: auto;
	object-fit: contain;
}

.brand-upload {
	display: flex;
	align-items: center;
	gap: 11px;
	color: var(--navy);
	text-decoration: none;
}

.brand-placeholder {
	background: transparent;
	border: 2px dashed #b9cfe4;
	color: var(--blue);
	font-size: 17px;
	box-shadow: none;
}

.brand-upload:hover .brand-placeholder {
	border-color: var(--blue);
	background: var(--soft-2);
}

.brand-logo {
	display: block;
	height: 46px;
	width: auto;
	max-width: 190px;
	object-fit: contain;
	border-radius: 12px;
}

.brand-logo-link {
	display: flex;
	align-items: center;
}

.brand-mark {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: linear-gradient(140deg, var(--navy), var(--blue-soft));
	color: #fff;
	font-size: 21px;
	font-weight: 900;
	flex: none;
	box-shadow: 0 10px 22px rgba(11, 59, 110, 0.25);
}

.brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.5;
	min-width: 0;
}

.brand-text strong {
	font-size: 17px;
	font-weight: 900;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.brand-text small {
	font-size: 11.5px;
	color: var(--muted);
	font-weight: 500;
}

.header-inner .site-nav {
	margin-inline-start: auto;
}

.site-nav ul {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav li {
	position: relative;
}

.site-nav a {
	display: block;
	padding: 9px 13px;
	border-radius: 10px;
	font-size: 14.5px;
	font-weight: 600;
	color: #41566f;
	white-space: nowrap;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav a.is-active {
	background: var(--soft-2);
	color: var(--navy);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	padding: 0;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
}

.nav-toggle span {
	display: block;
	width: 19px;
	height: 2px;
	border-radius: 2px;
	background: var(--navy);
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ------------------------------------------------------------------
   4. هیرو
------------------------------------------------------------------ */
.hero {
	position: relative;
	overflow: hidden;
	padding: 74px 0 66px;
	background:
		radial-gradient(ellipse at 88% 12%, #dcebfb 0, transparent 45%),
		linear-gradient(150deg, #f8fbff 0%, #ffffff 55%, #eef5fb 100%);
}

.hero::after {
	content: "";
	position: absolute;
	left: -140px;
	bottom: -210px;
	width: 460px;
	height: 460px;
	border: 1px solid #ccdcEC;
	border-radius: 50%;
	box-shadow: 0 0 0 38px rgba(226, 238, 249, 0.55), 0 0 0 82px rgba(232, 242, 250, 0.45);
	pointer-events: none;
}

.hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.08fr 0.92fr;
	align-items: center;
	gap: 48px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 7px 15px;
	border-radius: 999px;
	background: #e4f0fb;
	border: 1px solid #cfe2f4;
	color: var(--navy);
	font-size: 12.5px;
	font-weight: 800;
}

.eyebrow i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--blue-soft);
	display: inline-block;
}

.hero h1 {
	font-size: clamp(30px, 4.2vw, 50px);
	font-weight: 900;
	line-height: 1.5;
	margin: 20px 0 16px;
	color: #092f67;
}

.hero h1 em {
	font-style: normal;
	color: var(--blue-soft);
}

.hero-lead {
	color: #566b83;
	font-size: 16.5px;
	max-width: 560px;
	margin-bottom: 28px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 13px;
	margin-bottom: 34px;
}

.hero-points {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
	color: #53657b;
	font-size: 13px;
}

.hero-points li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hero-points li::before {
	content: "✓";
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #dcf0fb;
	color: var(--navy);
	font-size: 11px;
	font-weight: 900;
}

.hero-visual {
	position: relative;
	display: grid;
	place-items: center;
}

.profile-card {
	position: relative;
	width: min(100%, 430px);
	padding: 28px;
	border: 1px solid #dce7f2;
	border-radius: var(--radius-lg);
	background: linear-gradient(150deg, #ffffff, #eef4fa);
	box-shadow: var(--shadow);
}

.profile-card .avatar {
	display: grid;
	place-items: center;
	width: 92px;
	height: 92px;
	border-radius: 28px;
	background: linear-gradient(140deg, var(--navy), var(--blue-soft));
	color: #fff;
	font-size: 38px;
	font-weight: 900;
	margin-bottom: 18px;
	box-shadow: 0 16px 30px rgba(11, 59, 110, 0.28);
}

.profile-card h2 {
	font-size: 24px;
	margin-bottom: 6px;
}

.profile-card .role {
	color: var(--blue);
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 14px;
}

.profile-list {
	list-style: none;
	margin: 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--line);
	display: grid;
	gap: 11px;
}

.profile-list li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 13.5px;
	color: var(--muted);
}

.profile-list b {
	color: var(--navy);
	font-weight: 700;
	text-align: left;
}

.profile-list a {
	direction: ltr;
 unicode-bidi: embed;
}

.float-badge {
	position: absolute;
	background: #fff;
	border: 1px solid #e3eaf3;
	border-radius: 15px;
	padding: 11px 16px;
	box-shadow: var(--shadow-sm);
	font-size: 12px;
	color: var(--muted);
	line-height: 1.7;
}

.float-badge strong {
	display: block;
	font-size: 15px;
	color: var(--navy);
}

.badge-top {
	top: -20px;
	left: -14px;
}

.badge-bottom {
	bottom: -22px;
	right: -10px;
}

/* ------------------------------------------------------------------
   5. سرصفحه بخش‌ها
------------------------------------------------------------------ */
.section {
	padding: 84px 0;
	position: relative;
}

.section-alt {
	background: var(--soft);
}

.section-head {
	max-width: 680px;
	margin: 0 auto 44px;
	text-align: center;
}

.section-head h2 {
	font-size: clamp(24px, 3vw, 36px);
	font-weight: 900;
	margin-bottom: 10px;
}

.section-head p {
	color: var(--muted);
	font-size: 14.5px;
	margin: 0;
}

/* ------------------------------------------------------------------
   6. درباره من
------------------------------------------------------------------ */
.about-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 46px;
	align-items: center;
}

.about-copy .lead {
	font-size: 17px;
	color: var(--ink);
	font-weight: 600;
}

.about-copy p {
	color: #566b83;
	font-size: 15px;
}

.fact-panel {
	background: linear-gradient(155deg, var(--navy), #0d5fa5);
	color: #fff;
	border-radius: var(--radius-lg);
	padding: 34px;
	position: relative;
	overflow: hidden;
	box-shadow: var(--shadow);
}

.fact-panel::after {
	content: "ش‌ا";
	position: absolute;
	left: -6px;
	bottom: -56px;
	font-size: 150px;
	font-weight: 900;
	color: rgba(255, 255, 255, 0.07);
	line-height: 1;
	direction: ltr;
}

.fact-panel h3 {
	color: #fff;
	font-size: 22px;
	margin-bottom: 18px;
}

.fact-list {
	position: relative;
	z-index: 1;
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}

.fact-list li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	padding: 12px 15px;
	font-size: 13.5px;
	color: #dcecfb;
}

.fact-list li b {
	display: block;
	color: #fff;
	font-size: 14.5px;
}

.fact-list li span {
	color: #9fd0f7;
	font-size: 11.5px;
}

/* ------------------------------------------------------------------
   7. رزومه
------------------------------------------------------------------ */
.download-cta {
	margin: 26px 0 0;
	text-align: start;
}

.resume-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
}

.resume-block h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 19px;
	margin-bottom: 22px;
}

.resume-block h3 .icon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--soft-2);
	color: var(--navy);
	font-size: 17px;
}

.timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.timeline::before {
	content: "";
	position: absolute;
	right: 7px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: linear-gradient(var(--blue-soft), var(--line));
}

.timeline li {
	position: relative;
	padding: 0 34px 26px 0;
}

.timeline li:last-child {
	padding-bottom: 0;
}

.timeline li::before {
	content: "";
	position: absolute;
	right: 0;
	top: 7px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	border: 4px solid var(--blue-soft);
	box-shadow: 0 0 0 4px rgba(46, 155, 224, 0.16);
}

.timeline .item-title {
	display: block;
	font-size: 16px;
	font-weight: 800;
	color: var(--navy);
	line-height: 1.8;
}

.timeline .item-meta {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--blue);
	background: var(--soft-2);
	border-radius: 8px;
	padding: 2px 10px;
	margin-top: 4px;
	margin-bottom: 6px;
}

.timeline .item-desc {
	font-size: 13.5px;
	color: var(--muted);
	margin: 0;
	line-height: 1.9;
}

/* ------------------------------------------------------------------
   8. مهارت‌ها
------------------------------------------------------------------ */
.skills-groups {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.skill-group {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px 28px 28px;
	box-shadow: var(--shadow-sm);
}

.skill-group-title {
	font-size: 17.5px;
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}

.skill-list {
	display: grid;
	gap: 20px;
}

.skill-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 12px;
}

.skill-name {
	font-size: 16.5px;
	font-weight: 800;
	color: var(--navy);
}

.skill-value {
	font-size: 13.5px;
	font-weight: 800;
	color: var(--blue);
}

.skill-track {
	height: 9px;
	border-radius: 99px;
	background: var(--soft-2);
	overflow: hidden;
}

.skill-fill {
	display: block;
	height: 100%;
	width: var(--value, 0%);
	border-radius: 99px;
	background: linear-gradient(90deg, var(--navy), var(--blue-soft));
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-visible .skill-fill {
	transform: scaleX(1);
}

/* ------------------------------------------------------------------
   9. وبلاگ
------------------------------------------------------------------ */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

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

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

.post-thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--soft-2);
}

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

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

.post-thumb.placeholder {
	display: grid;
	place-items: center;
	color: var(--blue);
	font-size: 34px;
	font-weight: 900;
	background: linear-gradient(145deg, var(--soft-2), #dcecfa);
}

.post-body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.post-meta {
	font-size: 12px;
	color: var(--muted);
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.post-card h3 {
	font-size: 17.5px;
	margin: 0;
	line-height: 1.9;
}

.post-card h3 a {
	color: var(--navy);
}

.post-card h3 a:hover {
	color: var(--blue);
}

.post-excerpt {
	font-size: 13.5px;
	color: var(--muted);
	margin: 0;
	line-height: 1.95;
}

.post-more {
	margin-top: auto;
	padding-top: 12px;
	font-size: 13px;
	font-weight: 800;
	color: var(--blue);
}

.empty-state {
	text-align: center;
	background: var(--white);
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	padding: 46px 24px;
	color: var(--muted);
	font-size: 14.5px;
}

.section-cta {
	text-align: center;
	margin-top: 34px;
}

/* ------------------------------------------------------------------
   10. تماس
------------------------------------------------------------------ */
.contact-grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 26px;
	align-items: start;
}

.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px;
	box-shadow: var(--shadow-sm);
}

.card h3 {
	font-size: 19px;
	margin-bottom: 16px;
}

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

.contact-list li {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	padding: 13px 0;
	border-bottom: 1px solid #edf2f7;
	font-size: 14px;
}

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

.contact-list span {
	color: var(--muted);
}

.contact-list b,
.contact-list a {
	color: var(--navy);
	font-weight: 700;
}

.contact-list a {
	direction: ltr;
	unicode-bidi: embed;
}

.socials {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 6px;
}

.socials a {
	border: 1px solid var(--line);
	border-radius: 11px;
	padding: 9px 16px;
	font-size: 13px;
	font-weight: 700;
	color: var(--navy);
	background: var(--white);
	transition: 0.2s ease;
}

.socials a:hover {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
	transform: translateY(-3px);
}

.contact-note {
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 16px 18px;
	font-size: 13.5px;
	color: var(--muted);
	margin: 0;
}

.wp-block-button__link,
.wpcf7 input[type="submit"],
input[type="submit"] {
	font-family: inherit;
}

/* ------------------------------------------------------------------
   11. صفحات وبلاگ
------------------------------------------------------------------ */
.page-hero {
	background: linear-gradient(150deg, var(--soft), #ffffff);
	border-bottom: 1px solid var(--line);
	padding: 54px 0;
	text-align: center;
}

.page-hero h1 {
	font-size: clamp(26px, 3.4vw, 40px);
	font-weight: 900;
	margin: 0;
}

.page-hero .breadcrumb {
	font-size: 13px;
	color: var(--muted);
	margin-top: 8px;
}

.content-area {
	padding: 66px 0 84px;
}

.content-area .entry-title {
	font-size: clamp(24px, 3vw, 34px);
}

.entry {
	max-width: 780px;
	margin: 0 auto;
}

.entry-wide {
	max-width: var(--container);
	margin: 0 auto;
}

.entry-meta {
	font-size: 13px;
	color: var(--muted);
	margin-bottom: 22px;
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.entry-content {
	font-size: 16.5px;
	color: #33465d;
}

.entry-content h2 {
	font-size: 26px;
	margin-top: 34px;
}

.entry-content h3 {
	font-size: 21px;
	margin-top: 28px;
}

.entry-content img {
	border-radius: 14px;
}

.entry-content blockquote {
	margin: 26px 0;
	padding: 16px 22px;
	border-right: 4px solid var(--blue-soft);
	background: var(--soft);
	border-radius: 0 14px 14px 0;
	color: var(--navy);
}

.entry-content a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-footer {
	max-width: 780px;
	margin: 26px auto 0;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	font-size: 13.5px;
	color: var(--muted);
}

.post-navigation {
	max-width: 780px;
	margin: 34px auto 0;
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.post-navigation a {
	display: block;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 16px 20px;
	font-weight: 700;
	color: var(--navy);
	font-size: 14px;
	max-width: 48%;
}

.post-navigation a:hover {
	background: var(--soft);
}

.post-navigation .nav-next {
	text-align: left;
}

.pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
	flex-wrap: wrap;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	font-size: 14px;
	font-weight: 700;
	color: var(--navy);
}

.pagination .page-numbers.current {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

.pagination .page-numbers:hover {
	background: var(--soft);
}

.pagination .page-numbers.current:hover {
	background: var(--navy);
	color: #fff;
}

/* ------------------------------------------------------------------
   12. فوتر
------------------------------------------------------------------ */
.site-footer {
	background: #06203f;
	color: #b9cce2;
	padding: 54px 0 26px;
	font-size: 14px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 36px;
	padding-bottom: 32px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	font-weight: 900;
	font-size: 18px;
	margin-bottom: 14px;
}

.footer-about {
	color: #9db4cd;
	font-size: 13.5px;
	line-height: 2;
	max-width: 420px;
	margin: 0;
}

.site-footer h4 {
	color: #fff;
	font-size: 15px;
	margin-bottom: 16px;
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.footer-menu a {
	color: #b9cce2;
	font-size: 14px;
}

.footer-menu a:hover {
	color: #fff;
	padding-right: 5px;
}

.footer-contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
	font-size: 13.5px;
}

.footer-contact a {
	color: #b9cce2;
	direction: ltr;
	unicode-bidi: embed;
	display: inline-block;
}

.footer-contact a:hover {
	color: #fff;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 22px;
	font-size: 13px;
	color: #8ea6c1;
}

.footer-bottom a {
	color: #cfe0f2;
}

.to-top {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 11px;
	padding: 8px 15px;
	color: #dbe8f6;
	font-size: 13px;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.05);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: 0.25s ease;
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.to-top:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

/* ------------------------------------------------------------------
   13. انیمیشن ورود
------------------------------------------------------------------ */
.reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

.no-js .reveal {
	opacity: 1;
	transform: none;
}

/* ------------------------------------------------------------------
   14. المنتور و ویرایشگر
------------------------------------------------------------------ */
.elementor-section.elementor-section-boxed > .elementor-container {
	max-width: var(--container);
}

.elementor-widget-container > *:first-child {
	margin-top: 0;
}

.elementor-page .site-footer {
	margin-top: 0;
}

.post-password-form {
	max-width: 520px;
	margin: 0 auto;
	text-align: center;
}

.post-password-form input[type="password"] {
	font-family: inherit;
	border: 1px solid var(--line);
	border-radius: 11px;
	padding: 11px 14px;
	font-size: 15px;
}

/* ------------------------------------------------------------------
   15. واکنش‌گرا
------------------------------------------------------------------ */
@media (max-width: 1080px) {
	.post-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 980px) {
	:root {
		--header-h: 68px;
	}

	.nav-toggle {
		display: flex;
	}

	.header-inner .site-nav {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		background: #fff;
		border-bottom: 1px solid var(--line);
		box-shadow: 0 20px 40px rgba(11, 59, 110, 0.14);
		padding: 14px 0 20px;
		max-height: calc(100vh - var(--header-h));
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-12px);
		transition: 0.25s ease;
	}

	.header-inner .site-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.site-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		width: min(var(--container), 92%);
		margin-inline: auto;
	}

	.site-nav a {
		padding: 12px 14px;
		font-size: 15px;
	}

	.header-cta {
		display: none;
	}

	.hero {
		padding: 52px 0 48px;
	}

	.hero-grid,
	.about-grid,
	.contact-grid,
	.resume-grid {
		grid-template-columns: 1fr;
		gap: 34px;
	}

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

@media (max-width: 640px) {
	body {
		font-size: 15px;
	}

	.brand-text small {
		display: none;
	}

	.section {
		padding: 58px 0;
	}

	.section-head {
		margin-bottom: 30px;
	}

	.hero h1 {
		font-size: 29px;
	}

	.hero-lead {
		font-size: 15px;
	}

	.hero-actions .btn {
		width: 100%;
	}

	.badge-top {
		left: 0;
		top: -16px;
	}

	.badge-bottom {
		right: 0;
		bottom: -18px;
	}

	.skills-groups,
	.post-grid,
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.card,
	.fact-panel,
	.profile-card {
		padding: 22px;
	}

	.post-navigation {
		flex-direction: column;
	}

	.post-navigation a {
		max-width: 100%;
	}

	.entry-content {
		font-size: 15.5px;
	}

	.footer-bottom {
		justify-content: center;
		text-align: center;
	}
}

/* ------------------------------------------------------------------
   14. نمونه‌کارها
------------------------------------------------------------------ */
.portfolio {
	margin-top: 44px;
}

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

.portfolio-item {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow-sm);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-item:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow);
}

.portfolio-thumb-link {
	display: block;
}

.portfolio-thumb {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--soft-2);
}

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

.portfolio-item:hover .portfolio-thumb img {
	transform: scale(1.06);
}

.portfolio-thumb.placeholder {
	display: grid;
	place-items: center;
	font-size: 44px;
	font-weight: 900;
	color: var(--blue);
	background: linear-gradient(145deg, var(--soft-2), #dcecfa);
}

.portfolio-body {
	padding: 18px 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.portfolio-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0;
}

.portfolio-cats span {
	font-size: 11.5px;
	font-weight: 700;
	color: var(--navy);
	background: var(--soft-2);
	border-radius: 8px;
	padding: 2px 10px;
}

.portfolio-body h3 {
	font-size: 17.5px;
	margin: 0;
	line-height: 1.9;
}

.portfolio-body h3 a {
	color: var(--navy);
}

.portfolio-body h3 a:hover {
	color: var(--blue);
}

.portfolio-excerpt {
	font-size: 13.5px;
	color: var(--muted);
	margin: 0;
	line-height: 1.95;
}

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

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

	.portfolio {
		margin-top: 30px;
	}
}

/* ------------------------------------------------------------------
   15. تصاویر بخش‌ها و عکس پروفایل
------------------------------------------------------------------ */
.profile-photo {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 18px;
	border: 6px solid #fff;
	background: var(--soft-2);
	margin-bottom: 18px;
	box-shadow: 0 14px 30px rgba(11, 59, 110, 0.16);
}

.section-media {
	display: block;
	margin: 0 0 34px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--soft-2);
	aspect-ratio: 1160 / 320;
}

.section-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.media-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	height: 100%;
	min-height: 170px;
	padding: 22px;
	text-align: center;
	color: var(--muted);
	border: 2px dashed #cbdcee;
	background:
		repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0 14px, rgba(236, 244, 251, 0.75) 14px 28px),
		var(--soft);
}

.media-placeholder-icon {
	font-size: 30px;
	line-height: 1;
}

.media-placeholder-text {
	font-size: 13.5px;
	font-weight: 600;
}

/* ------------------------------------------------------------------
   16. تکمیل‌ها: فوتر، فرم‌ها، تصویر شاخص
------------------------------------------------------------------ */
.site-footer .menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.site-footer .menu a {
	color: #b9cce2;
	font-size: 14px;
}

.site-footer .menu a:hover {
	color: #fff;
	padding-right: 5px;
}

.footer-socials {
	margin-top: 18px;
}

.footer-socials a {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.16);
	color: #dbe8f6;
}

.footer-socials a:hover {
	background: #fff;
	border-color: #fff;
	color: var(--navy);
}

.entry-thumb {
	margin-bottom: 26px;
	overflow: hidden;
	border-radius: 20px;
	background: var(--soft-2);
}

.entry-thumb img {
	display: block;
	width: 100%;
}

.search-form {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 18px;
}

.search-form .search-field {
	font-family: inherit;
	font-size: 15px;
	padding: 11px 15px;
	border: 1px solid var(--line);
	border-radius: 12px;
	min-width: min(300px, 70vw);
}

.search-form .search-submit {
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	padding: 11px 24px;
	border: 0;
	border-radius: 12px;
	background: var(--navy);
	color: #fff;
	cursor: pointer;
}

.search-form .search-submit:hover {
	background: var(--blue);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="url"],
.contact-form textarea,
.contact-form select {
	width: 100%;
	font-family: inherit;
	font-size: 15px;
	padding: 11px 14px;
	margin-bottom: 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	color: var(--ink);
}

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

.contact-form button[type="submit"],
.contact-form input[type="submit"] {
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	padding: 12px 26px;
	border: 0;
	border-radius: 13px;
	background: linear-gradient(135deg, var(--navy), var(--blue-soft));
	color: #fff;
	cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}

	.skill-fill {
		transform: scaleX(1);
	}
}
/* ==========================================================================
   صفحه «توضیحات مهارت‌ها» — templates/skill-details.php
   ========================================================================== */

/* --- کارت لینک «توضیحات» در بخش مهارت‌ها --- */
.skill-details-cta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 30px;
	padding: 20px 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: linear-gradient(120deg, #eef7ff 0%, #f7f4ff 100%);
	color: var(--ink);
	text-decoration: none;
	box-shadow: var(--shadow-sm);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.skill-details-cta:hover,
.skill-details-cta:focus-visible {
	transform: translateY(-3px);
	border-color: #c3dbf2;
	box-shadow: 0 18px 40px rgba(11, 59, 110, 0.12);
}

.skill-details-cta .sdc-icon {
	display: grid;
	place-items: center;
	flex: 0 0 54px;
	width: 54px;
	height: 54px;
	border-radius: 16px;
	background: #fff;
	font-size: 26px;
	box-shadow: 0 10px 22px rgba(11, 59, 110, 0.1);
}

.skill-details-cta .sdc-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.skill-details-cta .sdc-body strong {
	font-size: 16.5px;
	font-weight: 700;
	color: var(--ink);
}

.skill-details-cta .sdc-text {
	font-size: 13.5px;
	line-height: 1.9;
	color: var(--muted);
}

.skill-details-cta .sdc-arrow {
	margin-inline-start: auto;
	font-size: 20px;
	color: var(--blue);
	transition: transform 0.25s ease;
}

.skill-details-cta:hover .sdc-arrow {
	transform: translateX(-5px);
}

/* --- منوی داخلی صفحه توضیحات --- */
.detail-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 34px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--soft);
}

.detail-nav a {
	padding: 9px 18px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	color: var(--ink);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.detail-nav a:hover,
.detail-nav a:focus-visible {
	background: var(--blue);
	border-color: var(--blue);
	color: #fff;
}

.detail-block {
	margin-bottom: 18px;
}

/* متغیرهای پالت قدیمی که در استایل‌های درون‌خطی محتوا استفاده شده‌اند */
.details-content {
	--primary: #1478d4;
	--accent-purple: #7b5cf0;
	--wp-blue: #21759b;
	--text-medium: #5d7189;
	--border: #e2ebf4;

	color: var(--ink);
	line-height: 1.95;
}

.details-content h2,
.details-content h3,
.details-content h4,
.details-content h5 {
	color: var(--ink);
	line-height: 1.55;
}

.details-content p {
	color: var(--text-medium);
}

/* --- هدر هر بلوک --- */
.details-content .detail-hero {
	padding: 46px 0 10px;
	text-align: center;
}

.details-content .detail-hero h2 {
	max-width: 780px;
	margin: 0 auto 14px;
	font-size: clamp(1.55rem, 3.2vw, 2.25rem);
	line-height: 1.6;
}

.details-content .detail-hero p {
	max-width: 660px;
	margin: 0 auto;
	font-size: 15.5px;
}

/* --- بخش‌ها --- */
.details-content .section {
	padding: 30px 0;
}

.details-content .section-alt {
	padding: 40px 26px;
	margin: 20px 0;
	border-radius: var(--radius-lg);
	background: var(--soft);
}

.details-content .section-title {
	max-width: 720px;
	margin: 0 auto 30px;
	text-align: center;
}

.details-content .section-title h3 {
	margin: 10px 0 8px;
	font-size: clamp(1.25rem, 2.4vw, 1.7rem);
}

.details-content .section-title p {
	margin: 0;
	font-size: 14.5px;
}

.details-content .kicker {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 999px;
	background: #e8f2fd;
	color: var(--blue);
	font-size: 12.5px;
	font-weight: 700;
}

/* --- گریدها و کارت‌ها --- */
.details-content .grid {
	display: grid;
	gap: 20px;
}

.details-content .grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.details-content .grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.details-content .grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.details-content .card h4 {
	margin: 0 0 8px;
	font-size: 16.5px;
}

.details-content .card p {
	font-size: 14px;
}

.details-content .card p:last-child {
	margin-bottom: 0;
}

.details-content .icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 14px;
	border-radius: 14px;
	background: #eef6ff;
	font-size: 22px;
}

/* --- هیروی داخلی (home / index / wordpress / languages) --- */
.details-content .hero {
	padding: 36px 26px 34px;
	margin: 26px 0 4px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: linear-gradient(150deg, #f5faff 0%, #ffffff 60%, #f7f3ff 100%);
	text-align: center;
}

.details-content .hero-avatar {
	display: grid;
	place-items: center;
	width: 78px;
	height: 78px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: linear-gradient(135deg, #e3f0fd, #eee7ff);
	font-size: 34px;
}

.details-content .hero-badge {
	display: inline-block;
	margin-bottom: 14px;
	padding: 6px 16px;
	border-radius: 999px;
	background: #e8f2fd;
	color: var(--blue);
	font-size: 12.5px;
	font-weight: 700;
}

.details-content .hero h2 {
	max-width: 800px;
	margin: 0 auto 16px;
	font-size: clamp(1.45rem, 3vw, 2.15rem);
	line-height: 1.65;
}

.details-content .hero .highlight {
	background: linear-gradient(120deg, var(--primary), var(--accent-purple));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.details-content .hero .lead {
	max-width: 690px;
	margin: 0 auto 24px;
	font-size: 15.5px;
	line-height: 2;
}

.details-content .hero-actions {
	justify-content: center;
	margin-bottom: 0;
}

.details-content .btn-outline {
	background: #fff;
	border-color: var(--line);
	color: var(--navy);
}

.details-content .btn-outline:hover {
	background: var(--soft);
	border-color: #cfe0f2;
	color: var(--navy);
	transform: translateY(-3px);
}

.details-content .btn-white {
	background: #fff;
	border-color: #fff;
	color: var(--navy);
	box-shadow: 0 12px 26px rgba(4, 24, 46, 0.18);
}

.details-content .btn-white:hover {
	background: #f3f8fd;
	color: var(--navy);
	transform: translateY(-3px);
}

/* --- آمار --- */
.details-content .stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px;
}

.details-content .stat {
	padding: 22px 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	text-align: center;
	box-shadow: var(--shadow-sm);
}

.details-content .stat-num {
	display: block;
	color: var(--primary);
	font-size: 24px;
	font-weight: 800;
}

.details-content .stat-label {
	display: block;
	margin-top: 6px;
	color: var(--text-medium);
	font-size: 12.5px;
	line-height: 1.8;
}

/* --- درباره من --- */
.details-content .about-grid {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: 32px;
	align-items: center;
}

.details-content .about-visual {
	display: grid;
	place-items: center;
}

.details-content .about-photo {
	width: 100%;
	max-width: 300px;
	aspect-ratio: 900 / 985;
	border: 1px solid var(--line);
	border-radius: 28px;
	overflow: hidden;
	background: var(--soft-2);
	box-shadow: 0 18px 40px rgba(11, 59, 110, 0.14);
}

.details-content .about-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.details-content .emoji-face {
	display: grid;
	place-items: center;
	width: 176px;
	height: 176px;
	border: 1px solid var(--line);
	border-radius: 32px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(11, 59, 110, 0.1);
	font-size: 82px;
}

/* --- نوارهای مهارت --- */
.details-content .skill-bar + .skill-bar {
	margin-top: 16px;
}

.details-content .skill-head {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 8px;
	color: var(--ink);
	font-size: 13.5px;
	font-weight: 600;
}

.details-content .skill-head .pct {
	color: var(--primary);
	font-weight: 800;
}

.details-content .track {
	height: 8px;
	border-radius: 999px;
	background: #eaf2fa;
	overflow: hidden;
}

.details-content .track .fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--primary), var(--accent-purple));
}

/* --- چک‌لیست و کال‌اوت --- */
.details-content .checklist {
	display: grid;
	gap: 10px;
	list-style: none;
	margin: 18px 0;
	padding: 0;
}

.details-content .checklist li {
	position: relative;
	padding-inline-start: 30px;
	color: var(--text-medium);
	font-size: 14px;
}

.details-content .checklist li::before {
	content: "✓";
	position: absolute;
	inset-inline-start: 0;
	top: 3px;
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #e5f6ec;
	color: #1a9d57;
	font-size: 11px;
	font-weight: 700;
}

.details-content .callout {
	padding: 18px 22px;
	border: 1px solid #cfe4fb;
	border-radius: 16px;
	background: #f1f8ff;
	color: #274a6d;
	font-size: 14px;
	line-height: 2;
}

.details-content .callout strong {
	color: var(--primary);
}

.details-content .callout a {
	color: var(--primary);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* --- قدم‌ها --- */
.details-content .steps {
	display: grid;
	gap: 14px;
}

.details-content .step {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	column-gap: 14px;
	row-gap: 2px;
	align-items: center;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #fff;
}

.details-content .step-num {
	grid-row: 1 / span 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 13px;
	background: linear-gradient(135deg, var(--primary), var(--accent-purple));
	color: #fff;
	font-size: 16px;
	font-weight: 800;
}

.details-content .step h5 {
	margin: 0;
	font-size: 15.5px;
}

.details-content .step p {
	margin: 0;
	font-size: 13.5px;
}

/* --- جدول مقایسه --- */
.details-content .table-wrap {
	margin: 22px 0 0;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #fff;
	overflow-x: auto;
}

.details-content .compare {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: 13.5px;
}

.details-content .compare th,
.details-content .compare td {
	padding: 13px 16px;
	border-bottom: 1px solid var(--line);
	color: var(--text-medium);
	text-align: right;
}

.details-content .compare thead th {
	background: var(--soft);
	color: var(--ink);
	font-weight: 700;
}

.details-content .compare tbody tr:last-child td {
	border-bottom: 0;
}

.details-content .compare .row-label {
	background: #fafcff;
	color: var(--ink);
	font-weight: 700;
	white-space: nowrap;
}

/* --- جعبه متن / مراحل --- */
.details-content .code-box {
	margin: 18px 0;
	padding: 16px 18px;
	border: 1px dashed var(--border);
	border-radius: 14px;
	background: #f7fafd;
	color: var(--text-medium);
	font-size: 13.5px;
	line-height: 2.2;
}

/* --- نمونه‌کارها --- */
.details-content .portfolio-card {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}

.details-content .portfolio-thumb {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 7;
	overflow: hidden;
	background: linear-gradient(135deg, #e3f0fd, #eee7ff);
}

.details-content .portfolio-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.details-content .portfolio-thumb .emoji {
	font-size: 44px;
}

.details-content .portfolio-thumb:has(.emoji) {
	display: grid;
	place-items: center;
	height: 132px;
	aspect-ratio: auto;
}

.details-content .portfolio-body {
	padding: 18px 20px;
}

.details-content .portfolio-body h4 {
	margin: 0 0 8px;
	font-size: 16px;
}

.details-content .portfolio-body p {
	margin: 0 0 12px;
	font-size: 13.5px;
}

.details-content .portfolio-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.details-content .tag {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: #eef6ff;
	color: var(--primary);
	font-size: 12px;
	font-weight: 600;
}

/* --- گرید وردپرس و تماس --- */
.details-content .lang-hero-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 26px;
	align-items: center;
}

.details-content .contact-list {
	display: grid;
	gap: 14px;
}

.details-content .contact-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #fff;
}

.details-content .contact-item .ci-icon {
	display: grid;
	place-items: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 13px;
	background: #eef6ff;
	font-size: 20px;
}

.details-content .contact-item strong {
	display: block;
	color: var(--ink);
	font-size: 14px;
}

.details-content .contact-item span {
	color: var(--text-medium);
	font-size: 13.5px;
	word-break: break-word;
}

.details-content .cta-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 26px 28px;
	border-radius: var(--radius);
	background: linear-gradient(120deg, var(--navy), var(--blue));
}

.details-content .cta-strip h3 {
	margin: 0 0 4px;
	color: #fff;
	font-size: 19px;
}

.details-content .cta-strip p {
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 13.5px;
}

/* --- ریسپانسیو --- */
@media (max-width: 960px) {
	.details-content .grid-3,
	.details-content .grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.details-content .lang-hero-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.details-content .about-grid {
		grid-template-columns: 1fr;
	}

	.detail-nav {
		border-radius: var(--radius);
	}
}

@media (max-width: 640px) {
	.details-content .grid-2,
	.details-content .grid-3,
	.details-content .grid-4 {
		grid-template-columns: 1fr;
	}

	.details-content .section-alt {
		padding: 28px 18px;
	}

	.details-content .hero {
		padding: 28px 18px;
	}

	.details-content .cta-strip {
		padding: 22px 20px;
	}

	.skill-details-cta {
		align-items: flex-start;
		padding: 18px;
	}

	.skill-details-cta .sdc-arrow {
		display: none;
	}
}
/* --- کارت‌های لینک صفحات توضیحات در بخش مهارت‌ها --- */
.skill-details-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 30px;
}

.skill-details-links .skill-details-cta {
	margin-top: 0;
}

/* --- عناصر اختصاصی صفحه «برنامه‌نویسی» --- */
.details-content .icon--mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.5px;
	color: var(--primary);
	background: #eaf3fd;
}

.details-content .meta {
	display: block;
	margin: 0 0 8px;
	color: var(--text-medium);
	font-size: 12.5px;
	line-height: 1.9;
}

.details-content .card h4 a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.details-content .card h4 a:hover {
	color: var(--primary);
	border-bottom-color: currentColor;
}

.details-content .tag--done {
	background: #e5f6ec;
	color: #1a9d57;
}

.details-content .tag--doing {
	background: #fff4e0;
	color: #b97314;
}

.details-content .tag--next {
	background: #f0edfd;
	color: #6b4fd8;
}

.details-content .step-body {
	min-width: 0;
}

.details-content .step-body h5 {
	margin-bottom: 4px;
}

.details-content .step-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.details-content .compare th.c,
.details-content .compare td.c {
	text-align: center;
	white-space: nowrap;
}

@media (max-width: 820px) {
	.skill-details-links {
		grid-template-columns: 1fr;
	}
}
/* --- نوار مسیر صفحه‌های جزئیات (خانه › مهارت‌ها › …) --- */
.detail-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0 0 14px;
	font-size: 13px;
	color: var(--text-medium);
}

.detail-crumbs a {
	color: var(--primary);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}

.detail-crumbs a:hover,
.detail-crumbs a:focus-visible {
	border-bottom-color: currentColor;
}

.detail-crumbs .sep {
	opacity: 0.5;
}

.detail-crumbs [aria-current="page"] {
	color: var(--text-medium);
}
/* --- عکس پروفایل: لوگوی هدر/فوتر و کارت هیرو --- */
/* قاب‌ها هم‌نسبت عکس پروفایل (۱۱۷۰×۱۲۸۰) هستند تا کل عکس بدون برش دیده شود */
.brand-photo {
	display: block;
	width: 46px;
	height: 50px;
	flex: none;
	border-radius: 14px;
	border: 2px solid #fff;
	background-color: var(--soft-2);
	background-image: url('assets/images/profile.jpg');
	background-size: cover;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	box-shadow: 0 10px 22px rgba(11, 59, 110, 0.25);
}

.profile-card .profile-card-photo {
	display: block;
	width: 120px;
	height: 131px;
	margin-bottom: 18px;
	border: 3px solid #fff;
	border-radius: 30px;
	background-color: var(--soft-2);
	background-image: url('assets/images/profile.jpg');
	background-size: cover;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	box-shadow: 0 16px 30px rgba(11, 59, 110, 0.28);
}
