/* =========================================================
   KEDCO CUSTOMER TESTIMONIALS
   ========================================================= */

.kedco-testimonial {
    width: 100%;
    background: #011174;
    position: relative;
    padding: 30px 0 18px;
    min-height: 295px;
    overflow: hidden;
    box-sizing: border-box;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.kedco-testimonial-container {
    width: min(1120px, calc(100% - 80px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.kedco-testimonial-header {
    text-align: center;
    margin: 0 auto 18px;
    max-width: 650px;
}

.kedco-testimonial-eyebrow {
    margin: 0 0 5px;
    color: #ffffff;
    font-family: "Candara", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.kedco-testimonial-title {
    margin: 0;
    color: #ffffff;
    font-family: "Candara", Arial, sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.05;
}


/* =========================================================
   CAROUSEL VIEWPORT
   ========================================================= */

.kedco-testimonial-carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 17px;
}


/* =========================================================
   CAROUSEL TRACK
   ========================================================= */

.kedco-testimonial-track {
    display: flex;
    width: 100%;
    gap: 24px;
    transition: transform 0.7s ease-in-out;
    will-change: transform;
}


/* =========================================================
   TESTIMONIAL CARD
   ========================================================= */

.kedco-testimonial-card {
    /*
     * Two cards must fit inside one desktop slide.
     *
     * Carousel width - gap
     * --------------------
     *          2
     */

    flex: 0 0 calc((100% - 24px) / 2);

    min-width: 0;
    height: 150px;

    padding: 14px 20px;

    background: #ffffff;
    border-radius: 17px;

    box-sizing: border-box;

    overflow: hidden;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.14);

    display: flex;
    flex-direction: row;
    align-items: flex-start;

    gap: 10px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.kedco-testimonial-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   CUSTOMER IMAGE
   ========================================================= */

.kedco-testimonial-image {
    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    border-radius: 50%;

    overflow: hidden;

    background: #f1f1f1;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.12);
}


.kedco-testimonial-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}


/* =========================================================
   CONTENT
   ========================================================= */

.kedco-testimonial-content {
    min-width: 0;

    flex: 1;

    height: 100%;

    display: flex;
    flex-direction: column;

    justify-content: flex-start;
}


/* =========================================================
   STARS
   ========================================================= */

.kedco-testimonial-stars {
    display: flex;

    align-items: center;

    gap: 3px;

    margin-bottom: 5px;
}


.kedco-testimonial-stars i {
    color: #e8de03;

    font-size: 13px;

    line-height: 1;
}


/* =========================================================
   QUOTE
   ========================================================= */

.kedco-testimonial-quote {
    margin: 0 0 5px;

    color: #555555;

    font-family: "Candara", Arial, sans-serif;

    font-size: 13px;

    font-weight: 400;

    line-height: 1.25;
}


/* =========================================================
   CUSTOMER DETAILS
   ========================================================= */

.kedco-testimonial-customer {
    margin-top: auto;
}


.kedco-testimonial-customer h3 {
    margin: 0 0 2px;

    color: #011174;

    font-family: "Candara", Arial, sans-serif;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.2;
}


.kedco-testimonial-customer p {
    margin: 0;

    color: #7a7979;

    font-family: "Candara", Arial, sans-serif;

    font-size: 12px;

    line-height: 1.2;
}


/* =========================================================
   CAROUSEL DOTS
   ========================================================= */

.kedco-testimonial-dots {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 10px;
}


.kedco-testimonial-dot {
    width: 7px;
    height: 7px;

    display: block;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.45);

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}


.kedco-testimonial-dot.active {
    width: 8px;
    height: 8px;

    background: #e8de03;

    transform: scale(1.05);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .kedco-testimonial {
        min-height: 245px;
        padding-top: 25px;
    }


    .kedco-testimonial-container {
        width: calc(100% - 60px);
    }


    .kedco-testimonial-header {
        margin-bottom: 16px;
    }


    .kedco-testimonial-title {
        font-size: 32px;
    }


    .kedco-testimonial-card {
        height: 120px;

        padding: 13px 17px;

        gap: 9px;
    }


    .kedco-testimonial-image {
        width: 48px;
        height: 48px;

        flex-basis: 48px;
    }


    .kedco-testimonial-stars i {
        font-size: 10px;
    }


    .kedco-testimonial-quote {
        font-size: 12px;
        line-height: 1.25;
    }


    .kedco-testimonial-customer h3 {
        font-size: 13px;
    }


    .kedco-testimonial-customer p {
        font-size: 11px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .kedco-testimonial {
        min-height: 245px;

        padding-top: 22px;
        padding-bottom: 15px;
    }


    .kedco-testimonial-container {
        width: calc(100% - 32px);
    }


    .kedco-testimonial-header {
        margin-bottom: 12px;
    }


    .kedco-testimonial-eyebrow {
        font-size: 12px;

        letter-spacing: 1px;
    }


    .kedco-testimonial-title {
        font-size: 28px;
    }


    /* -----------------------------------------
       MOBILE CAROUSEL
       One card visible at a time
       ----------------------------------------- */

    .kedco-testimonial-carousel {
        border-radius: 15px;
    }


    .kedco-testimonial-track {
        gap: 0;
    }


    .kedco-testimonial-card {
        flex: 0 0 100%;

        width: 100%;

        height: 120px;

        padding: 13px 15px;

        border-radius: 15px;

        gap: 10px;
    }


    .kedco-testimonial-image {
        width: 42px;
        height: 42px;

        flex-basis: 42px;
    }


    .kedco-testimonial-stars {
        gap: 2px;

        margin-bottom: 4px;
    }


    .kedco-testimonial-stars i {
        font-size: 11px;
    }


    .kedco-testimonial-quote {
        font-size: 12px;

        line-height: 1.2;

        margin-bottom: 4px;
    }


    .kedco-testimonial-customer h3 {
        font-size: 12px;
    }


    .kedco-testimonial-customer p {
        font-size: 10px;
    }


    .kedco-testimonial-dots {
        margin-top: 7px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .kedco-testimonial {
        min-height: 235px;

        padding-top: 20px;
    }


    .kedco-testimonial-container {
        width: calc(100% - 28px);
    }


    .kedco-testimonial-header {
        margin-bottom: 10px;
    }


    .kedco-testimonial-title {
        font-size: 25px;
    }


    .kedco-testimonial-card {
        height: 120px;

        padding: 10px 12px;

        border-radius: 14px;
    }


    .kedco-testimonial-image {
        width: 38px;
        height: 38px;

        flex-basis: 38px;
    }


    .kedco-testimonial-stars {
        margin-bottom: 3px;
    }


    .kedco-testimonial-stars i {
        font-size: 10px;
    }


    .kedco-testimonial-quote {
        font-size: 11px;

        line-height: 1.15;
    }


    .kedco-testimonial-customer h3 {
        font-size: 11px;
    }


    .kedco-testimonial-customer p {
        font-size: 10px;
    }


    .kedco-testimonial-dots {
        margin-top: 6px;
    }
}


/* =========================================================
   KEDCO TESTIMONIALS - DARK MODE
   ========================================================= */

[data-theme="dark"] .kedco-testimonial {
    background: #050A24;
}


/* =========================================================
   DARK MODE - TESTIMONIAL CARD
   ========================================================= */

[data-theme="dark"] .kedco-testimonial-card {
    background: #111936;

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.35);
}


[data-theme="dark"] .kedco-testimonial-card:hover {
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.45);

    border-color: rgba(232, 222, 3, 0.18);
}


/* =========================================================
   DARK MODE - CUSTOMER IMAGE
   ========================================================= */

[data-theme="dark"] .kedco-testimonial-image {
    background: #1A2345;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.3);
}


/* =========================================================
   DARK MODE - STARS
   ========================================================= */

[data-theme="dark"] .kedco-testimonial-stars i {
    color: #E8DE03;
}


/* =========================================================
   DARK MODE - QUOTE
   ========================================================= */

[data-theme="dark"] .kedco-testimonial-quote {
    color: #D7DBE8;
}


/* =========================================================
   DARK MODE - CUSTOMER NAME
   ========================================================= */

[data-theme="dark"] .kedco-testimonial-customer h3 {
    color: #FFFFFF;
}


/* =========================================================
   DARK MODE - CUSTOMER ROLE
   ========================================================= */

[data-theme="dark"] .kedco-testimonial-customer p {
    color: #9CA5BD;
}


/* =========================================================
   DARK MODE - DOTS
   ========================================================= */

[data-theme="dark"] .kedco-testimonial-dot {
    background: rgba(255, 255, 255, 0.25);
}


[data-theme="dark"] .kedco-testimonial-dot.active {
    background: #E8DE03;
}