/* ===================================================
   Testimonial Slider Block
   =================================================== */

/* --- Section --- */
.testimonial-slider-section {
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.testimonial-slider-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Header --- */
.ts-header {
    text-align: center;
    margin-bottom: 50px;
}

.ts-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 14px;
    line-height: 1.2;
}

.ts-decorative-line {
    display: block;
    width: 35px;
    height: 6px;
    background: #ea580c;
    margin: 0 auto 18px;
    border-radius: 6px;
}

.ts-subtitle {
    font-size: 20px;
    color: #0b2a4a;
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

/* --- Slider wrapper --- */
.ts-slider-wrapper {
    position: relative;
}

.ts-slider .slick-list {
    overflow: hidden;
}

.ts-slide {
    padding: 0 10px;
    box-sizing: border-box;
    outline: none;
}

/* ===================================================
   STYLE 1: Image Left + Content Right
   =================================================== */
.ts-style_1 {
    background-color: #f0f2f5;
}

.ts-card--horizontal {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 20px 0;
}

/* Left: Image area */
.ts-card__left {
    flex: 0 0 300px;
    max-width: 300px;
    position: relative;
}

.ts-card__image-wrap {
    position: relative;
    display: inline-block;
}

/* Decorative dot grid (top-left) */
.ts-dots-pattern {
    position: absolute;
    top: -21px;
    right: -22px;
    width: 80px;
    height: 80px;
    z-index: 1;
    background-image: radial-gradient(circle, #c5cad3 2px, transparent 2px);
    background-size: 10px 10px;
    opacity: 0.7;
}

.ts-card__image {
    position: relative;
    z-index: 2;
    width: 290px;
    height: 290px;
    overflow: hidden;
    border-radius: 10px;
    padding-left: 20px;
}

.ts-card__image img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

/* Decorative blue bracket (bottom-left of image) */
.ts-card__bracket {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 106px;
    height: 106px;
    border-radius: 10px;
    background-color: #002E5B;
}

/* Right: Content */
.ts-card__right {
    flex: 1;
    min-width: 0;
}

.ts-card__right .ts-card__name {
    font-size: 30px;
    font-weight: 500;
    color: #0b2a4a;
    margin: 0 0 5px;
    line-height: 1.2;
}

.ts-card__right .ts-card__meta {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
    letter-spacing: 0.2px;
}

.ts-card__right .ts-card__text {
    font-size: 14px;
    line-height: 1.8;
    color: #494949;
    margin: 0;
}

/* Rating stars (Style 1) */
.ts-card__right .ts-card__rating {
    margin-bottom: 16px;
}

.ts-card__rating i {
    color: #f59e0b;
    font-size: 15px;
    margin-right: 2px;
}

/* Style 1: Arrows positioned top-right */
.ts-style_1 .ts-slider-wrapper {
    position: relative;
}

.ts-style_1 .slick-prev, .ts-style_1 .slick-next {
    position: absolute;
    top: -10px;
    width: 45px;
    height: 45px;
    background: #f2f4fa;
    /* border: 2px solid #d1d5db; */
    border-radius: 50%;
    z-index: 5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ts-style_1 .slick-prev {
    right: 60px;
    left: auto;
}

.ts-style_1 .slick-next {
    right: 0;
    left: auto;
}

.ts-style_1 .slick-prev:hover,
.ts-style_1 .slick-next:hover {
    border-color: #0b2a4a;
    background: #0b2a4a;
}

.ts-style_1 .slick-prev:before, .ts-style_1 .slick-next:before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 22px;
    color: #0b2a4a;
    opacity: 1;
    transition: color 0.3s ease;
}

.ts-style_1 .slick-prev:hover:before,
.ts-style_1 .slick-next:hover:before {
    color: #fff;
}

.ts-style_1 .slick-prev:before {
    content: '\f053';
}

.ts-style_1 .slick-next:before {
    content: '\f054';
}

/* Style 1: Hide dots (arrows-only as per design) */
.ts-style_1 .slick-dots {
    display: none !important;
}


/* ===================================================
   STYLE 2: Centered Quote
   =================================================== */
.ts-style_2 {
    background-color: #ffffff;
}

.ts-card--centered {
    text-align: center;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 0 60px;
}

.ts-card--centered .ts-card__text {
    font-size: 14px;
    color: #494949;
    margin: 0 0 30px;
}

.ts-card__author-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ts-card__author-centered .ts-card__name {
    font-size: 20px;
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-color);
}

.ts-card__author-centered .ts-card__meta {
    font-family: var(--heading-font);
    font-size: 14px;
    color: gray;
}

/* Style 2: Side arrows — thin chevrons */
.ts-style_2 .slick-prev, .ts-style_2 .slick-next {
    width: 25px;
    height: 25px;
    background: transparent;
    border: none;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.ts-style_2 .slick-prev {
    left: 10px;
}

.ts-style_2 .slick-next {
    right: 10px;
}

.ts-style_2 .slick-prev:before,
.ts-style_2 .slick-next:before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 16px;
    color: #ededede6;
    opacity: 1;
    transition: color 0.3s ease;
}

.ts-style_2 .slick-prev:hover:before,
.ts-style_2 .slick-next:hover:before {
    color: #0b2a4a;
}

.ts-style_2 .slick-prev:before {
    content: '\f053';
}

.ts-style_2 .slick-next:before {
    content: '\f054';
}

/* Style 2: Dots */
.ts-style_2 .slick-dots {
    bottom: -20px;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex !important;
    justify-content: center;
    gap: 8px;
}

.ts-style_2 .slick-dots li {
    width: auto;
    height: auto;
    margin: 0;
}

.ts-style_2 .slick-dots li button {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c5cad3;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
}

.ts-style_2 .slick-dots li button:before {
    display: none;
}

.ts-style_2 .slick-dots li.slick-active button {
    background: #0b2a4a;
    transform: scale(1.25);
}

.ts-style_2 .slick-dotted.slick-slider {
    margin-bottom: 20px;
}


/* ===================================================
   STYLE 3: Video + Text Cards (Swipe only)
   =================================================== */
.ts-style_3 {
    background-color: #f0f2f5;
}

.ts-style_3 .ts-slider .slick-track {
    display: flex;
}

.ts-style_3 .ts-slide {
    padding: 0 10px;
    height: auto;
}

.ts-style_3 .ts-slide > div {
    height: 100%;
}

.ts-card--vidtext {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Video / media area */
.ts-card__media {
    flex: 1 1 auto;
    min-height: 240px;
    position: relative;
    background: #f5f5f5;
    padding: 28px;
}

.ts-card__video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 44.25%;
    height: 0;
    overflow: hidden;
}

.ts-card__video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}


