/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */


/* ==========================================================================
   HOMEPAGE SECTION
   ========================================================================== */

.home-testimonials-modern {
    width: 100%;

    padding: 72px 0;

    background: #F0F0F0;
}


/* ==========================================================================
   HOME HEADING
   ========================================================================== */

.home-testimonials-modern__heading {
    max-width: 680px;

    margin: 0 auto 34px;

    text-align: center;
}










/* ==========================================================================
   TESTIMONIAL FALLBACK GRID
   ========================================================================== */

.home-testimonials-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}


.home-testimonials-grid .item {
    min-width: 0;
}

/* ==========================================================================
   HOME CAROUSEL
   ========================================================================== */

#home-testimonials-carousel {
    margin-left: -8px;
    margin-right: -8px;

    width: auto;
}


#home-testimonials-carousel .item {
    padding: 3px 8px 10px;
}


/* ==========================================================================
   HOME CARD
   ========================================================================== */

.home-testimonial-card {
    position: relative;

    min-height: 250px;

    padding: 27px;

    background: #FFFFFF;

    border: 1px solid #E7E7E7;
    border-radius: 8px;

    box-shadow:
        0 7px 22px
        rgba(0, 0, 0, .035);
}

/* ==========================================================================
   FALLBACK GRID
   ========================================================================== */

.home-testimonials-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}


.home-testimonials-grid .item {
    min-width: 0;
}

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

.home-testimonial-card__quote,
.testimonial-card__quote {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    margin-bottom: 17px;

    background: #F0F0F0;

    border-radius: 50%;

    color: #002EBE;

    font-size: 14px;
}


/* ==========================================================================
   MESSAGE
   ========================================================================== */

.home-testimonial-card__message {
    display: -webkit-box;

    min-height: 110px;
    max-height: 110px;

    margin: 0 0 22px;

    overflow: hidden;

    color: #444444;

    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}


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

.home-testimonial-card__customer,
.testimonial-card__customer {
    display: flex;
    align-items: center;

    min-width: 0;
}


.home-testimonial-card__avatar,
.testimonial-card__avatar {
    flex: 0 0 auto;

    width: 52px;
    height: 52px;

    margin-right: 12px;

    background: #F0F0F0;

    border: 1px solid #E7E7E7;
    border-radius: 50%;

    overflow: hidden;
}


.home-testimonial-card__avatar img,
.testimonial-card__avatar img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.home-testimonial-card__avatar--placeholder,
.testimonial-card__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #002EBE;

    border-color: #002EBE;

    color: #FFFFFF;

    font-family: "Raleway", sans-serif;
    font-size: 18px;
    font-weight: 700;
}


/* ==========================================================================
   IDENTITY
   ========================================================================== */

.home-testimonial-card__identity,
.testimonial-card__identity {
    min-width: 0;
}


.home-testimonial-card__identity strong,
.testimonial-card__identity strong {
    display: block;

    margin-bottom: 2px;

    overflow: hidden;

    color: #262626;

    font-family: "Raleway", sans-serif;
    font-size: 13px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.home-testimonial-card__identity span,
.testimonial-card__identity span {
    display: block;

    color: #888888;

    font-family: "Open Sans", sans-serif;
    font-size: 10px;
}


/* ==========================================================================
   OWL PAGINATION
   ========================================================================== */

#home-testimonials-carousel.owl-theme
.owl-controls {
    margin-top: 18px;
}


#home-testimonials-carousel.owl-theme
.owl-controls
.owl-page span {
    width: 8px;
    height: 8px;

    margin: 5px;

    background: #B3B3B3;

    opacity: 1;
}


#home-testimonials-carousel.owl-theme
.owl-controls
.owl-page.active span {
    background: #002EBE;
}


/* ==========================================================================
   HOME FOOTER
   ========================================================================== */

.home-testimonials-modern__footer {
    margin-top: 27px;

    text-align: center;
}


.home-testimonials-modern__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 10px 18px;

    background: transparent;

    border: 1px solid #002EBE;
    border-radius: 6px;

    color: #002EBE;

    font-family: "Raleway", sans-serif;
    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background-color .2s ease,
        color .2s ease;
}


