/* Horizontal Timeline 1aa1ab9d */

.ht-1aa1ab9d-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px 0;
    overflow: hidden;
}

.ht-1aa1ab9d-track-container {
    overflow: hidden;
    flex: 1;
    position: relative;
}

.ht-1aa1ab9d-track {
    display: flex;
    align-items: stretch;
    position: relative;
    transition: transform 0.5s ease;
}

.ht-1aa1ab9d-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #1B1B3A;
    transform: translateY(-50%);
    z-index: 0;
}

/* Each timeline item is a vertical column */
.ht-1aa1ab9d-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 220px;
    flex-shrink: 0;
    z-index: 1;
}

/* Content areas above and below */
.ht-1aa1ab9d-content-above,
.ht-1aa1ab9d-content-below {
    text-align: center;
    max-width: 200px;
    width: 200px;
    padding: 0 10px;
    box-sizing: border-box;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.ht-1aa1ab9d-content-below {
    justify-content: flex-start;
}

/* Stem areas */
.ht-1aa1ab9d-stem-above,
.ht-1aa1ab9d-stem-below {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
}

/* Connector line between dot and content */
.ht-1aa1ab9d-connector {
    width: 2px;
    height: 35px;
    background-color: #1B1B3A;
    flex-shrink: 0;
}

/* Dot */
.ht-1aa1ab9d-dot-outer {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #1B1B3A;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
    outline: none;
}

.ht-1aa1ab9d-dot-outer:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(27, 27, 58, 0.15);
}

.ht-1aa1ab9d-dot-inner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #1B1B3A;
    display: block;
}

/* Year */
.ht-1aa1ab9d-year {
    font-size: 28px;
    font-weight: 800;
    color: #1B1B3A;
    font-style: italic;
    line-height: 1.2;
    margin: 4px 0;
}

/* Description */
.ht-1aa1ab9d-desc {
    font-size: 14px;
    color: #555555;
    line-height: 1.5;
    margin: 4px 0;
}

/* Accent bar */
.ht-1aa1ab9d-accent {
    width: 40px;
    height: 4px;
    background-color: #1B1B3A;
    margin: 6px auto;
}

/* Navigation Buttons */
.ht-1aa1ab9d-nav-btn {
    width: 44px;
    height: 44px;
    border: none;
    background-color: #BBBBBB;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 3;
    transition: background-color 0.3s ease;
    border-radius: 4px;
    padding: 0;
    line-height: 1;
}

.ht-1aa1ab9d-nav-btn:hover {
    background-color: #1B1B3A;
}

.ht-1aa1ab9d-nav-prev {
    margin-right: 10px;
}

.ht-1aa1ab9d-nav-next {
    margin-left: 10px;
}

/* Popup Overlay */
.ht-1aa1ab9d-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ht-1aa1ab9d-popup-overlay.ht-1aa1ab9d-popup--active {
    opacity: 1;
}

.ht-1aa1ab9d-popup-content {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 40px;
    max-width: 560px;
    width: 90%;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.ht-1aa1ab9d-popup-overlay.ht-1aa1ab9d-popup--active .ht-1aa1ab9d-popup-content {
    transform: translateY(0);
}

.ht-1aa1ab9d-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s ease;
}

.ht-1aa1ab9d-popup-close:hover {
    color: #333;
}

/* Popup Image */
.ht-1aa1ab9d-popup-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.ht-1aa1ab9d-popup-body h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #1B1B3A;
}

.ht-1aa1ab9d-popup-body p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

/* Responsive */
@media (max-width: 767px) {
    .ht-1aa1ab9d-item {
        min-width: 160px;
    }

    .ht-1aa1ab9d-year {
        font-size: 22px;
    }

    .ht-1aa1ab9d-desc {
        font-size: 12px;
    }

    .ht-1aa1ab9d-content-above,
    .ht-1aa1ab9d-content-below {
        min-height: 90px;
    }

    .ht-1aa1ab9d-popup-content {
        padding: 24px;
    }
}
