/* ============================================================
 * Work Learn Landing Page
 * Loaded only on the "Work Learn Landing Page" template (page-wil).
 * Measurements follow Figma frame 105:2706 at 1440px.
 * ============================================================ */

/* Tokens on :root so they also resolve in the block editor (no .wil-page wrapper there). */
:root {
	--wil-aubergine: var(--wp--preset--color--aubergine, #1e1a34);
	--wil-tangerine: var(--wp--preset--color--tangerine, #f1b434);
	--wil-light-tangerine: var(--wp--preset--color--light-tangerine, #fbe9c1);
	--wil-grey-bg: var(--wp--preset--color--aubergine-10, #edeaea);
	--wil-off-white: var(--wp--preset--color--aubergine-05, #f7f7f6);
	--wil-wide: 1248px;
	--wil-content: 1120px;
	--wil-narrow: 1094px;
	--wil-gutter: 2rem;
	--wil-section-space: clamp(3rem, 6vw, 5rem);
	--wil-title-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem);
	--wil-radius-card: 8px;
	--wil-shadow-card: 4px 4px 15px rgba(150, 150, 150, 0.5);
}

.wil-page {
	color: var(--wil-aubergine);
}

/* "(opens in a new tab)" note added to external links by functions.php, header and footer included. */
.wil-page .screen-reader-text,
.eco-new-tab {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------------------
 * WIL header (parts/header-wil.html, Figma 105:2954)
 * Aubergine panel with the eCO products menu + wordmark, white bar with WIL logo + FR.
 * ------------------------------------------------------------ */
.wil-header-part {
	margin: 0;
}

.wil-header {
	position: relative; /* anchors the parent's .mega-menu panel */
	z-index: 100;
	display: flex;
	align-items: stretch;
	min-height: 4.25rem;
	background-color: #fff;
	border-bottom: 1px solid var(--wp--preset--color--aubergine-10, #edeaea);
	font-family: var(--wp--preset--font-family--site-fonts);
}

.wil-header__brand {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 0.25rem;
	box-sizing: border-box;
	min-width: 15.25rem;
	padding-inline: 1.75rem 1rem;
	background-color: var(--wil-aubergine);
}

.wil-header__brand .eco-mega-menu-btn {
	display: flex;
	padding: 0.4rem;
}

.wil-header__brand .eco-mega-menu-btn svg {
	width: 1.75rem;
	height: 1.75rem;
}

.wil-header__brand .eco-mega-menu-btn:focus-visible {
	outline: var(--eco-outline);
	outline-offset: 0;
}

.wil-header__brand .eco-header-logo svg {
	width: auto;
	height: 2rem;
	padding: 0.5rem;
}

/* Outside the parent's navigation block the menu lists keep browser bullets; remove them. */
.wil-header .mega-menu ul {
	margin-block: 10px 0;
	padding: 0;
	list-style: none;
}

.wil-header__bar {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-inline: 1.75rem 2.25rem;
}

.wil-header a.wil-header__site,
.wil-header a.wil-header__site:is(:link, :visited) {
	color: #000;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.wil-header__site img {
	display: block;
	width: auto;
	max-height: 2.5rem;
}

.wil-header__lang {
	display: flex;
	gap: 1rem;
}

.wil-header__lang a,
.wil-header__lang a:is(:link, :visited) {
	padding: 0.35rem 0.25rem;
	border-radius: 4px;
	color: var(--wil-aubergine);
	font-size: 1.125rem;
	font-weight: 700;
	text-decoration: none;
}

.wil-header a.wil-header__site:is(:hover, :focus-visible),
.wil-header__lang a:is(:hover, :focus-visible) {
	text-decoration: underline;
}

.wil-header a.wil-header__site:focus-visible,
.wil-header__lang a:focus-visible {
	outline: var(--eco-outline);
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.wil-header__brand {
		min-width: 0;
		padding-inline: 0.75rem 0.5rem;
	}

	.wil-header__brand .eco-header-logo svg {
		height: 1.6rem;
	}

	.wil-header__brand .eco-mega-menu-btn svg {
		width: 1.5rem;
		height: 1.5rem;
	}

	.wil-header__bar {
		padding-inline: 0.85rem;
	}

	.wil-header a.wil-header__site {
		font-size: 0.95rem;
		line-height: 1.15;
	}
}

/* ------------------------------------------------------------
 * Layout
 * ------------------------------------------------------------ */
.wil-page > .wp-block-post-content > * {
	margin-block: 0;
}

.wil-container {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--wil-wide) + 2 * var(--wil-gutter));
	margin-inline: auto;
	padding-inline: var(--wil-gutter);
}

.wil-container--content {
	max-width: calc(var(--wil-content) + 2 * var(--wil-gutter));
}

.wil-container--narrow {
	max-width: calc(var(--wil-narrow) + 2 * var(--wil-gutter));
}

/*
 * Sections carry the parent's eco-no-padding-* classes, whose rules out-rank ours, so
 * vertical spacing sits on the inner container rather than on the section itself.
 */
.wil-section > .wil-container {
	padding-block: var(--wil-section-space);
}

.wil-text-center {
	text-align: center;
}

.wil-section__title {
	margin: 0 0 1rem;
	font-size: var(--wil-title-size);
	font-weight: 700;
	line-height: 1.2;
}

.wil-section__intro {
	max-width: 58.5rem;
	margin: 0 0 2.5rem;
	font-size: 1rem;
	line-height: 1.5625;
}

.wil-section__intro.wil-text-center {
	margin-inline: auto;
}

.wil-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ------------------------------------------------------------
 * Buttons (annotation 151:4141)
 * ------------------------------------------------------------ */
.wil-page .wp-block-buttons {
	gap: 1rem;
}

/*
 * Selectors name the <a> and repeat the :link/:visited states so they out-rank the
 * parent's ".wp-block-button a.wp-element-button:link" and "a.wp-block-read-more:link".
 */
.wil-page .wil-btn-explore a.wp-element-button,
.wil-page .wil-btn-explore a.wp-element-button:is(:link, :visited),
.wil-page .wil-btn-contact a.wp-element-button,
.wil-page .wil-btn-contact a.wp-element-button:is(:link, :visited),
.wil-page .wil-btn-card a.wp-element-button,
.wil-page .wil-btn-card a.wp-element-button:is(:link, :visited),
.wil-page .wil-event-card__btn a.wp-element-button,
.wil-page .wil-event-card__btn a.wp-element-button:is(:link, :visited),
.wil-page .wil-contact .frm_button_submit {
	display: inline-block;
	padding: 0.8rem 1.25rem;
	border: 1px solid var(--wil-aubergine);
	border-radius: 5px;
	background-color: var(--wil-aubergine);
	color: var(--wil-tangerine);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color 0.1s linear, color 0.1s linear;
}

/* "Explore Opportunities": Aubergine background, Tangerine border and text */
.wil-page .wil-btn-explore a.wp-element-button,
.wil-page .wil-btn-explore a.wp-element-button:is(:link, :visited) {
	border-color: var(--wil-tangerine);
}

/* "Contact Us": Tangerine background, Aubergine text */
.wil-page .wil-btn-contact a.wp-element-button,
.wil-page .wil-btn-contact a.wp-element-button:is(:link, :visited) {
	border-color: var(--wil-tangerine);
	background-color: var(--wil-tangerine);
	color: var(--wil-aubergine);
}

.wil-page .wil-btn-explore a.wp-element-button:is(:hover, :focus-visible),
.wil-page .wil-btn-card a.wp-element-button:is(:hover, :focus-visible),
.wil-page .wil-event-card__btn a.wp-element-button:is(:hover, :focus-visible),
.wil-page .wil-contact .frm_button_submit:is(:hover, :focus-visible) {
	border-color: var(--wil-aubergine);
	background-color: var(--wil-tangerine);
	color: var(--wil-aubergine);
}

.wil-page .wil-btn-explore a.wp-element-button:is(:hover, :focus-visible) {
	border-color: var(--wil-tangerine);
}

.wil-page .wil-btn-contact a.wp-element-button:is(:hover, :focus-visible) {
	border-color: var(--wil-tangerine);
	background-color: var(--wil-aubergine);
	color: var(--wil-tangerine);
}

/* "Coming Soon" program card button: no link, so light grey with dark grey text and no hover change. */
.wil-page .wil-btn-card.wil-btn-card--soon a.wp-element-button,
.wil-page .wil-btn-card.wil-btn-card--soon a.wp-element-button:hover {
	border-color: #e4e4e4;
	background-color: #e4e4e4;
	color: #4a4a4a;
	cursor: default;
}

/* In-page links such as the program cards' "Contact Us" scroll to the form rather than jump. */
@media (prefers-reduced-motion: no-preference) {
	html:has(.wil-page) {
		scroll-behavior: smooth;
	}
}

.wil-page .wil-hero a.wp-element-button:focus-visible {
	outline: var(--eco-outline-width, 3px) solid #fff;
	outline-offset: 3px;
}

/* ------------------------------------------------------------
 * Hero (annotation 151:4149)
 * ------------------------------------------------------------ */
.wil-page .wil-hero {
	min-height: clamp(26rem, 40vw, 36.25rem);
	padding: 4rem 0;
	color: #fff;
}

/* Crop the photo to the banner instead of stretching it (nothing else sets object-fit here). */
.wil-page .wil-hero img.wp-block-cover__image-background {
	object-fit: cover;
	object-position: center;
}

.wil-page .wil-hero .wp-block-cover__inner-container {
	width: 100%;
	color: #fff;
}

.wil-hero__content {
	max-width: calc(1200px + 2 * var(--wil-gutter));
}

.wil-page .wil-hero__title {
	max-width: 40.625rem;
	margin: 0 0 1.25rem;
	color: #fff;
	font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem);
	font-weight: 400;
	line-height: 1.17;
}

.wil-hero__title strong {
	color: var(--wil-tangerine);
	font-weight: 700;
}

.wil-page .wil-hero__text {
	max-width: 34.625rem;
	margin: 0 0 2rem;
	color: #fff;
	font-size: 1.125rem;
	line-height: 1.554;
}

/* ------------------------------------------------------------
 * What is WIL + audience cards
 * ------------------------------------------------------------ */
.wil-intro {
	color: #000;
	text-align: center;
}

.wil-intro > .wil-container {
	padding-block: clamp(3.5rem, 8vw, 7.375rem) clamp(3.5rem, 7vw, 6.75rem);
}

.wil-intro__title {
	margin: 0 0 1.75rem;
	color: #000;
	font-size: var(--wil-title-size);
	line-height: 1.17;
}

.wil-intro__text {
	max-width: 41rem;
	margin: 0 auto 4.5rem;
	line-height: 1.5625;
}

.wil-audience {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	text-align: left;
}

.wil-audience-card {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	min-height: 10.5rem;
	box-sizing: border-box;
	margin: 0;
	padding: 2.3rem 1.5rem 3.5rem;
	border: 1px solid var(--wil-aubergine);
	border-radius: 24px;
	box-shadow: 0 12px 18px rgba(29, 56, 89, 0.07);
	color: var(--wil-aubergine);
}

.wil-page .wil-audience-card__icon {
	display: flex;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	border-radius: 14px;
	background-color: var(--wil-light-tangerine);
}

.wil-page .wil-audience-card__icon img {
	width: 30px;
	height: 30px;
	object-fit: contain;
}

.wil-audience-card__body > * {
	margin: 0;
}

.wil-page .wil-audience-card__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.5px;
}

.wil-page .wil-audience-card__text {
	margin-top: 0.625rem;
	font-size: 0.875rem;
	line-height: 1.43;
}

/* ------------------------------------------------------------
 * Institutions band
 * ------------------------------------------------------------ */
/*
 * Institutions carousel (assets/js/wil-carousel.js). Like microlearnontario.ca:
 * 6 logos per view on desktop, 3 on tablet, 2 on mobile; arrows move one logo and loop.
 */
.wil-institutions {
	--wil-logos-per-view: 6;
	--wil-logo-gap: 2rem;
	background-color: var(--wil-aubergine);
	color: #fff;
}

.wil-institutions .wil-container {
	padding-block: 1.75rem;
}

/* JS wraps the logo row in .wil-carousel, which then takes over the container sizing. */
.wil-carousel {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 1.25rem;
	align-items: center;
	box-sizing: border-box;
	max-width: 1440px;
	margin-inline: auto;
	padding: 1.75rem var(--wil-gutter);
}

.wil-carousel > .wil-logo-carousel {
	max-width: none;
	margin: 0;
	padding: 0;
}

.wil-logo-carousel {
	display: flex;
	gap: var(--wil-logo-gap);
	align-items: center;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.wil-logo-carousel::-webkit-scrollbar {
	display: none;
}

.wil-logo-carousel:focus-visible {
	outline: var(--eco-outline-width, 3px) solid var(--wil-tangerine);
	outline-offset: 4px;
}

.wil-page .wil-logo-carousel__logo {
	display: flex;
	flex: 0 0 calc((100% - (var(--wil-logos-per-view) - 1) * var(--wil-logo-gap)) / var(--wil-logos-per-view));
	align-items: center;
	justify-content: center;
	height: 4.5rem;
	margin: 0;
	scroll-snap-align: start;
}

.wil-page .wil-logo-carousel__logo img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 4rem;
	object-fit: contain;
}

.wil-carousel__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, 0.75);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.1s linear, border-color 0.1s linear, color 0.1s linear;
}

