/* ================================================================
   Maranatha SC — Staff Profile Page
   ================================================================ */

/* ── Hero ───────────────────────────────────────────────────────── */
.stf-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 480px;
	background: #0f1117;
	overflow: hidden;
}

.stf-hero--image {
	background-image: var(--stf-bg);
	background-size: cover;
	background-position: top center;
}

.stf-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0,0,0,0.15) 0%,
		rgba(0,0,0,0.55) 40%,
		rgba(0,0,0,0.92) 100%
	);
}

.stf-hero::before {
	content: '';
	position: absolute;
	left: 0; top: 0;
	width: 4px;
	height: 100%;
	background: var(--color-accent,#c8102e);
	z-index: 2;
}

.stf-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	padding: 5rem 2rem 3.5rem;
}

.stf-hero__role {
	display: inline-flex;
	align-items: center;
	background: var(--color-accent,#c8102e);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 0.3rem 0.85rem;
	border-radius: 4px;
	margin-bottom: 1rem;
}

.stf-hero__name {
	font-size: clamp(2.2rem, 5vw, 3.5rem);
	font-weight: 900;
	color: #fff;
	line-height: 1.05;
	margin: 0 0 0.85rem;
	letter-spacing: -0.02em;
}

.stf-hero__excerpt {
	font-size: 1.05rem;
	color: rgba(255,255,255,0.65);
	line-height: 1.7;
	margin: 0;
	max-width: 560px;
}

/* ── Body Layout ────────────────────────────────────────────────── */
.stf-body {
	background: #f5f5f7;
	padding: 3rem 1.5rem 4rem;
}

.stf-body__inner {
	max-width: 960px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 2rem;
	align-items: start;
}

/* ── Profile Card ───────────────────────────────────────────────── */
.stf-profile {
	position: sticky;
	top: calc(var(--header-h, 72px) + 1.5rem);
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}

.stf-profile__photo-wrap {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f0f0f0;
}

.stf-profile__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	transition: transform 0.4s ease;
}

.stf-profile:hover .stf-profile__photo { transform: scale(1.03); }

.stf-profile__no-photo {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ccc;
}

.stf-profile__no-photo svg { width: 64px; height: 64px; }

.stf-profile__info {
	padding: 1.1rem 1.25rem 0.75rem;
	border-bottom: 1px solid #f0f0f0;
}

.stf-profile__name {
	font-size: 1.05rem;
	font-weight: 800;
	color: #111;
	line-height: 1.2;
}

.stf-profile__role {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--color-accent,#c8102e);
	margin-top: 0.2rem;
}

/* Details list */
.stf-profile__details {
	list-style: none;
	margin: 0;
	padding: 0.85rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	border-bottom: 1px solid #f0f0f0;
}

.stf-profile__detail {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.82rem;
	color: #555;
	line-height: 1.3;
}

.stf-profile__detail-icon {
	color: #bbb;
	flex-shrink: 0;
	display: flex;
}

/* Share strip */
.stf-profile__share {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.85rem 1.25rem;
}

.stf-profile__share-label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #bbb;
	margin-right: 0.25rem;
}

.stf-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	text-decoration: none;
	transition: opacity 0.2s, transform 0.15s;
	color: #fff;
}

