/* Purpose: programme_testimonials – testimonial carousel on a photo band (ab8316f). 980px content box; slide = quote, white rule,
   author. arrows: chevrons outside the box + "1 / 5" counter bottom-right (445); dots: gold bullets centred below (1337). */

.programme-testimonials {
	position: relative;
	padding: 32px var(--space-40) 25px;
	background-color: var(--color-black);
}

.programme-testimonials--dots {
	padding-inline: var(--space-16);
}

.programme-testimonials .programme-testimonials__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: none;
	object-position: 0 0;
}

.programme-testimonials__inner {
	position: relative;
	max-width: 980px;
	margin-inline: auto;
}

.programme-testimonials__carousel {
	position: relative;
	padding-bottom: 22.4px;
}

.programme-testimonials--dots .programme-testimonials__carousel {
	padding-bottom: 34px;
}

.programme-testimonials__viewport {
	overflow: hidden;
	touch-action: pan-y;
}

.programme-testimonials__track {
	display: flex;
	transition: transform 500ms ease;
	will-change: transform;
}

.programme-testimonials__slide {
	display: flex;
	flex: 0 0 100%;
	flex-direction: column;
	margin: 0 10px 0 0;
}

.programme-testimonials__quote {
	margin: 32px 0 0;
}

.programme-testimonials__quote p {
	margin: 0;
	color: var(--color-white);
	font-family: var(--font-body);
	font-size: var(--text-14);
	font-weight: var(--weight-regular);
	line-height: 1.2em;
	text-align: center;
	text-wrap: pretty;
}

.programme-testimonials__rule {
	display: block;
	height: 1px;
	margin: 16px 0;
	background-color: var(--color-white);
}

.programme-testimonials__author {
	color: var(--color-white);
	font-family: var(--font-body);
	font-size: var(--text-12);
	font-weight: var(--weight-medium);
	line-height: 1.2em;
	text-align: center;
	text-wrap: pretty;
}

/* ------------------------------------------------------------ Arrows + counter */
.programme-testimonials__arrow {
	position: absolute;
	top: calc(50% - 15px);
	z-index: 2;
	display: flex;
	width: 20px;
	height: 20px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: rgba(237, 237, 237, 0.9);
	cursor: pointer;
	transform: translateY(-50%);
}

.programme-testimonials__arrow--prev {
	left: -30px;
}

.programme-testimonials__arrow--next {
	right: -30px;
}

