.yh-featured-news {
    --featured-ink: var(--brand-secondary-dark);
    --featured-paper: color-mix(in srgb, var(--brand-surface) 35%, white);
    position: relative;
    isolation: isolate;
    height: clamp(500px, 54vw, 670px);
    padding: 0;
    overflow: hidden;
    background: var(--brand-secondary-dark);
}

.yh-featured-news .hero-container,
.yh-featured-news .hero-slider,
.yh-featured-news .carousel,
.yh-featured-news .carousel-inner,
.yh-featured-news .carousel-item {
    height: 100%;
}

.yh-featured-news .carousel-item {
    position: relative;
    overflow: hidden;
}

.yh-featured-news .hero-image-stage {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.yh-featured-news .yh-featured-news__image-fallback {
    display: grid;
    place-items: center;
    color: color-mix(in srgb, white 53%, var(--brand-line));
    background: linear-gradient(130deg, var(--brand-secondary), var(--brand-secondary-dark));
    font-size: 5rem;
}

.yh-featured-news .hero-image-frame {
    position: absolute;
    z-index: 1;
    inset: 22px;
    border: 1px solid color-mix(in srgb, white 45%, transparent);
    pointer-events: none;
}

.yh-featured-news .hero-fx {
    position: absolute;
    z-index: 2;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.yh-featured-news .hero-fx-grid {
    position: absolute;
    inset: 0;
    opacity: .3;
    background: repeating-linear-gradient(135deg, transparent 0 30px, color-mix(in srgb, var(--brand-line) 14%, transparent) 31px 32px, transparent 33px 62px);
    -webkit-mask-image: linear-gradient(to left, #000, transparent 35%);
    mask-image: linear-gradient(to left, #000, transparent 35%);
}

.yh-featured-news .hero-fx-rosette {
    position: absolute;
    inset-block-start: -170px;
    inset-inline-end: -140px;
    width: 330px;
    height: 330px;
    border: 1px solid color-mix(in srgb, white 18%, transparent);
    border-radius: 50%;
}

.yh-featured-news .hero-fx-arch {
    position: absolute;
    inset-block-end: -130px;
    inset-inline-start: -110px;
    width: 280px;
    height: 280px;
    border: 1px solid color-mix(in srgb, white 16%, transparent);
    border-radius: 50% 50% 3px 3px;
    transform: rotate(45deg);
}

.yh-featured-news .carousel-container {
    position: relative;
    z-index: 3;
    display: flex;
    height: 100%;
    align-items: center;
}

.yh-featured-news .carousel-content {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
}

.yh-featured-news .slider-content {
    width: min(640px, 54%);
    padding: clamp(28px, 3vw, 36px);
    color: var(--featured-ink);
    border-inline-start: 4px solid var(--brand-primary);
    background: color-mix(in srgb, var(--featured-paper) 70%, transparent);
}

.yh-featured-news .hero-slide-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 19px;
    color: var(--brand-primary-dark);
    font-size: .78rem;
    font-weight: 800;
}

.yh-featured-news .hero-slide-meta-mark {
    width: 20px;
    height: 2px;
    background: var(--brand-primary);
}

.yh-featured-news .hero-slide-count {
    display: inline-flex;
    gap: 4px;
    margin-inline-start: auto;
    color: var(--featured-ink);
    font-size: 1rem;
}

.yh-featured-news .hero-slide-count small {
    align-self: end;
    color: color-mix(in srgb, var(--featured-ink) 55%, white);
    font-size: .7rem;
}

.yh-featured-news .slider-title {
    display: -webkit-box;
    max-width: 100%;
    margin: 0 0 17px;
    color: var(--featured-ink);
    font-size: 38px;
    font-weight: 600;
    line-height: 1.35;
    text-shadow: none;
}

.yh-featured-news .slider-details {
    display: -webkit-box;
    margin: 0 0 25px;
    overflow: hidden;
    color: color-mix(in srgb, var(--featured-ink) 68%, white);
    font-size: .95rem;
    line-height: 1.8;
    text-shadow: none;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.yh-featured-news .slider-link {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    color: white !important;
    border: 0;
    background: var(--brand-secondary);
    font-size: .84rem;
    font-weight: 800;
}

.yh-featured-news .slider-link:hover {
    color: white !important;
    background: var(--brand-secondary-dark);
}

.yh-featured-news .slider-link:focus-visible,
.yh-featured-news .carousel-control-prev:focus-visible,
.yh-featured-news .carousel-control-next:focus-visible,
.yh-featured-news .carousel-indicators button:focus-visible {
    outline: 3px solid var(--brand-primary);
    outline-offset: 3px;
}

.yh-featured-news .hero-slide-progress {
    height: 2px;
    margin-top: 25px;
    overflow: hidden;
    background: color-mix(in srgb, var(--brand-secondary) 19%, white);
}

.yh-featured-news .hero-slide-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--brand-primary);
    transform: scaleX(0);
    transform-origin: right;
}

.yh-featured-news .carousel-item.active .hero-slide-progress span {
    animation: yh-featured-progress var(--featured-slide-duration) linear forwards;
}

.yh-featured-news .carousel-indicators {
    z-index: 4;
    inset: auto 0 22px;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0;
}

.yh-featured-news .carousel-indicators button {
    box-sizing: border-box;
    width: 25px;
    height: 4px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: white;
    opacity: .6;
    transition: width .2s ease, opacity .2s ease;
}

.yh-featured-news .carousel-indicators button.active {
    width: 46px;
    background: var(--brand-primary);
    opacity: 1;
}

.yh-featured-news .carousel-control-prev,
.yh-featured-news .carousel-control-next {
    z-index: 4;
    width: 44px;
    height: 44px;
    top: 50%;
    bottom: auto;
    border: 1px solid color-mix(in srgb, white 55%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-secondary-dark) 72%, transparent);
    opacity: 1;
    transform: translateY(-50%);
}

.yh-featured-news .carousel-control-prev {
    left: 18px;
}

.yh-featured-news .carousel-control-next {
    right: 18px;
}

.yh-featured-news .carousel-control-prev-icon,
.yh-featured-news .carousel-control-next-icon {
    width: auto;
    height: auto;
    background: none;
    color: white;
    font-size: 1rem;
}

@keyframes yh-featured-progress {
    to {
        transform: scaleX(1);
    }
}

@media (max-width: 767px) {
    .yh-featured-news {
        height: 570px;
    }

    .yh-featured-news .hero-image-frame {
        inset: 11px;
    }

    .yh-featured-news .carousel-container {
        align-items: flex-end;
        padding-bottom: 50px;
    }

    .yh-featured-news .slider-content {
        width: 100%;
        padding: 23px;
    }

    .yh-featured-news .slider-title {
        font-size: clamp(1.55rem, 6vw, 2.2rem);
    }

    .yh-featured-news .slider-details {
        font-size: .86rem;
        -webkit-line-clamp: 2;
    }

    .yh-featured-news .carousel-control-prev,
    .yh-featured-news .carousel-control-next {
        top: 23px;
        width: 38px;
        height: 38px;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yh-featured-news .carousel-item.active .hero-slide-progress span {
        animation: none;
        transform: scaleX(1);
    }

    .yh-featured-news .carousel-indicators button {
        transition: none;
    }
}