/**
 * Homepage Section 2: learning areas.
 * All selectors are isolated from Eduma, LearnPress, and the locked Hero.
 */

.wma-section-2,
.wma-section-2 *,
.wma-section-2 *::before,
.wma-section-2 *::after {
	box-sizing: border-box;
}

.wma-section-2 {
	position: relative;
	overflow: hidden;
	padding-block: clamp(80px, 8vw, 132px);
	color: var(--wma-color-text, #1a1a1a);
	background:
		radial-gradient(circle at 88% 4%, rgb(213 170 36 / 13%), transparent 27%),
		var(--wma-color-off-white, #f7f5ef);
	font-family: var(--wma-font-body, Inter, sans-serif);
}

.wma-section-2::before {
	position: absolute;
	top: 0;
	left: 50%;
	width: min(100% - 150px, 1386px);
	height: 1px;
	background: linear-gradient(90deg, transparent, rgb(213 170 36 / 65%), transparent);
	transform: translateX(-50%);
	content: "";
}

.wma-section-2__inner {
	width: min(100% - 150px, 1386px);
	margin-inline: auto;
}

.wma-section-2__intro {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
	align-items: end;
	gap: clamp(40px, 7vw, 120px);
	margin-bottom: clamp(48px, 5vw, 78px);
}

.wma-section-2__eyebrow {
	margin: 0 0 18px;
	color: var(--wma-color-gold-dark, #9b7a16);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .18em;
	line-height: 1.4;
	text-transform: uppercase;
}

.wma-section-2__title {
	max-width: 780px;
	margin: 0;
	color: var(--wma-color-black, #0b0b0b);
	font-family: var(--wma-font-heading, "Playfair Display", Georgia, serif);
	font-size: clamp(3rem, 5vw, 5rem);
	font-weight: 600;
	letter-spacing: -.025em;
	line-height: .98;
}

.wma-section-2__lead {
	max-width: 520px;
	margin: 0;
	color: var(--wma-color-muted, #686868);
	font-size: clamp(1rem, 1.3vw, 1.2rem);
	line-height: 1.7;
}

.wma-section-2__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px;
}

.wma-section-2__card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 300px;
	overflow: hidden;
	padding: 28px;
	border: 1px solid rgb(11 11 11 / 10%);
	border-radius: 6px;
	background: rgb(255 255 255 / 82%);
	box-shadow: 0 18px 50px rgb(11 11 11 / 5%);
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.wma-section-2__card::after {
	position: absolute;
	bottom: 14px;
	left: 28px;
	width: 48px;
	height: 3px;
	border-radius: 999px;
	background: var(--wma-color-gold, #d5aa24);
	transition: width 180ms ease;
	content: "";
}

.wma-section-2__card:hover,
.wma-section-2__card:focus-within {
	border-color: rgb(213 170 36 / 45%);
	box-shadow: 0 22px 60px rgb(11 11 11 / 10%);
	transform: translateY(-5px);
}

.wma-section-2__card:hover::after,
.wma-section-2__card:focus-within::after {
	width: 66px;
}

.wma-section-2__icon {
	display: grid;
	width: 54px;
	height: 54px;
	margin-bottom: 22px;
	place-items: center;
	border: 1px solid rgb(213 170 36 / 48%);
	border-radius: 50%;
	color: var(--wma-color-gold-dark, #9b7a16);
	background: rgb(213 170 36 / 8%);
}

.wma-section-2__icon svg {
	width: 27px;
	height: 27px;
	fill: none;
	stroke: currentcolor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.5;
}

.wma-section-2__number {
	position: absolute;
	top: 31px;
	right: 30px;
	margin: 0;
	color: rgb(11 11 11 / 18%);
	font-family: var(--wma-font-heading, "Playfair Display", Georgia, serif);
	font-size: 1.15rem;
	font-weight: 600;
}

.wma-section-2__card-title {
	margin: 0 0 12px;
	color: var(--wma-color-black, #0b0b0b);
	font-family: var(--wma-font-heading, "Playfair Display", Georgia, serif);
	font-size: clamp(1.55rem, 2vw, 2rem);
	font-weight: 600;
	line-height: 1.05;
}

.wma-section-2__description {
	margin: 0 0 18px;
	color: var(--wma-color-muted, #686868);
	font-size: .94rem;
	line-height: 1.6;
}

.wma-section-2__link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 9px;
	margin: auto 0 16px;
	color: var(--wma-color-black, #0b0b0b);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .05em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
}

.wma-section-2__link svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: var(--wma-color-gold-dark, #9b7a16);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	transition: transform 180ms ease;
}

.wma-section-2__link:hover,
.wma-section-2__link:focus-visible {
	color: var(--wma-color-gold-dark, #9b7a16);
}

.wma-section-2__link:hover svg,
.wma-section-2__link:focus-visible svg {
	transform: translateX(4px);
}

@media (max-width: 1199px) {
	.wma-section-2__inner,
	.wma-section-2::before {
		width: min(100% - 64px, 1040px);
	}

	.wma-section-2__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.wma-section-2__link {
		min-height: 44px;
	}
}

@media (max-width: 800px) {
	.wma-section-2 {
		padding-block: 76px;
	}

	.wma-section-2__inner,
	.wma-section-2::before {
		width: min(100% - 48px, 720px);
	}

	.wma-section-2__intro {
		grid-template-columns: 1fr;
		align-items: start;
		gap: 28px;
		margin-bottom: 48px;
	}

	.wma-section-2__title {
		font-size: clamp(2.8rem, 9vw, 4.5rem);
	}

	.wma-section-2__lead {
		max-width: 620px;
	}

	.wma-section-2__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.wma-section-2 {
		padding-block: 64px;
	}

	.wma-section-2__inner,
	.wma-section-2::before {
		width: calc(100% - 32px);
	}

	.wma-section-2__title {
		font-size: clamp(2.65rem, 13vw, 3.4rem);
	}

	.wma-section-2__grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.wma-section-2__card {
		min-height: 280px;
		padding: 28px 28px 16px;
	}

	.wma-section-2__icon {
		margin-bottom: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wma-section-2__card,
	.wma-section-2__card::after,
	.wma-section-2__link svg {
		transition-duration: .01ms;
	}
}