.programme-testimonials__chevron {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.programme-testimonials__fraction {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 3;
	color: var(--color-white);
	font-family: "Verdana", sans-serif;
	font-size: var(--text-20);
	line-height: 1.4em;
	text-align: center;
	white-space: nowrap;
}

/* ------------------------------------------------------------ Dots */
.programme-testimonials__dots {
	position: absolute;
	bottom: 0;
	left: 50%;
	z-index: 3;
	display: flex;
	transform: translateX(-50%);
}

.programme-testimonials__dot {
	display: block;
	width: 10px;
	height: 10px;
	margin: 0 6px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: var(--color-primary);
	opacity: 0.2;
	cursor: pointer;
}

.programme-testimonials__dot.is-active {
	opacity: 1;
}

/* ------------------------------------------------------------ Tablet */
@media (min-width: 768px) {
	.programme-testimonials {
		padding: var(--space-40) var(--space-60);
	}

	.programme-testimonials--dots {
		padding-inline: var(--space-16);
	}

	.programme-testimonials--dots .programme-testimonials__carousel {
		padding-bottom: 50px;
	}

	.programme-testimonials__quote p {
		font-size: var(--text-20);
	}

	.programme-testimonials__rule {
		margin: 24px 0;
	}

	.programme-testimonials__author {
		font-size: var(--text-14);
	}

	.programme-testimonials__arrow {
		width: 25px;
		height: 25px;
	}

	.programme-testimonials__arrow--prev {
		left: -40px;
	}

	.programme-testimonials__arrow--next {
		right: -40px;
	}
}

/* ------------------------------------------------------------ Desktop */
@media (min-width: 1025px) {
	.programme-testimonials,
	.programme-testimonials--dots {
		padding: 60px var(--gutter) 20px;
	}

	.programme-testimonials__arrow--prev {
		left: -60px;
	}

	.programme-testimonials__arrow--next {
		right: -60px;
	}
}

/* Small laptops: leave room for the arrows, which sit 60px outside the 980px carousel. */
@media (min-width: 1025px) and (max-width: 1139px) {
	.programme-testimonials--arrows {
		padding-inline: var(--space-80);
	}
}

@media (prefers-reduced-motion: reduce) {
	.programme-testimonials__track {
		transition: none;
	}
}

/* Wider than the 1440px background: cover the band instead of stopping at the image edge. */
@media (min-width: 1441px) {
	.programme-testimonials .programme-testimonials__bg {
		object-fit: cover;
		object-position: center top;
	}
}

/* ------------------------------------------------------------ Slides with a photo
   Phones: round photo on top, everything centred. Tablet up: photo on the left, headline / quote / name beside it.
   Text-only slides in the same carousel are centred vertically so they do not leave a gap below. */
.programme-testimonials--photos .programme-testimonials__bg {
	object-fit: cover; /* photo slides make the band taller than the 446px background */
	object-position: center top;
}

.programme-testimonials--photos .programme-testimonials__slide {
	justify-content: center;
}

.programme-testimonials__photo {
	display: block;
	width: 104px;
	height: 104px;
	margin: 16px auto 0;
	border: 2px solid var(--color-primary);
	border-radius: 50%;
	object-fit: cover;
}

.programme-testimonials__title {
	margin: 16px 0 0;
	color: var(--color-primary);
	font-family: var(--font-heading);
	font-size: var(--text-20);
	font-weight: var(--weight-semibold);
	line-height: 1.2;
	text-align: center;
	text-wrap: balance;
}

.programme-testimonials__slide--photo .programme-testimonials__quote {
	margin-top: 12px;
}

.programme-testimonials__slide--photo .programme-testimonials__quote p {
	line-height: 1.4;
}

.programme-testimonials__role {
	display: block;
	margin-top: 6px;
	color: var(--color-on-dark);
	font-weight: var(--weight-regular);
}

@media (min-width: 768px) {
	.programme-testimonials__slide--photo {
		display: grid;
		grid-template-columns: 170px minmax(0, 1fr);
		align-content: center;
		column-gap: var(--space-32);
	}

	.programme-testimonials__slide--photo > * {
		grid-column: 2;
	}

	.programme-testimonials__slide--photo .programme-testimonials__photo {
		grid-column: 1;
		grid-row: 1 / span 5;
		align-self: center;
		width: 170px;
		height: 170px;
		margin: 0;
	}

	.programme-testimonials__slide--photo .programme-testimonials__title,
	.programme-testimonials__slide--photo .programme-testimonials__quote p,
	.programme-testimonials__slide--photo .programme-testimonials__author {
		text-align: left;
	}

	.programme-testimonials__title {
		margin-top: 0;
		font-size: var(--text-26);
	}

	.programme-testimonials__slide--photo .programme-testimonials__author {
		font-size: var(--text-16);
	}

	.programme-testimonials__role {
		font-size: var(--text-14);
	}
}

@media (min-width: 1025px) {
	.programme-testimonials__slide--photo {
		grid-template-columns: 220px minmax(0, 1fr);
		column-gap: var(--space-48);
	}

	.programme-testimonials__slide--photo .programme-testimonials__photo {
		width: 220px;
		height: 220px;
	}
}
/* Privacy note under the carousel. */
.programme-testimonials__note {
	margin: var(--space-16) 0 0;
	color: var(--color-on-dark);
	font-family: var(--font-body);
	font-size: var(--text-13);
	font-style: italic;
	line-height: 1.4;
	text-align: center;
	text-wrap: balance;
}

@media (min-width: 1025px) {
	.programme-testimonials__note {
		margin-bottom: var(--space-12);
	}
}