/* Only the final homepage card is a carousel. Reserve the tallest slide so
   changing content never moves the surrounding cards or the page below it. */
.item-wrap article.home-blog-slider {
    padding: 0;
    background: #182335;
    color: #fff;
    touch-action: pan-y pinch-zoom;
}

.item-wrap article.home-blog-slider:hover {
    transform: none;
}

.home-blog-track {
    display: grid;
    min-height: 100%;
}

.home-blog-slide {
    grid-area: 1 / 1;
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    min-width: 0;
    min-height: 370px;
    padding: 40px 38px 136px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(0);
    transition: transform .2s ease;
}

.home-blog-slide.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(var(--blog-drag-x, 0px));
}

/* Animate the complete panel so the photo, heading and CTA travel together. */
.home-blog-slide.is-entering {
    z-index: 1;
    animation: ns-blog-slide-in .42s cubic-bezier(.22, .61, .36, 1) both;
    will-change: transform;
}

.home-blog-slide.is-leaving {
    visibility: visible;
    opacity: 1;
    pointer-events: none;
    animation: ns-blog-slide-out .42s cubic-bezier(.22, .61, .36, 1) both;
    will-change: transform;
}

@keyframes ns-blog-slide-in {
    from { transform: translateX(calc(var(--blog-enter-x, 100%) + var(--blog-out-start, 0px))); }
    to { transform: translateX(0); }
}

@keyframes ns-blog-slide-out {
    from { transform: translateX(var(--blog-out-start, 0px)); }
    to { transform: translateX(var(--blog-exit-x, -100%)); }
}

.home-blog-slide .item-image {
    background-color: #182335;
}

.home-blog-slide .item-image::before {
    opacity: 1;
    background: linear-gradient(180deg, rgba(9, 18, 32, .55), rgba(9, 18, 32, .87));
}

.home-blog-slide h2 {
    margin-top: 0;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    max-height: 3lh;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-loop .home-blog-slide .home-blog-read-more {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    inset-inline-start: 38px;
    bottom: 92px;
    max-width: calc(100% - 76px);
    padding: 10px 20px;
    border: 1px solid #fff;
    border-radius: 8px;
    background: #fff;
    color: #182335;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.section-loop .home-blog-slide .home-blog-read-more:hover {
    background: #edf0f5;
    border-color: #edf0f5;
}

.home-blog-slider.is-dragging .home-blog-slide.is-active {
    transition: none;
    user-select: none;
}

.home-blog-controls {
    position: absolute;
    z-index: 3;
    inset-inline: 30px;
    bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.home-blog-controls[hidden] {
    display: none;
}

.home-blog-pagination,
.home-blog-arrows {
    display: flex;
    align-items: center;
    gap: 2px;
}

.home-blog-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.home-blog-dot span {
    width: 26px;
    height: 3px;
    border-radius: 3px;
    background: currentColor;
    opacity: .4;
    transition: opacity .2s ease, height .2s ease;
}

.home-blog-dot[aria-current="true"] span {
    height: 4px;
    opacity: 1;
}

.home-blog-controls button:hover {
    background: rgba(255, 255, 255, .12);
}

.home-blog-controls button:focus-visible,
.home-blog-slide a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.home-blog-arrow svg {
    width: 24px;
    height: 24px;
}

html[dir="rtl"] .home-blog-arrow svg {
    transform: scaleX(-1);
}

.home-blog-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 479px) {
    .home-blog-slide {
        min-height: 300px;
        padding: 30px 30px 128px;
    }

    .section-loop .home-blog-slide .home-blog-read-more {
        inset-inline-start: 30px;
        bottom: 84px;
        max-width: calc(100% - 60px);
    }

    .home-blog-controls {
        inset-inline: 22px;
        bottom: 20px;
        gap: 8px;
    }

    .home-blog-pagination {
        gap: 0;
    }

    .home-blog-dot span {
        width: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-blog-slide,
    .home-blog-dot span {
        transition: none;
    }

    .home-blog-slide.is-entering,
    .home-blog-slide.is-leaving {
        animation: none;
    }

    .home-blog-slide.is-active {
        transform: none;
    }

    .home-blog-slide.is-leaving {
        visibility: hidden;
    }
}
