/**
 * قسم «من نحن» لثيم تنمية العرضية (template-parts/home/home-intro-profile.php).
 *
 * تكوين «حكاية» في الوسط: لافتة صورة عريضة مستديرة (21:9) بتدرّج تركوازي خفيف في أسفلها، وفوق حافتها
 * السفلية بطاقة بيضاء في الوسط تتوّجها غرسة خضراء، فيها رأس القسم في الوسط والنبذة والزر، وفي أسفلها
 * صف من رقاقات التعريف (الجمعية، الترخيص، المدير التنفيذي) بخطوط فاصلة رفيعة.
 * خلف البطاقة نقش البذور الخفيف على خلفية الصفحة.
 */

.tn-intro {
	overflow: hidden;
}

/* نقش البذور على النصف السفلي فقط، خلف البطاقة */
.tn-intro::before {
	content: '';
	position: absolute;
	inset: 45% 0 0;
	z-index: -1;
	--tn-grid-color: rgba(var(--theme-secondary-rgb), 0.16);
	background: var(--tn-grid);
	-webkit-mask: linear-gradient(transparent, #000 40%);
	mask: linear-gradient(transparent, #000 40%);
	pointer-events: none;
}

/* ==========================================================================
   لافتة الصورة
   ========================================================================== */

.tn-intro__banner {
	position: relative;
	margin: 0;
	aspect-ratio: 21 / 9;
	max-height: 500px;
	width: 100%;
	overflow: hidden;
	border-radius: var(--tn-radius-lg);
	background: var(--tn-sand-deep);
}

.tn-intro__banner::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(var(--theme-primary-rgb), 0.45), transparent 55%);
	pointer-events: none;
}

.tn-intro__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ==========================================================================
   بطاقة النص فوق حافة الصورة
   ========================================================================== */

.tn-intro__card {
	position: relative;
	z-index: 1;
	width: min(860px, calc(100% - 64px));
	margin: -150px auto 0;
	padding: 56px 56px 0;
	border: 1px solid var(--tn-line);
	border-radius: var(--tn-radius-lg);
	background: #ffffff;
	box-shadow: 0 30px 60px -36px rgba(var(--theme-primary-rgb), 0.45);
	text-align: center;
}

.tn-intro--text .tn-intro__card {
	margin-top: 26px;
}

/* الغرسة المتوّجة: ورقة خضراء في منتصف الحافة العليا */
.tn-intro__crown {
	position: absolute;
	top: -30px;
	right: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	padding: 13px;
	border: 5px solid #ffffff;
	border-radius: 30px 8px 30px 8px;
	background: var(--theme-secondary);
	color: #ffffff;
	transform: translateX(50%);
	box-shadow: 0 12px 22px -12px rgba(var(--theme-secondary-rgb), 0.9);
}

.tn-intro__crown svg {
	width: 100%;
	height: 100%;
}

.tn-intro .tn-head {
	margin-bottom: 22px;
}

.tn-intro__about {
	max-width: 680px;
	margin: 0 auto;
	color: var(--theme-text-light);
	font-size: 1.04rem;
	line-height: 2;
}

.tn-intro__about p {
	margin: 0 0 12px;
}

.tn-intro__about p:last-child {
	margin-bottom: 0;
}

.tn-intro__actions {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

.tn-intro__btn {
	padding: 13px 28px;
}

/* ==========================================================================
   رقاقات التعريف
   ========================================================================== */

.tn-intro__chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 38px -56px 0;
	padding: 0;
	border-top: 1px solid var(--tn-line);
	border-radius: 0 0 var(--tn-radius-lg) var(--tn-radius-lg);
	background: var(--tn-sand);
	list-style: none;
}

.tn-intro__chip {
	display: flex;
	flex: 1 1 0;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 20px 24px;
	text-align: start;
}

.tn-intro__chip + .tn-intro__chip {
	border-right: 1px solid var(--tn-line);
}

.tn-intro__chip-icon,
.tn-intro__chip-photo {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	overflow: hidden;
	border-radius: 18px 5px 18px 5px;
	background: #ffffff;
	color: var(--tn-leaf-deep);
	box-shadow: inset 0 0 0 1px var(--tn-clay-line);
}

.tn-intro__chip-icon svg {
	width: 26px;
	height: 26px;
}

.tn-intro__chip-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

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

.tn-intro__chip-label {
	color: var(--tn-leaf-deep);
	font-size: 0.8rem;
	font-weight: 700;
}

.tn-intro__chip-value {
	overflow-wrap: anywhere;
	color: var(--tn-ink);
	font-size: 0.95rem;
	font-weight: 700;
}

/* ==========================================================================
   الشاشات الأصغر
   ========================================================================== */

@media (max-width: 991px) {
	.tn-intro__banner {
		aspect-ratio: 16 / 8;
	}

	.tn-intro__card {
		width: calc(100% - 40px);
		margin-top: -110px;
		padding: 50px 34px 0;
	}

	.tn-intro__chips {
		margin-inline: -34px;
	}

	.tn-intro__chip {
		padding: 18px 16px;
	}
}

@media (max-width: 767px) {
	.tn-intro__banner {
		aspect-ratio: 4 / 3;
		border-radius: var(--tn-radius);
	}

	.tn-intro__card {
		width: calc(100% - 20px);
		margin-top: -60px;
		padding: 44px 20px 0;
		border-radius: var(--tn-radius);
	}

	.tn-intro__about {
		font-size: 1rem;
		line-height: 1.95;
	}

	/* الرقاقات بعضها تحت بعض */
	.tn-intro__chips {
		flex-direction: column;
		margin: 30px -20px 0;
		border-radius: 0 0 var(--tn-radius) var(--tn-radius);
	}

	.tn-intro__chip {
		padding: 14px 20px;
	}

	.tn-intro__chip + .tn-intro__chip {
		border-top: 1px solid var(--tn-line);
		border-right: 0;
	}
}
