/* ── Nexus Executive Committee Frontend ─────────────────────────────────── */

:root {
	--ec-radius: 14px;
	--ec-card-shadow: 0 2px 12px rgba(0,0,0,.07);
	--ec-card-shadow-hover: 0 8px 28px rgba(0,0,0,.13);
	--ec-gap: 24px;
}

.ec-frontend-wrap {
	padding: 8px 0 32px;
}

/* ── Tier row ─────────────────────────────────────────────────────────────── */
.ec-tier {
	margin-bottom: 48px;
}

.ec-tier-header {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 28px;
	gap: 16px;
}
.ec-tier-header::before,
.ec-tier-header::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e2e8f0;
	max-width: 200px;
}
.ec-tier-label {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	border: 2px solid;
	border-radius: 20px;
	padding: 4px 18px;
	white-space: nowrap;
}

/* Card grids per tier */
.ec-tier-cards {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ec-gap);
	justify-content: center;
}

/* President: single centered card, wider */
.ec-tier-president .ec-tier-cards {
	justify-content: center;
}
.ec-tier-president .ec-card {
	max-width: 320px;
	width: 100%;
}

/* VP: max 3 per row */
.ec-tier-vp .ec-card {
	flex: 1 1 260px;
	max-width: 300px;
}

/* Secretaries: max 4 per row */
.ec-tier-secretary .ec-card {
	flex: 1 1 220px;
	max-width: 260px;
}

/* Treasurer + Organizing Secretary */
.ec-tier-executive .ec-card {
	flex: 1 1 240px;
	max-width: 280px;
}

/* General members: tight grid */
.ec-tier-general .ec-tier-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	justify-items: stretch;
}
.ec-tier-general .ec-card {
	max-width: 100%;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.ec-card {
	background: #fff;
	border-radius: var(--ec-radius);
	box-shadow: var(--ec-card-shadow);
	border: 1px solid #f1f5f9;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s, transform .2s;
	position: relative;
}
.ec-card:hover {
	box-shadow: var(--ec-card-shadow-hover);
	transform: translateY(-3px);
}

/* Top accent bar from role colour */
.ec-card::before {
	content: '';
	display: block;
	height: 4px;
	background: var(--ec-accent, #0A4D92);
}

/* Leader variant: slightly taller accent */
.ec-card-leader::before { height: 6px; }

/* Image */
.ec-card-image-wrap {
	display: flex;
	justify-content: center;
	padding: 24px 24px 0;
}
.ec-card-image {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--ec-accent, #0A4D92);
	display: block;
}
.ec-card-leader .ec-card-image {
	width: 130px;
	height: 130px;
}
.ec-card-image-placeholder {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 38px;
	font-weight: 800;
	color: #fff;
}
.ec-card-leader .ec-card-image-placeholder {
	width: 130px;
	height: 130px;
	font-size: 48px;
}

/* Card body */
.ec-card-body {
	padding: 16px 20px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex: 1;
	gap: 6px;
}

.ec-card-role {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 12px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #fff;
}

.ec-card-name {
	font-size: 16px;
	font-weight: 700;
	color: #1e293b;
	margin: 4px 0 0;
	line-height: 1.3;
}
.ec-card-leader .ec-card-name { font-size: 18px; }

.ec-card-designation {
	font-size: 12px;
	color: #64748b;
	margin: 0;
	font-style: italic;
}

/* Leadership message */
.ec-message-block {
	width: 100%;
	margin-top: 8px;
	border-top: 1px solid #f1f5f9;
	padding-top: 10px;
}
.ec-message-preview {
	font-size: 13px;
	color: #475569;
	line-height: 1.6;
	margin: 0 0 6px;
	text-align: left;
}
.ec-read-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
	color: var(--ec-accent, #0A4D92);
	padding: 0;
	transition: gap .15s;
}
.ec-read-more:hover { gap: 7px; }
.ec-read-more svg { transition: transform .2s; }
.ec-read-more[aria-expanded="true"] svg { transform: rotate(180deg); }

.ec-message-full {
	font-size: 13px;
	color: #334155;
	line-height: 1.7;
	text-align: left;
	overflow: hidden;
	max-height: 0;
	transition: max-height .35s ease, opacity .3s ease;
	opacity: 0;
	margin-top: 6px;
}
.ec-message-full.ec-expanded {
	max-height: 600px;
	opacity: 1;
}
.ec-message-full p { margin: 0 0 8px; }

/* View profile link */
.ec-view-profile {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: auto;
	padding-top: 12px;
	font-size: 12px;
	font-weight: 600;
	color: var(--ec-accent, #0A4D92);
	text-decoration: none;
	border-top: 1px solid #f1f5f9;
	width: 100%;
	justify-content: center;
	transition: gap .15s;
}
.ec-view-profile:hover { gap: 8px; color: var(--ec-accent, #0A4D92); }
.ec-view-profile svg { flex-shrink: 0; transition: transform .15s; }
.ec-view-profile:hover svg { transform: translateX(3px); }

/* No members */
.ec-no-members {
	text-align: center;
	color: #94a3b8;
	font-style: italic;
	padding: 32px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	:root { --ec-gap: 16px; }

	.ec-tier-vp .ec-card,
	.ec-tier-secretary .ec-card,
	.ec-tier-executive .ec-card {
		flex: 1 1 160px;
		max-width: 200px;
	}

	.ec-card-image,
	.ec-card-image-placeholder { width: 80px; height: 80px; font-size: 28px; }
	.ec-card-leader .ec-card-image,
	.ec-card-leader .ec-card-image-placeholder { width: 100px; height: 100px; font-size: 36px; }
	.ec-card-name { font-size: 14px; }
	.ec-card-leader .ec-card-name { font-size: 16px; }
}

@media (max-width: 480px) {
	.ec-tier-general .ec-tier-cards {
		grid-template-columns: repeat(2, 1fr);
	}
	.ec-tier-header::before,
	.ec-tier-header::after { max-width: 60px; }
}
