/* ==========================================================================
   Bimedaan — Instructor Profile
   همه کلاس‌ها با bdi- پیشوند دارند و زیر .bdi-profile / .bdi-archive
   محدود شده‌اند تا با استایل قالب سیگما تداخل نکنند.
   ========================================================================== */

/* فونت وزیرمتن — نسخه متغیر و لوکال: یک درخواست، همه وزن‌ها */
@font-face {
	font-family: "Vazirmatn BDI";
	src: url("../fonts/Vazirmatn-var.woff2") format("woff2-variations"),
		url("../fonts/Vazirmatn-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

.bdi-profile,
.bdi-archive {
	--bdi-blue: #2151e0;
	--bdi-blue-dark: #1a41b8;
	--bdi-blue-soft: #eef3fe;
	--bdi-ink: #1f2937;
	--bdi-ink-soft: #6b7280;
	--bdi-line: #e8ebf1;
	--bdi-bg-soft: #f7f9fc;
	--bdi-green: #16a34a;

	/* پالت کرم — رنگ مکمل و گرم، هم‌خانواده با صفحه ثبت‌نام اقساطی */
	--bdi-cream: #faf6ee;
	--bdi-cream-deep: #f3ead8;
	--bdi-sand: #e6d9bd;
	--bdi-gold: #b08d3f;

	--bdi-radius: 14px;

	color: var(--bdi-ink);
	background: #fff;
	line-height: 1.9;
	font-size: 15px;
	/* فونت از قالب سایت به ارث می‌رسد — هیچ درخواست فونت اضافه‌ای زده نمی‌شود */
}

.bdi-profile *,
.bdi-archive * {
	box-sizing: border-box;
}

/* فونت طرح — فقط وقتی کلاس bdi-font روی wrapper باشد */
.bdi-profile.bdi-font,
.bdi-archive.bdi-font {
	font-family: "Vazirmatn BDI", Vazirmatn, Tahoma, sans-serif;
}

/* خنثی‌کردن استایل‌های تیتر و پاراگراف قالب سیگما داخل این صفحه */
.bdi-profile h1,
.bdi-profile h2,
.bdi-profile h3,
.bdi-archive h1,
.bdi-archive h2 {
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	line-height: 1.5;
	color: inherit;
}

.bdi-profile p,
.bdi-profile ul,
.bdi-profile ol,
.bdi-profile li {
	font-family: inherit;
	line-height: 1.9;
}

.bdi-profile ul,
.bdi-profile li {
	list-style: none;
}

.bdi-profile .bdi-body ul,
.bdi-profile .bdi-body ol {
	list-style: revert;
}

.bdi-profile img {
	max-width: 100%;
	height: auto;
}

.bdi-profile a,
.bdi-archive a {
	text-decoration: none;
	color: inherit;
	box-shadow: none;
}

.bdi-container {
	max-width: 1180px;
	margin-inline: auto;
	padding-inline: 24px;
}

.bdi-ico {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

.bdi-ico-xl {
	width: 120px;
	height: 120px;
	stroke-width: 1.2;
	color: #c3d2f5;
}

/* ===== هیرو ===== */
.bdi-hero {
	position: relative;
	border-bottom: 1px solid var(--bdi-line);
	background:
		radial-gradient(760px 340px at 92% 0%, var(--bdi-cream) 0%, rgba(250, 246, 238, 0) 62%),
		radial-gradient(620px 320px at 8% 100%, #f4f7ff 0%, rgba(244, 247, 255, 0) 60%);
	overflow: hidden;
}

.bdi-hero-inner {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 64px;
	padding-block: 64px;
	align-items: center;
}

.bdi-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--bdi-cream-deep);
	color: var(--bdi-gold);
	border: 1px solid var(--bdi-sand);
	font-size: 12.5px;
	font-weight: 700;
	padding: 5px 14px;
	border-radius: 999px;
	margin-bottom: 20px;
}

.bdi-profile .bdi-hero-text h1.bdi-name {
	font-size: 34px;
	font-weight: 800;
	line-height: 1.5;
	margin: 0 0 8px;
	padding: 0;
	color: var(--bdi-ink);
}

.bdi-profile .bdi-hero-text .bdi-role {
	font-size: 16px;
	color: var(--bdi-blue);
	font-weight: 600;
	margin: 0 0 16px;
}

.bdi-lead {
	color: var(--bdi-ink-soft);
	font-size: 15px;
	max-width: 520px;
	margin: 0 0 28px;
}

.bdi-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bdi-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 1px solid var(--bdi-line);
	border-radius: 999px;
	padding: 7px 16px;
	font-size: 13px;
	color: var(--bdi-ink-soft);
	background: rgba(255, 255, 255, .82);
	backdrop-filter: blur(4px);
}

.bdi-chip .bdi-ico {
	color: var(--bdi-blue);
}

/* چیپ تأییدیه — لحن طلایی، چون نشانه اعتبار است */
.bdi-chip:last-child .bdi-ico {
	color: var(--bdi-gold);
}

/* تصویر مدرس */
.bdi-photo-wrap {
	position: relative;
	justify-self: center;
}

.bdi-photo {
	width: 300px;
	height: 340px;
	border-radius: 20px;
	background: linear-gradient(160deg, #eef3fe 0%, #f7f9fc 100%);
	border: 1px solid var(--bdi-line);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

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

.bdi-photo-tag {
	position: absolute;
	bottom: -16px;
	left: 50%;
	transform: translateX(-50%);
	background: #fff;
	border: 1px solid var(--bdi-line);
	border-radius: 12px;
	padding: 9px 22px;
	font-size: 12.5px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 8px 24px rgba(31, 41, 55, .06);
	white-space: nowrap;
}

.bdi-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bdi-green);
}

/* ===== چیدمان بدنه ===== */
.bdi-page {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 48px;
	padding-block: 56px 80px;
	align-items: start;
}

/* ===== ستون کناری ===== */
.bdi-sidebar {
	position: sticky;
	top: 84px; /* اگر هدر چسبان سایت بلندتر است، این عدد را تغییر دهید */
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.bdi-card {
	border: 1px solid var(--bdi-line);
	border-radius: var(--bdi-radius);
	background: #fff;
	overflow: hidden;
}

.bdi-card-pad {
	padding: 16px 22px 22px;
}

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

.bdi-facts li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 13px 22px;
	font-size: 13.5px;
	border-bottom: 1px solid var(--bdi-line);
}

.bdi-facts li:last-child {
	border-bottom: none;
}

.bdi-k {
	color: var(--bdi-ink-soft);
	display: flex;
	align-items: center;
	gap: 8px;
}

.bdi-k .bdi-ico {
	color: var(--bdi-blue);
	opacity: .85;
}

.bdi-v {
	font-weight: 600;
	text-align: end;
}

.bdi-trust {
	background: var(--bdi-cream);
	border-top: 1px solid var(--bdi-sand);
	padding: 14px 22px;
	font-size: 12.5px;
	color: #8a7647;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bdi-trust .bdi-ico {
	color: var(--bdi-gold);
}

.bdi-trust div {
	display: flex;
	align-items: center;
	gap: 8px;
}

.bdi-profile .bdi-card a.bdi-btn,
.bdi-profile .bdi-card a.bdi-btn:link,
.bdi-profile .bdi-card a.bdi-btn:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	background: var(--bdi-blue);
	color: #fff;
	-webkit-text-fill-color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	padding: 13px;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(33, 81, 224, .2);
	transition: background .2s, transform .2s, box-shadow .2s;
}

