/* Become a member and Member testimonials (Home): gold box over the photo, testimonial on the dark band */

/* Become a member: full-width photo with the gold text box laid over its left side; a dark band starts part-way down */
.ams-member-cta {
	background: linear-gradient(to bottom, transparent 0, transparent calc(var(--lp--custom-preset--section-y) + 215px), var(--lp--base-preset--brand-color--dark) calc(var(--lp--custom-preset--section-y) + 215px));
}
.ams-member-cta > .inner-section {
	padding-bottom: 0;
}
.ams-member-cta .has-media .hic-box {
	position: relative;
	display: block;
	min-height: 568px;
	padding: 36px 32px;
	overflow: hidden;
	border-radius: var(--lp--custom-preset--radius-card);
}
.ams-member-cta .has-media .hic-box > .hic-media-container {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.ams-member-cta .hic-media-container .hic-image {
	height: 100%;
}
.ams-member-cta .hic-media-container .hic-image::before {
	padding-top: 0;
}
.ams-member-cta .has-media .hic-box > .hic-content {
	position: relative;
	z-index: 1;
	width: min(648px, 100%);
	min-height: 496px;
	padding: 39px 53px;
	background-color: var(--lp--base-preset--brand-color--primary);
	border-radius: 16px;
}
.ams-member-cta .hic-blurb h2 {
	margin-bottom: 18px;
	color: #fff;
	font-size: clamp(28px, 2.1vw, 36px);
	line-height: 1.05;
	letter-spacing: -.02em;
}
.ams-member-cta .hic-blurb p,
.ams-member-cta .hic-blurb li {
	color: #fff;
	font-size: clamp(16px, 1.1vw, 19px);
	line-height: 1.47;
}
.ams-member-cta .hic-blurb ul {
	margin: 24px 0 0;
	list-style: none;
}
.ams-member-cta .hic-blurb li {
	position: relative;
	padding: 4px 0 4px 36px;
	font-weight: 700;
}
.ams-member-cta .hic-blurb li::before {
	content: "";
	position: absolute;
	top: 11px;
	left: 0;
	width: 15px;
	height: 8px;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(-45deg);
}
.ams-member-cta .button {
	background-color: var(--lp--base-preset--brand-color--dark);
}
.ams-member-cta .button:hover {
	background-color: #fff;
	color: var(--lp--base-preset--brand-color--dark);
}

/* Testimonials: white pill with a round photo, overlapping the bottom of the member photo on the dark band */
.ams-testimonials {
	position: relative;
	z-index: 2;
	margin-top: -106px;
	background: linear-gradient(to bottom, transparent 0, transparent 106px, var(--lp--base-preset--brand-color--dark) 106px);
}
.ams-testimonials > .inner-section,
.page-element.default-section + .ams-testimonials > .inner-section {
	padding-top: 0;
}
/* Proportions follow AMS's testimonial artwork: the photo almost fills the pill's height, the quote sits close to it */
.ams-testimonials .hic-box {
	max-width: 1110px;
	margin: 0 auto;
	/* The wide right padding keeps the first and last lines clear of the pill's rounded end */
	padding: 18px 140px 18px 18px;
	background-color: #fff;
	border-radius: 999px;
	box-shadow: var(--lp--custom-preset--testimonial-shadow);
}
.ams-testimonials .hic-content {
	display: grid;
	grid-template-columns: 259px 1fr;
	grid-template-areas: "avatar quote" "avatar name";
	align-items: center;
	column-gap: 32px;
}
.ams-testimonials .hic-profile {
	display: contents;
}
.ams-testimonials .hic-avatar-container {
	grid-area: avatar;
	width: 259px;
	height: 259px;
	overflow: hidden;
	border-radius: 50%;
}
.ams-testimonials .hic-avatar.hic-image {
	height: 100%;
	background-size: cover;
}
.ams-testimonials .hic-avatar.hic-image::before {
	padding-top: 100%;
}
.ams-testimonials .hic-blurb {
	grid-area: quote;
	align-self: end;
	padding-top: 16px;
}
.ams-testimonials .hic-blurb p {
	margin: 0;
	color: var(--lp--base-preset--brand-color--dark);
	font-family: var(--lp--base-preset--heading--font-family);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: -.02em;
}
.ams-testimonials .hic-blurb p::before {
	content: "\201C";
}
.ams-testimonials .hic-blurb p::after {
	content: "\201D";
}
.ams-testimonials .hic-profile-details {
	grid-area: name;
	align-self: start;
	display: flex;
	flex-wrap: wrap;
	margin-top: 14px;
	padding-bottom: 16px;
	color: var(--lp--base-preset--brand-color--dark);
	font-size: 15px;
	font-weight: 700;
}
.ams-testimonials .hic-client-name::after {
	content: ",\00a0";
}
.ams-testimonials .slick-dots li button::before {
	color: #fff;
}
/* Below desktop the testimonial sits under the member photo instead of overlapping it; the dark band stays behind both */
@media (max-width: 1023px) {
	.ams-member-cta .has-media .hic-box,
	.ams-member-cta .has-media .hic-box > .hic-content {
		min-height: 0;
	}
	.page-element.ams-testimonials {
		margin-top: 0;
		background: var(--lp--base-preset--brand-color--dark);
	}
	.page-element.ams-testimonials > .inner-section,
	.page-element.default-section + .page-element.ams-testimonials > .inner-section {
		padding-top: var(--lp--custom-preset--section-y);
	}
	/* Narrower box, more lines: a pill this tall would cut into the text, so it takes the card corners */
	.ams-testimonials .hic-box {
		padding: 24px 40px 24px 24px;
		border-radius: var(--lp--custom-preset--radius-card);
	}
	.ams-testimonials .hic-content {
		grid-template-columns: 157px 1fr;
		column-gap: 28px;
	}
	.ams-testimonials .hic-avatar-container {
		width: 157px;
		height: 157px;
	}
}
@media (min-width: 641px) and (max-width: 1023px) {
	.ams-member-cta .has-media .hic-box > .hic-content {
		width: 50%;
		padding: 32px;
	}
}
/* Phones: photo on top and the gold panel below it, as in Our activities */
@media (max-width: 640px) {
	.ams-member-cta .has-media .hic-box {
		padding: 0;
		background-color: var(--lp--base-preset--brand-color--primary);
	}
	.ams-member-cta .has-media .hic-box > .hic-media-container {
		position: static;
		height: auto;
	}
	.ams-member-cta .hic-media-container .hic-image {
		border-radius: var(--lp--custom-preset--radius-card);
	}
	.ams-member-cta .hic-media-container .hic-image::before {
		padding-top: 56%;
	}
	.ams-member-cta .has-media .hic-box > .hic-content {
		width: 100%;
		padding: 28px 24px 32px;
		border-radius: 0;
	}
	.ams-testimonials .hic-box {
		padding: 24px;
		border-radius: var(--lp--custom-preset--radius-card);
	}
	.ams-testimonials .hic-content {
		grid-template-columns: 1fr;
		grid-template-areas: "avatar" "quote" "name";
		row-gap: 16px;
		text-align: center;
	}
	.ams-testimonials .hic-avatar-container {
		width: 160px;
		height: 160px;
		margin: 0 auto;
	}
	.ams-testimonials .hic-profile-details {
		justify-content: center;
	}
}
