/* Testimonial Highlight Slider 2 Styles */

.testimonial-highlight-slider-2__wrapper {
    position: relative;
    width: 100%;
    margin-top: 20px;
}

.testimonial-highlight-slider-2__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top 35% center;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
    opacity: 0.3;
}

.testimonial-hight-slider-2__ellipse-shape {
    position: absolute;
    width: 100%;
    max-width: 1150px;
    min-height: 515px;
    left: 0;
    right: 0;
    bottom: 5%;
    margin-inline: auto;
    border-radius: 100%;
    background: linear-gradient(270deg, rgba(97, 189, 175, 0.8) 0%, rgba(51, 138, 202, 0.8) 100%);
    filter: blur(200px);
    z-index: -1;
    /* overflow: hidden; */
}

/* Title Section within Slide */
.testimonial-highlight-slider-2__title-section {
    position: relative;
    z-index: 3;
    width: 100%;
    margin-bottom: 70px;
    padding: 0 60px;
    text-align: center;
    transition: opacity 0.6s ease-in-out;
}

.testimonial-highlight-slider-2__slide:has(.testimonial-highlight-slider-2__content-section) .testimonial-highlight-slider-2__title-section{
    margin-bottom: 40px;
}

/* Title opacity for different slide states */
.testimonial-highlight-slider-2 .swiper-slide .testimonial-highlight-slider-2__title-section {
    opacity: 0.3;
}

.testimonial-highlight-slider-2 .swiper-slide-active .testimonial-highlight-slider-2__title-section {
    opacity: 1;
}

.testimonial-highlight-slider-2 {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.testimonial-highlight-slider-2__item {
    height: auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: auto;
    flex-shrink: 0;
}

.testimonial-highlight-slider-2__slide {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 0 15px 20px;
}


/* Media Section Wrapper */
.testimonial-highlight-slider-2__media-section-wrapper {
    position: relative;
    width: 100%;
    min-width: 930px;
    max-width: 930px;
    margin: 0 auto;
}

@media screen and (max-width: 992px) {
    .testimonial-highlight-slider-2__media-section-wrapper {
        max-width: 90%;
        min-width: auto;
    }
}

/* Content Section */
.testimonial-highlight-slider-2__content-section {
    position: relative;
    width: 100%;
    max-width: 930px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    z-index: 3;
    margin-bottom: 90px;
}

/* Title */
.testimonial-highlight-slider-2__title {
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-align: center;
    display: inline-block;
    transition: transform 0.6s ease-in-out;
    transform: translateX(0);
}

/* Title alignment for prev and next slides - handled by JavaScript */

@media screen and (max-width: 992px) {
    .testimonial-highlight-slider-2__title-section {
        margin-bottom: 45px;
        padding: 0 20px;
    }

    .testimonial-highlight-slider-2__slide:has(.testimonial-highlight-slider-2__content-section) .testimonial-highlight-slider-2__title-section{
        margin-bottom: 25px;
    }

    .testimonial-highlight-slider-2__title {
        font-size: 40px;
    }
}

@media screen and (max-width: 767px) {
    .testimonial-highlight-slider-2__title-section {
        padding: 0 20px;
    }

    .testimonial-highlight-slider-2__title {
        font-size: 30px;
    }
}


/* Testimonial Card */
.testimonial-highlight-slider-2__card {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: fit-content;
    width: fit-content;
    gap: 15px;
    border: 1px solid #74F0FF1A;
    border-radius: 100px;
    padding: 12px 22px;
}

@media screen and (max-width: 577px) {
    .testimonial-highlight-slider-2__card {
        border-radius: 30px;
    }
}

/* Feedback Highlight */
.testimonial-highlight-slider-2__feedback {
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.4;
    text-align: left;
    font-weight: 400;
}

@media screen and (max-width: 767px) {
    .testimonial-highlight-slider-2__feedback{
        font-size: 16px;
    }
}

/* Profile Section */

.testimonial-highlight-slider-2__profile-photo {
    flex-shrink: 0;
    position: relative;
}

.testimonial-highlight-slider-2__profile-photo::before {
    content: '';
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    border-radius: 100%;
    background: linear-gradient(227.12deg, #AABEFF 13.93%, #366EFC 87.4%);
    position: absolute;
    top: -3px;
    left: -3px;
    z-index: 1;
}

.testimonial-highlight-slider-2__profile-photo::after {
    content: '';
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    border-radius: 100%;
    background: var(--body-background-color);
    position: absolute;
    top: -2px;
    left: -2px;
    z-index: 1;
}


.testimonial-highlight-slider-2__photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.testimonial-highlight-slider-2__profile-position {
    color: #FFFFFFB2;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    font-style: italic;
}

/* Media Section (Big Image/Video) */
.testimonial-highlight-slider-2__media-section {
    width: 100%;
    position: relative;
    z-index: 3;
    margin-top: 0;
    border-radius: 30px;
}

.testimonial-highlight-slider-2__media-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    z-index: -1;
    box-shadow:
        0 0 0 15px #FFFFFF33,
        /* Simulated border using spread */
        0px -5px 10px 0px #00000033;
    /* Original inner shadow */
    filter: blur(0.9px);
    border-radius: 30px;
}

.testimonial-highlight-slider-2__image-wrapper {
    width: 100%;
    position: relative;
    padding: 40px 30px;
    overflow: hidden;
    background: #ffffff;
    border-radius: 30px;
}

.testimonial-highlight-slider-2__big-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.testimonial-highlight-slider-2__video-wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.testimonial-highlight-slider-2__video,
.testimonial-highlight-slider-2__video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 30px;
}

