/* =========================================================
   PsychCura · Public Testimonials
========================================================= */

.pc-testimonials-v2 {
    --pc-tp-ink: #10243e;
    --pc-tp-muted: #677889;
    --pc-tp-line: #dfe9ed;
    --pc-tp-primary: #0cb6cf;
    --pc-tp-primary-dark: #078da3;
    --pc-tp-soft: #f5fbfc;
    --pc-tp-gold: #f3a51b;

    position: relative;
    overflow: hidden;

    padding:
        88px 0;

    background:
        radial-gradient(circle at 12% 5%,
            rgba(12, 182, 207, .10),
            transparent 32%),
        radial-gradient(circle at 92% 85%,
            rgba(16, 36, 62, .07),
            transparent 30%),
        #f8fbfc;
}


.pc-testimonials-v2::before {
    content: "";

    position: absolute;

    width: 380px;
    height: 380px;

    right: -180px;
    top: -190px;

    border-radius: 999px;

    border:
        55px solid rgba(12, 182, 207, .05);

    pointer-events: none;
}


/* =========================================================
   Header
========================================================= */

.pc-tp-head {
    position: relative;
    z-index: 1;

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr) minmax(330px, .85fr);

    gap: 48px;

    align-items: end;

    margin-bottom: 38px;
}


.pc-tp-eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 12px;

    color:
        var(--pc-tp-primary-dark);

    font-size: .76rem;

    font-weight: 800;

    letter-spacing: .14em;

    text-transform: uppercase;
}


.pc-tp-head h2 {
    max-width: 720px;

    margin:
        0 0 14px;

    color:
        var(--pc-tp-ink);

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(2.15rem,
            4vw,
            4rem);

    line-height: 1.08;

    letter-spacing: -.035em;
}


.pc-tp-intro {
    max-width: 680px;

    margin: 0;

    color:
        var(--pc-tp-muted);

    font-size: 1rem;

    line-height: 1.75;
}


/* =========================================================
   Trust card
========================================================= */

.pc-tp-trust {
    padding: 22px;

    border:
        1px solid rgba(16, 36, 62, .08);

    border-radius: 22px;

    background:
        rgba(255, 255, 255, .88);

    box-shadow:
        0 18px 45px rgba(15, 23, 42, .07);
}


.pc-tp-google-row {
    display: flex;

    align-items: center;

    gap: 12px;
}


.pc-tp-google-mark {
    width: 46px;
    height: 46px;

    flex:
        0 0 46px;

    border-radius: 15px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    color: #4285f4;

    background: #f5f8ff;

    font-size: 1.25rem;
}


.pc-tp-google-copy strong {
    display: block;

    color:
        var(--pc-tp-ink);

    font-size: .95rem;
}


.pc-tp-google-rating {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-top: 3px;
}


.pc-tp-google-rating b {
    color:
        #1f2937;

    font-size: 1.05rem;
}


.pc-tp-google-stars {
    color:
        var(--pc-tp-gold);

    letter-spacing: .05em;
}


.pc-tp-google-copy small {
    display: block;

    margin-top: 4px;

    color:
        #81909e;

    font-size: .72rem;
}


.pc-tp-trust-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 17px;
}


.pc-tp-trust-actions a,
.pc-tp-trust-actions button {
    min-height: 39px;

    border-radius: 999px;

    padding:
        0 14px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    font-size: .77rem;

    font-weight: 700;

    text-decoration: none;
}


.pc-tp-trust-primary {
    border: 0;

    color: #fff;

    background:
        var(--pc-tp-primary);
}


.pc-tp-trust-primary:hover {
    color: #fff;

    background:
        var(--pc-tp-primary-dark);
}


.pc-tp-trust-light {
    border:
        1px solid #d8e6eb;

    color:
        #385162;

    background:
        #fff;
}


.pc-tp-trust-light:hover {
    border-color:
        #a7dae2;

    color:
        var(--pc-tp-primary-dark);
}


/* =========================================================
   Carousel
========================================================= */

.pc-tp-carousel {
    position: relative;
    z-index: 1;
}