.bdi-profile .bdi-card a.bdi-btn:hover,
.bdi-profile .bdi-card a.bdi-btn:focus-visible {
	background: var(--bdi-blue-dark);
	color: #fff;
	-webkit-text-fill-color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(33, 81, 224, .26);
}

.bdi-profile .bdi-card a.bdi-btn:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(33, 81, 224, .2);
}

.bdi-btn .bdi-ico {
	transition: transform .25s ease;
}

.bdi-btn:hover .bdi-ico {
	transform: translateX(-3px);
}

.bdi-btn-note {
	font-size: 11.5px;
	color: var(--bdi-ink-soft);
	margin: 10px 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.bdi-btn-note .bdi-ico {
	width: 13px;
	height: 13px;
}

/* ناوبری کناری */
.bdi-side-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 13.5px;
}

.bdi-side-nav a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 22px;
	color: var(--bdi-ink-soft);
	border-inline-start: 2px solid transparent;
	transition: color .15s, background .15s, border-color .15s;
}

.bdi-side-nav a:hover {
	color: var(--bdi-blue);
	background: var(--bdi-bg-soft);
	border-inline-start-color: var(--bdi-blue);
}

/* ===== بخش‌های اصلی ===== */
.bdi-main {
	min-width: 0;
}

.bdi-section {
	margin-bottom: 52px;
	scroll-margin-top: 90px;
}

