/* ==========================================================
   IB Testimonial Slider - styles
   ========================================================== */

.ib-testimonial-section {
	position: relative;
	background: #e9e9e7;
	padding: 60px 24px 70px;
	overflow: hidden;
	box-sizing: border-box;
	width: 100%;
}
.ib-testimonial-section * { box-sizing: border-box; }

/* decorative light-blue squares, top-left, like the reference */
.ib-decor-sq {
	position: absolute;
	background: #b9d7e6;
	display: block;
	z-index: 0;
}
.ib-decor-sq-1 { top: 0;    left: 0;    width: 90px; height: 100px; }
.ib-decor-sq-2 { top: 100px; left: 90px; width: 70px; height: 30px; }
.ib-decor-sq-3 { top: 190px; left: 40px; width: 30px; height: 55px; background:#cfe3ee; }

/* header */
.ib-testimonial-header {
	position: relative;
	z-index: 1;
	text-align: center;
	margin-bottom: 50px;
}
.ib-testimonial-label {
	display: inline-block;
	color: #2f8fd6;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .3px;
	margin-bottom: 10px;
}
.ib-testimonial-title {
	margin: 0;
	font-size: 42px;
	line-height: 1.2;
	font-weight: 800;
	color: #14161a;
}

/* slider wrap + arrows */
.ib-testimonial-slider-wrap {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 50px;
}
.ib-testimonial-swiper {
	overflow: hidden;
}

.ib-swiper-nav {
	position: absolute;
	top: 45%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	min-width: 40px;
	border-radius: 50%;
	background: #ffffff;
	color: #14161a;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0,0,0,.12);
	z-index: 5;
	transition: background .2s ease, color .2s ease;
}
.ib-swiper-nav svg { display: block; pointer-events: none; }
.ib-swiper-nav:hover { background: #2f8fd6; color: #fff; }
.ib-swiper-prev { left: 0; }
.ib-swiper-next { right: 0; }

/* card */
.ib-testimonial-card {
	position: relative;
	background: #ffffff;
	padding: 34px 34px 40px;
	border-radius: 6px;
	min-height: 190px;
}
.ib-testimonial-text {
	margin: 0;
	font-style: italic;
	font-size: 16px;
	line-height: 1.7;
	color: #4a4d52;
}

.ib-testimonial-text-wrap {
	max-height: 180px;
	overflow: hidden;
	transition: max-height .3s ease;
}
.ib-testimonial-card.is-expanded .ib-testimonial-text-wrap {
	max-height: 1000px;    
}
.ib-read-more {
	display: inline-block;
	background: none;
	border: none;
	color: #2f8fd6;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	padding: 10px 0 0;
	margin: 0;
}
.ib-read-more:hover { text-decoration: underline; }

.ib-testimonial-text p { margin: 0; }

/* speech-bubble tail pointing down-left */
.ib-testimonial-tail {
	position: absolute;
	bottom: -18px;
	left: 40px;
	width: 0;
	height: 0;
	border-left: 12px solid transparent;
	border-right: 12px solid transparent;
	border-top: 20px solid #ffffff;
}

.ib-testimonial-author-row {
	margin-top: 30px;
	padding-left: 40px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.ib-testimonial-author {
	font-weight: 700;
	font-size: 16px;
	color: #14161a;
}
.ib-testimonial-stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
}
.ib-testimonial-stars .ib-star {
	width: 15px;
	height: 15px;
}
.ib-testimonial-stars .is-filled { color: #f5b942; }
.ib-testimonial-stars .is-empty { color: #d8dadd; }

/* responsive */
@media (max-width: 782px) {
	.ib-testimonial-section { padding: 40px 14px 60px; }
	.ib-testimonial-title { font-size: 28px; }
	.ib-testimonial-slider-wrap { padding: 0 40px; }
	.ib-swiper-nav { width: 34px; height: 34px; }
	.ib-testimonial-card { padding: 26px 22px 32px; }
	.ib-testimonial-author-row { padding-left: 22px; }
}
