/* =========================================================
   OUR VOLUNTEERS
   The home page cards, and each volunteer's profile page.
   Scoped under .volunteers-section / .volunteer-profile so nothing here
   leaks into the rest of the site.
   ========================================================= */

.volunteers-section,
.volunteer-profile {
	--vol-primary: var(--color-primary, #571c91);
	--vol-primary-deep: #40116b;
	--vol-accent: #d90429;
	--vol-line: #ece4f4;
	--vol-ink: #2b2731;
	--vol-muted: #6f6879;
}

/* =========================================================
   HOME PAGE — the section
   ========================================================= */

.volunteers-section {
	padding: clamp(56px, 7vw, 88px) 0;
	background:
		radial-gradient(48% 60% at 50% 0%, rgba(122, 47, 158, .07), transparent 70%),
		linear-gradient(180deg, #ffffff 0%, #f8f4fc 100%);
}

.vols-head {
	max-width: 760px;
	margin: 0 auto clamp(32px, 4.5vw, 52px);
	text-align: center;
}

.vols-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 16px;
	margin-bottom: 16px;
	border: 1px solid #e6d9f1;
	border-radius: 100px;
	background: #f4ecfa;
	color: var(--vol-primary);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .02em;
}

.vols-eyebrow i { font-size: 13px; }

.vols-title {
	margin: 0 auto 14px;
	color: var(--vol-primary);
	font-weight: 800;
	font-size: clamp(26px, 3.4vw, 34px);
	line-height: 1.25;
	max-width: 720px;
}

.vols-subtext {
	margin: 0 auto;
	max-width: 640px;
	color: var(--vol-muted);
	font-size: 15px;
	line-height: 1.8;
}

.vols-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
	justify-content: center;
	gap: clamp(20px, 3vw, 30px);
}

/* ---- the card ---- */
.vol-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 0;
	margin: 0;
	border: 1px solid var(--vol-line);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(87, 28, 145, .07);
	text-align: left;
	font: inherit;
	color: var(--vol-ink);
	text-decoration: none;
	cursor: pointer;
	overflow: hidden;
	transition: transform .35s cubic-bezier(.22, 1, .36, 1),
	            box-shadow .35s ease,
	            border-color .35s ease;
}

.vol-card:hover,
.vol-card:focus-visible {
	transform: translateY(-6px);
	border-color: #d8c6e9;
	box-shadow: 0 20px 46px rgba(87, 28, 145, .16);
}

.vol-card:focus-visible {
	outline: 3px solid rgba(87, 28, 145, .4);
	outline-offset: 3px;
}

.vol-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: linear-gradient(145deg, var(--vol-primary), #a55bc9);
}

.vol-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 80%;
	display: block;
	transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}

.vol-card:hover .vol-card__media img { transform: scale(1.045); }

/* No photo yet: initials over the brand gradient. */
.vol-media__initials {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: #fff;
	font-size: 44px;
	font-weight: 700;
	letter-spacing: .04em;
}

/* A soft wash at the top so the badge stays readable over a busy photo. */
.vol-card__media::after {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 96px;
	background: linear-gradient(180deg, rgba(26, 10, 34, .42), rgba(26, 10, 34, 0));
	pointer-events: none;
}

.vol-card__badge {
	position: absolute;
	z-index: 2;
	top: 14px;
	left: 14px;
	padding: 5px 12px;
	border-radius: 100px;
	background: rgba(255, 255, 255, .94);
	color: var(--vol-primary);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	box-shadow: 0 4px 14px rgba(43, 39, 49, .12);
}

.vol-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 22px 22px;
}

.vol-card__name {
	color: var(--vol-primary);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.vol-card__role {
	color: var(--vol-primary-deep);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .01em;
	opacity: .72;
}

.vol-card__text {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 4px;
	color: var(--vol-muted);
	font-size: 13.5px;
	line-height: 1.65;
}

.vol-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 12px;
	color: var(--vol-accent);
	font-size: 13px;
	font-weight: 700;
}

/* Quick facts. Only the single, horizontal card has room for them; in the
   vertical grid they would just make every card taller. */
.vol-card__facts { display: none; }

.vol-card__fact {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #4b4553;
	font-size: 13px;
	line-height: 1.45;
}