.bdi-section--last {
	margin-bottom: 0;
}

.bdi-profile .bdi-main h2.bdi-section-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 18px;
	font-weight: 800;
	color: var(--bdi-ink);
	margin: 0 0 22px;
	padding: 0;
}

/* نشان آیکون تیتر بخش — هر بخش، ته‌رنگ خودش */
.bdi-sec-ico {
	width: 36px;
	height: 36px;
	border-radius: 11px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s;
}

.bdi-sec-ico .bdi-ico {
	width: 18px;
	height: 18px;
}

.bdi-sec-ico--user {
	background: var(--bdi-blue-soft);
	color: var(--bdi-blue);
}

.bdi-sec-ico--cap {
	background: var(--bdi-cream-deep);
	color: var(--bdi-gold);
}

.bdi-sec-ico--briefcase {
	background: #e8f4ee;
	color: #157f4f;
}

.bdi-sec-ico--book {
	background: var(--bdi-cream-deep);
	color: var(--bdi-gold);
}

.bdi-sec-ico--mail {
	background: var(--bdi-blue-soft);
	color: var(--bdi-blue);
}

.bdi-section:hover .bdi-sec-ico {
	transform: rotate(-6deg) scale(1.06);
	box-shadow: 0 6px 18px rgba(31, 41, 55, .1);
}

.bdi-section-title .bdi-ico {
	width: 20px;
	height: 20px;
}

.bdi-body {
	font-size: 14.5px;
}

.bdi-body p {
	margin: 0 0 12px;
}

.bdi-body p:last-child {
	margin-bottom: 0;
}

.bdi-body h3 {
	font-size: 16px;
	font-weight: 700;
	margin: 24px 0 10px;
}

.bdi-body ul,
.bdi-body ol {
	padding-inline-start: 22px;
	margin: 0 0 12px;
}

/* تایم‌لاین (تحصیلات و سوابق) */
.bdi-timeline {
	position: relative;
	list-style: none;
	margin: 0;
	margin-inline-start: 8px;
	padding: 0;
}

/* خط پایه خاکستری */
.bdi-timeline::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: 1px;
	background: var(--bdi-line);
}

/* خط آبی که با اسکرول پر می‌شود */
.bdi-timeline::after {
	content: "";
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	width: 1px;
	height: 100%;
	background: linear-gradient(to bottom, var(--bdi-blue), #7aa2f7);
	transform: scaleY(0);
	transform-origin: top;
}

.bdi-timeline li {
	position: relative;
	padding-inline-start: 28px;
	padding-bottom: 26px;
}

.bdi-timeline li:last-child {
	padding-bottom: 4px;
}

.bdi-timeline li::before {
	content: "";
	position: absolute;
	inset-inline-start: -5.5px;
	top: 8px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--bdi-blue);
}

.bdi-t-title {
	display: block;
	font-weight: 700;
	font-size: 14.5px;
}

.bdi-t-sub {
	display: block;
	color: var(--bdi-ink-soft);
	font-size: 13px;
	margin-top: 2px;
}

.bdi-t-date {
	display: inline-block;
	font-size: 11.5px;
	color: var(--bdi-blue);
	background: var(--bdi-blue-soft);
	border-radius: 6px;
	padding: 1px 10px;
	margin-top: 8px;
	font-weight: 600;
}

/* آثار و تألیفات */
.bdi-pubs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.bdi-pub {
	border: 1px solid var(--bdi-line);
	border-radius: var(--bdi-radius);
	padding: 20px;
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
}

