/**
 * #.# Styles
 *
 * CSS for both Frontend+Backend.
 */
/*
* Vars
*/
:root {
    --electric-blue: #1d6df8;
    --electric-blue-rgba: 29, 109, 248;
	--electric-blue-hover: #1362eb;

	--csgb-main-color-black: #101217;
    --csgb-main-color: var(--electric-blue);
    --csgb-main-color-rgba: var(--electric-blue-rgba);
    --csgb-main-color-hover: var(--electric-blue-hover);
}
.csgb-testimonial-block {
	// padding: 20px;
	// background: #f3f3f3;
	margin-bottom: 1em;
	// border-radius: 10px;
	border: 1px solid #e2e4e7;
	min-height: 160px;
}

// slider
.csgb-testimonial-slider-block.testimonial-slider {
    background: #f3f3f3;
    padding: 10px;
    border-radius: 10px;
	margin-bottom: 1em;
	min-height: 160px;
}

.csgb__picture {
	position: relative;

	.csgb__picture__image {
		width: 100%;
		height: auto;
		font-size: .8em;
		background-size: cover;
		background-position: center;
	}
}

.candy-slider {
    margin-top: 30px;
}
.swiper-wrapper {
    height: auto;
    padding-bottom: 42px;
}
.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}
.swiper-pagination-bullet {
    width: 50px;
    height: 2px;
    background-color:#e1e3e6;
    opacity: 1;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}
.swiper-pagination-bullet::after {
    content: "";
    position: absolute;
    opacity: 0;
    left: 0%;
    width: 100%;
    height: 100%;
    background-color: #101217;
    will-change: transition;
    transform-origin:  left;
    transform: scaleX(0);
    transition: transform 3s linear;
}
.swiper-stopped .swiper-pagination-bullet::after {
    transition: none !important;
}
.swiper-pagination-bullet-active:not(.swiper-pagination-bullet-first)::after {
    opacity: 1;
    transform-origin: left;
    transform: scaleX(1);
}
.swiper-pagination-bullet-active-start::after {
    opacity: 1 !important;
    transform-origin: left !important;
    transform: scaleX(1) !important;
}
.swiper-container-horizontal>.swiper-pagination-bullets,
.swiper-pagination-custom, .swiper-pagination-fraction {
    bottom: 0;
}
.swiper-button-prev,
.swiper-button-next {
    width: 30px;
    height: 60px;
    margin-top: -70px;
    background-color: var(--csgb-main-color);
    background-size: 5px;
    background-image: url(../img/swiper-arrow.png);
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: var(--csgb-main-color-hover);
}
.swiper-button-prev {
    left: 0;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
}
.swiper-button-next {
    right: 0;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
    transform: rotate(180deg);
}
.candy-slider__item {
    background-color: #cfcfcf;
    background-size: cover;
    background-repeat: no-repeat;
    height: 543px;
}
/*
* Mobile styles
**/
@media only screen and (max-width: 767px) {
	.candy-slider__item {
		background-position: center center;
		height: 186px;
	}
	.candy-slider {
		margin-top: 15px;
	}
	.swiper-container-horizontal > .swiper-pagination-bullets,
	.swiper-pagination-custom,
	.swiper-pagination-fraction {
		bottom: 2px;
	}
	.candy-slider .swiper-button-prev,
	.candy-slider .swiper-button-next {
		margin-top: -52px;
	}
}