.ts-slider-wrapper--style3 .ts-card {
    position: relative;
}

.ts-slider-wrapper--style3 .ts-card::after {
    content: '';
    position: absolute;
    left: 42px;
    bottom: 41px;
    border-width: 13px;
    border-color: #f5f5f5 transparent transparent transparent;
    border-style: solid;
}

.ts-slider-wrapper--style3 .ts-card__media:before {
    content: "\f10d";
    font-family: "FontAwesome";
    line-height: 1;
    -moz-osx-font-smoothing: grayscale;
    font-size: 60px;
    color: #f15a24;
    position: absolute;
    width: 60px;
    height: 50px;
    z-index: 1;
    position: absolute;
    right: 0;
    bottom: -2px;
}

/* Text-only card (when no video) */
.ts-card__media--text-only {
    padding: 32px 28px 20px;
    display: flex;
    flex-direction: column;
}

.ts-card__media--text-only .ts-card__quote-mark {
    font-size: 60px;
    font-weight: 700;
    color: #ea580c;
    line-height: 0.8;
    margin-bottom: 8px;
    font-family: Georgia, serif;
}

.ts-card__media--text-only .ts-card__text {
    font-size: 14px;
    line-height: 1.8;
    color: #494949;
    margin: 0;
}

/* Footer: avatar + name/meta */
.ts-card__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 25px 0 0;
    border-top: 1px solid #f0f0f0;
}

.ts-card__footer .ts-card__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.ts-card__footer .ts-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ts-card__footer-info {
    display: flex;
    flex-direction: column;
}

.ts-card__footer-info .ts-card__name {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
}

.ts-card__footer-info .ts-card__meta {
    font-size: 14px;
    color: grey;
    line-height: 20px;
    font-style: italic;
}

/* Style 3: Arrow styling */
.ts-style_3 .slick-prev, .ts-style_3 .slick-next {
    width: 44px;
    height: 44px;
    background: #fff;
    border: 3px solid var(--primary-color);
    /* border-radius: 50%; */
    z-index: 10;
    transition: all 0.3s ease;
}

.ts-style_3 .slick-prev {
    left: -25px;
}

.ts-style_3 .slick-next {
    right: -25px;
}

.ts-style_3 .slick-prev:hover,
.ts-style_3 .slick-next:hover {
    border-color: #0b2a4a;
    background: #0b2a4a;
}

.ts-style_3 .slick-prev:before,
.ts-style_3 .slick-next:before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 20px;
    color: #0b2a4a;
    opacity: 1;
    transition: color 0.3s ease;
}