.pc-tp-viewport {
    overflow: hidden;
}


.pc-tp-track {
    display: grid;

    grid-auto-flow: column;

    grid-auto-columns:
        calc((100% - 48px) / 3);

    gap: 24px;

    overflow-x: auto;

    padding:
        6px 3px 18px;

    scroll-snap-type:
        x mandatory;

    scrollbar-width: none;

    overscroll-behavior-inline:
        contain;
}


.pc-tp-track::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   Card
========================================================= */

.pc-tp-card {
    position: relative;

    min-height: 360px;

    padding: 24px;

    border:
        1px solid var(--pc-tp-line);

    border-radius: 22px;

    display: flex;

    flex-direction: column;

    scroll-snap-align: start;

    background: #fff;

    box-shadow:
        0 12px 32px rgba(15, 23, 42, .055);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}


.pc-tp-card::after {
    content: "“";

    position: absolute;

    right: 18px;
    top: -11px;

    color:
        rgba(12, 182, 207, .08);

    font-family:
        Georgia,
        serif;

    font-size: 7rem;

    line-height: 1;

    pointer-events: none;
}


.pc-tp-card:hover {
    transform:
        translateY(-3px);

    border-color:
        #c7e7ec;

    box-shadow:
        0 20px 42px rgba(15, 23, 42, .085);
}


.pc-tp-card-top {
    position: relative;
    z-index: 1;

    display: flex;

    align-items: center;

    gap: 13px;
}


