/* ================================
   Testimonials / Reviews Grid
================================ */

.-ycw-section.-ycwt-yctestgrid,
.-ycw-section.-ycwt-ycrevw {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgb(255 111 0 / 6%) 0, transparent 32%),
        radial-gradient(circle at 90% 82%, rgb(0 0 0 / 5%) 0, transparent 34%),
        linear-gradient(180deg, var(--background) 0%, #fffaf2 100%);
}

.-ycw-section.-ycwt-yctestgrid::before,
.-ycw-section.-ycwt-yctestgrid::after,
.-ycw-section.-ycwt-ycrevw::before,
.-ycw-section.-ycwt-ycrevw::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 999px;
}

.-ycw-section.-ycwt-yctestgrid::before,
.-ycw-section.-ycwt-ycrevw::before {
    width: 360px;
    height: 360px;
    inset-inline-start: -180px;
    top: 80px;
    background: rgb(255 111 0 / 6%);
}

.-ycw-section.-ycwt-yctestgrid::after,
.-ycw-section.-ycwt-ycrevw::after {
    width: 260px;
    height: 260px;
    inset-inline-end: -110px;
    bottom: 60px;
    border: 38px solid rgb(0 0 0 / 4%);
}

.-ycwt-ycrevw .-dw-h4 {
    background: #ffffff;
}

/* ================================
   Wrapper
================================ */

.yctg-wrap {
    position: relative;
    z-index: 2;
    max-width: 1250px;
    margin: 0 auto;
}

/* ================================
   Header
================================ */

.yctg-head {
    max-width: 650px;
    margin: 0 auto 34px;
    text-align: center;
}

.yctg-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    margin: 0 auto 15px;
    padding: 7px 15px;
    border: 1px solid rgb(255 111 0 / 10%);
    border-radius: 999px;
    background: #ffffff;
    color: var(--uicolor);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 900;
    box-shadow: 0 10px 26px rgb(0 0 0 / 4%);
}

.yctg-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 5px rgb(255 111 0 / 10%);
}

.yctg-title {
    margin: 0 0 12px;
    color: var(--primary-text);
    font-size: clamp(32px, 3.8vw, 48px);
    line-height: 1.2;
    font-weight: 950;
    letter-spacing: -.45px;
}

.yctg-desc {
    max-width: 620px;
    margin: 0 auto;
    color: var(--secondarytext);
    font-size: 16px;
    line-height: 1.9;
    font-weight: 500;
}

/* ================================
   Columns Layout
================================ */

.yctg-cols {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    margin-top: 28px;
}

/* Masonry mode */
.yctg-cols.Reviews-pox {
    display: block;
    column-count: 3;
    column-gap: 20px;
}

.yctg-cols.Reviews-pox > .yctg-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 20px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

.yctg-col {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ================================
   Card
================================ */

.yctg-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgb(0 0 0 / 7%);
    border-radius: 24px;
    background:
        radial-gradient(circle at 0 0, rgb(255 111 0 / 6%) 0, transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fffaf2 100%);
    box-shadow: 0 14px 38px rgb(0 0 0 / 6%);
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;
}

.yctg-card::before {
    content: "";
    position: absolute;
    inset-block: 22px;
    inset-inline-start: 0;
    z-index: 2;
    width: 4px;
    border-radius: 999px;
    background: var(--uicolor);
    opacity: 0;
    transition: opacity .25s ease;
}

.yctg-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset-inline-end: -62px;
    top: -62px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgb(255 111 0 / 7%);
    pointer-events: none;
    transition:
        transform .32s ease,
        opacity .32s ease;
}

.yctg-card:hover {
    transform: translateY(-6px);
    border-color: rgb(255 111 0 / 16%);
    box-shadow: 0 26px 62px rgb(0 0 0 / 12%);
}

.yctg-card:hover::before {
    opacity: 1;
}

.yctg-card:hover::after {
    transform: scale(1.12);
}

/* ================================
   Top Row
================================ */

.yctg-top {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed rgb(0 0 0 / 12%);
}

