/**
 * Testimonials Slider Styles
 * Matches the design from testimonials section.png
 */

/* Main Container */
.fce-testimonials-slider {
    padding: 10px 0;
    background-color: #ffffff;
    overflow: visible;
}

/* Wrapper */
.fce-ts-wrapper {
    position: relative;
    padding-top: 75px;
    overflow: hidden;
}

/* Carousel Container */s
.fce-ts-carousel {
    position: relative;
    overflow: visible;
}

/* Override Owl Carousel overflow - hide X, show Y */
.fce-ts-carousel.owl-carousel .owl-stage-outer {
    overflow-x: visible ;
    overflow-y: visible ;
}

/* Individual Testimonial Card */
.fce-ts-card {
    padding: 0px;
    margin-bottom: 20px;
    overflow: visible;
    display: flex;
}

.fce-ts-card-inner {
    background-color: rgba(23, 46, 74, 1);
    border-radius: 20px;
    padding: 70px 15px 35px;
    text-align: center;
    position: relative;
    min-height: 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); */
    z-index:2;
    width: 100%;
}

/* Student Photo */
.fce-ts-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: visible;
    margin: 0 auto 20px;
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    z-index:4;
    padding: 5px;
    background: linear-gradient(180deg, rgba(23, 46, 74, 1) 0%, rgba(23, 46, 74, 1) 50%, #ffffff 50%, #ffffff 100%);
    box-shadow: none;
}

/* Remove the old ::after pseudo-element border */
.fce-ts-photo::after {
    display: none;
}

.fce-ts-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    border-radius: 50%;
}

/* Student Name */
.fce-ts-name {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 15px 0 0px;
    line-height: 1.3;
}

/* Student Position */
.fce-ts-position {
    font-size: 16px;
    font-weight: 400;
    color: #b8c5d6;
    margin: 0 0 20px;
    line-height: 1.4;
}

/* Testimonial Text with Quotes */
.fce-ts-text {
    position: relative;
    margin: 5px 0 5px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fce-ts-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #d1dae5;
    margin: 0;
    position: relative;
    z-index: 1;
    padding: 0 30px;
}

/* Quote Marks */
.fce-ts-quote {
    line-height: 1;
    position: absolute;
}

.fce-ts-quote img {
    width: 30px;
    height: auto;
    display: block;
    opacity: 0.8;
    filter: brightness(0) invert(1);
}

.fce-ts-quote-open {
    top: 0px;
    left: 0;
}

.fce-ts-quote-open img {
    transform: rotate(180deg) scaleX(1);
}

.fce-ts-quote-close {
    bottom: 0px;
    right: 0;
}