.ts-style_3 .slick-prev:hover:before,
.ts-style_3 .slick-next:hover:before {
    color: #fff;
}

.ts-style_3 .slick-prev:before {
    content: '\f053';
}

.ts-style_3 .slick-next:before {
    content: '\f054';
}

/* Style 3: Dots styling */
.ts-style_3 .slick-dots {
    bottom: -40px;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex !important;
    justify-content: center;
    gap: 8px;
}

.ts-style_3 .slick-dots li {
    width: auto;
    height: auto;
    margin: 0;
}

.ts-style_3 .slick-dots li button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c5cad3;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
}

.ts-style_3 .slick-dots li button:before {
    display: none;
}

.ts-style_3 .slick-dots li.slick-active button {
    background: #0b2a4a;
    width: 10px;
    height: 10px;
}

.ts-style_3 .slick-dotted.slick-slider {
    margin-bottom: 40px;
}

/* Swipe cursor hint */
.ts-style_3 .ts-slider {
    cursor: grab;
}

.ts-style_3 .ts-slider:active {
    cursor: grabbing;
}


/* ===================================================
   RESPONSIVE
   =================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .ts-card__image {
        width: 260px;
        height: 260px;
    }

    .testimonial-slider-section {
        padding: 60px 0;
    }

    .ts-title {
        font-size: 32px;
    }

    .ts-subtitle {
        font-size: 16px;
    }

    .ts-header {
        margin-bottom: 36px;
    }

    /* Style 1: reduce image size */
    .ts-card__left {
        flex: 0 0 280px;
        max-width: 280px;
    }

    .ts-card--horizontal {
        gap: 30px;
    }

    .ts-card__right .ts-card__name {
        font-size: 24px;
    }

    .ts-style_1 .slick-prev {
        right: 55px;
    }

    /* Style 2: pull arrows in */
    .ts-style_2 .slick-prev {
        left: -20px;
    }

    .ts-style_2 .slick-next {
        right: -20px;
    }

    /* Style 3: single column on tablet */
    .ts-style_3 .ts-slider .slick-slide {
        padding: 0 8px;
    }

    /* Style 3: adjust arrows on tablet */
    .ts-style_3 .slick-prev {
        left: -15px;
    }

    .ts-style_3 .slick-next {
        right: -15px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .ts-style_1 .slick-dots {
        display: block !important;
    }

    .ts-style_1 .slick-dots li button:before {
        font-size: 14px;
    }

    .ts-style_1 .slick-dots li.slick-active button:before {
        color: var(--primary-color);
        opacity: 1;
    }   

    .ts-style_1 .slick-dots li {
        margin: 0 2px;
    }

    .testimonial-slider-section {
        padding: 40px 0;
    }

    .ts-title {
        font-size: 26px;
    }

    .ts-subtitle {
        font-size: 15px;
    }

    .ts-header {
        margin-bottom: 24px;
    }

    /* Style 1: Stack vertically */
    .ts-card--horizontal {
        flex-direction: column;
        gap: 24px;
        align-items: center;
        text-align: center;
    }

    .ts-card__left {
        flex: 0 0 auto;
        max-width: 260px;
    }

    .ts-card__right .ts-card__name {
        font-size: 22px;
    }

    .ts-card__right .ts-card__meta {
        margin-bottom: 14px;
    }

    .ts-card__right .ts-card__text {
        font-size: 14px;
        line-height: 1.7;
    }

    .ts-style_1 .slick-prev,
    .ts-style_1 .slick-next {
        top: auto;
        bottom: -50px;
        width: 36px;
        height: 36px;
    }

    .ts-style_1 .slick-prev {
        left: calc(50% - 42px);
        right: auto;
    }

    .ts-style_1 .slick-next {
        right: calc(50% - 42px);
    }

    .ts-style_1 .ts-slider-wrapper {
        padding-bottom: 50px;
    }

    /* Style 2 */
    .ts-card--centered {
        padding: 20px 10px 15px;
    }

    .ts-card--centered .ts-card__text {
        font-size: 14px;
        line-height: 1.7;
    }

    .ts-card__author-centered .ts-card__name {
        font-size: 16px;
    }

    .ts-style_2 .slick-dots {
        bottom: -25px;
    }

    /* Style 3: mobile */
    .ts-card__media {
        min-height: 200px;
    }

    .ts-card__media--text-only {
        padding: 24px 18px 16px;
    }

    .ts-card__media--text-only .ts-card__quote-mark {
        font-size: 44px;
    }

    .ts-card__footer {
        padding: 12px 18px 16px;
    }
}
