/* =============================================================
   CEW — TESTIMONIAL CAROUSEL  v2
   Primary #000000 | White cards | Light gray section bg
   ============================================================= */

/* ── SECTION ── */
.cew-tc-section {
    position: relative;
    width: 100%;
    padding: 56px 0px 60px;
    background: #f4f4f4;
    box-sizing: border-box;
    overflow: hidden;
}

/* ── HEADER ── */
.cew-tc-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 44px;
    padding: 0px 40px;
}

.cew-tc-header-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Badge pill */
.cew-tc-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 16px;
    border: 1px solid #d4d4d4;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    width: fit-content;
    letter-spacing: 0.01em;
}

/* Heading */
.cew-tc-heading {
    margin: 0;
    padding: 0;
    border: none;
}

.cew-tc-h-bold {
    display: block;
    font-size: 35px;
    font-weight: 700;
    color: #111;
    line-height: 1.15;
}

.cew-tc-h-muted {
    display: block;
    font-size: 35px;
    font-weight: 700;
    color: black;
    line-height: 1.15;
}

/* CTA button */
.cew-tc-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 26px;
    background: #0059e1 !important;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.22s, transform 0.18s;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top:auto !important;
}

.cew-tc-cta-btn:hover {
    background: #333;
    transform: translateY(-1px);
    color: white !important;
}

/* ── CAROUSEL OUTER ── */
.cew-tc-carousel-outer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

/* ── VIEWPORT ── */
.cew-tc-viewport {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

/* ── TRACK ── */
.cew-tc-track {
    display: flex;
    gap: 20px;
    /*transition: transform 0.48s cubic-bezier(0.4, 0, 0.2, 1);*/
    will-change: transform;
    align-items: stretch;
}

/* ── SLIDE ── */
.cew-tc-slide {
    flex:0 0 calc(29.333% - 14px);
    min-width: 0;
    box-sizing: border-box;
    display: flex;
}

/* ── CARD BASE — same look for BOTH text & video ── */
.cew-tc-card {
    width: 100%;
    background: #fff;
    border-radius: 18px;
    padding: 22px 20px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 14px;
    /* NO heavy box shadow — just a subtle border */
    border: 1px solid #ebebeb;
    transition: border-color 0.25s;
    position: relative;
    overflow: hidden;
}

/* VIDEO CARD — full-bleed, no padding */
.cew-tc-card--video {
    padding: 0;
    border: none;
    background: #000;
    overflow: hidden;
    gap: 0;
}

/* ── VIDEO COVER (full-bleed container) ── */
.cew-tc-video-cover {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 480px;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    flex: 1;
}

.cew-tc-video-cover .cew-tc-thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 0.35s ease;
}

.cew-tc-video-cover:hover .cew-tc-thumb-img {
    transform: scale(1.03);
}

/* Dark gradient — fades top and bottom for text legibility */
.cew-tc-video-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 40%),
        linear-gradient(to top,    rgba(0,0,0,0.55) 0%, transparent 40%);
    z-index: 1;
    pointer-events: none;
}

/* ── AUTHOR ROW overlaid at top of video ── */
.cew-tc-author-row--video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 16px 16px 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cew-tc-name--video {
    color: #fff !important;
}

.cew-tc-role--video {
    color: rgba(255,255,255,0.75);
}

/* Social icon on video — white glass style */
.cew-tc-author-row--video .cew-tc-social {
    background: rgba(255,255,255,0.2);
    color: #fff;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cew-tc-author-row--video .cew-tc-social:hover {
    background: rgba(255,255,255,0.38);
    color: #fff;
}

/* ── STARS overlaid at bottom of video ── */
.cew-tc-card-footer--video {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 0 16px 16px;
    margin-top: 0;
}

/* ── AUTHOR ROW ── */
.cew-tc-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cew-tc-avatar {
    width: 44px !important; 
    height: 44px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0;
    background: #e8e8e8;
}

.cew-tc-author-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cew-tc-name {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.cew-tc-role {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* ── TWITTER ICON ── */
.cew-tc-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: #f4f4f4;
    color: #666;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.cew-tc-social:hover {
    background: #111;
    color: #fff;
}

/* ── VIDEO THUMBNAIL (contained inside white card) ── */
.cew-tc-thumb-wrap {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #eee;
    /* 16:9 aspect ratio */
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
}

.cew-tc-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.cew-tc-thumb-wrap:hover .cew-tc-thumb-img {
    transform: scale(1.03);
}

/* play overlay — sits above gradient, centered */
.cew-tc-play-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.25s;
}

