/* =========================================================================
   Success stories. Ported from the static stories page (style.css):
   story-feature band, «المزيد من القصص» cards, share-your-story box.
   The single story reuses the same parts. Logical properties.
   ========================================================================= */

/* ---------- Featured story band ---------- */
.story-feature {
	background: var(--night);
	color: var(--white);
	padding-block: var(--section-y);
	overflow: hidden;
}

.story-feature__inner {
	display: grid;
	gap: 3rem;
	align-items: center;
}

/* The gold frame wraps the photo with an even margin, so the photo sits
   inside it (client edits v4; it used to be offset to one corner). */
.story-feature__photo {
	position: relative;
	width: min(100%, 420px);
	margin: 0;
	padding: 0.75rem;
	justify-self: center;
}

.story-feature__photo::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 2px solid var(--gold-bright);
	border-radius: calc(var(--r-lg) + 0.75rem);
}

.story-feature__photo img {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 15%;
	border-radius: var(--r-lg);
}

.story-feature__body {
	display: grid;
	gap: 1rem;
	justify-items: start;
}

.story-feature__kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	color: var(--gold-bright);
	font-weight: 600;
}

.story-feature__kicker .star {
	width: 1rem;
	height: 1rem;
	fill: currentColor;
}

.story-feature__quote {
	margin: 0;
}

.story-feature__quote p {
	margin: 0;
	font: 700 clamp(1.1rem, 1.8vw, 1.45rem) / 1.9 var(--font-display);
	color: var(--white);
	text-align: justify;
	text-justify: inter-word;
}

.story-feature__name {
	margin: 0.5rem 0 0;
	font-size: var(--fs-h2);
	color: var(--white);
}

.story-feature__name a {
	color: inherit;
	text-decoration: none;
}

.story-feature__name a:hover,
.story-feature__name a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.story-feature__role {
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
}

.story-levels {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 900px) {
	.story-feature__inner {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 5rem;
	}
}

/* ---------- More stories ---------- */
.sstories {
	display: grid;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 900px) {
	.sstories {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.sstory {
	display: grid;
	grid-template-columns: 7rem minmax(0, 1fr);
	gap: 1.25rem;
	align-items: start;
	padding: 1.5rem;
	background: var(--white);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-sm);
}

.sstory__photo {
	width: 7rem;
	aspect-ratio: 1;
	margin: 0;
	overflow: hidden;
	border-radius: 50%;
	border: 4px solid var(--white);
	box-shadow: 0 0 0 2px var(--hya-gold);
	background: var(--mist);
}

.sstory__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
}

.sstory .qmark {
	height: 0.4em;
	font-size: 4rem;
	color: var(--hya-gold);
}

.sstory__quote {
	margin: 0;
}

.sstory__quote p {
	margin: 0;
	font-size: var(--fs-sm);
	line-height: 1.9;
	color: var(--ink-soft);
	text-align: justify;
	text-justify: inter-word;
}

.sstory__name {
	margin: 0.75rem 0 0;
	font: 800 1.15rem / 1.5 var(--font-display);
}

.sstory__name a {
	color: var(--ink);
	text-decoration: none;
}

.sstory__name a:hover,
.sstory__name a:focus-visible {
	color: var(--hya-green-ink);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.sstory__role {
	margin: 0;
	font-size: var(--fs-xs);
	color: var(--ink-soft);
}

.sstory__lvl {
	display: inline-block;
	margin: 0.5rem 0 0;
	padding: 0.1rem 0.75rem;
	border-radius: var(--r-pill);
	background: var(--mist);
	color: var(--hya-green-ink);
	font-size: var(--fs-xs);
	font-weight: 600;
}

@media (max-width: 520px) {
	.sstory {
		grid-template-columns: minmax(0, 1fr);
	}
}

.share-story {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-block-start: 2rem;
	padding: 1.75rem 2rem;
	background: var(--white);
	border-radius: var(--r-lg);
	border-inline-start: 6px solid var(--hya-green);
}

.share-story h2 {
	margin: 0;
}

.share-story p {
	margin: 0.35rem 0 0;
	color: var(--ink-soft);
}

/* ---------- One story ---------- */
.story-hero .page-hero__title {
	max-width: 26em;
}

.story-profile__inner {
	display: grid;
	gap: 3rem;
	align-items: start;
}

.story-profile__photo {
	position: relative;
}

.story-profile__body {
	display: grid;
	gap: 1.25rem;
	justify-items: start;
	max-width: 46rem;
}

.story-profile__quote {
	margin: 0;
}

.story-profile__quote .qmark {
	height: 0.45em;
	font-size: 5rem;
	color: var(--hya-gold);
}

.story-profile__quote p {
	margin: 0;
	font: 700 clamp(1.1rem, 1.8vw, 1.45rem) / 1.9 var(--font-display);
	color: var(--ink);
	text-align: justify;
	text-justify: inter-word;
}

.story-profile__text p {
	font-size: 1.05rem;
	line-height: 2;
	color: var(--ink);
	text-align: justify;
	text-justify: inter-word;
}

.story-profile__body .h4 {
	margin: 0.5rem 0 0;
}

.story-profile__quals {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding-inline-start: 1.25rem;
	color: var(--ink-soft);
}

.story-profile__video {
	width: 100%;
	margin: 0;
}

.story-profile__video iframe {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border-radius: var(--r-lg);
}

@media (min-width: 900px) {
	.story-profile__inner {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 5rem;
	}

	.story-profile__photo {
		position: sticky;
		inset-block-start: 7rem;
	}
}