/* Star Rating */
.fce-ts-rating {
    margin-top: auto;
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

.fce-ts-rating i {
    font-size: 18px;
}

.fce-ts-star-filled {
    color: #ffc107;
}

.fce-ts-star-outline {
    color: #ffc107;
}

/* Hide Default Owl Carousel Navigation */
.fce-testimonials-slider .owl-nav {
    display: none ;
}

.fce-testimonials-slider .owl-dots {
    display: none ;
}

/* Custom Navigation Arrows - Positioned relative to carousel */
.fce-ts-wrapper {
    position: relative;
}

.fce-ts-carousel.owl-carousel {
    position: relative;
}

.fce-ts-nav-arrows {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    max-width: 1320px;
    margin-left: -660px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 100;
    height: 50%;
}

/* Position arrows vertically centered to cards */
.fce-ts-nav-prev,
.fce-ts-nav-next {
    position: relative;
    top: 50%;
    /* transform: translateY(-50%); */
}

@media (max-width: 1400px) {
    .fce-ts-nav-arrows {
        max-width: 1140px;
        margin-left: -570px;
    }
}

@media (max-width: 1200px) {
    .fce-ts-nav-arrows {
        max-width: 960px;
        margin-left: -480px;
    }
}

.fce-ts-nav-arrow {
    pointer-events: all;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #1a2942;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fce-ts-nav-arrow:hover {
    transform: scale(1.1);
}

.fce-ts-nav-arrow i {
    font-size: 20px;
    color: #1a2942;
}

.fce-ts-nav-prev {
    margin-left: -60px;
}

.fce-ts-nav-next {
    margin-right: -60px;
}

/* Custom Pagination Dots */
.fce-ts-dots {
    text-align: center;
    margin-top: 10px;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.fce-ts-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.fce-ts-dot.active {
    background-color: #3b82f6;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: scale(1.2);
}

.fce-ts-dot:hover {
    opacity: 0.7;
}

/* Responsive Styles */

/* Tablet */
@media (max-width: 1024px) {
 
    .fce-ts-nav-prev {
        margin-left: -20px;
    }

    .fce-ts-nav-next {
        margin-right: -20px;
    }
}
    
@media (max-width: 1024px) {
    .fce-testimonials-slider {
        padding: 10px 0;
    }

    .fce-ts-wrapper {
        padding-top: 70px;
    }

    .fce-ts-card-inner {
        padding: 60px 25px 30px;
        min-height: 360px;
    }

    .fce-ts-photo {
        width: 130px;
        height: 130px;
        top: -65px;
    }

    .fce-ts-name {
        font-size: 18px;
    }

    .fce-ts-position {
        font-size: 13px;
    }

    .fce-ts-text p {
        font-size: 13px;
        padding: 0 15px;
    }

    .fce-ts-quote-open {
        top: 10px;
    }

    .fce-ts-quote-close {
        bottom: 10px;
    }

    /* Navigation arrows for tablet */
    .fce-ts-nav-arrows {
        max-width: 720px;
        margin-left: -360px;
        display: none;
    }

    .fce-ts-nav-arrow {
        width: 45px;
        height: 45px;
    }

    .fce-ts-nav-arrow i {
        font-size: 18px;
    }

    .fce-ts-nav-prev {
        margin-left: -20px;
    }

    .fce-ts-nav-next {
        margin-right: -20px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .fce-testimonials-slider {
        padding: 10px 0;
    }

    .fce-ts-wrapper {
        padding-top: 65px;
    }

    .fce-ts-card {
        height: 340px;
    }

    .fce-ts-card-inner {
        padding: 55px 20px 25px;
        min-height: 340px;
        height: 100%;
        border-radius: 15px;
    }

    .fce-ts-photo {
        width: 130px;
        height: 130px;
        top: -65px;
        padding: 3px;
    }

    .fce-ts-name {
        font-size: 16px;
    }

    .fce-ts-position {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .fce-ts-text p {
        font-size: 14px;
        padding: 0 25px;
    }

    .fce-ts-quote-open {
        top: 35px;
    }

    .fce-ts-quote-close {
        bottom: 35px;
    }

    .fce-ts-quote img {
        width: 25px;
    }

    .fce-ts-rating i {
        font-size: 16px;
    }


    /* Navigation arrows for mobile */
    .fce-ts-nav-arrows {
        max-width:100%;
        left: 0;
        margin: 0;
        display: none;

    }

    .fce-ts-nav-arrow {
        width: 40px;
        height: 40px;
    }

    .fce-ts-nav-arrow i {
        font-size: 16px;
    }

    .fce-ts-nav-prev {
        margin-left:5px;
    }

    .fce-ts-nav-next {
        margin-right: 5px;
    }

    /* Dots for mobile */
    .fce-ts-dots {
        margin-top: 2px;
        gap: 8px;
    }

    .fce-ts-dot {
        width: 10px;
        height: 10px;
    }

    .fce-ts-dot.active {
        width: 10px;
        height: 10px;
        transform: scale(1.2);
    }

    .fce-testimonials-slider .owl-dots {
        margin-top: 20px;
        gap: 8px;
    }

    .fce-testimonials-slider .owl-dot {
        width: 10px;
        height: 10px;
    }

    .fce-testimonials-slider .owl-dot.active {
        width: 25px;
    }
}

/* Extra Small Mobile */
@media (max-width: 575px) {
    .fce-ts-card {
        padding: 0 0px;
    }

    .fce-testimonials-slider .owl-nav {
        display: none;
    }
}