.bdi-pub:hover {
	border-color: #c9d6f5;
	box-shadow: 0 8px 24px rgba(33, 81, 224, .06);
}

.bdi-p-type {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 700;
	color: var(--bdi-gold);
	background: var(--bdi-cream-deep);
	border-radius: 6px;
	padding: 2px 10px;
	margin-bottom: 10px;
}

.bdi-profile .bdi-pub h3.bdi-p-title {
	font-weight: 700;
	font-size: 14px;
	line-height: 1.7;
	margin: 0;
}

.bdi-p-sub {
	color: var(--bdi-ink-soft);
	font-size: 12.5px;
	margin: 6px 0 0;
}

/* راه‌های ارتباطی */
.bdi-contact-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.bdi-contact-item {
	display: flex;
	align-items: center;
	gap: 14px;
	border: 1px solid var(--bdi-line);
	border-radius: var(--bdi-radius);
	padding: 16px 20px;
	background: #fff;
	transition: border-color .2s;
}

.bdi-contact-item:hover {
	border-color: #c9d6f5;
}

.bdi-contact-icon {
	width: 42px;
	height: 42px;
	border-radius: 11px;
	flex-shrink: 0;
	background: var(--bdi-blue-soft);
	color: var(--bdi-blue);
	display: flex;
	align-items: center;
	justify-content: center;
}

.bdi-contact-icon .bdi-ico {
	width: 19px;
	height: 19px;
}

.bdi-c-label {
	display: block;
	font-size: 12px;
	color: var(--bdi-ink-soft);
	line-height: 1.6;
}

.bdi-c-value {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	direction: ltr;
	text-align: start;
	line-height: 1.6;
	word-break: break-all;
}

/* ===== آرشیو مدرسان ===== */
.bdi-arch-hero {
	background:
		radial-gradient(700px 300px at 85% 0%, var(--bdi-cream) 0%, rgba(250, 246, 238, 0) 65%),
		radial-gradient(600px 280px at 10% 100%, #f4f7ff 0%, rgba(244, 247, 255, 0) 60%);
	border-bottom: 1px solid var(--bdi-line);
	margin-bottom: 40px;
}

.bdi-archive-head {
	padding-block: 56px 48px;
	text-align: center;
}

.bdi-archive .bdi-badge {
	display: inline-flex;
	align-items: center;
	background: var(--bdi-cream-deep);
	color: var(--bdi-gold);
	border: 1px solid var(--bdi-sand);
	font-size: 12.5px;
	font-weight: 700;
	padding: 5px 14px;
	border-radius: 999px;
	margin-bottom: 16px;
}

.bdi-archive .bdi-archive-head h1 {
	font-size: 30px;
	font-weight: 800;
	line-height: 1.5;
	margin: 0 0 10px;
	padding: 0;
	color: var(--bdi-ink);
}

.bdi-archive-head p {
	color: var(--bdi-ink-soft);
	margin: 0 auto;
	max-width: 620px;
	font-size: 15px;
}

.bdi-arch-count {
	display: inline-block;
	margin-top: 18px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--bdi-blue);
	background: var(--bdi-blue-soft);
	border-radius: 999px;
	padding: 4px 16px;
}

.bdi-grid {
	display: grid;
	gap: 22px;
	padding-block: 8px 72px;
}

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

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

.bdi-cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

.bdi-tcard {
	position: relative;
	border: 1px solid var(--bdi-line);
	border-radius: 16px;
	padding: 30px 22px 24px;
	background: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	overflow: hidden;
	transition: transform .28s cubic-bezier(.2, .7, .3, 1), box-shadow .28s, border-color .28s;
}

.bdi-tcard::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--bdi-blue), var(--bdi-gold));
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .35s cubic-bezier(.2, .7, .3, 1);
}

.bdi-tcard:hover {
	transform: translateY(-5px);
	border-color: #d8cdb4;
	box-shadow: 0 18px 38px rgba(31, 41, 55, .1);
}

.bdi-tcard:hover::after {
	transform: scaleX(1);
}

.bdi-tcard-photo {
	width: 104px;
	height: 104px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--bdi-cream-deep);
	color: var(--bdi-sand);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--bdi-line);
	transition: box-shadow .3s, transform .3s;
}

