/* =====================================================
   PERSONNELS — โครงสร้างผู้บริหารและบุคลากร
   Brand palette: #218bc3 · #3e9aa1 · #76ad59
   ===================================================== */

.pn-wrap { padding: 10px 0 50px; }

/* ── section heading ── */
.pn-section { margin-bottom: 56px; }
.pn-head {
	text-align: center;
	margin-bottom: 34px;
}
.pn-head .pn-badge {
	display: inline-block;
	background: linear-gradient(135deg, rgba(33,139,195,.12), rgba(118,173,89,.12));
	color: #218bc3;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .5px;
	padding: 5px 16px;
	border-radius: 50px;
	margin-bottom: 12px;
}
.pn-head h3 {
	font-weight: 800;
	color: #1e293b;
	font-size: clamp(1.3rem, 2.4vw, 1.9rem);
	margin: 0;
	display: inline-block;
	position: relative;
	padding-bottom: 12px;
}
.pn-head h3::after {
	content: '';
	position: absolute;
	left: 50%; bottom: 0;
	transform: translateX(-50%);
	width: 70px; height: 4px;
	border-radius: 3px;
	background: linear-gradient(135deg, #218bc3, #3e9aa1, #76ad59);
}
.pn-subhead {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 auto 24px;
	max-width: 1100px;
	font-size: 1.05rem;
	font-weight: 700;
	color: #334155;
}
.pn-subhead::before {
	content: '';
	width: 6px; height: 24px;
	border-radius: 4px;
	background: linear-gradient(180deg, #218bc3, #76ad59);
	flex-shrink: 0;
}
.pn-subhead::after {
	content: '';
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, #e2e8f0, transparent);
}

/* ── grid — จัดกึ่งกลางเป็นแถวเสมอ ความกว้างเท่ากันทุกใบ ── */
.pn-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 26px;
	max-width: 1160px;
	margin: 0 auto;
}
.pn-grid .pn-card { width: 262px; }
/* alias เดิม */
.pn-grid.pn-center { }

/* ── person card ── */
.pn-card {
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 8px 30px rgba(33, 86, 124, 0.08);
	position: relative;
	display: flex;
	flex-direction: column;
	opacity: 0;
	transform: translateY(26px);
	transition: opacity .55s ease, transform .55s ease, box-shadow .28s ease;
}
.pn-card.visible { opacity: 1; transform: translateY(0); }
.pn-card:hover {
	box-shadow: 0 18px 44px rgba(33, 86, 124, 0.20);
	transform: translateY(-6px);
}
/* top gradient accent */
.pn-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 5px;
	background: linear-gradient(90deg, #218bc3, #3e9aa1, #76ad59);
	z-index: 2;
}

/* ── ป้ายกำกับ (badge) มุมบนซ้ายของรูป ── */
.pn-badge-label {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	background: linear-gradient(135deg, #218bc3, #3e9aa1);
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 50px;
	box-shadow: 0 3px 10px rgba(33,139,195,.4);
	letter-spacing: .2px;
}

/* photo */
.pn-photo {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #eef3f8;
}
.pn-photo img {
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform .5s ease;
}
.pn-card:hover .pn-photo img { transform: scale(1.06); }
.pn-photo::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(15,32,46,.45), transparent 42%);
}

/* body */
.pn-body {
	padding: 18px 18px 20px;
	text-align: center;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.pn-name {
	font-size: 1.02rem;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.45;
	margin-bottom: 10px;
	min-height: 2.9em;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pn-role {
	display: inline-block;
	background: linear-gradient(135deg, rgba(33,139,195,.12), rgba(62,154,161,.12));
	color: #1d6fa0;
	font-size: .78rem;
	font-weight: 600;
	line-height: 1.4;
	padding: 6px 14px;
	border-radius: 50px;
	margin: 0 auto 14px;
}

/* footer actions */
.pn-foot {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
}
.pn-cv {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: none;
	background: linear-gradient(135deg, #218bc3, #3e9aa1);
	color: #fff;
	font-size: .82rem;
	font-weight: 600;
	padding: 8px 20px;
	border-radius: 50px;
	cursor: pointer;
	transition: filter .2s ease, transform .15s ease, box-shadow .2s ease;
	box-shadow: 0 4px 14px rgba(33,139,195,.3);
}
.pn-cv:hover { filter: brightness(1.07); transform: translateY(-2px); box-shadow: 0 7px 18px rgba(33,139,195,.4); }
.pn-email {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .78rem;
	color: #64748b;
	text-decoration: none;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: color .2s ease;
}
.pn-email i { color: #3e9aa1; }
.pn-email:hover { color: #218bc3; }

/* ── featured (อธิการบดี / ผู้บริหารระดับสูง) ── */
.pn-featured {
	display: flex;
	justify-content: center;
	margin-bottom: 44px;
}
.pn-featured .pn-card {
	width: 320px;
}
.pn-featured .pn-card::before { height: 6px; }
.pn-featured .pn-name { font-size: 1.1rem; }

/* ══════════════ MOBILE ══════════════ */
@media (max-width: 575px) {
	.pn-grid { gap: 16px; }
	.pn-grid .pn-card { width: calc(50% - 8px); }
	.pn-featured .pn-card { width: 100%; max-width: 300px; }
	.pn-name { font-size: .88rem; min-height: 2.6em; }
	.pn-role { font-size: .72rem; }
	.pn-cv { padding: 7px 16px; }
}
