.testimonials {
    padding: 100px 0;
    background: #F8FAFC;
    color: #131C2E;
}

.testimonials__inner {
    display: grid;
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    grid-template-areas:         "aside main"        "cta main";
    grid-template-rows: auto 1fr;
    align-content: start;
    gap: 32px 73px;
}

.testimonials__aside {
	grid-area: aside;
}

.testimonials__main {
	grid-area: main;
	min-width: 0;
}

.testimonials__cta {
	grid-area: cta;
	align-self: start;
}

/* Badge */
.testimonials__badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    padding: 7px 16px;
    background: #EDF0F5;
    border: 1px solid #E2E6F0;
    border-radius: 40px;
    font-size: 16px;
    line-height: 150%;
    font-weight: 500;
    color: #3B455A;
}

.testimonials__badge-dot {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--color-primary);
}

/* Heading */
.testimonials__heading {
	margin: 0;
	color: #131C2E;
}

.testimonials__heading span {
	color: var(--color-primary);
}

/* Slider */
.testimonials__slider {
	/* Card shadows must not be clipped by the slider viewport. */
	margin: -8px;
	padding: 8px;
}

.testimonials__slider .swiper-slide {
	height: auto;
}

/* Card */
.review {
	display: flex;
    flex-direction: column;
    height: 100%;
    padding: 21px 23px;
    border: 1.5px solid #E9EEF5;
    border-radius: 8px;
    background: #FFFFFF;
    backdrop-filter: blur(16px);
}

.review__stars {
	display: flex;
    gap: 1px;
    margin: 0 0 20px;
}

.review__star {
	color: #D3D9E3;
}

.review__star.is-filled {
	color: var(--color-primary);
}

.review__text {
    font-size: 18px;
    line-height: 150%;
    color: #3B455A;
}

.review__text p {
	margin: 0 0 16px;
}

.review__text p:last-child {
	margin-bottom: 0;
}

/* Author row is pinned to the bottom so cards in a row line up. */
.review__author {
	display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
	padding-top: 32px;
}

.review__avatar {
	width: 46px;
    height: 47px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: cover;
}

.review__meta {
    min-width: 0;
    gap: 2px;
    display: flex;
    flex-direction: column;
}

.review__name {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 140%;
	color: #131C2E;
}

.review__role {
    margin: 0;
    font-size: 14px;
    font-weight: 300;
    line-height: 150%;
    color: #3B455A;
}

.review__date {
	margin: 0 0 0 auto;
    align-self: flex-end;
    flex-shrink: 0;
    font-size: 14px;
    line-height: 150%;
    white-space: nowrap;
    color: #626F89;
}

/* Navigation */
.testimonials__nav {
	display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 17px;
}

.testimonials__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    padding: 0;
    border: 1.5px solid #E9EEF5;
    border-radius: 8px;
    background: #FFFFFF;
    color: #131C2E;
    cursor: pointer;
    transition: all 0.3s;
}

.testimonials__arrow:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.testimonials__arrow svg path {
    stroke: #6D7890;
    transition: all 0.3s;
}

.testimonials__arrow:hover svg path {
    stroke: #131C2E;
}

.testimonials__arrow:disabled,
.testimonials__arrow.swiper-button-disabled {
	opacity: 0.45;
	cursor: default;
}

.testimonials__arrow:disabled:hover,
.testimonials__arrow.swiper-button-disabled:hover {
	border-color: #E2E6F0;
	color: #131C2E;
}

/* Dots - the element is not .swiper-pagination, so it stays in flow. */
.testimonials__dots {
	display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.testimonials__dots .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    margin: 0 !important;
    border-radius: 50%;
    background: #D5DEE9;
    opacity: 1;
    transition: all 0.3s;
}

.testimonials__dots .swiper-pagination-bullet-active {
    width: 12px;
    height: 12px;
    background: #9AA9BD;
}



@media (max-width: 1440px){
    .testimonials {
        padding: 60px 0;
    }

    .testimonials__badge {
        font-size: 14px;
    }

    .testimonials__heading{
        font-size: 24px;
    }

    .testimonials__cta .btn{
        font-size: 16px;
    }

    .testimonials__inner {
        gap: 32px;
    }

    .review {
        padding: 18px;
    }

    .review__text {
        font-size: 16px;
    }

    .review__author {
        padding-top: 30px;
    }

    .review__avatar {
        width: 41px;
        height: 41px;
    }

    .review__name {
        font-size: 14px;
    }

    .review__role {
        font-size: 12px;
    }
    
    .review__date {
        font-size: 12px;
    }
}

@media (max-width: 1280px){
    .testimonials__inner {
        grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    }
}

@media (max-width: 768px){
    .testimonials__inner {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .review {
        padding: 18px;
    }

    .review__author {
        padding-top: 31px;
    }

    .testimonials__nav {
        margin-top: 16px;
    }

    .review__role {
        font-size: 12px;
    }
}


@media (max-width: 550px){
    .testimonials {
        padding: 40px 0;
    }

    .testimonials__inner {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"aside"
			"main"
			"cta";
		grid-template-rows: none;
        gap: 16px;
	}

    .testimonials__badge-dot {
        width: 8px;
        height: 8px;
    }

    .testimonials__badge {
        font-size: 12px;
        padding: 3px 11px;
        gap: 8px;
        margin: 0px 0 12px;
    }
    
    .testimonials__heading {
        font-size: 18px;
    }

    .review__text {
        font-size: 14px;
        line-height: 150%;
    }

    .review__stars {
        gap: 2px;
        margin: 0 0 10px;
    }

    .review__author {
        padding-top: 24px;
    }

    .testimonials__arrow {
        width: 36px;
        height: 36px;
    }

    .testimonials__cta .btn {
        font-size: 14px;
        min-height: 44px;
        padding: 6px 8px 6px 20px;
    }

    .testimonials__cta {
        align-self: center;
        justify-self: center;
    }
}