.bdi-tcard-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bdi-tcard-photo .bdi-ico {
	width: 38px;
	height: 38px;
}

.bdi-tcard:hover .bdi-tcard-photo {
	transform: scale(1.04);
	box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--bdi-sand);
}

.bdi-archive .bdi-tcard h2 {
	font-size: 16.5px;
	font-weight: 700;
	margin: 0 0 5px;
	padding: 0;
}

.bdi-tcard-role {
	font-size: 13px;
	color: var(--bdi-ink-soft);
	margin: 0 0 12px;
	line-height: 1.7;
}

.bdi-tcard-spec {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--bdi-gold);
	background: var(--bdi-cream);
	border: 1px solid var(--bdi-sand);
	border-radius: 999px;
	padding: 3px 12px;
	margin-bottom: 16px;
}

.bdi-tcard-link {
	font-size: 13px;
	font-weight: 700;
	color: var(--bdi-blue);
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: gap .2s;
}

.bdi-tcard:hover .bdi-tcard-link {
	gap: 11px;
}

.bdi-empty {
	padding-block: 40px 80px;
	color: var(--bdi-ink-soft);
}

/* ===== دسترس‌پذیری و حرکت ===== */
.bdi-profile a:focus-visible,
.bdi-archive a:focus-visible {
	outline: 2px solid var(--bdi-blue);
	outline-offset: 2px;
	border-radius: 8px;
}

/* --- رنگ برند برای هر شبکه --- */
.bdi-net--mail {
	background: var(--bdi-blue-soft);
	color: var(--bdi-blue);
}

.bdi-net--telegram {
	background: #e6f4fb;
	color: #1c93d2;
}

.bdi-net--instagram {
	background: #fdecf1;
	color: #c8347c;
}

.bdi-net--linkedin {
	background: #e7f0f9;
	color: #0a66c2;
}

.bdi-net--globe {
	background: var(--bdi-cream-deep);
	color: var(--bdi-gold);
}

.bdi-contact-item:hover .bdi-net--mail {
	background: var(--bdi-blue);
}

.bdi-contact-item:hover .bdi-net--telegram {
	background: #1c93d2;
}

.bdi-contact-item:hover .bdi-net--instagram {
	background: #c8347c;
}

.bdi-contact-item:hover .bdi-net--linkedin {
	background: #0a66c2;
}

.bdi-contact-item:hover .bdi-net--globe {
	background: var(--bdi-gold);
}

.bdi-contact-item:hover .bdi-contact-icon {
	color: #fff;
}

/* ===== بخش سایر اساتید ===== */
.bdi-others {
	background:
		linear-gradient(180deg, var(--bdi-cream) 0%, #fff 100%);
	border-top: 1px solid var(--bdi-sand);
	padding-block: 56px 72px;
}

.bdi-others-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}

.bdi-profile .bdi-others-head h2 {
	font-size: 20px;
	font-weight: 800;
	margin: 0;
	padding: 0;
	position: relative;
}

/* زیرخط طلایی کوتاه زیر تیتر */
.bdi-profile .bdi-others-head h2::after {
	content: "";
	display: block;
	width: 42px;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--bdi-gold), var(--bdi-sand));
	margin-top: 10px;
}

.bdi-others-all {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--bdi-blue);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	transition: gap .2s;
}

.bdi-others-all:hover {
	gap: 11px;
	color: var(--bdi-blue-dark);
}

.bdi-arrow {
	display: inline-block;
	transition: transform .25s cubic-bezier(.2, .7, .3, 1);
}

.bdi-others-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.bdi-ocard {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: #fff;
	border: 1px solid var(--bdi-line);
	border-radius: 16px;
	padding: 26px 20px 22px;
	overflow: hidden;
	transition: transform .28s cubic-bezier(.2, .7, .3, 1), box-shadow .28s, border-color .28s;
}

/* نوار طلایی که با هاور از پایین بالا می‌آید */
.bdi-ocard::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--bdi-blue), var(--bdi-gold));
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .35s cubic-bezier(.2, .7, .3, 1);
}