.wil-carousel__btn:hover,
.wil-carousel__btn:focus-visible {
	border-color: var(--wil-tangerine);
	background-color: var(--wil-tangerine);
	color: var(--wil-aubergine);
}

.wil-carousel__btn:focus-visible {
	outline: var(--eco-outline-width, 3px) solid #fff;
	outline-offset: 3px;
}

@media (max-width: 1000px) {
	.wil-institutions {
		--wil-logos-per-view: 3;
	}
}

@media (max-width: 600px) {
	.wil-institutions {
		--wil-logos-per-view: 2;
		--wil-logo-gap: 1.25rem;
	}

	.wil-carousel {
		gap: 0.5rem;
	}

	.wil-carousel__btn {
		width: 2.75rem;
		height: 2.75rem;
	}
}

/* ------------------------------------------------------------
 * Featured Programs
 * ------------------------------------------------------------ */
.wil-programs {
	color: #000;
}

.wil-programs .wil-section__title {
	margin-bottom: 2.25rem;
}

.wil-programs .wil-section__intro {
	margin-bottom: 3.75rem;
}

.wil-program-card {
	display: flex;
	flex-direction: column;
	min-height: 30.25rem;
	box-sizing: border-box;
	margin: 0;
	padding: 2.6rem 3rem 2rem;
	border-radius: 4px;
	background-color: #fff;
	box-shadow: var(--wil-shadow-card);
	color: var(--wil-aubergine);
}

