:root {
    --ukhls_yellow: #f4c642;
    --ukhls_green: #1c763c;
    --ukhls_blue: #2d6ec1;
    --ink: #1f2937;
    --ink-muted: #6b7280;
    --card-bg: #fff;
    --card-bd: #e5e7eb;
    --ring: 0 0 0 3px rgba(244, 198, 66, .35);
    --green: #33bc05;
    --ukhls_light-grey: #d6d6d6;
}


/* YEAR NAV */

.timeline-layout {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

#year-nav {
    position: sticky;
    top: 2rem;
    align-self: flex-start;
    flex: 0 0 70px;
    list-style: none;
    margin: 0px;
    border-right: 2px solid var(--ukhls_light-grey);
}

#year-nav>li {
    position: relative;
    padding-right: 1rem;
    margin: 0px;
}


#year-nav a:hover,
#year-nav a.is-active {
    transform: scale(1.26);
    transform-origin: left center;
    color: rgb(0, 0, 0);
    transition: transform 0.2s;
}

#year-nav a {
    display: block;
    color: var(--bs-gray);
    font-weight: 600;
    padding: 0.4rem 0px;
    text-decoration: none;
    transition: color 0.2s;
}

#year-nav>li.is-active::after {
    transform: scaleY(1);
}



#year-nav>li::after {
    content: "";
    position: absolute;
    top: 0px;
    bottom: 0px;
    right: -4px;
    width: 6px;
    transform: scaleY(0);
    transform-origin: center top;
    background: var(--ukhls_yellow, #f4c642);
    border-radius: 3px;
    transition: transform 0.2s ease-in-out;
}

#year-nav>li.is-active::after {
    transform: scaleY(1);
}


#year-nav>li:hover::after {
    transform: scaleY(1);
    opacity: 1;
}




/* SCROLLER */

.item-scroller:last-child {
    margin-bottom: 2rem;
}


.item-scroller {
    flex: 1;
    display: flex;
    position: relative;
    flex-direction: column;
    gap: 3rem;
    padding-left: 2rem;
    padding-top: 2px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-top: 17px;
}


.item-scroller::before {
    content: "";
    position: absolute;
    left: 0.5rem;
    top: 1px;
    bottom: 0;
    width: 3px;
    background: var(--bs-gray-400);
    border-radius: 2px;
    opacity: .8;
    z-index: 0;
}


/* CARDS */

.item-card {
    position: relative;
    width: 100%;
    flex: 0 0 auto;
    background: var(--card-bg, #fff);
    border: 1px solid var(--card-bd, #e5e7eb);
    border-radius: 1rem;
    padding: clamp(1rem, 3vw, 1.25rem);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .05);
    z-index: 1;
    scroll-margin-top: 6rem;
    scroll-margin-bottom: 40vh;
    scroll-snap-align: start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    padding-top: 2.5rem;
    max-width: 600px;

}

.item-card::after {
    content: "";
    position: absolute;
    left: -0.8rem;
    top: 1.5rem;
    width: 0;
    height: 0;
    border-top: 6px solid #352b2b00;
    border-bottom: 6px solid #21212100;
    border-right: 12px solid var(--bs-gray-400);
    z-index: 1;
}

.item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.item-card:hover::before {
    transform: scale(1.1);
}

.item-card::before {
    content: "";
    position: absolute;
    left: -2.1rem;
    top: 1.25rem;
    width: 20px;
    height: 20px;
    background: var(--bs-gray-400);
    border-radius: 50%;
    border: 4px solid #ffffff;
    z-index: 2;
}

.timeline-subitem {
    clear: both;
}




.ukhls-timeline__text p:last-of-type {
    margin-bottom: 1.5rem;
}


.timeline-subitem .timeline-main-image {
    border: 1px solid var(--ukhls_light-grey);
    padding: 2px;
}

.timeline-subitem:not(:first-of-type) {
    padding-top: 1.5rem !important;
}

.item-card.in-view h3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .3s;
}

.item-card h3 {
    transition: transform .25s ease, color .25s ease;
    transform-origin: left center;
    will-change: transform;
}

.item-card h3 {
    /* opacity: 0; */
    transform: translateY(10px);
    transition: opacity .4s ease, transform .4s ease;
    will-change: opacity, transform;
}

.item-card h3 {
    font-weight: 400;
    color: #111827;
    margin-bottom: clamp(.5rem, 1.5vw, 1rem);
    letter-spacing: .5px;
}

.item-card time {
    display: inline-block !important;
    background: var(--ukhls_yellow);
    padding: 5px 10px;
    border-radius: 10px;
    position: absolute;
    top: -1rem;
    right: 1.5rem;
}


.ukhls-timeline__image {
    max-width: 100%;
}

.ukhls-timeline__link {
    clear: both;
}

.ukhls-timeline__link a i {
    display: inline-block;
    transition: transform 0.25s ease;
}

.ukhls-timeline__link a:hover i {
    transform: translateX(4px);
}


.ukhls-timeline__houses i {
  font-size: 2rem;
  color: var(--ukhls_blue);
  margin-right: 0.2rem;
}

.ukhls-timeline__houses i:last-child {
  margin-right: 0;
}


.ukhls-timeline__respondents i {
  font-size: 2.4rem;
  color: var(--ukhls_green);
  margin-right: 0;
}

/* RESPONSIVE */

@media (max-width: 576px) {
    .timeline-layout {
        gap: 1rem;
    }

    .item-scroller {
        padding-left: 0;
    }

    .item-scroller::before {
        left: 0.5rem;
    }

    .item-card {
        flex: 0 0 88%;
        border-radius: .875rem;
    }
}


@media (min-width: 575.99px) {
    .timeline-subitem .ukhls-timeline__text {
        width: 65%;
        float: left;
        padding-right: 1rem !important;
    }

    .timeline-subitem .timeline-main-image {
        width: 35%;
        float: right;
    }

    .ukhls-timeline__text p:last-of-type {
        margin-bottom: 0;
    }
}



@media (max-width: 575.99px) {
    .item-scroller::before {
        display: none;

    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .ukhls-timeline__image {
        max-width: 70%;
    }

}





@media (min-width: 991.99px) {
    .ukhls-timeline__image {
        max-width: 50%;
    }


}