/*
Theme Name: TechConnect
Text Domain: TechConnect
Version: 1.0
Description: Avatar Swiper Styles
Author: KB
*/
.avatar-testimonial-frame-padding {
    padding: 100px 120px;
}

.testimonial-details {
    margin-top: 60px;
    margin-bottom: 60px;
}

.quote-icon-container {
    background-color: #F08C21;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
}

.avatarSwiperThumbs .swiper-slide {
    width: 87px !important;
    height: 87px !important;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.avatarSwiperThumbs .swiper-slide-thumb-active {
    opacity: 1;
}

.avatarSwiperThumbs .avatar-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatarSwiperDisplay {
    max-width: calc(100vw - 240px);
    margin: 0 auto;
}

.avatarSwiperDisplay .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: fit-content!important;
}

.avatarSwiperDisplay h2 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    max-width: calc(100vw - 240px);
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.avatarSwiperDisplay .testimonial-author {
    margin-top: 1rem;
}

.avatarSwiperDisplay p {
    margin: 0;
    max-width: calc(100vw - 240px);
}

.avatarSwiperThumbs {
    height: 157px;
    padding: 10px 0;
}

.avatarSwiperThumbs .swiper-wrapper {
    align-items: center;
}

.avatarSwiperThumbs .swiper-slide {
    width: 87px !important;
    height: 87px !important;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.avatarSwiperThumbs .swiper-slide-thumb-active {
    filter: grayscale(0%);
}

.avatarSwiperThumbs .swiper-slide:nth-child(odd) {
    transform: translateY(-35px);
}

.avatarSwiperThumbs .swiper-slide:nth-child(even) {
    transform: translateY(35px);
}

.avatarSwiperThumbs .avatar-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    margin-left: 50%;
}

.avatarSwiperThumbs .avatar-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatarSwiperThumbs .progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.swiper-slide-thumb-active .progress-ring {
    opacity: 1;
}

.avatarSwiperThumbs .swiper-slide-thumb-active .progress-ring__circle {
    stroke: #F08C21;
    stroke-width: 4;
    fill: transparent;
    r: 41;
    cx: 43.5;
    cy: 43.5;
    transform: rotate(-90deg);
    transform-origin: center;
    stroke-dasharray: 257.61; /* Circumference of the circle (2 * π * r) */
    stroke-dashoffset: 257.61; /* Start from full offset (invisible) */
    animation: progress 5s linear;
}

.avatar-testimony-container {
    color: #212121B8;
}

.avatar-testimony-container h2 {
    color: black;
}

.avatar-testimony-container h2 i{
    font-weight: 500;
}

.avatar-testimony-container h3 {
    font-size: 2rem;
    font-weight: 600;
}

.avatar-testimony-container p {
    font-size: 1.125rem;
    font-weight: 500;
}

@keyframes progress {
    from {
        stroke-dashoffset: 257.61;
    }
    to {
        stroke-dashoffset: 0.001;
    }
}

@media screen and (max-width: 1023px) {

    .avatar-testimonial-frame-padding {
        padding: 50px 16px;
    }

    .avatar-testimonial-frame-padding h1 {
        text-align: center;
    }

    .avatarSwiperDisplay {
        max-width: calc(100vw - 32px);
    }

    .avatarSwiperDisplay h2 {
        max-width: calc(100vw - 32px);
    }

    .avatarSwiperDisplay p {
        max-width: calc(100vw - 32px);
    }
    
    .avatar-testimony-container h3 {
        font-size: 1.375rem!important;
    }

    .testimonial-details {
        margin-bottom: 0px;
    }

    .avatarSwiperThumbs .swiper-wrapper {
        align-items: center;
    }

    .avatarSwiperThumbs .avatar-wrapper {
        margin-left: 0;
    }

    .avatar-testimony-container h2 i{
        font-size: 24px!important;
    }

    .avatarSwiperThumbs .swiper-slide {
        width: 60px !important;
        height: 60px !important;
    }

    .avatarSwiperThumbs .swiper-slide svg {
        width: 60px !important;
        height: 60px !important;
    }

    .avatarSwiperThumbs .swiper-slide .progress-ring__circle {
        width: 60px!important;
        height: 60px!important;
        r: 28;
        cx: 30;
        cy: 30;
    }

}