.bdi-ocard:hover {
	transform: translateY(-4px);
	border-color: #d8cdb4;
	box-shadow: 0 16px 36px rgba(31, 41, 55, .09);
}

.bdi-ocard:hover::after {
	transform: scaleX(1);
}

.bdi-ocard-photo {
	width: 92px;
	height: 92px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--bdi-cream-deep);
	color: var(--bdi-sand);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
	box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--bdi-line);
	transition: box-shadow .3s, transform .3s;
}

.bdi-ocard-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bdi-ocard-photo .bdi-ico {
	width: 34px;
	height: 34px;
}

.bdi-ocard:hover .bdi-ocard-photo {
	transform: scale(1.04);
	box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--bdi-sand);
}

.bdi-profile h3.bdi-ocard-name {
	font-size: 15.5px;
	font-weight: 700;
	margin: 0 0 4px;
	padding: 0;
}

.bdi-ocard-role {
	font-size: 12.5px;
	color: var(--bdi-ink-soft);
	margin: 0 0 12px;
	line-height: 1.7;
}

.bdi-ocard-spec {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--bdi-gold);
	background: var(--bdi-cream);
	border: 1px solid var(--bdi-sand);
	border-radius: 999px;
	padding: 3px 12px;
	margin-bottom: 14px;
}

.bdi-ocard-link {
	font-size: 13px;
	font-weight: 700;
	color: var(--bdi-blue);
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: gap .2s;
}

.bdi-ocard:hover .bdi-ocard-link {
	gap: 11px;
}

/* =========================================================================
   لایه تعامل و حرکت — تماماً CSS، بدون جاوااسکریپت.
   هر افکتی که مرورگر پشتیبانی نکند، بی‌سروصدا به حالت ساکن برمی‌گردد.
   ========================================================================= */

/* --- امضای صفحه: نوار نوری چرخان دور عکس استاد --- */
@property --bdi-angle {
	syntax: "<angle>";
	initial-value: 0deg;
	inherits: false;
}

.bdi-photo-wrap::before {
	content: "";
	position: absolute;
	inset: -3px;
	border-radius: 23px;
	background: conic-gradient(from var(--bdi-angle),
			transparent 0deg,
			transparent 205deg,
			rgba(33, 81, 224, .18) 250deg,
			var(--bdi-blue) 305deg,
			#8fb0ff 335deg,
			transparent 360deg);
	animation: bdi-orbit 7s linear infinite;
	z-index: 0;
}

@keyframes bdi-orbit {
	to {
		--bdi-angle: 360deg;
	}
}

.bdi-photo {
	position: relative;
	z-index: 1;
}

.bdi-photo-tag {
	z-index: 2;
}

.bdi-photo-img {
	transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}

.bdi-photo-wrap:hover .bdi-photo-img {
	transform: scale(1.03);
}

/* --- ورود نرم عناصر هیرو، فقط یک‌بار هنگام باز شدن صفحه --- */
@keyframes bdi-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.bdi-hero-text > * {
	animation: bdi-rise .55s cubic-bezier(.2, .7, .3, 1) both;
}

.bdi-hero-text > *:nth-child(2) {
	animation-delay: .06s;
}

.bdi-hero-text > *:nth-child(3) {
	animation-delay: .12s;
}

.bdi-hero-text > *:nth-child(4) {
	animation-delay: .18s;
}

.bdi-hero-text > *:nth-child(5) {
	animation-delay: .24s;
}

.bdi-photo-wrap {
	animation: bdi-rise .7s cubic-bezier(.2, .7, .3, 1) both;
	animation-delay: .1s;
}

/* --- چیپ‌های هیرو --- */
.bdi-chip {
	transition: border-color .2s, color .2s, transform .2s, background .2s;
}

.bdi-chip:hover {
	border-color: #c9d6f5;
	color: var(--bdi-ink);
	background: var(--bdi-blue-soft);
	transform: translateY(-2px);
}

/* --- ردیف‌های کارت آمار --- */
.bdi-facts li {
	transition: background .2s;
}

.bdi-facts li:hover {
	background: var(--bdi-bg-soft);
}

.bdi-facts li .bdi-k {
	transition: color .2s;
}