.vol-card__fact i {
	flex: 0 0 auto;
	color: var(--vol-primary);
	font-size: 13px;
}

.vol-card__cta i { transition: transform .3s ease; }

.vol-card:hover .vol-card__cta i,
.vol-card:focus-visible .vol-card__cta i { transform: translateX(4px); }

/* ---- one volunteer: the card lies on its side ----
   One upright card in the middle of the page left too much empty space either
   side and made the section very tall. Left photo, right text, and the section
   keeps its normal height. The grid goes back to vertical on its own as soon
   as there are two or more volunteers. */

.vols-grid--single { grid-template-columns: minmax(0, 940px); }

.vols-grid--single .vol-card { flex-direction: row; }

.vols-grid--single .vol-card__media {
	flex: 0 0 320px;
	aspect-ratio: auto;
	min-height: 360px;
}

.vols-grid--single .vol-card__body {
	flex: 1 1 auto;
	justify-content: center;
	padding: 30px 38px;
}

.vols-grid--single .vol-card__name { font-size: 24px; }
.vols-grid--single .vol-card__text {
	-webkit-line-clamp: 4;
	font-size: 14.5px;
	line-height: 1.72;
}

.vols-grid--single .vol-card__facts {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin: 16px 0 4px;
	padding: 16px 0 0;
	border-top: 1px solid var(--vol-line);
}

.vols-grid--single .vol-card__cta { margin-top: 16px; }

/* Under a tablet the photo would be squeezed, so the card stands up again. */
@media (max-width: 767px) {
	.vols-grid--single .vol-card { flex-direction: column; }

	.vols-grid--single .vol-card__media {
		flex: 0 0 auto;
		aspect-ratio: 4 / 5;
		min-height: 0;
	}

	.vols-grid--single .vol-card__body { padding: 20px 22px 22px; }
	.vols-grid--single .vol-card__name { font-size: 19px; }
}

/* =========================================================
   PROFILE PAGE — /<slug>/
   ========================================================= */

.volunteer-profile { background: #fff; }

.vp-hero {
	padding: clamp(22px, 4vw, 40px) 0 clamp(30px, 5vw, 52px);
	background:
		radial-gradient(50% 70% at 85% 0%, rgba(122, 47, 158, .09), transparent 70%),
		linear-gradient(180deg, #faf7fc 0%, #ffffff 100%);
}

.vp-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: clamp(20px, 3vw, 32px);
	color: var(--vol-muted);
	font-size: 12.5px;
}

.vp-crumbs a {
	color: inherit;
	text-decoration: none;
	transition: color .2s ease;
}

.vp-crumbs a:hover { color: var(--vol-primary); }
.vp-crumbs i { font-size: 10px; opacity: .55; }
.vp-crumbs [aria-current] { color: var(--vol-ink); font-weight: 600; }

.vp-hero__grid {
	display: grid;
	grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
	gap: clamp(26px, 4.5vw, 56px);
	align-items: center;
}

.vp-photo {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 5;
	border-radius: 22px;
	overflow: hidden;
	background: linear-gradient(145deg, var(--vol-primary), #a55bc9);
	box-shadow: 0 24px 60px rgba(87, 28, 145, .18);
}

.vp-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	display: block;
}

.vp-photo__badge {
	position: absolute;
	left: 14px;
	bottom: 14px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 14px;
	border-radius: 100px;
	background: rgba(255, 255, 255, .95);
	color: var(--vol-primary);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	box-shadow: 0 6px 18px rgba(43, 39, 49, .16);
}

.vp-eyebrow {
	display: inline-block;
	margin-bottom: 10px;
	color: var(--vol-primary);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.vp-name {
	margin: 0 0 8px;
	color: var(--vol-primary);
	font-size: clamp(30px, 4.2vw, 46px);
	font-weight: 800;
	line-height: 1.15;
}

.vp-role {
	margin: 0 0 16px;
	color: var(--vol-primary-deep);
	font-size: 14.5px;
	font-weight: 600;
	opacity: .75;
}

.vp-lede {
	max-width: 640px;
	margin: 0;
	color: #4b4553;
	font-size: 15px;
	line-height: 1.8;
}

.vp-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.vp-facts li {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #4b4553;
	font-size: 13.5px;
}

.vp-facts i { color: var(--vol-primary); font-size: 14px; }

.vp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.vp-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: 100px;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}

.vp-btn i { font-size: 13px; }

.vp-btn--primary {
	background: var(--vol-primary);
	color: #fff;
}

.vp-btn--primary:hover {
	background: var(--vol-primary-deep);
	color: #fff;
	transform: translateY(-2px);
}

.vp-btn--ghost {
	border: 1px solid #dccce9;
	background: #fff;
	color: var(--vol-primary);
}

.vp-btn--ghost:hover {
	border-color: var(--vol-primary);
	background: #f7f1fc;
	color: var(--vol-primary-deep);
}

.vp-btn--light {
	background: #fff;
	color: var(--vol-primary);
}

.vp-btn--light:hover {
	background: #f4ecfa;
	color: var(--vol-primary-deep);
	transform: translateY(-2px);
}

/* ---- body: main column + details ---- */
.vp-body {
	padding: 0 0 clamp(56px, 7vw, 88px);
	background: #fff;
}

.vp-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 24px;
	align-items: start;
}

