.ytm-wrap {
    position: relative;
    direction: rtl;
}

.ytm-wrap.has-dots {
    padding: 14px;
    background-image: radial-gradient(rgba(17, 17, 17, .07) 1.4px, transparent 1.4px);
    background-size: 28px 28px;
}

.ytm-desktop {
    column-count: var(--ytm-columns, 3);
    column-gap: 16px;
}

.ytm-card {
    width: 100%;
    display: inline-flex;
    vertical-align: top;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: space-between;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin: 0 0 16px;
    padding: 22px;
    background: #fff;
    color: #111;
    border-radius: 12px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

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

.ytm-card.is-highlighted {
    background: #243cab;
    color: #fff;
}

.ytm-size-small { min-height: 235px; }
.ytm-size-medium { min-height: 300px; }
.ytm-size-large { min-height: 365px; }

.ytm-quote {
    font-size: 18px;
    line-height: 1.95;
    text-align: right;
    font-weight: 400;
}

.ytm-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
}

.ytm-person {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ytm-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.ytm-avatar-placeholder {
    background: rgba(0,0,0,.08);
}

.is-highlighted .ytm-avatar-placeholder {
    background: rgba(255,255,255,.18);
}

.ytm-person-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.4;
}

.ytm-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.ytm-role {
    font-size: 10px;
    opacity: .7;
    white-space: nowrap;
}

.ytm-brand {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 64px;
    max-width: 110px;
    font-weight: 700;
    font-size: 15px;
    opacity: .55;
}

.is-highlighted .ytm-brand {
    opacity: 1;
}

.ytm-brand img {
    display: block;
    max-width: 100%;
    width: auto;
    max-height: 30px;
    object-fit: contain;
}

/* Mobile carousel is self-contained and does not require Swiper CSS/JS. */
.ytm-mobile {
    display: none;
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 32px;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.ytm-mobile .swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: max-content;
    min-width: 100%;
    will-change: transform;
    transform: translate3d(0,0,0);
}

.ytm-mobile .swiper-slide {
    height: auto;
    min-width: 0;
    display: flex;
    box-sizing: border-box;
}

.ytm-mobile .ytm-card {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0 !important;
    margin: 0;
}

.ytm-mobile .swiper-pagination {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 4px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 12px;
}

.ytm-mobile .swiper-pagination-bullet {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(36,60,171,.22);
    cursor: pointer;
    transition: width .25s ease, background-color .25s ease, border-radius .25s ease;
}

.ytm-mobile .swiper-pagination-bullet-active {
    width: 20px;
    border-radius: 99px;
    background: #243cab;
}

@media (max-width: 1024px) and (min-width: 768px) {
    .ytm-desktop {
        column-count: 2;
    }
}

@media (max-width: 767px) {
    .ytm-wrap.has-dots {
        padding: 10px 0 6px;
    }

    .ytm-desktop {
        display: none !important;
    }

    .ytm-mobile {
        display: block !important;
    }

    .ytm-quote {
        font-size: 16px;
        line-height: 1.9;
    }

    .ytm-card {
        padding: 20px;
    }

    .ytm-card:hover {
        transform: none;
    }
}
