/* ── Reduced Motion ─────────────────────────── */
@media(prefers-reduced-motion:reduce){
    .tcs-slide,.tcs-dot,.tcs-btn{transition:none!important;animation:none!important}
}

/* ── Wrapper ─────────────────────────────────── */
.tcs-wrapper{
    width:100%;
    position:relative;
    overflow:visible;
    --tcs-slide-gap: 15px;
}
.tcs-layout-large .tcs-card{min-height:320px}
/* ── Track + Slides Container ─────────────────── */
.tcs-track{position:relative;contain:paint;overflow:visible}
.tcs-slides-container{position:relative;overflow:visible}

/* ── Slide Base (fade / default) ─────────────── */
.tcs-slide{display:none;width:100%}
.tcs-slide.active{display:block}

/* ── Fade Animation ──────────────────────────── */
.tcs-wrapper[data-animation="fade"] .tcs-slide.active{
    animation:tcsFade .4s ease forwards
}
@keyframes tcsFade{
    from{opacity:0;transform:translateY(6px)}
    to  {opacity:1;transform:translateY(0)}
}

/* ── Slide Animation ─────────────────────────── */
/* Container becomes a flex track; each slide is always visible */
.tcs-wrapper[data-animation="slide"] .tcs-slides-container{
    display:flex;
    will-change:transform;
    gap: var(--tcs-slide-gap);
}
/* wrapper must NOT clip so the flex track can slide */
.tcs-wrapper[data-animation="slide"]{overflow:visible}

.tcs-wrapper[data-animation="slide"] .tcs-slide{
    display:flex!important;   /* always visible — transform does the hiding */
    flex:0 0 100%;
    min-width:100%;
    max-width:100%;
    align-items: center;
}
/* In slide mode we don\'t use the fade active-class animation */
.tcs-wrapper[data-animation="slide"] .tcs-slide.active{animation:none}

