/**
 * Stylesheet Frontend STAF SEKOLAH
 * Menggunakan prefix unik .staf-sekolah- dan .ss- untuk mencegah konflik tema.
 */

.staf-sekolah-wrapper {
	--ss-cols: 3;
	--ss-gap: 28px;
	--ss-radius: 12px;
	--ss-card-bg: #ffffff;
	--ss-primary: #0f2544;
	--ss-accent: #c59b27;
	--ss-name-color: #0f2544;
	--ss-name-size: 18px;
	--ss-pos-color: #475569;
	--ss-pos-size: 14px;
	--ss-aspect: 3/4;
	--ss-align: center;

	width: 100%;
	max-width: 1280px;
	margin: 24px auto;
	padding: 0;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.staf-sekolah-wrapper *,
.staf-sekolah-wrapper *::before,
.staf-sekolah-wrapper *::after {
	box-sizing: border-box;
}

/* Sistem CSS Grid Responsif */
.staf-sekolah-grid {
	display: grid;
	grid-template-columns: repeat(var(--ss-cols), minmax(0, 1fr));
	gap: var(--ss-gap);
	align-items: stretch;
}

@media (max-width: 992px) {
	.staf-sekolah-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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

/* Struktur Dasar Kartu */
.staf-sekolah-card {
	display: flex;
	flex-direction: column;
	background-color: var(--ss-card-bg);
	border-radius: var(--ss-radius);
	overflow: hidden;
	border: 1px solid rgba(15, 37, 68, 0.08);
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
	            box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
	            border-color 0.28s ease;
	height: 100%;
}

/* Intensitas Bayangan */
.staf-sekolah-wrapper.ss-shadow-none .staf-sekolah-card {
	box-shadow: none;
}
.staf-sekolah-wrapper.ss-shadow-soft .staf-sekolah-card {
	box-shadow: 0 6px 24px -4px rgba(15, 37, 68, 0.07), 0 2px 6px -1px rgba(15, 37, 68, 0.04);
}
.staf-sekolah-wrapper.ss-shadow-medium .staf-sekolah-card {
	box-shadow: 0 12px 32px -4px rgba(15, 37, 68, 0.12), 0 4px 10px -2px rgba(15, 37, 68, 0.06);
}
.staf-sekolah-wrapper.ss-shadow-strong .staf-sekolah-card {
	box-shadow: 0 20px 40px -6px rgba(15, 37, 68, 0.18), 0 8px 16px -4px rgba(15, 37, 68, 0.08);
}

/* Animasi Hover */
.staf-sekolah-wrapper.ss-hover-lift .staf-sekolah-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 36px -6px rgba(15, 37, 68, 0.14);
}
.staf-sekolah-wrapper.ss-hover-zoom .staf-sekolah-card:hover .ss-staff-photo {
	transform: scale(1.06);
}
.staf-sekolah-wrapper.ss-hover-border .staf-sekolah-card:hover {
	border-color: var(--ss-accent);
}

/* Bagian Media / Foto */
.ss-card-media {
	position: relative;
	width: 100%;
	background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
}

.ss-photo-frame {
	width: 100%;
	aspect-ratio: var(--ss-aspect);
	overflow: hidden;
	position: relative;
}

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

.ss-photo-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
	background: #f1f5f9;
}

/* Bentuk Foto Lingkaran */
.staf-sekolah-wrapper.ss-shape-circle .ss-card-media {
	background: transparent;
	padding-top: 28px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.staf-sekolah-wrapper.ss-shape-circle .ss-photo-frame {
	width: 148px;
	height: 148px;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	border: 3px solid var(--ss-accent);
	box-shadow: 0 6px 18px rgba(15, 37, 68, 0.1);
}

/* Lencana Kategori */
.ss-card-badge {
	position: absolute;
	bottom: 12px;
	left: 12px;
	background: var(--ss-primary);
	color: #ffffff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
	border-left: 3px solid var(--ss-accent);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	z-index: 2;
}

.staf-sekolah-wrapper.ss-shape-circle .ss-card-badge {
	position: static;
	margin-top: 12px;
}

/* Konten Teks Kartu */
.ss-card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 20px 22px 24px;
	text-align: var(--ss-align);
}

.ss-staff-name {
	margin: 0 0 6px;
	padding: 0;
	font-size: var(--ss-name-size);
	font-weight: 700;
	line-height: 1.35;
	color: var(--ss-name-color);
}

.ss-staff-position {
	font-size: var(--ss-pos-size);
	font-weight: 600;
	line-height: 1.4;
	color: var(--ss-pos-color);
	margin-bottom: 6px;
}

.ss-staff-subject {
	font-size: 13px;
	font-weight: 500;
	color: var(--ss-accent);
	margin-top: 2px;
}

.ss-staff-bio {
	margin: 12px 0 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: #64748b;
}

.ss-staff-contacts {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid rgba(15, 37, 68, 0.07);
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: center;
}

.staf-sekolah-wrapper.ss-align-left .ss-staff-contacts {
	align-items: flex-start;
}

.ss-contact-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: var(--ss-primary);
	text-decoration: none;
	word-break: break-all;
}

.ss-contact-item:hover {
	color: var(--ss-accent);
	text-decoration: underline;
}

/* ========================================================
   GAYA A: MODERN MINIMALIST
   ======================================================== */
.staf-sekolah-wrapper.ss-style-modern .staf-sekolah-card {
	border: 1px solid #eef2f6;
}

/* ========================================================
   GAYA B: CLASSIC ELEGANT (Navy Blue & Subtle Gold)
   ======================================================== */
.staf-sekolah-wrapper.ss-style-classic .staf-sekolah-card {
	border-top: 4px solid var(--ss-primary);
	border-bottom: 3px solid var(--ss-accent);
}

.staf-sekolah-wrapper.ss-style-classic .ss-card-body {
	position: relative;
}

.staf-sekolah-wrapper.ss-style-classic .ss-staff-name::after {
	content: "";
	display: block;
	width: 42px;
	height: 2px;
	background-color: var(--ss-accent);
	margin: 8px auto 6px;
}

.staf-sekolah-wrapper.ss-style-classic.ss-align-left .ss-staff-name::after {
	margin-left: 0;
}

/* ========================================================
   GAYA C: CORPORATE PROFESSIONAL
   ======================================================== */
.staf-sekolah-wrapper.ss-style-corporate .staf-sekolah-card {
	border: 1px solid #cbd5e1;
}

.staf-sekolah-wrapper.ss-style-corporate .ss-card-body {
	border-top: 3px solid var(--ss-accent);
	background: linear-gradient(180deg, rgba(15, 37, 68, 0.02) 0%, transparent 100%);
}

.staf-sekolah-wrapper.ss-style-corporate .ss-staff-subject {
	display: inline-block;
	margin-top: 8px;
	padding: 4px 10px;
	border-radius: 6px;
	background-color: rgba(15, 37, 68, 0.06);
	color: var(--ss-primary);
	font-size: 12px;
	font-weight: 600;
}

/* Pesan Kosong */
.staf-sekolah-empty {
	padding: 32px;
	text-align: center;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	color: #475569;
}