.testimonial-highlight-slider-2__video {
    object-fit: cover;
}

/* Navigation Styles */
.testimonial-highlight-slider-2__navigation {
    width: 100%;
    max-width: 930px;
    margin-inline: auto;
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 20;
    padding: 0 20px;
}

.testimonial-highlight-slider-2__nav-btn {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    color: #74F0FF;
    box-shadow: inset 0px 0px 3px rgba(25, 24, 52, 1),
        inset -4px -4px 12px rgba(255, 255, 255, 0.2),
        inset 1px 1px 1px rgba(255, 255, 255, 0.6),
        inset -1px -1px 0px rgba(255, 255, 255, 0.1);
}

.testimonial-highlight-slider-2__nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.testimonial-highlight-slider-2__nav-btn svg {
    width: 12px;
    height: 23px;
}

.testimonial-highlight-slider-2__nav-btn::after {
    display: none;
}

.testimonial-highlight-slider-2__nav-prev {
    margin-left: 0;
    left: -10%;
    position: absolute;
}

.testimonial-highlight-slider-2__nav-next {
    margin-right: 0;
    right: -10%;
    position: absolute;
}

@media screen and (max-width: 1200px) {
    .testimonial-highlight-slider-2__navigation {
        position: relative;
        transform: translateY(0);
        justify-content: center;
        gap: 25px;
        top: 0;
        left: 0;
    }

    .testimonial-highlight-slider-2__navigation .swiper-button-prev,
    .testimonial-highlight-slider-2__navigation .swiper-button-next {
        position: relative !important;
        top: 0;
        left: 0;
        right: 0;
        margin-top: 20px;
    }
}

@media screen and (max-width: 767px) {
    .testimonial-highlight-slider-2__image-wrapper {
        padding: 25px 10px;
    }

    .testimonial-highlight-slider-2__video,
    .testimonial-highlight-slider-2__video-embed {
        border-radius: 15px;
    }

    .testimonial-highlight-slider-2__media-section::before,
    .testimonial-highlight-slider-2__image-wrapper {
        border-radius: 15px;
    }

    .testimonial-highlight-slider-2__media-section::before {
        box-shadow: 0 0 0 10px #FFFFFF33,
            /* Simulated border using spread */
            0px -5px 10px 0px #00000033;
    }

    /* .testimonial-highlight-slider-2__slide{
        gap: 60px;
    } */

    .testimonial-highlight-slider-2__content-section{
        margin-bottom: 60px;
    }

}

/* Loading and Animation States */
.testimonial-highlight-slider-2.loading {
    opacity: 0.7;
}

.testimonial-highlight-slider-2.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #74F0FF;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin-2 1s linear infinite;
    z-index: 10;
}

@keyframes spin-2 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.testimonial-highlight-slider-2.fade-in {
    animation: fadeInUp-2 0.6s ease-out;
}

@keyframes fadeInUp-2 {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Swiper Fade Effect */
.testimonial-highlight-slider-2 .swiper-slide {
    opacity: 1;
}

/* Content and Media Section Opacity */
.testimonial-highlight-slider-2__content-section,
.testimonial-highlight-slider-2__media-section-wrapper {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.testimonial-highlight-slider-2 .swiper-slide-active .testimonial-highlight-slider-2__content-section,
.testimonial-highlight-slider-2 .swiper-slide-active .testimonial-highlight-slider-2__media-section-wrapper {
    opacity: 1;
}

/* Title slider has its own opacity rules (center mode with visible adjacent slides) */

/* Ensure proper spacing and alignment */
.testimonial-highlight-slider-2__wrapper .swiper-container {
    overflow: visible;
}

.testimonial-highlight-slider-2__wrapper .swiper-slide {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