.wil-program-card__logos {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	min-height: 3.625rem;
	margin: 0 0 2.5rem;
}

.wil-page .wil-program-card__logos .wp-block-image {
	flex: 0 1 auto;
	min-width: 0;
	margin: 0;
}

.wil-page .wil-program-card__logos img {
	display: block;
	width: auto;
	max-width: min(100%, 14.375rem);
	height: auto;
	max-height: 3.625rem;
}

/* Paired logos (e.g. BHER + eCampusOntario) sit side by side at the mockup's smaller size. */
.wil-page .wil-program-card__logos .wp-block-image:not(:only-child) img {
	max-height: 2.625rem;
}

/* 24px rather than the mockup's 32px: the webcopy's full programme names run 3-4 lines. */
.wil-page .wil-program-card__title {
	margin: 0 0 1.5rem;
	font-size: 1.5rem;
	line-height: 1.25;
}

.wil-page .wil-program-card__text {
	margin: 0 0 2rem;
	font-size: 1rem;
	line-height: 1.875;
}

.wil-page .wil-card-actions {
	margin-top: auto;
}

/* ------------------------------------------------------------
 * Contact form (Formidable "WIL WorkLearn Short Form", key worklearn-short-form, Formidable styling off)
 * ------------------------------------------------------------ */
