﻿.timeline-container {
    --htl-primary: #aa6a48;
    --htl-line: #aa6a48;
    --htl-year: #333333;
    --htl-arrow-bg: #eeeeee;
    --htl-arrow-color: #333333;
    --htl-content-bg: #ffffff;
    --htl-content-padding: 0px;
    --htl-content-radius: 0px;
    width: 100%;
    position: relative;
}

.timeline-topbar {
    width: 100%;
    padding: 0 70px;
    margin-bottom: 45px;
    position: relative;
    --htl-axis-y: 15px;
}

.timeline-line-wrapper {
    overflow: hidden;
    width: 100%;
    margin: 20px 0;
    position: relative;
}

.timeline-line-wrapper::before {
    content: '';
    position: absolute;
    top: var(--htl-axis-y);
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--htl-line);
}

.timeline-line {
    display: flex;
    position: relative;
    transition: transform 0.3s ease-in-out;
    pointer-events: none;
    padding-top: 30px;
    transform: translateX(0);
    will-change: transform;
}

.timeline-point {
    text-align: center;
    cursor: pointer;
    position: relative;
    pointer-events: auto;
    flex: 0 0 auto;
}

.timeline-point .timeline-circle {
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border: 1px solid var(--htl-primary);
    border-radius: 50%;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-point.active .timeline-circle {
    background-color: var(--htl-primary);
}

.timeline-year {
    margin-top: 10px;
    font-size: var(--htl-year-font-size, 20px);
    color: var(--htl-year);
    font-family: var(--htl-year-font-family, inherit);
    font-weight: var(--htl-year-font-weight, 400);
    text-transform: var(--htl-year-text-transform, none);
    display: block;
}

.timeline-content {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.timeline-item {
    display: none;
    align-items: flex-start;
    background: var(--htl-content-bg);
    padding: var(--htl-content-padding);
    border-radius: var(--htl-content-radius);
}

.timeline-item.active {
    display: grid;
}

.timeline-content.htl-swiper .timeline-item {
    display: grid !important;
    position: relative;
    inset: auto;
    transform: none !important;
    transition: none !important;
}

.timeline-container {
    cursor: grab;
    touch-action: pan-y;
}

.timeline-container.timeline-is-dragging {
    cursor: grabbing;
    user-select: none;
}

.timeline-content.htl-swiper .swiper-wrapper {
    align-items: stretch;
}

.timeline-content.htl-swiper .swiper-slide {
    height: auto;
}

.timeline-container img {
    -webkit-user-drag: none;
    user-select: none;
}

.info_timeline-item {
    min-width: 0;
}

.img_timeline-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

.timeline-builder-block {
    max-width: 100%;
}

.timeline-builder-title {
    color: var(--htl-primary);
    font-size: 24px;
    line-height: 1.3;
    margin: 0 0 20px 0;
}

.timeline-builder-year {
    font-size: 18px;
    margin: 0 0 12px 0;
    color: var(--htl-primary);
}

.timeline-builder-text {
    font-size: 18px;
    line-height: 1.6;
}

.timeline-builder-text p:first-child {
    margin-top: 0;
}

.timeline-builder-text p:last-child {
    margin-bottom: 0;
}

.timeline-arrow {
    background: var(--htl-arrow-bg);
    color: var(--htl-arrow-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: var(--htl-axis-y);
    transform: translateY(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.timeline-arrow-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.timeline-arrow-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.timeline-arrow.left {
    left: 10px;
}

.timeline-arrow.right {
    right: 10px;
}

.timeline-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.timeline-arrows-hidden .timeline-arrow {
    display: none;
}

.timeline-arrows-hidden .timeline-topbar {
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 1024px) {
    .timeline-topbar {
        padding: 0 55px;
    }

    .timeline-year {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .timeline-topbar {
        padding: 0 45px;
        margin-bottom: 28px;
    }

    .timeline-item {
        grid-template-columns: 100% !important;
    }

    .img_timeline-item {
        margin-top: 18px;
    }

    .timeline-year {
        font-size: 15px;
    }
}