/* ---------- Carousel base ---------- */

.bmt-carousel {
	position: relative;
}

.bmt-carousel__viewport {
	overflow: hidden;
	touch-action: pan-y;
}

.bmt-carousel__track {
	display: flex;
	will-change: transform;
}

.bmt-carousel__slide {
	flex: 0 0 100%;
	min-width: 0;
	box-sizing: border-box;
}

.bmt-carousel__slide img {
	-webkit-user-drag: none;
	user-select: none;
}

.bmt-carousel--fade .bmt-carousel__track {
	display: grid;
	transform: none !important;
}

.bmt-carousel--fade .bmt-carousel__slide {
	grid-area: 1 / 1;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transition-property: opacity, visibility;
	transition-timing-function: ease;
}

.bmt-carousel--fade .bmt-carousel__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.bmt-carousel .bmt-carousel__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	margin: 0;
	padding: 6px;
	font-size: 28px;
	line-height: 1;
	color: #fff;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	transform: translateY(-50%);
	opacity: 0.85;
	transition: opacity 0.2s;
}

.bmt-carousel .bmt-carousel__arrow:hover,
.bmt-carousel .bmt-carousel__arrow:focus {
	background: none;
	opacity: 1;
}

.bmt-carousel .bmt-carousel__arrow:disabled {
	opacity: 0.3;
	cursor: default;
}

.bmt-carousel__arrow--prev {
	left: 10px;
}

.bmt-carousel__arrow--next {
	right: 10px;
}

.bmt-carousel__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.bmt-carousel .bmt-carousel__dot {
	width: 10px;
	height: 10px;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background-color: #000;
	opacity: 0.2;
	cursor: pointer;
	transition: opacity 0.2s;
}

.bmt-carousel .bmt-carousel__dot:hover {
	opacity: 0.5;
}

.bmt-carousel .bmt-carousel__dot.is-active {
	opacity: 1;
}

.bmt-dots-inside .bmt-carousel__dots {
	position: absolute;
	right: 0;
	bottom: 20px;
	left: 0;
	z-index: 3;
	margin: 0;
}

.bmt-dots-inside .bmt-carousel__dot {
	background-color: #fff;
}

/* ---------- Slides ---------- */

.bmt-slide {
	position: relative;
	height: 400px;
	overflow: hidden;
}

.bmt-slide__bg,
.bmt-slide__overlay {
	position: absolute;
	inset: 0;
}

.bmt-slide__bg {
	background-color: #bbb;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.bmt-slide__content {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	padding: 50px;
	box-sizing: border-box;
	color: #fff;
	text-decoration: none;
}

a.bmt-slide__content,
a.bmt-slide__content:hover {
	text-decoration: none;
}

.bmt-slide__content.bmt-h-left { justify-content: flex-start; }
.bmt-slide__content.bmt-h-center { justify-content: center; }
.bmt-slide__content.bmt-h-right { justify-content: flex-end; }
.bmt-slide__content.bmt-v-top { align-items: flex-start; }
.bmt-slide__content.bmt-v-middle { align-items: center; }
.bmt-slide__content.bmt-v-bottom { align-items: flex-end; }
.bmt-slide__content.bmt-align-left { text-align: left; }
.bmt-slide__content.bmt-align-center { text-align: center; }
.bmt-slide__content.bmt-align-right { text-align: right; }

.bmt-slide__inner {
	max-width: 66%;
}

.bmt-slide__heading {
	font-size: 35px;
	font-weight: 700;
	line-height: 1.1;
	color: #fff;
}

.bmt-slide__description {
	font-size: 17px;
	line-height: 1.4;
	color: #fff;
}

.bmt-slide__heading:not(:last-child),
.bmt-slide__description:not(:last-child) {
	margin-bottom: 30px;
}

.bmt-slide__button {
	display: inline-block;
	color: #fff;
	background: transparent;
	border: 2px solid #fff;
	border-radius: 3px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s;
}

.bmt-slide__button:hover {
	text-decoration: none;
}

.bmt-slide__button.bmt-size-xs { padding: 10px 20px; font-size: 13px; }
.bmt-slide__button.bmt-size-sm { padding: 12px 24px; font-size: 15px; }
.bmt-slide__button.bmt-size-md { padding: 15px 30px; font-size: 16px; }
.bmt-slide__button.bmt-size-lg { padding: 20px 40px; font-size: 18px; }
.bmt-slide__button.bmt-size-xl { padding: 25px 50px; font-size: 20px; }

.bmt-anim.is-ready .bmt-slide__inner {
	opacity: 0;
	transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

.bmt-anim-fadeInUp.is-ready .bmt-slide__inner { transform: translateY(40px); }
.bmt-anim-fadeInDown.is-ready .bmt-slide__inner { transform: translateY(-40px); }
.bmt-anim-fadeInLeft.is-ready .bmt-slide__inner { transform: translateX(-40px); }
.bmt-anim-fadeInRight.is-ready .bmt-slide__inner { transform: translateX(40px); }
.bmt-anim-zoomIn.is-ready .bmt-slide__inner { transform: scale(0.85); }

.bmt-anim.is-ready .bmt-slide.is-active .bmt-slide__inner {
	opacity: 1;
	transform: none;
}

@media (max-width: 767px) {
	.bmt-slide__content {
		padding: 30px;
	}

	.bmt-slide__inner {
		max-width: 100%;
	}

	.bmt-slide__heading {
		font-size: 24px;
	}
}

/* ---------- Posts (cards) ---------- */

.bmt-posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 30px;
	row-gap: 35px;
}