/* ── Link Wrap ───────────────────────────────── */
.tcs-slide-link-wrap{text-decoration:none;color:inherit;display:block}
.tcs-slide-link-wrap:focus-visible{outline:3px solid #2563eb;outline-offset:4px;border-radius:16px}

/* ─────────────────────────────────────────────── */
/* LARGE LAYOUT                                    */
/* ─────────────────────────────────────────────── */
.tcs-layout-large .tcs-card{display:flex;align-items:center;gap:40px;border-radius:16px;padding:48px 52px;min-height:280px}
.tcs-layout-large.tcs-img-right .tcs-card{flex-direction:row}
.tcs-layout-large.tcs-img-left  .tcs-card{flex-direction:row-reverse}
.tcs-layout-large .tcs-left{flex:1.3;display:flex;flex-direction:column;justify-content:center}
.tcs-layout-large .tcs-right{flex:1;display:flex;justify-content:center;align-items:center}
.tcs-layout-large .tcs-image-wrap{width:100%;display:flex;align-items:center;justify-content:center}
.tcs-layout-large .tcs-image{
    width:100%;max-width:380px;height:300px;
    object-fit:cover;display:block;aspect-ratio:380/300;
}

/* ─────────────────────────────────────────────── */
/* SMALL LAYOUT                                    */
/* ─────────────────────────────────────────────── */
.tcs-layout-small .tcs-card{
    display:flex;
    align-items:center;
    gap:12px;
    border-radius:12px;
    padding:5px 5px 5px 10px;
    background-color: #FFFFFF;
    cursor: default;
    width: 100%;
}
.tcs-layout-small .tcs-small-image{flex-shrink:0}
.tcs-layout-small .tcs-image-wrap{display:flex;align-items:center;justify-content:center}
.tcs-layout-small .tcs-image{
    width:90px;height:90px;
    object-fit:contain;display:block;aspect-ratio:1/1;
}
.tcs-layout-small .tcs-small-text{flex:1;display:flex;flex-direction:column;justify-content:center;gap:6px}

/* Custom small-layout styles (global) */

.tcs-layout-small .tcs-title,
.tcs-layout-small .tcs-image{
    user-select: none;
}

.tcs-layout-small .tcs-title {
    font-size: 20px;
    font-weight: 600;
}

.tcs-layout-small .tcs-track{
    box-shadow: 0px 0px 24px 10px #CAD5E966;
    border-radius: 12px;
    background: #CAD5E966 !important;
}

.tcs-layout-small .tcs-content p {
    font-size: 14px;
    color: #475569;
}

.tcs-layout-small .tcs-content {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tcs-layout-small .tcs-small-text {
    padding: 12px;
}

.tcs-layout-small .tcs-image-wrap {
    width: 100px;
    height: 100px;
}

.tcs-layout-small .tcs-image {
    width: auto !important;
    height: auto !important;
}

/* ─────────────────────────────────────────────── */
/* TYPOGRAPHY                                      */
/* ─────────────────────────────────────────────── */
.tcs-title{margin:0 0 14px;padding:0;line-height:1.3}
.tcs-layout-small .tcs-title{margin:0 0 6px}
.tcs-content{line-height:1.8;margin:0;user-select:none;}
.tcs-content p{margin:0 0 12px;color: inherit;}
.tcs-content p:last-child{margin-bottom:0}

/* ─────────────────────────────────────────────── */
/* NAVIGATION                                      */
/* ─────────────────────────────────────────────── */
.tcs-nav{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:24px;flex-wrap:wrap}

.tcs-btn{
    min-width:44px;min-height:44px;width:44px;height:44px;
    border-radius:50%;border:1.5px solid #d1d9f0;
    background:#fff;cursor:pointer;
    display:inline-flex;align-items:center;justify-content:center;
    transition:background .2s,border-color .2s,transform .15s;
    padding:0;outline:none;flex-shrink:0;
}
.tcs-wrapper[data-arrow-zoom="yes"] .tcs-btn:hover{transform:scale(1.08)}
.tcs-wrapper[data-arrow-zoom="yes"] .tcs-btn:active{transform:scale(.95)}
.tcs-btn:focus-visible{outline:3px solid #2563eb;outline-offset:2px;border-color:#2563eb}
.tcs-btn svg{width:18px;height:18px;pointer-events:none;stroke:#2563eb;transition:stroke .2s;flex-shrink:0}
.tcs-btn[disabled]{opacity:.4;cursor:not-allowed;pointer-events:none}

.tcs-dots{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:center}
.tcs-dot{
    height:10px;width:10px;border-radius:20px;background:#c7d2e8;
    cursor:pointer;border:none;padding:0;
    transition:width .3s,background .3s !important;display:inline-block;outline:none;
    position:relative;
}
.tcs-dot:focus-visible{outline:2px solid #2563eb;outline-offset:3px}
.tcs-dot.active{width:28px;background:#2563eb !important}

/* Ensure tablist buttons look consistent */
.tcs-dots [role="tab"] { background: #c7d2e8; }

/* Keep the safer, scoped rule */
.tcs-wrapper[data-animation="slide"] .tcs-slide[aria-hidden="true"] { pointer-events:none; }

.tcs-sr-only{
    position:absolute;width:1px;height:1px;
    padding:0;margin:-1px;overflow:hidden;
    clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* ─────────────────────────────────────────────── */
/* RESPONSIVE                                      */
/* ─────────────────────────────────────────────── */
@media(max-width:1024px){
    .tcs-layout-large .tcs-card{gap:28px;padding:36px 36px}
    .tcs-layout-large .tcs-image{max-width:300px;height:250px}
}
@media(max-width:767px){
    .tcs-layout-large .tcs-card{
        flex-direction:column!important;
        padding:28px 22px;gap:24px;
    }
    .tcs-layout-large .tcs-image{
        max-width:100%;width:100%;height:220px;aspect-ratio:16/9;
    }
    .tcs-layout-large .tcs-left,
    .tcs-layout-large .tcs-right{width:100%}
    .tcs-layout-small .tcs-card{padding:16px 18px;gap:16px;
        flex-direction:column;
    }
    .tcs-layout-small .tcs-small-image{
        display:flex;width:100%;justify-content:center;
    }
    .tcs-layout-small .tcs-image{width:70px;height:70px}

    /* Mobile-specific overrides requested */
    .tcs-layout-small .tcs-title {
        font-size: 18px !important;
    }

    .tcs-layout-small .tcs-image {
        width: auto !important;
        height: auto !important;
    }

    .tcs-layout-small .tcs-small-text {
        width: 100%;
    }

    .tcs-layout-small .tcs-card {
        padding: 10px 10px 6px 12px !important;
    }
    .tcs-btn{min-width:44px;min-height:44px;width:44px;height:44px}
    .tcs-btn svg{width:16px;height:16px}
}

@media (min-width: 768px) and (max-width: 950px) {
    .tcs-layout-small .tcs-title {
        font-size: 18px !important;
    }
}