.stf-share-btn:link,
.stf-share-btn:visited { color: #fff; }

.stf-share-btn:hover { opacity: 0.85; transform: translateY(-2px); }

.stf-share-btn svg { width: 15px; height: 15px; }

.stf-share-btn--fb { background: #1877f2; }
.stf-share-btn--tw { background: #000; }
.stf-share-btn--wa { background: #25d366; }

/* ── Bio Article ────────────────────────────────────────────────── */
.stf-bio {
	background: #fff;
	border-radius: 14px;
	padding: 2.5rem 2.75rem;
	box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}

.stf-bio__role-label {
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--color-accent,#c8102e);
	margin-bottom: 0.4rem;
}

.stf-bio__name {
	font-size: 1.8rem;
	font-weight: 900;
	color: #111;
	margin: 0 0 1.75rem;
	padding-bottom: 1.25rem;
	border-bottom: 2px solid #f0f0f0;
	line-height: 1.15;
}

/* Suppress SportsPress default photo/selector/details inside the_content() */
.stf-bio__content .sp-section-content-photo,
.stf-bio__content .sp-section-content-selector,
.stf-bio__content .sp-section-content-details,
.stf-bio__content .sp-section-content-excerpt {
	display: none;
}

.stf-bio__content {
	font-size: 1.0625rem;
	line-height: 1.85;
	color: #2d2d2d;
}

.stf-bio__content > *:first-child { margin-top: 0; }
.stf-bio__content > *:last-child  { margin-bottom: 0; }

.stf-bio__content p { margin: 0 0 1.4rem; }

.stf-bio__content h2 {
	font-size: 1.5rem;
	font-weight: 900;
	color: #111;
	margin: 2.5rem 0 0.9rem;
	padding-top: 1.25rem;
	border-top: 2px solid #f0f0f0;
}

.stf-bio__content h3 {
	font-size: 1.2rem;
	font-weight: 800;
	color: #111;
	margin: 2rem 0 0.65rem;
}

.stf-bio__content a { color: var(--color-accent,#c8102e); text-decoration: underline; text-underline-offset: 3px; }
.stf-bio__content a:link, .stf-bio__content a:visited { color: var(--color-accent,#c8102e); }
.stf-bio__content a:hover { color: var(--color-accent-dark,#a50d26); }

.stf-bio__content strong { color: #111; font-weight: 700; }

.stf-bio__content blockquote {
	border-left: 4px solid var(--color-accent,#c8102e);
	background: #fef5f5;
	border-radius: 0 8px 8px 0;
	margin: 2rem 0;
	padding: 1.25rem 1.75rem;
	font-style: italic;
	color: #444;
	font-size: 1.05rem;
}

.stf-bio__content blockquote p { margin: 0; }

/* ── Meet the Team ──────────────────────────────────────────────── */
.stf-team {
	background: var(--color-accent,#c8102e);
	background-image: linear-gradient(
		135deg,
		var(--color-accent,#c8102e) 0%,
		var(--color-accent-dark,#a50d26) 100%
	);
	padding: 3.5rem 1.5rem 4rem;
	position: relative;
	overflow: hidden;
}

/* Subtle texture overlay */
.stf-team::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient( circle at 80% 50%, rgba(255,255,255,0.06) 0%, transparent 60% );
	pointer-events: none;
}

.stf-team__inner {
	max-width: 960px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.stf-team__heading {
	font-size: 1.35rem;
	font-weight: 900;
	color: #fff;
	margin: 0 0 1.75rem;
	letter-spacing: -0.01em;
}

.stf-team__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 1rem;
}

.stf-team-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	gap: 0.65rem;
	padding: 1.1rem 0.75rem 1rem;
	background: rgba(0,0,0,0.18);
	border: 1.5px solid rgba(255,255,255,0.15);
	border-radius: 10px;
	transition: background 0.2s, border-color 0.2s, transform 0.2s;
	backdrop-filter: blur(4px);
}

.stf-team-card:link,
.stf-team-card:visited { color: inherit; text-decoration: none; }

.stf-team-card:hover {
	background: rgba(0,0,0,0.3);
	border-color: rgba(255,255,255,0.5);
	transform: translateY(-3px);
}

.stf-team-card__photo {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	overflow: hidden;
	background: rgba(255,255,255,0.15);
	border: 2px solid rgba(255,255,255,0.3);
	flex-shrink: 0;
}

.stf-team-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.stf-team-card__initials {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	font-weight: 900;
	color: var(--color-accent,#c8102e);
}

.stf-team-card__info {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.stf-team-card__name {
	font-size: 0.8rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
}

.stf-team-card__role {
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: rgba(255,255,255,0.65);
}

/* ── Prev/Next Nav ──────────────────────────────────────────────── */
.stf-nav {
	background: var(--color-accent-dark,#a50d26);
	border-top: 1px solid rgba(255,255,255,0.1);
}

.stf-nav__inner {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 1.5rem;
	display: flex;
	align-items: stretch;
	min-height: 72px;
}

.stf-nav__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1.25rem 1.5rem;
	text-decoration: none;
	color: rgba(255,255,255,0.75);
	flex: 1;
	min-width: 0;
	transition: color 0.2s;
}

.stf-nav__item:link,
.stf-nav__item:visited { color: rgba(255,255,255,0.75); }

.stf-nav__item:hover { color: #fff; }

.stf-nav__item--next {
	justify-content: flex-end;
	text-align: right;
	border-left: 1px solid rgba(255,255,255,0.15);
}

.stf-nav__item span {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.stf-nav__item small {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255,255,255,0.4);
}

.stf-nav__item svg { flex-shrink: 0; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media screen and (max-width: 800px) {
	.stf-body__inner {
		grid-template-columns: 1fr;
	}

	.stf-profile {
		position: static;
		display: grid;
		grid-template-columns: 160px 1fr;
		border-radius: 12px;
	}

	.stf-profile__photo-wrap {
		grid-row: 1 / 4;
		aspect-ratio: 1 / 1;
	}

	.stf-profile__info { border-bottom: none; }

	.stf-bio { padding: 1.75rem 1.5rem; }
}

@media screen and (max-width: 560px) {
	.stf-hero { min-height: 360px; }
	.stf-hero__inner { padding: 4rem 1.25rem 2.5rem; }
	.stf-hero__name { font-size: clamp(1.8rem, 8vw, 2.4rem); }

	.stf-profile {
		grid-template-columns: 1fr;
	}

	.stf-profile__photo-wrap {
		grid-row: auto;
		max-height: 260px;
	}

	.stf-team__grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }

	.stf-bio { padding: 1.5rem 1.25rem; }
}