.yctg-user {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ================================
   Avatar
================================ */

.yctg-avatar {
    position: relative;
    overflow: hidden;
    width: 54px;
    min-width: 54px;
    height: 54px;
    border: 2px solid rgb(255 111 0 / 10%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 25% 18%, rgb(255 111 0 / 12%) 0, transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fff3df 100%);
    color: var(--uicolor);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgb(0 0 0 / 7%);
}

.yctg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ================================
   Meta
================================ */

.yctg-meta {
    min-width: 0;
    flex: 1;
}

.yctg-name {
    max-width: clamp(140px, 22vw, 240px);
    overflow: hidden;
    color: var(--primary-text);
    font-size: 19px;
    line-height: 1.35;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.yctg-username {
    max-width: clamp(140px, 22vw, 240px);
    overflow: hidden;
    margin-top: 4px;
    color: var(--secondarytext);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.yctg-role {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: max-content;
    margin-top: 8px;
    padding: 5px 10px;
    border: 1px solid rgb(0 0 0 / 7%);
    border-radius: 999px;
    background: rgb(255 111 0 / 7%);
    color: var(--uicolor);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 800;
    white-space: nowrap;
}

/* ================================
   Body
================================ */

.yctg-text {
    position: relative;
    z-index: 3;
    margin: 0;
    color: var(--secondarytext);
    font-size: 16px;
    line-height: 1.85;
    font-weight: 500;
}

/* ================================
   Stars
================================ */

.custreviews-logos-context > .stars-avg {
    position: relative;
    display: block;
    width: fit-content;
    margin-top: 16px;
    color: #e1e1e1;
    direction: ltr;
    font-size: 15px;
    line-height: 1;
}

.custreviews-logos-context > .stars-avg > .stars-avg-back,
.custreviews-logos-context > .stars-avg > .stars-avg-front {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.custreviews-logos-context > .stars-avg > .stars-avg-back > i {
    font-weight: 300;
}

.custreviews-logos-context .stars-avg i {
    padding: 0 1px;
}

.custreviews-logos-context .stars-avg > .stars-avg-front {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--percent);
    overflow: hidden;
    color: #FF6F00;
    flex-wrap: nowrap;
    filter: drop-shadow(0 6px 10px rgb(255 111 0 / 14%));
}

/* ================================
   Responsive
================================ */

@media (max-width: 1100px) {
    .yctg-title {
        font-size: 38px;
    }

    .yctg-cols.Reviews-pox {
        column-count: 2;
    }

    .yctg-col {
        flex: 1;
        min-width: 280px;
    }

    .yctg-card {
        padding: 20px;
        border-radius: 22px;
    }

    .yctg-text {
        font-size: 15px;
    }
}

@media (max-width: 720px) {
    .-ycw-section.-ycwt-yctestgrid::before,
    .-ycw-section.-ycwt-yctestgrid::after,
    .-ycw-section.-ycwt-ycrevw::before,
    .-ycw-section.-ycwt-ycrevw::after {
        display: none;
    }

    .yctg-head {
        margin-bottom: 24px;
    }

    .yctg-title {
        font-size: 30px;
        line-height: 1.3;
    }

    .yctg-desc {
        font-size: 14px;
        line-height: 1.8;
    }

    .yctg-cols,
    .yctg-cols.Reviews-pox {
        margin-top: 20px;
    }

    .yctg-cols.Reviews-pox {
        column-count: 1;
    }

    .yctg-col {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .yctg-card {
        padding: 17px 15px;
        border-radius: 18px;
    }

    .yctg-top {
        gap: 10px;
        margin-bottom: 13px;
        padding-bottom: 13px;
    }

    .yctg-avatar {
        width: 46px;
        min-width: 46px;
        height: 46px;
        font-size: 15px;
    }

    .yctg-name {
        max-width: 190px;
        font-size: 17px;
    }

    .yctg-username {
        max-width: 190px;
        font-size: 12px;
    }

    .yctg-role {
        padding: 5px 9px;
        font-size: 12px;
    }

    .yctg-text {
        font-size: 14px;
        line-height: 1.8;
    }

    .custreviews-logos-context > .stars-avg {
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    .yctg-card {
        padding: 15px 13px;
    }

    .yctg-top {
        align-items: flex-start;
    }

    .yctg-user {
        gap: 9px;
    }

    .yctg-avatar {
        width: 42px;
        min-width: 42px;
        height: 42px;
    }

    .yctg-name,
    .yctg-username {
        max-width: 150px;
    }

    .yctg-role {
        margin-top: 6px;
    }
}