.cew-tc-video-cover:hover .cew-tc-play-overlay {
    background: rgba(0, 0, 0, 0.12);
}

/* ── PLAY BUTTON ── */
.cew-tc-play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #000000;
    background: rgba(255, 156, 8, 0.15);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.22s, transform 0.22s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cew-tc-play-btn:hover {
    background: #000000;
    color: #fff;
    transform: scale(1.1);
}

/* ── NATIVE VIDEO (hosted) ── */
.cew-tc-hosted-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    z-index: 1;
    /* hidden behind overlay until play is clicked */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* When video is playing: show video, hide overlay elements */
.cew-tc-video-cover.is-playing .cew-tc-hosted-video {
    opacity: 1;
    pointer-events: auto;
}

.cew-tc-video-cover.is-playing .cew-tc-thumb-static {
    opacity: 0;
}

.cew-tc-video-cover.is-playing .cew-tc-play-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Show native controls only when playing */
.cew-tc-video-cover.is-playing .cew-tc-hosted-video {
    /* browsers show controls via JS .setAttribute("controls","") */
}

/* ── VIDEO PLACEHOLDER (no video uploaded yet) ── */
.cew-tc-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #1a1a2e;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    z-index: 1;
}

.cew-tc-video-placeholder svg {
    opacity: 0.4;
}

/* ── QUOTE TEXT ── */
.cew-tc-text {
    margin: 74% 0px 0px 0px !important;
    padding: 0;
    border: none;
    font-size: 13.5px;
    line-height: 1.65;
    color: #333;
    flex: 1;
}

.cew-tc-text strong,
.cew-tc-text b {
    font-weight: 700;
    color: #111;
}

/* ── CARD FOOTER (stars only, no date) ── */
.cew-tc-card-footer {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 4px;
}

.cew-tc-stars {
    display: flex;
    gap: 2px;
    color: #000000;
}

.cew-tc-stars svg {
    display: block;
    flex-shrink: 0;
}

/* ── ARROWS ── */
.cew-tc-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #ddd;
    background: #fff;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    z-index: 2;
}

.cew-tc-arrow--prev { margin-right: 12px;margin-left: 12px; }
.cew-tc-arrow--next { margin-left: 12px;margin-left: 12px; }

.cew-tc-arrow:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.cew-tc-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── DOTS ── */
.cew-tc-dots {
  display: none !important;
}

.cew-tc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, width 0.25s, border-radius 0.25s;
}

.cew-tc-dot.is-active {
    width: 22px;
    border-radius: 4px;
    background: #000000;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* TABLET ≤ 900px → show 2 cards */
@media (max-width: 900px) {
    .cew-tc-section {
        padding: 40px 24px 48px;
    }

    .cew-tc-slide {
        flex: 0 0 calc(50% - 10px);
    }

    .cew-tc-h-bold,
    .cew-tc-h-muted {
        font-size: 28px;
    }

    .cew-tc-arrow--prev { margin-right: 8px; }
    .cew-tc-arrow--next { margin-left: 8px; }
}

/* MOBILE ≤ 600px → show 1 card, stack header */
@media (max-width: 600px) {
    .cew-tc-section {
        padding: 32px 16px 40px;
    }

    .cew-tc-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 28px;
        padding: 0px !important;
    }

    .cew-tc-h-bold,
    .cew-tc-h-muted {
        font-size: 24px;
    }

    .cew-tc-slide {
        flex: 0 0 calc(100% - 0px);
    }

    .cew-tc-arrow {
        width: 34px;
        height: 34px;
    }

    .cew-tc-arrow--prev { margin-right: 6px; }
    .cew-tc-arrow--next { margin-left: 6px; }

    .cew-tc-track {
        gap: 12px;
    }
}


@media(max-width:767px){
    .cew-tc-header-left{
        align-items: center;
        justify-content: center;
        width: 100% !important;
    }
    .CTABuTtON{
    width: 100%;
    display: flex;
    justify-content: center;
    }
}