.wil-contact {
	background-color: var(--wil-grey-bg);
	color: #1e1a33;
}

.wil-contact .wil-section__intro {
	margin-bottom: 3rem;
}

.wil-contact .frm_forms,
.wil-contact .frm_form_fields,
.wil-contact fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.wil-contact .frm_screen_reader,
.wil-contact .frm_hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* Formidable's 12-column grid: fields span 12, "frm6" / "frm_half" fields span 6. */
.wil-contact .frm_forms .frm_fields_container {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 2.25rem 2rem;
	align-items: start; /* Email sits beside the taller radio list */
}

.wil-contact .frm_forms .frm_fields_container > .frm_form_field {
	grid-column: span 12;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0;
}

.wil-contact .frm_forms .frm_fields_container > .frm_form_field:is(.frm6, .frm_half) {
	grid-column: span 6;
}

.wil-contact .frm_primary_label {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
}

.wil-contact .frm_required {
	color: inherit;
}

.wil-contact input[type="text"],
.wil-contact input[type="email"],
.wil-contact textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 50px;
	padding: 0.6rem 1.25rem;
	border: 1px solid var(--wil-aubergine);
	border-radius: 8px;
	background-color: #fff;
	color: #1e1a33;
	font: inherit;
	font-size: 1.25rem;
}

