/* Container for testimonials */
div#testimonials,
div#top-3 {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: flex-start;
	align-items: stretch;
	margin: 0 20px;
}

/* Individual testimonial card */
.card {
	border: none !important;
	padding: 0;
	margin: 15px 0 0 0;
	flex: 1 1 30%;
	min-width: 220px;
	max-width: 395px;
	display: flex;
	flex-direction: column;
}

/* Flag positioning */
.flag,
.flags {
	position: absolute;
	top: -5%;
	height: 72px;
	width: 72px;
	z-index: 100;
}

.flag {
	left: 80%;
}

.flags {
	left: 65%;
}

.flags .multi {
	display: flex;
	height: 100%;
	width: 100%;
	flex-wrap: nowrap;
	min-width: fit-content;
}
.program svg {
    margin-left: -2px;
    vertical-align: middle;
}
.multi svg {
    margin: 0px 9px 0 -13px;
    vertical-align: middle;
    padding-right: 3px;
}

/* Testimonial figure styling */
figure.testimonial {
	position: relative;
	width: 100%;
	color: #333;
	text-align: left;
	box-shadow: 4px 4px #ddd;
	border-radius: 8px;
	box-sizing: border-box;
	transition: all 0.35s cubic-bezier(0.25, 0.5, 0.5, 0.9);
	background-color: #f5f5f5;
	border: 1px solid #959595;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Image container */
.img-container {
	overflow: hidden;
	width: 100%;
	height: 300px;
	z-index: 1;
	border-bottom-right-radius: 8px;
	border-bottom-left-radius: 8px;
}

/* Student image styling */
.img-container img.student-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: brightness(0.85);
	border-bottom-right-radius: 8px;
	border-bottom-left-radius: 8px;
	overflow: hidden;
}

/* Blockquote styling */
figure.testimonial blockquote {
    position: relative;
    background-color: #f5f5f5;
    padding: 25px 50px;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    margin: 15px 0 20px 0;
    line-height: 1.6em;
    font-style: italic;
    z-index: 2;
    letter-spacing: 1.25px;
    text-overflow: ellipsis;
    overflow: hidden;
    min-height: 8em;
    max-height: 19em;
    flex-grow: 1;
    align-content: space-around;
}

/* Quotation marks */
figure.testimonial blockquote:before,
figure.testimonial blockquote:after {
	font-family: 'FontAwesome';
	content: "\201C";
	position: absolute;
	font-size: 50px;
	opacity: 0.3;
	font-style: normal;
}

figure.testimonial blockquote:before {
	top: 25px;
	left: 20px;
}

figure.testimonial blockquote:after {
	content: "\201D";
	right: 20px;
	bottom: 0;
}

/* Arrow styling */
figure.testimonial .arrow {
	position: absolute;
	left: 15%;
	transform: translateX(-50%);
	width: 40px;
	height: 15px;
	z-index: 1000;
	margin: 0;
	padding: 0;
}

.arrow svg {
	margin-left: 0;
	vertical-align: top;
}

/* Student info section */
figure.testimonial .student-info {
	position: absolute;
	bottom: 0;
	width: 100%;
	padding: 10px 0;
	color: #000000;
	background-color: #ffffff;
	margin: 0;
	text-transform: uppercase;
	font-family: 'Antonio, sans-serif';
	z-index: 2;
	border-top: none;
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
}

figure.testimonial .student-info h4,
figure.testimonial .student-info p {
	font-weight: 400;
	text-transform: none;
	padding-left: 5px;
	margin: 0;
	margin-left: 15px;
}

figure.testimonial .student-info h4 {
	font-size: 1rem;
}

figure.testimonial .student-info p {
	font-size: 0.8rem;
}