/* ================================================================
   Maranatha SC — Staff Archive
   ================================================================ */

/* ── Hero ───────────────────────────────────────────────────────── */
.sta-hero {
	position: relative;
	background: #0f1117;
	background-image:
		radial-gradient( ellipse at 60% 0%, rgba(200,16,46,0.18) 0%, transparent 55% ),
		radial-gradient( ellipse at 10% 100%, rgba(200,16,46,0.1) 0%, transparent 45% );
	padding: 5rem 1.5rem 0;
	overflow: hidden;
}

/* When a background image is set */
.sta-hero--image {
	background-image: var(--sta-bg);
	background-size: cover;
	background-position: center top;
}

.sta-hero--image::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0,0,0,0.45) 0%,
		rgba(0,0,0,0.78) 60%,
		rgba(15,17,23,0.97) 100%
	);
	pointer-events: none;
	z-index: 0;
}

.sta-hero--image .sta-hero__inner { position: relative; z-index: 1; }

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

.sta-hero__overlay { display: none; }

.sta-hero__inner {
	max-width: 960px;
	margin: 0 auto;
}

/* Breadcrumb */
.sta-breadcrumb {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: rgba(255,255,255,0.4);
	margin-bottom: 1.25rem;
}

.sta-breadcrumb a {
	color: rgba(255,255,255,0.5);
	text-decoration: none;
	transition: color 0.2s;
}

.sta-breadcrumb a:link,
.sta-breadcrumb a:visited { color: rgba(255,255,255,0.5); }

.sta-breadcrumb a:hover { color: #fff; }

.sta-breadcrumb svg { opacity: 0.35; flex-shrink: 0; }

.sta-hero__title {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 900;
	color: #fff;
	margin: 0 0 0.6rem;
	letter-spacing: -0.02em;
	line-height: 1.05;
}

.sta-hero__sub {
	font-size: 1rem;
	color: rgba(255,255,255,0.5);
	margin: 0 0 2.5rem;
	line-height: 1.6;
}

/* ── Role filter pills ──────────────────────────────────────────── */
.sta-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding-bottom: 0;
	margin-bottom: -1px;
}

.sta-filter-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 1.1rem;
	border-radius: 6px 6px 0 0;
	border: 1.5px solid rgba(255,255,255,0.1);
	border-bottom: none;
	background: rgba(255,255,255,0.04);
	color: rgba(255,255,255,0.55);
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.sta-filter-pill:hover {
	background: rgba(255,255,255,0.1);
	color: #fff;
}

.sta-filter-pill--active {
	background: #f5f5f7;
	color: var(--color-accent,#c8102e);
	border-color: transparent;
}

.sta-filter-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 99px;
	background: rgba(255,255,255,0.12);
	font-size: 0.65rem;
	font-weight: 800;
	color: inherit;
}

.sta-filter-pill--active .sta-filter-count {
	background: rgba(200,16,46,0.12);
}

/* ── Body ───────────────────────────────────────────────────────── */
.sta-body {
	background: #f5f5f7;
	padding: 3rem 1.5rem 5rem;
}

.sta-body__inner {
	max-width: 960px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 3.5rem;
}

/* ── Role group ─────────────────────────────────────────────────── */
.sta-group__title {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	font-size: 1.15rem;
	font-weight: 900;
	color: #111;
	margin: 0 0 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid #e8e8e8;
	letter-spacing: -0.01em;
}

.sta-group__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 5px;
	border-radius: 99px;
	background: var(--color-accent,#c8102e);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 800;
}

/* ── Staff card grid ────────────────────────────────────────────── */
.sta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1.25rem;
}

/* Card */
.sta-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,0.07);
	text-decoration: none;
	color: inherit;
	transition: transform 0.25s, box-shadow 0.25s;
}

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

.sta-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 32px rgba(0,0,0,0.13);
}

/* Photo */
.sta-card__photo {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	background: #f0f0f0;
	overflow: hidden;
}

.sta-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	transition: transform 0.35s ease;
}

.sta-card:hover .sta-card__photo img { transform: scale(1.05); }

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

/* Hover overlay */
.sta-card__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.25s;
}

.sta-card:hover .sta-card__overlay { opacity: 1; }

.sta-card__view {
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #fff;
	border: 2px solid rgba(255,255,255,0.7);
	padding: 0.45rem 1rem;
	border-radius: 4px;
}

/* Info strip */
.sta-card__info {
	padding: 0.85rem 1rem 1rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.sta-card__name {
	font-size: 0.9rem;
	font-weight: 800;
	color: #111;
	line-height: 1.2;
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.sta-card__flag { font-size: 1rem; line-height: 1; }

.sta-card__role {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--color-accent,#c8102e);
}

.sta-card__excerpt {
	font-size: 0.78rem;
	color: #777;
	line-height: 1.55;
	margin: 0.35rem 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── Empty state ────────────────────────────────────────────────── */
.sta-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: 4rem 2rem;
	text-align: center;
	color: #bbb;
}

.sta-empty p { font-size: 0.95rem; margin: 0; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media screen and (max-width: 700px) {
	.sta-hero { padding: 4rem 1.25rem 0; }

	.sta-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 0.85rem;
	}

	.sta-card__excerpt { display: none; }

	.sta-filters { gap: 0.4rem; }
	.sta-filter-pill { font-size: 0.72rem; padding: 0.4rem 0.85rem; }
}

@media screen and (max-width: 420px) {
	.sta-grid { grid-template-columns: repeat(2, 1fr); }
}