.wil-contact input::placeholder {
	color: #1e1a33;
	opacity: 0.75;
}

.wil-contact input:focus-visible {
	outline: var(--eco-outline);
	outline-offset: 2px;
}

.wil-contact .frm_error,
.wil-contact .frm_error_style {
	color: #b00020;
	font-size: 1rem;
}

.wil-contact .frm_error_style {
	margin-bottom: 1.5rem;
	font-weight: 700;
}

.wil-contact .frm_message {
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--wil-tangerine);
	background-color: #fff;
	font-size: 1.125rem;
}

.wil-contact .frm_submit {
	margin-top: 2.25rem;
}

.wil-page .wil-contact .frm_button_submit {
	min-width: 10.4rem;
	padding: 0.9rem 1.5rem;
	font-family: inherit;
	font-size: 1.5rem;
	font-weight: 400;
	cursor: pointer;
}

/* ------------------------------------------------------------
 * Sector Partners
 * ------------------------------------------------------------ */
.wil-partners > .wil-container {
	padding-block: clamp(3rem, 7vw, 6.5rem) clamp(2.5rem, 5vw, 4rem);
}

.wil-partners .wil-section__title {
	margin-bottom: 3.75rem;
}

/* Three logos per row with any remainder centred beneath (mockup: 3 + 2). */
.wil-partner-logos {
	--wil-partners-per-row: 3;
	--wil-partners-gap: clamp(1.5rem, 4vw, 4rem);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2.5rem var(--wil-partners-gap);
	max-width: 67.5rem;
	margin-inline: auto;
}

.wil-page .wil-partner-logos .wp-block-image {
	display: flex;
	flex: 0 0 calc((100% - (var(--wil-partners-per-row) - 1) * var(--wil-partners-gap)) / var(--wil-partners-per-row));
	justify-content: center;
	margin: 0;
}

@media (max-width: 600px) {
	.wil-partner-logos {
		--wil-partners-per-row: 2;
	}
}

.wil-page .wil-partner-logos img {
	display: block;
	width: auto;
	max-width: 17.5rem;
	height: auto;
	max-height: 6rem;
}

/* ------------------------------------------------------------
 * Find WIL Resources (ECO Resources plugin renders below the intro)
 * ------------------------------------------------------------ */
.wil-resources {
	color: #1e1a33;
}

.wil-resources .wil-section__title {
	margin-bottom: 0.75rem;
	line-height: 1.545;
}

.wil-resources .wil-section__intro {
	line-height: 1.28;
}

/* The plugin caps itself at 1200px and centres; let it fill the section container
   so the filter box and cards line up with the heading and intro. */
.wil-resources .eco-resources {
	max-width: none;
	margin-inline: 0;
}

/*
 * Contrast fix: the parent's "a:link { color: steel-200 }" out-ranks the plugin's
 * ".eco-resource__button" colour, leaving dark text on Aubergine. Proper fix belongs
 * in the plugin (target a.eco-resource__button:link/:visited); this keeps the page legible.
 */
.wil-resources a.eco-resource__button:is(:link, :visited) {
	color: var(--wil-tangerine);
}

.wil-resources a.eco-resource__button:is(:hover, :focus) {
	color: var(--wil-aubergine);
}

/* Compact resource cards (content review): title on top, tag pill bottom-left, button bottom-right. */
.wil-resources .eco-resource {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto 1fr auto;
	column-gap: 0.75rem;
	padding: 1.25rem;
}

.wil-resources .eco-resource__title {
	grid-column: 1 / -1;
	margin: 0 0 1.5rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
}

.wil-resources .eco-resource__desc {
	grid-column: 1 / -1;
	font-size: 0.9375rem;
}

