/* Profiles (شخصيات المحلة) */

.sotel-profile-page {
	--pf-red: #a1202e;
	--pf-dark: #1d1f24;
	--pf-slate: #3d4553;
	--pf-line: #e3e3e3;
	--pf-muted: #7a7f88;
}

.sotel-profile-page #content.site-content {
	padding-top: 0;
}

/* Hero: full-bleed blurred photo with name, role and tabs */
.sotel-profile-hero {
	position: relative;
	width: 100vw;
	margin-inline: calc(50% - 50vw);
	min-height: 250px;
	background: var(--pf-dark);
	color: #fff;
	overflow: hidden;
	display: flex;
}
.sotel-profile-hero::before {
	content: "";
	position: absolute;
	inset: -20px;
	background: var(--hero-bg, linear-gradient(135deg, var(--pf-red), #000)) center 30% / cover no-repeat;
	filter: blur(3px) brightness(.55);
}
.sotel-profile-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 55%);
}
.sotel-profile-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 34px 15px 0;
	padding-inline-start: calc(300px + 45px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.sotel-profile-hero--archive .sotel-profile-hero__inner {
	padding-inline-start: 15px;
}
.sotel-profile-hero__avatar {
	display: none;
}
.sotel-profile-hero__name {
	color: #fff;
	font-size: 38px;
	line-height: 1.3;
	margin: 0 0 6px;
}
.sotel-profile-hero__role {
	color: rgba(255, 255, 255, .85);
	font-size: 18px;
	margin: 0 0 24px;
}

.sotel-profile-tabs {
	display: flex;
	gap: 28px;
	margin-inline: -15px;
	padding: 0 15px;
	background: rgba(0, 0, 0, .35);
	overflow-x: auto;
	scrollbar-width: none;
}
.sotel-profile-tabs a {
	color: rgba(255, 255, 255, .7);
	font-size: 17px;
	font-weight: 700;
	padding: 12px 2px;
	border-bottom: 3px solid transparent;
	white-space: nowrap;
}
.sotel-profile-tabs a:hover,
.sotel-profile-tabs a.is-active {
	color: #fff;
	border-bottom-color: var(--pf-red);
}

/* Two-column body: side column (photo + info) and main column */
.sotel-profile {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 30px;
	padding: 0 0 40px;
}
.sotel-profile--archive {
	display: block;
	padding-top: 30px;
}
.sotel-profile__side {
	margin-top: -230px;
	position: relative;
	z-index: 2;
}
.sotel-profile__photo {
	background: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
	aspect-ratio: 4 / 4.4;
	overflow: hidden;
	margin-bottom: 30px;
}
.sotel-profile__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.sotel-profile__photo-empty {
	display: block;
	height: 100%;
	background: linear-gradient(135deg, var(--pf-red), #000);
}

.sotel-profile-card {
	border: 1px solid var(--pf-line);
	padding: 10px;
	margin-bottom: 20px;
	background: #fff;
}
.sotel-profile-card + .sotel-profile-card {
	margin-top: -21px;
	border-top: 0;
}
.sotel-profile-card__title {
	background: var(--pf-slate);
	color: #fff;
	font-size: 16px;
	margin: 0 0 14px;
	padding: 12px 14px;
}
.sotel-profile-card__list {
	margin: 0;
	padding: 0 4px;
}
.sotel-profile-card__list > div {
	margin-bottom: 16px;
}
.sotel-profile-card__list dt {
	color: var(--pf-muted);
	font-size: 12px;
	font-weight: 400;
	margin-bottom: 2px;
}
.sotel-profile-card__list dd {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #111;
	line-height: 1.6;
}
.sotel-profile-social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	list-style: none;
	margin: 0 0 6px;
	padding: 0;
}
.sotel-profile-social a {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #555;
	color: #fff;
	font-size: 15px;
}
.sotel-profile-social a:hover {
	background: var(--pf-red);
	color: #fff;
}

/* Sections */
.sotel-profile-section {
	padding-top: 34px;
	scroll-margin-top: 90px;
}
.sotel-profile-section__title {
	display: flex;
	align-items: center;
	gap: 16px;
	color: var(--pf-red);
	font-size: 24px;
	margin: 0 0 18px;
}
.sotel-profile-section__title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #cfcfcf;
}

.sotel-profile-bio {
	font-size: 16px;
	line-height: 1.9;
	position: relative;
}
.sotel-profile-bio[data-collapsed="true"] {
	max-height: 210px;
	overflow: hidden;
}
.sotel-profile-bio[data-collapsed="true"]::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 80px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}
.sotel-profile-more {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 14px auto 0;
	padding: 7px 26px;
	border: 1px solid #d0d0d0;
	border-radius: 20px;
	background: #fff;
	color: #333;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	width: max-content;
}
.sotel-profile-more::after {
	content: "";
	width: 7px;
	height: 7px;
	border: solid var(--pf-red);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) translateY(-2px);
	transition: transform .2s;
}
.sotel-profile-more.is-open::after {
	transform: rotate(-135deg);
}
.sotel-profile-more--link {
	margin-top: 26px;
}
.sotel-profile-more--link::after {
	transform: rotate(135deg);
}
.sotel-profile-more:hover {
	border-color: var(--pf-red);
	color: var(--pf-red);
}