.vp-main,
.vp-side {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.vp-card {
	padding: 26px 28px;
	border: 1px solid var(--vol-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(87, 28, 145, .05);
}

.vp-icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: #f4ecfa;
	color: var(--vol-primary);
	font-size: 14px;
}

.vp-text {
	margin: 0 0 14px;
	color: #4b4553;
	font-size: 14.5px;
	line-height: 1.85;
}

.vp-text:last-child { margin-bottom: 0; }

/* ---- shared profile blocks (also used on the home card's page) ---- */
.vol-block__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	color: var(--vol-primary);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.35;
}

.vol-edu {
	padding: 14px 16px;
	border: 1px solid var(--vol-line);
	border-left: 3px solid var(--vol-primary);
	border-radius: 10px;
	background: #faf7fd;
}

.vol-edu__degree {
	display: block;
	margin-bottom: 4px;
	color: var(--vol-primary-deep);
	font-size: 14px;
	font-weight: 600;
}

.vol-edu__place {
	display: block;
	color: var(--vol-muted);
	font-size: 13px;
	line-height: 1.6;
}

.vol-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vol-list li {
	position: relative;
	margin-bottom: 14px;
	padding-left: 20px;
	color: #4b4553;
	font-size: 14px;
	line-height: 1.75;
}

.vol-list li:last-child { margin-bottom: 0; }

.vol-list li::before {
	content: "";
	position: absolute;
	top: .6em;
	left: 2px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--vol-accent);
	opacity: .8;
}

.vol-list strong {
	display: block;
	color: var(--vol-primary-deep);
	font-weight: 600;
}

.vol-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vol-chips li {
	padding: 7px 13px;
	border: 1px solid #e8dbf3;
	border-radius: 100px;
	background: #f7f1fc;
	color: var(--vol-primary-deep);
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.3;
}

/* ---- join card ---- */
.vp-card--cta {
	border: 0;
	background:
		radial-gradient(90% 120% at 100% 0%, rgba(255, 255, 255, .18), transparent 60%),
		linear-gradient(135deg, var(--vol-primary-deep), #7a2f9e);
	color: #fff;
}

.vp-cta__title {
	margin: 0 0 10px;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
}

.vp-cta__text {
	margin: 0 0 18px;
	color: rgba(255, 255, 255, .85);
	font-size: 13.5px;
	line-height: 1.7;
}

/* ---- responsive ---- */
@media (max-width: 991px) {
	.vp-hero__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}

	.vp-photo {
		max-width: 340px;
		width: 100%;
		justify-self: center;
	}

	.vp-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 575px) {
	.vp-card { padding: 20px 20px; }
	.vp-hero { padding-top: 18px; }
	.vp-actions .vp-btn { width: 100%; justify-content: center; }
	.vp-facts { gap: 8px 18px; }
}

/* Someone who asked for less motion gets none of this. */
@media (prefers-reduced-motion: reduce) {
	.vol-card,
	.vol-card__media img,
	.vol-card__cta i,
	.vp-btn {
		transition: none !important;
	}

	.vol-card:hover { transform: none; }
	.vol-card:hover .vol-card__media img { transform: none; }
	.vp-btn:hover { transform: none; }
}