.wil-resources .eco-resource__tags {
	grid-row: 3;
	grid-column: 1;
	align-self: center;
	margin: 0;
}

.wil-resources .eco-tag {
	text-transform: none; /* the plugin's "capitalize" mangles French ("Ressources De Soutien"); tags are cased in the data */
	padding: 0.375rem 0.75rem;
	font-size: 0.75rem;
	line-height: 1.2;
}

.wil-resources .eco-resource__button {
	grid-row: 3;
	grid-column: 2;
	align-self: end;
	margin: 0;
	padding: 0.5rem 1.25rem;
	font-size: 0.875rem;
	white-space: nowrap;
}

/* ------------------------------------------------------------
 * Events / Announcements (static cards linking to ecampusontario.ca)
 * ------------------------------------------------------------ */
.wil-events {
	background-color: var(--wil-off-white);
	color: #000;
}

.wil-events .wil-section__title {
	margin-bottom: 3.25rem;
	color: #000;
}

.wil-event-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	margin: 0;
	border-radius: var(--wil-radius-card);
	background-color: #fff;
	overflow: hidden;
}

.wil-page .wil-event-card__image {
	margin: 0;
}

.wil-page .wil-event-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wil-event-card__tag {
	position: absolute;
	top: 1rem;
	right: 1rem;
	margin: 0;
	padding: 0.25rem 0.85rem;
	border-radius: 999px;
	background-color: #fff;
	font-size: 1rem;
	line-height: 1.4;
}

.wil-event-card__tag a {
	color: var(--wil-aubergine);
	text-decoration: none;
}

.wil-event-card__tag a:hover,
.wil-event-card__tag a:focus-visible {
	text-decoration: underline;
}

.wil-page .wil-event-card__title {
	margin: 2.25rem 2.2rem 1.5rem;
	color: #000;
	font-size: 1.5rem;
	line-height: 1.2;
}

.wil-event-card__title a {
	color: inherit;
	text-decoration: none;
}

.wil-event-card__title a:hover,
.wil-event-card__title a:focus-visible {
	text-decoration: underline;
}

.wil-page .wil-event-card__text {
	margin: 0 2.2rem 1.5rem;
	font-size: 1rem;
	line-height: 1.875;
}

.wil-event-card__text p {
	margin: 0;
}

.wil-page .wil-event-card__actions {
	margin: auto 2.2rem 1.9rem;
}

.wil-page .wil-event-card__btn a.wp-element-button {
	font-size: 1.25rem;
	font-weight: 400;
}

/* ------------------------------------------------------------
 * FAQ (core Details blocks)
 * ------------------------------------------------------------ */
.wil-faq > .wil-container {
	padding-block: clamp(3rem, 8vw, 7.4rem) clamp(4rem, 10vw, 10.6rem);
}

.wil-faq .wil-section__title {
	margin-bottom: 3.9rem;
}

/*
 * The parent styles every <details> for its Documents filter (grey fill, summary top
 * border with negative margins, Aubergine hover that hid our dark chevron). These rules
 * reset all of that; the :is() state lists match the specificity of the parent's
 * "details[open] summary:hover".
 */
.wil-faq .wil-faq__item {
	margin: 0 0 1.6rem;
	padding: 0;
	overflow: hidden;
	border: 0.5px solid #868686;
	border-radius: 7px;
	background-color: #fff;
	color: var(--wil-aubergine);
}

.wil-faq .wil-faq__item > summary,
.wil-faq .wil-faq__item[open] > summary,
.wil-faq .wil-faq__item > summary:is(:hover, :focus-visible),
.wil-faq .wil-faq__item[open] > summary:is(:hover, :focus-visible) {
	position: relative;
	display: block;
	margin: 0;
	padding: 1.05rem 3.5rem 1.05rem 1.25rem;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: var(--wil-aubergine);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	cursor: pointer;
	list-style: none;
}

/* Hover (not specified in the mockup): light tint + underline; the chevron stays visible. */
.wil-faq .wil-faq__item > summary:hover,
.wil-faq .wil-faq__item[open] > summary:hover {
	background: var(--wil-off-white);
	text-decoration: underline;
}

