.wic-slider,
.wic-slider * {
    box-sizing: border-box;
}

.wic-slider {
    --wic-accent: #ff3b1f;
    --wic-gap: 18px;
    --wic-per-view: 4;
    width: 100%;
    position: relative;
    direction: rtl;
    padding: 4px 2px 54px;
    isolation: isolate;
}

.wic-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 8px 2px 42px;
}

.wic-viewport::-webkit-scrollbar {
    display: none;
}

.wic-track {
    display: flex;
    gap: var(--wic-gap);
    align-items: stretch;
    flex-wrap: nowrap;
}

.wic-slide {
    flex: 0 0 calc((100% - (var(--wic-gap) * (var(--wic-per-view) - 1))) / var(--wic-per-view));
    min-width: 0;
    scroll-snap-align: start;
}

.wic-card {
    width: 100%;
    min-height: 100%;
    display: block;
    text-decoration: none !important;
    color: inherit;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, .09);
    border-radius: 12px;
    padding: 12px 12px 16px;
    box-shadow: 0 12px 30px rgba(20, 20, 20, .045);
    transition: transform .36s ease, box-shadow .36s ease, border-color .36s ease;
    position: relative;
    overflow: visible;
    z-index: 0;
}

.wic-card::before {
    content: "";
    position: absolute;
    left: calc(12% - .5px);
    bottom: -41px;
    width: 73px;
    height: 41px;
    background: rgba(17, 17, 17, .075);
    border-radius: 0 0 18px 18px;
    clip-path: polygon(1% 0, 99% 0, 56% 100%, 44% 100%);
    z-index: -2;
    pointer-events: none;
}

.wic-card::after {
    content: "";
    position: absolute;
    left: calc(12% + .5px);
    bottom: -40px;
    width: 71px;
    height: 40px;
    background: #fff;
    border-radius: 0 0 17px 17px;
    clip-path: polygon(1% 0, 99% 0, 56% 100%, 44% 100%);
    z-index: -1;
    transition: border-color .36s ease;
    pointer-events: none;
}

.wic-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--wic-accent), transparent 52%);
    box-shadow: 0 18px 42px rgba(20, 20, 20, .09);
}

.wic-card:hover::before {
    background: color-mix(in srgb, var(--wic-accent), transparent 58%);
}

.wic-card:hover::after {
    border-color: color-mix(in srgb, var(--wic-accent), transparent 58%);
}

.wic-media-wrap {
    width: 100%;
    aspect-ratio: 16 / 11.2;
    border-radius: 9px;
    overflow: hidden;
    background: #dedede;
    position: relative;
    display: block;
}

.wic-media {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    display: block;
    object-fit: cover !important;
    object-position: center center !important;
    background: #dedede;
    transform: scale(1.065);
    transition: transform .55s ease, filter .55s ease;
}

.wic-card:hover .wic-media {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    display: block;
    object-fit: cover !important;
    object-position: center center !important;
    background: #dedede;
    transform: scale(1.065);
    transition: transform .55s ease, filter .55s ease;
}

.wic-placeholder {
    background: linear-gradient(135deg, #d2d2d2, #b7b7b7);
}

.wic-divider {
    width: calc(100% - 24px);
    height: 1px;
    background: rgba(17, 17, 17, .12);
    margin: 13px auto 0;
}

.wic-content {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 18px 6px 0;
    min-height: 92px;
}

.wic-title {
    grid-column: 2;
    margin: 0;
    font-size: clamp(18px, 1.35vw, 25px);
    line-height: 1.55;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #111;
    text-align: right;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.55em * 2);
}

.wic-author {
    grid-column: 1;
    width: 58px;
    height: 58px;
    display: inline-flex;
    border-radius: 999px;
    background: #d9d9d9;
    overflow: hidden;
    box-shadow: 0 0 0 6px rgba(17, 17, 17, .025);
    transition: transform .36s ease, box-shadow .36s ease;
}

.wic-author img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wic-card:hover .wic-author {
    transform: scale(1.04);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--wic-accent), transparent 88%);
}

.wic-nav {
    display: none !important;
    position: absolute;
    inset-inline-start: 2px;
    top: -36px;
    align-items: center;
    gap: 8px;
    z-index: 3;
}

.wic-arrow {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(17, 17, 17, .1);
    border-radius: 999px;
    background: #fff;
    color: #111;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(20, 20, 20, .06);
    transition: transform .28s ease, background .28s ease, color .28s ease, border-color .28s ease;
}

.wic-arrow span {
    font-size: 28px;
    line-height: 1;
    margin-top: -3px;
}

.wic-arrow:hover {
    transform: translateY(-2px);
    background: var(--wic-accent);
    color: #fff;
    border-color: var(--wic-accent);
}

.wic-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    min-height: 16px;
}

.wic-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 17, 17, .2);
    cursor: pointer;
    transition: width .3s ease, background .3s ease, transform .3s ease;
}

.wic-dot.is-active {
    width: 22px;
    background: var(--wic-accent);
}

.wic-empty {
    width: 100%;
    padding: 22px;
    border: 1px dashed rgba(17, 17, 17, .16);
    border-radius: 14px;
    color: #666;
    background: #fff;
    text-align: center;
}

@media (max-width: 1024px) {
    .wic-slider {
        --wic-per-view: 2;
    }

    .wic-content {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 18px 6px 0;
    min-height: 92px;
}

@media (max-width: 767px) {
    .wic-slider {
        --wic-per-view: 1;
        padding-bottom: 54px;
    }

    .wic-viewport {
        padding-inline: 0;
    }

    .wic-card {
        border-radius: 13px;
        padding: 10px 10px 15px;
        box-shadow: 0 10px 26px rgba(20, 20, 20, .055);
    }

    .wic-media-wrap {
        aspect-ratio: 16 / 10.6;
        border-radius: 10px;
    }

    .wic-content {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 18px 6px 0;
    min-height: 92px;
}