.bdi-facts li:hover .bdi-k {
	color: var(--bdi-blue);
}

/* --- ناوبری کناری --- */
.bdi-side-nav a {
	transition: color .18s, background .18s, border-color .18s, padding .18s;
}

.bdi-side-nav a:hover {
	padding-inline-start: 26px;
}

/* --- کارت آثار --- */
.bdi-pub {
	transition: border-color .2s, box-shadow .25s, transform .25s;
}

.bdi-pub:hover {
	transform: translateY(-3px);
}

.bdi-p-type {
	transition: background .2s, color .2s;
}

.bdi-pub:hover .bdi-p-type {
	background: var(--bdi-gold);
	color: #fff;
}

/* --- کارت‌های ارتباطی --- */
.bdi-contact-item {
	transition: border-color .2s, box-shadow .25s, transform .25s;
}

.bdi-contact-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 26px rgba(33, 81, 224, .08);
}

.bdi-contact-icon {
	transition: background .22s, color .22s, transform .3s cubic-bezier(.2, .7, .3, 1);
}

.bdi-contact-item:hover .bdi-contact-icon {
	transform: rotate(-5deg) scale(1.07);
}

/* --- نقاط تایم‌لاین --- */
.bdi-timeline li::before {
	transition: transform .25s, box-shadow .25s;
}

.bdi-timeline li:hover::before {
	transform: scale(1.35);
	box-shadow: 0 0 0 4px rgba(33, 81, 224, .1);
}

/* --- انیمیشن‌های وابسته به اسکرول (مرورگرهای پشتیبان) --- */
@supports (animation-timeline: view()) {

	/* پر شدن تدریجی خط تایم‌لاین همراه با اسکرول */
	.bdi-timeline::after {
		animation: bdi-fill linear both;
		animation-timeline: view();
		animation-range: entry 65% cover 70%;
	}

	@keyframes bdi-fill {
		from {
			transform: scaleY(0);
		}

		to {
			transform: scaleY(1);
		}
	}

	/* ظاهر شدن نرم بخش‌ها هنگام رسیدن به آن‌ها */
	.bdi-section,
	.bdi-tcard,
	.bdi-ocard {
		animation: bdi-reveal linear both;
		animation-timeline: view();
		animation-range: entry 10% entry 55%;
	}

	@keyframes bdi-reveal {
		from {
			opacity: 0;
			transform: translateY(16px);
		}

		to {
			opacity: 1;
			transform: none;
		}
	}
}

/* --- احترام به تنظیم «کاهش حرکت» سیستم کاربر --- */
@media (prefers-reduced-motion: reduce) {

	.bdi-profile *,
	.bdi-archive * {
		transition: none !important;
		animation: none !important;
	}

	.bdi-timeline::after {
		transform: scaleY(1);
	}

	.bdi-hero-text > *,
	.bdi-photo-wrap,
	.bdi-section,
	.bdi-tcard,
	.bdi-ocard {
		opacity: 1;
		transform: none;
	}
}

/* ===== واکنش‌گرا ===== */
@media (max-width: 980px) {

	.bdi-hero-inner {
		grid-template-columns: 1fr;
		gap: 48px;
		text-align: center;
		padding-block: 44px;
	}

	.bdi-lead {
		margin-inline: auto;
	}

	.bdi-chips {
		justify-content: center;
	}

	.bdi-page {
		grid-template-columns: 1fr;
		padding-block: 40px 56px;
	}

	.bdi-sidebar {
		position: static;
		order: -1;
	}

	.bdi-side-nav {
		display: none;
	}

	.bdi-cols-3,
	.bdi-cols-4,
	.bdi-others-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {

	.bdi-container {
		padding-inline: 16px;
	}

	.bdi-profile .bdi-hero-text h1.bdi-name {
		font-size: 24px;
	}

	.bdi-photo {
		width: 240px;
		height: 280px;
	}

	.bdi-pubs,
	.bdi-contact-grid,
	.bdi-cols-2,
	.bdi-cols-3,
	.bdi-cols-4,
	.bdi-others-grid {
		grid-template-columns: 1fr;
	}

	.bdi-others-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}
}