.sotel-profile-works {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.sotel-profile-works li {
	position: relative;
	padding-inline-start: 22px;
	font-size: 16px;
	font-weight: 700;
}
.sotel-profile-works li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: .6em;
	width: 8px;
	height: 8px;
	background: var(--pf-red);
}

/* News grid: first two large, the rest in threes */
.sotel-profile-news {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 26px 22px;
}
.sotel-profile-news__item {
	grid-column: span 2;
}
.sotel-profile-news__item:nth-child(-n+2) {
	grid-column: span 3;
}
.sotel-profile-news__img {
	display: block;
	aspect-ratio: 4 / 3.2;
	overflow: hidden;
	background: #eee;
	margin-bottom: 12px;
}
.sotel-profile-news__item:nth-child(-n+2) .sotel-profile-news__img {
	aspect-ratio: 5 / 4;
}
.sotel-profile-news__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s;
}
.sotel-profile-news__item:hover img {
	transform: scale(1.04);
}
.sotel-profile-news__title {
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.sotel-profile-news__item:nth-child(-n+2) .sotel-profile-news__title {
	font-size: 17px;
}
.sotel-profile-news__title a:hover {
	color: var(--pf-red);
}
.sotel-profile-empty {
	color: var(--pf-muted);
}

/* Archive grid */
.sotel-profile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 26px 20px;
}
.sotel-profile-grid__item {
	display: flex;
	flex-direction: column;
	text-align: center;
	color: inherit;
}
.sotel-profile-grid__img {
	display: block;
	aspect-ratio: 4 / 4.4;
	overflow: hidden;
	margin-bottom: 12px;
	background: linear-gradient(135deg, var(--pf-red), #000);
}
.sotel-profile-grid__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s;
}
.sotel-profile-grid__item:hover img {
	transform: scale(1.04);
}
.sotel-profile-grid__item strong {
	font-size: 17px;
}
.sotel-profile-grid__item em {
	font-style: normal;
	color: var(--pf-muted);
	font-size: 14px;
}
.sotel-profile-grid__item:hover strong {
	color: var(--pf-red);
}
.sotel-profile-pagination {
	margin-top: 30px;
	text-align: center;
}

/* "Related profile" chip at the top of linked news */
.sotel-related-profiles {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}
.sotel-related-profile {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px;
	padding-inline-end: 16px;
	border: 1px solid #e3e3e3;
	border-inline-start: 3px solid #a1202e;
	color: inherit;
}
.sotel-related-profile img {
	width: 46px;
	height: 46px;
	object-fit: cover;
}
.sotel-related-profile span {
	display: flex;
	flex-direction: column;
	line-height: 1.4;
}
.sotel-related-profile em {
	font-style: normal;
	font-size: 12px;
	color: #7a7f88;
}

/* Tablet / phone */
@media (max-width: 991px) {
	.sotel-profile {
		grid-template-columns: 1fr;
	}
	.sotel-profile-hero__inner {
		padding-inline-start: 15px;
		padding-top: 24px;
	}
	.sotel-profile-hero__name {
		font-size: 30px;
	}
	.sotel-profile__side {
		margin-top: 24px;
		display: grid;
		grid-template-columns: 200px minmax(0, 1fr);
		gap: 20px;
		align-items: start;
	}
	.sotel-profile__photo {
		margin-bottom: 0;
	}
	.sotel-profile-card + .sotel-profile-card {
		grid-column: 1 / -1;
		margin-top: 0;
		border-top: 1px solid var(--pf-line);
	}
	.sotel-profile-news {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.sotel-profile-news__item,
	.sotel-profile-news__item:nth-child(-n+2) {
		grid-column: span 1;
	}
}
@media (max-width: 600px) {
	.sotel-profile-hero__avatar {
		display: block;
		float: right;
		width: 84px;
		height: 84px;
		margin-inline-end: 14px;
		border-radius: 50%;
		border: 3px solid #fff;
		object-fit: cover;
	}
	.sotel-profile-hero__text {
		overflow: hidden;
	}
	.sotel-profile-hero__name {
		font-size: 26px;
		margin-top: 6px;
	}
	.sotel-profile-hero__role {
		font-size: 15px;
	}
	.sotel-profile {
		display: flex;
		flex-direction: column;
	}
	.sotel-profile__side {
		order: 2;
		grid-template-columns: 1fr;
		margin-top: 30px;
	}
	.sotel-profile__photo {
		display: none;
	}
	.sotel-profile-works {
		grid-template-columns: 1fr;
	}
	.sotel-profile-news {
		gap: 20px 14px;
	}
	.sotel-profile-section__title {
		font-size: 21px;
	}
}
