/* Adam Milo – "Title + Link Cards" block
 * Values read from the Figma Properties panel ("Components" > Risk card / Fit card):
 *  card (Rest): 669 wide, white, r23, padding 32/40/40/32, icon ↔ content gap 16,
 *    shadow 17 14 42.6 rgba(0,0,0,.15)
 *  card (Hover): + 2px border, linear gradient of the card color (Risk #FB9773 → #E7612C)
 *  title Poppins Bold 24/36 in the card color; text Poppins Regular 18 (27px line), gap 8
 *  button "Card btn": 195x50, r70, 1px border card color, bg card color 8%,
 *    label Poppins Bold 16 card color; hover bg card color ~32%
 *  icon 32x32. Section title centered, line under it. */

.amlk-section {
	--amlk-title-color: #212529;
	--amlk-line-color: #3F92A0;
	background-color: var(--amlk-section-bg, #F9F9F9);
	padding: 50px 0 100px;   /* top 50 (requested), bottom 100 */
	font-family: Poppins, sans-serif;
}

/* ---------- section title ---------- */
.amlk-section .amlk-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	margin-bottom: 48px;
	text-align: center;
}
.amlk-section .amlk-title {
	margin: 0;
	color: var(--amlk-title-color);
	font-family: Poppins, sans-serif;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.5;
}
.amlk-section .amlk-line {
	display: block;
	width: 70px;
	height: 5px;
	background-color: var(--amlk-line-color);
}

/* ---------- cards ---------- */
.amlk-section .amlk-cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 32px;
}
.amlk-section .amlk-card {
	--amlk-color: #E96835;
	position: relative;
	flex: 1 1 calc(50% - 16px);
	max-width: 669px;
	min-width: 0;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 32px 40px 40px 32px;
	border-radius: 23px;
	background: #fff;
	box-shadow: 17px 14px 42.6px rgba(0, 0, 0, .15);
	transition: transform .2s ease;
}
/* hover frame: 2px gradient border in the card color (Figma "G orange") */
.amlk-section .amlk-card::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 2px;
	background: linear-gradient(90deg,
		color-mix(in srgb, var(--amlk-color) 60%, #fff) 0%,
		var(--amlk-color) 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity .2s ease;
	pointer-events: none;
}
.amlk-section .amlk-card:hover::after,
.amlk-section .amlk-card:focus-within::after {
	opacity: 1;
}

.amlk-section .amlk-icon {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	margin-top: 2px;
}
.amlk-section .amlk-icon img {
	display: block;
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.amlk-section .amlk-body {
	flex: 1 1 0;
	align-self: stretch;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.amlk-section .amlk-card-title {
	margin: 0;
	color: var(--amlk-color);
	font-family: Poppins, sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 36px;
}
.amlk-section .amlk-text,
.amlk-section .amlk-text p {
	color: #212529;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.5;
}
.amlk-section .amlk-text p {
	margin: 0 0 8px;
}
.amlk-section .amlk-text > :last-child {
	margin-bottom: 0;
}

/* button – bottom right */
.amlk-section .amlk-action {
	display: flex;
	justify-content: flex-end;
	margin-top: auto;
	padding-top: 16px;
}
.amlk-section .amlk-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 195px;
	min-height: 50px;
	padding: 0 24px;
	border: 1px solid var(--amlk-color);
	border-radius: 70px;
	background: color-mix(in srgb, var(--amlk-color) 8%, #fff);
	color: var(--amlk-color);
	font-family: Poppins, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s ease;
}
/* whole card is clickable (button link stretched over the card) */
.amlk-section .amlk-has-link .amlk-button::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 23px;
}
.amlk-section .amlk-card:hover .amlk-button,
.amlk-section .amlk-button:focus {
	background: color-mix(in srgb, var(--amlk-color) 32%, #fff);
	color: var(--amlk-color);
	text-decoration: none;
}
/* no blue frame after a mouse click; keyboard focus still visible */
.amlk-section .amlk-button:focus {
	outline: none;
	box-shadow: none;
}
.amlk-section .amlk-button:focus-visible {
	outline: 2px solid var(--amlk-color);
	outline-offset: 3px;
}

/* ---------- laptop ---------- */
@media (max-width: 1199px) {
	.amlk-section .amlk-card {
		padding: 28px 28px 32px;
	}
	.amlk-section .amlk-card-title {
		font-size: 22px;
		line-height: 32px;
	}
	.amlk-section .amlk-text,
	.amlk-section .amlk-text p {
		font-size: 16px;
	}
}

/* ---------- mobile (Figma "Mobile" variants): stacked, icon above the title ---------- */
@media (max-width: 990px) {
	.amlk-section {
		padding: 30px 0 48px;   /* top 30 (requested), bottom 48 */
	}
	.amlk-section .amlk-head {
		margin-bottom: 32px;
	}
	.amlk-section .amlk-title {
		font-size: 28px;
		line-height: 1.3;
	}
	.amlk-section .amlk-cards {
		flex-direction: column;
		gap: 24px;
	}
	.amlk-section .amlk-card {
		flex: 0 0 auto;
		max-width: none;
		flex-direction: column;
		gap: 12px;
		padding: 24px 24px 28px;
		border-radius: 16px;
	}
	.amlk-section .amlk-has-link .amlk-button::before {
		border-radius: 16px;
	}
	.amlk-section .amlk-card-title {
		font-size: 20px;
		line-height: 30px;
	}
	.amlk-section .amlk-text,
	.amlk-section .amlk-text p {
		font-size: 16px;
	}
	.amlk-section .amlk-button {
		min-width: 160px;
		min-height: 44px;
		font-size: 14px;
	}
}