.bmt-post {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background-color: #fff;
	border-radius: 3px;
	transition: box-shadow 0.25s;
}

.bmt-posts--shadow .bmt-post {
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
}

.bmt-posts--shadow .bmt-post:hover {
	box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.15);
}

.bmt-post__thumbnail {
	position: relative;
	display: block;
	overflow: hidden;
	padding-bottom: 66%;
}

.bmt-post__thumbnail img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.4s;
}

.bmt-post:hover .bmt-post__thumbnail img {
	transform: scale(1.05);
}

.bmt-post__badge {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 2;
	padding: 0.5em 1.2em;
	font-size: 12px;
	line-height: 1;
	color: #fff;
	background-color: #818a91;
	border-radius: 999px;
}

.bmt-post__avatar {
	position: relative;
	z-index: 2;
	margin-top: -30px;
	padding: 0 30px;
	line-height: 0;
}

.bmt-post__avatar img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	box-shadow: 0 0 0 4px #fff;
}

.bmt-post__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex-grow: 1;
	padding: 30px 30px 0;
}

.bmt-post__title {
	margin: 0 0 15px;
	font-size: 21px;
	line-height: 1.3;
}

.bmt-post__title a {
	color: inherit;
}

.bmt-post__excerpt {
	margin-bottom: 20px;
}

.bmt-post__excerpt p {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: #777;
}

.bmt-post__read-more {
	display: inline-block;
	margin-bottom: 25px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.bmt-post__meta-data {
	margin-top: auto;
	padding: 15px 30px;
	font-size: 12px;
	color: #adadad;
	border-top: 1px solid #eaeaea;
}

.bmt-post__sep {
	margin: 0 6px;
}

@media (max-width: 1024px) {
	.bmt-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.bmt-posts {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Testimonials ---------- */

.bmt-testimonials {
	padding: 0 40px;
}

.bmt-testimonials .bmt-carousel__arrow {
	color: #333;
}

.bmt-testimonials .bmt-carousel__arrow--prev {
	left: 0;
}

.bmt-testimonials .bmt-carousel__arrow--next {
	right: 0;
}

.bmt-testimonial {
	display: flex;
	flex-direction: column;
	gap: 20px;
	height: 100%;
	box-sizing: border-box;
}

.bmt-testimonial__text {
	font-size: 16px;
	line-height: 1.5;
}

.bmt-testimonial__footer {
	display: flex;
	align-items: center;
	gap: 15px;
}

.bmt-testimonial__image {
	flex-shrink: 0;
	line-height: 0;
}

.bmt-testimonial__image img {
	width: 60px;
	height: 60px;
	max-width: none;
	object-fit: cover;
	border-radius: 50%;
}

.bmt-testimonial__cite {
	display: flex;
	flex-direction: column;
	font-style: normal;
}

.bmt-testimonial__name {
	font-weight: 700;
	font-size: 14px;
	line-height: 1.4;
}

.bmt-testimonial__title {
	font-size: 13px;
	line-height: 1.4;
	opacity: 0.8;
}

.bmt-align-left .bmt-testimonial { text-align: left; }
.bmt-align-center .bmt-testimonial { text-align: center; }
.bmt-align-right .bmt-testimonial { text-align: right; }

.bmt-align-left .bmt-testimonial__footer { justify-content: flex-start; }
.bmt-align-center .bmt-testimonial__footer { justify-content: center; }
.bmt-align-right .bmt-testimonial__footer { justify-content: flex-end; }

.bmt-layout-image_stacked .bmt-testimonial__footer {
	flex-direction: column;
}

.bmt-align-left.bmt-layout-image_stacked .bmt-testimonial__footer { align-items: flex-start; }
.bmt-align-right.bmt-layout-image_stacked .bmt-testimonial__footer { align-items: flex-end; }

.bmt-layout-image_above .bmt-testimonial__footer {
	order: -1;
	flex-direction: column;
}

.bmt-layout-image_left .bmt-testimonial,
.bmt-layout-image_right .bmt-testimonial {
	flex-direction: row;
	align-items: flex-start;
	text-align: left;
}

.bmt-layout-image_left .bmt-testimonial__footer,
.bmt-layout-image_right .bmt-testimonial__footer {
	flex-direction: column;
	flex-shrink: 0;
	order: -1;
}

.bmt-layout-image_right .bmt-testimonial__footer {
	order: 1;
}

/* Bubble skin: content sits in a speech bubble pointing at the footer. */
.bmt-skin-bubble .bmt-testimonial__content {
	position: relative;
	padding: 15px 20px;
	background-color: #e6e9ec;
	border-radius: 3px;
}

.bmt-skin-bubble .bmt-testimonial__content:after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	border: 10px solid transparent;
	border-top-color: #e6e9ec;
	transform: translateX(-50%);
}

.bmt-skin-bubble.bmt-align-left .bmt-testimonial__content:after {
	left: 30px;
	transform: none;
}

.bmt-skin-bubble.bmt-align-right .bmt-testimonial__content:after {
	right: 30px;
	left: auto;
	transform: none;
}

.bmt-skin-bubble.bmt-layout-image_above .bmt-testimonial__content:after,
.bmt-skin-bubble.bmt-layout-image_left .bmt-testimonial__content:after,
.bmt-skin-bubble.bmt-layout-image_right .bmt-testimonial__content:after {
	display: none;
}

@media (max-width: 767px) {
	.bmt-testimonials {
		padding: 0 30px;
	}
}
