/* ==========================================================
   Jamia Millia Islamia – Library Team page (staff.html)
   Loaded after jmi-home.css; reuses its tokens, header, jaali pattern and rich footer.
   ========================================================== */

/* ---------- Compact jaali banner (the header is fixed, 72px) ---------- */

.jmi-staff-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 124px 16px 48px;
	background:
		radial-gradient(700px 300px at 50% 0%, rgba(46, 167, 109, 0.32), transparent 70%),
		linear-gradient(180deg, var(--jmi-deep) 0%, #0e3d2b 100%);
	color: #fff;
	text-align: center;
}

.jmi-staff-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
	background: linear-gradient(90deg, transparent, var(--jmi-gold) 30%, var(--jmi-bright) 70%, transparent);
}

.jmi-staff-title {
	margin: 0 0 10px;
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 700;
	letter-spacing: -0.025em;
	color: #fff;
}

.jmi-staff-lede {
	max-width: 560px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
}

/* ---------- University Librarian ---------- */

.jmi-staff-lead {
	padding-top: 48px;
}

.jmi-staff-head {
	display: flex;
	align-items: center;
	gap: 32px;
	max-width: 760px;
	margin: 0 auto 32px;
	padding: 28px 32px;
	background: #fff;
	border: 1px solid var(--jmi-line);
	border-top: 4px solid var(--jmi-green);
	border-radius: 18px;
	box-shadow: 0 12px 32px rgba(11, 49, 35, 0.08);
}

.jmi-staff-head .jmi-staff-photo {
	flex: none;
	width: 180px;
	height: 180px;
}

.jmi-staff-head h2 {
	margin: 12px 0 12px;
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: 700;
	color: var(--jmi-ink);
}

.jmi-staff-head .jmi-staff-contact {
	align-items: flex-start;
}

/* ---------- Cards ---------- */

.jmi-staff-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jmi-staff-seniors {
	grid-template-columns: repeat(2, minmax(0, 300px));
	justify-content: center;
}

.jmi-staff-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 24px 16px 20px;
	text-align: center;
	background: #fff;
	border: 1px solid var(--jmi-line);
	border-radius: 16px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hm-alt .jmi-staff-card {
	background: var(--jmi-paper);
}

.jmi-staff-card:hover {
	transform: translateY(-3px);
	border-color: #b9d6c5;
	box-shadow: 0 12px 28px rgba(11, 49, 35, 0.1);
}

.jmi-staff-card[hidden] {
	display: none;
}

.jmi-staff-photo {
	width: 128px;
	height: 128px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid #fff;
	box-shadow: 0 0 0 2px var(--jmi-green), 0 6px 16px rgba(11, 49, 35, 0.16);
	background: var(--jmi-soft);
}

.jmi-staff-card h3 {
	margin: 16px 0 4px;
	font-size: 16.5px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--jmi-ink);
}

.jmi-staff-role {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--jmi-accent-dark);
}

.jmi-staff-tag {
	margin-top: 10px;
	padding: 4px 12px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--jmi-dark);
	background: var(--jmi-accent-soft);
	border-radius: 999px;
}

.jmi-staff-contact {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	max-width: 100%;
}

.jmi-staff-contact a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	font-size: 13.5px;
	color: var(--jmi-muted);
	overflow-wrap: anywhere;
	text-decoration: none;
}

.jmi-staff-contact a:hover {
	color: var(--jmi-green);
	text-decoration: underline;
}

.jmi-staff-contact i {
	flex: none;
	color: var(--jmi-accent);
}

/* ---------- Filter ---------- */

.jmi-staff-filter {
	position: relative;
	flex: 0 1 300px;
	margin: 0;
}

.jmi-staff-filter i {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--jmi-muted);
	pointer-events: none;
}

.jmi-staff-filter input {
	width: 100%;
	height: 44px;
	padding: 0 14px 0 40px;
	font-size: 14.5px;
	color: var(--jmi-ink);
	background: #fff;
	border: 1px solid var(--jmi-line);
	border-radius: 999px;
	outline: none;
}

.jmi-staff-filter input:focus {
	border-color: var(--jmi-green);
	box-shadow: 0 0 0 3px rgba(30, 107, 74, 0.15);
}

.jmi-staff-empty {
	margin: 24px 0 0;
	text-align: center;
	color: var(--jmi-muted);
}

/* ---------- Small screens ---------- */

@media (max-width: 767px) {
	.jmi-staff-hero {
		padding-top: 104px;
	}

	.jmi-staff-head {
		flex-direction: column;
		gap: 16px;
		padding: 24px 20px;
		text-align: center;
	}

	.jmi-staff-head .jmi-staff-photo {
		width: 150px;
		height: 150px;
	}

	.jmi-staff-head .jmi-staff-contact {
		align-items: center;
	}

	.jmi-staff-seniors {
		grid-template-columns: minmax(0, 320px);
	}

	.hm-section-head {
		flex-wrap: wrap;
	}

	.jmi-staff-filter {
		flex-basis: 100%;
	}
}

@media (max-width: 480px) {
	.jmi-staff-grid:not(.jmi-staff-seniors) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.jmi-staff-card {
		padding: 18px 10px 16px;
	}

	.jmi-staff-photo {
		width: 96px;
		height: 96px;
	}

	.jmi-staff-card h3 {
		font-size: 14.5px;
	}

	.jmi-staff-role {
		font-size: 12.5px;
	}
}