.pc-tp-avatar {
    width: 50px;
    height: 50px;

    flex:
        0 0 50px;

    border-radius: 16px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    color: #fff;

    background:
        linear-gradient(145deg,
            #10243e,
            #0cb6cf);

    box-shadow:
        0 8px 18px rgba(16, 36, 62, .16);

    font-weight: 800;

    letter-spacing: .03em;
}


.pc-tp-stars {
    color:
        var(--pc-tp-gold);

    font-size: .82rem;

    letter-spacing: .07em;
}


.pc-tp-source {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    margin-top: 5px;

    color:
        #748492;

    font-size: .68rem;

    font-weight: 700;
}


.pc-tp-source.is-google {
    color:
        #557081;
}

.pc-tp-source-link {
    width: fit-content;

    text-decoration: none;

    cursor: pointer;

    transition:
        color .18s ease,
        opacity .18s ease;
}


.pc-tp-source-link:hover {
    color:
        var(--pc-tp-primary-dark);

    text-decoration: underline;
}


.pc-tp-source-link.is-google:hover {
    color: #3367d6;
}


.pc-tp-source-external {
    margin-left: 2px;

    font-size: .62rem;

    opacity: .7;
}


/* =========================================================
   Quote
========================================================= */

.pc-tp-quote {
    position: relative;
    z-index: 1;

    margin:
        24px 0 14px;

    color:
        #394d5e;

    font-size: .95rem;

    line-height: 1.75;

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 7;
    line-clamp: 7;

    overflow: hidden;
}


.pc-tp-read-more {
    width: fit-content;

    margin:
        -2px 0 16px;

    padding: 0;

    border: 0;

    color:
        var(--pc-tp-primary-dark);

    background: transparent;

    font-size: .76rem;

    font-weight: 800;
}


.pc-tp-read-more:hover {
    text-decoration: underline;
}


/* =========================================================
   Person
========================================================= */

.pc-tp-person {
    margin-top: auto;

    padding-top: 16px;

    border-top:
        1px solid #edf2f4;
}


.pc-tp-person strong {
    display: block;

    color:
        #142b41;

    font-size: .9rem;

    font-weight: 800;
}


.pc-tp-person span {
    display: block;

    margin-top: 3px;

    color:
        #82919d;

    font-size: .73rem;
}


/* =========================================================
   Controls
========================================================= */

.pc-tp-controls {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    margin-top: 12px;
}


.pc-tp-count {
    color:
        #718290;

    font-size: .78rem;

    font-weight: 700;
}


.pc-tp-arrows {
    display: flex;

    gap: 8px;
}


.pc-tp-arrow {
    width: 44px;
    height: 44px;

    border:
        1px solid #d5e4e9;

    border-radius: 14px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    color:
        #1c4959;

    background: #fff;

    box-shadow:
        0 8px 18px rgba(15, 23, 42, .04);
}


.pc-tp-arrow:hover:not(:disabled) {
    border-color:
        var(--pc-tp-primary);

    color: #fff;

    background:
        var(--pc-tp-primary);
}


.pc-tp-arrow:disabled {
    opacity: .4;

    cursor: default;
}


/* =========================================================
   Loading skeleton
========================================================= */

.pc-tp-skeleton {
    min-height: 360px;

    border:
        1px solid #e5edf0;

    border-radius: 22px;

    scroll-snap-align: start;

    background:
        linear-gradient(100deg,
            #f4f7f8 20%,
            #ffffff 40%,
            #f4f7f8 60%);

    background-size:
        220% 100%;

    animation:
        pcTpSkeleton 1.35s linear infinite;
}


@keyframes pcTpSkeleton {

    to {
        background-position:
            -220% 0;
    }
}


.pc-tp-message {
    grid-column: 1 / -1;

    min-height: 220px;

    border:
        1px dashed #cee1e6;

    border-radius: 22px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 7px;

    text-align: center;

    color:
        #758592;

    background:
        rgba(255, 255, 255, .75);
}


.pc-tp-message i {
    color:
        var(--pc-tp-primary);

    font-size: 1.4rem;
}


.pc-tp-message strong {
    color:
        #294355;
}


/* =========================================================
   Full review modal
========================================================= */

.pc-tp-modal .modal-content {

    border: 0;

    border-radius: 24px;

    overflow: hidden;

    box-shadow:
        0 30px 85px rgba(15, 23, 42, .22);
}


.pc-tp-modal .modal-body {

    padding: 28px;
}


.pc-tp-modal-avatar {
    width: 52px;
    height: 52px;

    border-radius: 17px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    color:
        var(--pc-tp-primary-dark);

    background:
        #eafafd;

    font-size: 1.25rem;
}


.pc-tp-modal-stars {
    margin-top: 14px;

    color:
        var(--pc-tp-gold);

    letter-spacing: .08em;
}


.pc-tp-modal-quote {
    margin:
        20px 0;

    color:
        #394d5e;

    font-size: 1rem;

    line-height: 1.8;

    white-space: pre-line;
}


.pc-tp-modal-source {
    color:
        var(--pc-tp-primary-dark);

    font-size: .82rem;

    font-weight: 700;
}


/* =========================================================
   Tablet
========================================================= */

@media (max-width: 991.98px) {

    .pc-testimonials-v2 {
        padding:
            72px 0;
    }


    .pc-tp-head {
        grid-template-columns:
            1fr;

        gap: 26px;
    }


    .pc-tp-trust {
        max-width: 620px;
    }


    .pc-tp-track {
        grid-auto-columns:
            calc((100% - 20px) / 2);

        gap: 20px;
    }
}

/* =========================================================
   Small testimonial collections
========================================================= */

.pc-tp-track[data-count="1"] {
    grid-auto-flow: initial;
    grid-template-columns:
        minmax(320px, 520px);

    justify-content: center;

    overflow-x: visible;
}


.pc-tp-track[data-count="2"] {
    grid-auto-flow: initial;

    grid-template-columns:
        repeat(2,
            minmax(300px, 460px));

    justify-content: center;

    overflow-x: visible;
}


@media (max-width: 767.98px) {

    .pc-tp-track[data-count="1"],
    .pc-tp-track[data-count="2"] {

        display: grid;

        grid-template-columns:
            minmax(0, 1fr);

        overflow-x: visible;
    }
}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 640px) {

    .pc-testimonials-v2 {
        padding:
            58px 0;
    }


    .pc-tp-head h2 {
        font-size:
            clamp(2rem,
                11vw,
                3rem);
    }


    .pc-tp-trust {
        padding: 18px;
    }


    .pc-tp-trust-actions {
        display: grid;

        grid-template-columns:
            1fr 1fr;
    }


    .pc-tp-trust-actions a,

    .pc-tp-trust-actions button {

        width: 100%;
    }


    .pc-tp-track {
        grid-auto-columns:
            92%;

        gap: 14px;
    }


    .pc-tp-card,
    .pc-tp-skeleton {

        min-height:
            350px;
    }


    .pc-tp-card {
        padding: 21px;
    }


    .pc-tp-controls {
        margin-top: 8px;
    }
}


/* =========================================================
   Reduced motion
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .pc-tp-card,
    .pc-tp-skeleton {

        animation: none;

        transition: none;
    }


    .pc-tp-track {
        scroll-behavior: auto;
    }
}

.pc-tp-control-left {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 14px;
}


.pc-tp-view-all {
    padding: 0;

    border: 0;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    color:
        var(--pc-tp-primary-dark);

    background: transparent;

    font-size: .78rem;

    font-weight: 800;
}


.pc-tp-view-all:hover {
    text-decoration: underline;
}

/* =========================================================
   All testimonials modal
========================================================= */

.pc-tp-all-modal .modal-content {

    overflow: hidden;

    border: 0;

    border-radius: 26px;

    background:
        #f8fbfc;

    box-shadow:
        0 32px 90px rgba(15, 23, 42, .22);
}


.pc-tp-all-modal .modal-header {

    padding:
        26px 28px 20px;

    border-bottom:
        1px solid #e5ecef;

    align-items: flex-start;

    background: #fff;
}


.pc-tp-modal-kicker {
    display: block;

    margin-bottom: 6px;

    color:
        var(--pc-tp-primary-dark);

    font-size: .7rem;

    font-weight: 800;

    letter-spacing: .14em;

    text-transform: uppercase;
}


.pc-tp-all-modal .modal-title {

    color:
        var(--pc-tp-ink);

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(1.6rem,
            3vw,
            2.35rem);
}


.pc-tp-all-intro {
    max-width: 690px;

    margin:
        7px 0 0;

    color:
        var(--pc-tp-muted);

    font-size: .87rem;

    line-height: 1.6;
}


.pc-tp-all-modal .modal-body {

    padding: 25px 28px;
}


.pc-tp-all-grid {
    display: grid;

    grid-template-columns:
        repeat(2,
            minmax(0, 1fr));

    gap: 16px;
}


.pc-tp-all-item {
    padding: 22px;

    border:
        1px solid #e0e9ed;

    border-radius: 20px;

    background: #fff;

    box-shadow:
        0 8px 22px rgba(15, 23, 42, .04);
}


.pc-tp-all-item-top {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 15px;
}


.pc-tp-all-item .pc-tp-avatar {

    width: 44px;
    height: 44px;

    flex-basis: 44px;

    border-radius: 14px;
}


.pc-tp-all-item-name {
    color:
        #183149;

    font-size: .88rem;

    font-weight: 800;
}


.pc-tp-all-item-country {
    display: block;

    margin-top: 2px;

    color:
        #83919c;

    font-size: .7rem;
}


.pc-tp-all-item-rating {
    margin-left: auto;

    color:
        var(--pc-tp-gold);

    font-size: .74rem;

    letter-spacing: .05em;
}


.pc-tp-all-item-quote {
    margin: 0;

    color:
        #435766;

    font-size: .88rem;

    line-height: 1.7;

    white-space: pre-line;
}


.pc-tp-all-source {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    margin-top: 15px;

    color:
        #78909c;

    font-size: .68rem;

    font-weight: 700;
}


.pc-tp-all-modal .modal-footer {

    padding:
        15px 28px;

    border-top:
        1px solid #e5ecef;

    background: #fff;
}


@media (max-width: 767.98px) {

    .pc-tp-all-grid {
        grid-template-columns: 1fr;
    }


    .pc-tp-all-modal .modal-header,

    .pc-tp-all-modal .modal-body,

    .pc-tp-all-modal .modal-footer {

        padding-left: 18px;
        padding-right: 18px;
    }
}