.home-testimonials-modern__button .fa {
    margin-left: 8px;
}


.home-testimonials-modern__button:hover,
.home-testimonials-modern__button:focus {
    background: #002EBE;

    color: #FFFFFF;

    text-decoration: none;
}


/* ==========================================================================
   TESTIMONIAL PAGE INTRO
   ========================================================================== */




/* ==========================================================================
   BREADCRUMB
   ========================================================================== */




.testimonial-breadcrumb a {
    color: #666666;

    text-decoration: none;
}


.testimonial-breadcrumb a:hover,
.testimonial-breadcrumb a:focus {
    color: #002EBE;

    text-decoration: none;
}


.testimonial-breadcrumb .fa {
    margin-right: 4px;
}


/* ==========================================================================
   PAGE INTRO CONTENT
   ========================================================================== */

.testimonial-page-intro__content {
    max-width: 720px;
}








/* ==========================================================================
   TESTIMONIAL PAGE
   ========================================================================== */

.testimonial-page {
    width: 100%;

    padding: 60px 0 72px;

    background: #FFFFFF;
}


/* ==========================================================================
   GRID
   ========================================================================== */

.testimonial-page__grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;

    align-items: stretch;
}


/* ==========================================================================
   PAGE CARD
   ========================================================================== */

.testimonial-card {
    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 25px;

    background: #FFFFFF;

    border: 1px solid #E7E7E7;
    border-radius: 8px;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}


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

    border-color: #DDDDDD;

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


.testimonial-card__message {
    flex: 1;

    margin: 0 0 24px;

    color: #444444;

    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    line-height: 1.75;
}


/* ==========================================================================
   EMPTY
   ========================================================================== */

.testimonial-empty {
    max-width: 520px;

    margin: 20px auto;

    padding: 45px 30px;

    background: #F0F0F0;

    border: 1px solid #E7E7E7;
    border-radius: 8px;

    text-align: center;
}





.testimonial-empty h2 {
    margin: 0 0 9px;

    color: #262626;

    font-family: "Raleway", sans-serif;
    font-size: 20px;
    font-weight: 700;

    text-transform: none;
}


.testimonial-empty p {
    margin: 0;

    color: #666666;

    font-size: 13px;
}


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

@media only screen
and (min-width: 768px)
and (max-width: 991px) {

    .home-testimonials-modern {
        padding: 60px 0;
    }


    .home-testimonials-modern__heading h2 {
        font-size: 28px;
    }


    .testimonial-page-intro__content h1 {
        font-size: 32px;
    }


    .testimonial-page {
        padding: 52px 0 60px;
    }


    .testimonial-page__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }

}


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

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

    .home-testimonials-modern {
        padding: 48px 0;
    }

     .home-testimonials-grid {
        grid-template-columns: 1fr;
    }


    .home-testimonials-modern__heading {
        margin-bottom: 27px;

        text-align: left;
    }


    .home-testimonials-modern__heading h2 {
        font-size: 25px;
    }


    .home-testimonials-modern__intro {
        font-size: 13px;
    }


    .home-testimonial-card {
        min-height: 0;

        padding: 22px;
    }


    .home-testimonial-card__message {
        min-height: 0;
        max-height: none;

        -webkit-line-clamp: 6;
    }


    .home-testimonials-modern__button {
        width: 100%;
    }

    .home-testimonials-grid {
        grid-template-columns: 1fr;
    }


    /* Page */

    .testimonial-page-intro {
        padding: 30px 0;
    }


    .testimonial-breadcrumb {
        margin-bottom: 18px;
    }


    .testimonial-page-intro__content h1 {
        font-size: 28px;
    }


    .testimonial-page-intro__content > p:last-child {
        font-size: 13px;
    }


    .testimonial-page {
        padding: 42px 0 48px;
    }


    .testimonial-page__grid {
        grid-template-columns: 1fr;

        gap: 17px;
    }


    .testimonial-card {
        padding: 22px;
    }

}