.wil-faq .wil-faq__item[open] > summary,
.wil-faq .wil-faq__item[open] > summary:is(:hover, :focus-visible) {
	border-bottom: 0.5px solid #d9d9d9;
}

.wil-faq__item summary::-webkit-details-marker {
	display: none;
}

.wil-faq__item summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 1.15rem;
	width: 20px;
	height: 20px;
	background: url("../images/angle-down.svg") center / contain no-repeat;
	transform: translateY(-50%);
	transition: transform 0.15s ease;
}

.wil-faq__item[open] summary::after {
	transform: translateY(-50%) rotate(180deg);
}

.wil-faq .wil-faq__item > summary:focus-visible {
	outline: var(--eco-outline);
	outline-offset: -3px;
	border-radius: 7px;
}

.wil-faq .wil-faq__item > :not(summary) {
	margin: 0;
	padding: 1rem 1.25rem 1.25rem;
	color: var(--wil-aubergine);
	font-size: 1rem;
	line-height: 1.6;
}

/* ------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------ */
@media (max-width: 1024px) {
	.wil-card-grid,
	.wil-audience {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	:root {
		--wil-gutter: 1.25rem;
	}

	.wil-card-grid,
	.wil-audience {
		grid-template-columns: minmax(0, 1fr);
	}

	.wil-contact .frm_forms .frm_fields_container > .frm_form_field:is(.frm6, .frm_half) {
		grid-column: span 12;
	}

	.wil-contact .frm_primary_label {
		font-size: 1.125rem;
	}

	.wil-contact input[type="text"],
	.wil-contact input[type="email"] {
		padding-inline: 0.85rem;
		font-size: 1rem;
	}

	.wil-program-card {
		min-height: 0;
		padding: 2rem 1.75rem;
	}

	.wil-audience-card {
		min-height: 0;
		padding-bottom: 2.3rem;
	}

	.wil-intro__text {
		margin-bottom: 3rem;
	}

	.wil-page .wil-event-card__title,
	.wil-page .wil-event-card__text {
		margin-inline: 1.5rem;
	}

	.wil-page .wil-event-card__actions {
		margin-inline: 1.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wil-logo-carousel {
		scroll-behavior: auto;
	}

	.wil-carousel__btn,
	.wil-faq__item summary::after,
	.wil-page .wp-element-button,
	.wil-page .wil-event-card__btn a.wp-element-button {
		transition: none;
	}
}

/* Footer (parts/footer-wil.html): lockup + tagline, divider, legal links + social icons. */
.wil-footer {
	background-color: var(--wil-aubergine);
	color: #fff;
	font-family: var(--wp--preset--font-family--site-fonts, inherit);
}

.wil-footer .wil-container {
	padding-block: 3.5rem 2.5rem;
}

.wil-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.5rem 3.5rem;
	padding-bottom: 2.25rem;
	border-bottom: 1px solid #fff;
}

.wil-footer__top > .wp-block-group {
	min-width: 0;
	max-width: 100%;
	margin: 0;
}

.wil-footer .eco-footer-logo-lockup svg {
	display: block;
	width: 24.5rem;
	max-width: 100%;
}

.wil-footer__top p {
	max-width: 35rem;
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.35;
}

.wil-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem 2rem;
	padding-top: 2.25rem;
}

.wil-footer__links ul {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 1.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wil-footer a:link,
.wil-footer a:visited {
	color: #fff;
	text-decoration: none;
}

.wil-footer__links a {
	font-size: 1rem;
	white-space: nowrap;
}

.wil-footer a:hover,
.wil-footer a:focus-visible {
	color: var(--wil-tangerine);
	text-decoration: underline;
}

.wil-footer a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
	border-radius: 2px;
}

.wil-footer .eco-social-links {
	display: flex;
	gap: 1.75rem;
}

.wil-footer .eco-social-links a {
	display: inline-flex;
	align-items: center;
	height: auto;
	margin: 0;
	line-height: 1;
}

.wil-footer .eco-social-links a svg {
	height: 1.5rem;
	vertical-align: 0;
}

@media (max-width: 700px) {
	.wil-footer .wil-container {
		padding-block: 2.5rem 2rem;
	}

	.wil-footer__top {
		flex-direction: column;
		align-items: flex-start;
	}

	.wil-footer__links ul {
		gap: .75rem 1.25rem;
	}
}
