/* Timeline Horizontal Styles */
.timeline-horizontal-wrapper {
    width: 100%;
    padding: 60px 20px;
    overflow-x: auto;
    background-color: var(--bg-color, #ffffff);
    border-radius: var(--border-radius, 8px);
}

.timeline-horizontal {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 100%;
    padding: 0;
    justify-content: space-between;
    height: 300px;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--line-color, #e0e0e0);
    z-index: 1;
    transform: translateY(-50%);
}

.timeline-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 var(--spacing, 20px);
    z-index: 2;
    height: 100%;
    min-height: 300px;
}

.timeline-item:first-child {
    margin-left: 0;
}

.timeline-item:last-child {
    margin-right: 0;
}

/* Timeline Points - Fixed positioning on center line */
.timeline-point {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: var(--line-color, #e0e0e0);
    border: 3px solid var(--bg-color, #ffffff);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 0 3px var(--line-color, #e0e0e0);
    flex-shrink: 0;
    z-index: 3;
}

.timeline-point.active {
    background-color: var(--active-color, #007cba);
    box-shadow: 0 0 0 3px var(--active-color, #007cba);
    transform: translate(-50%, -50%) scale(1.2);
}

.timeline-point:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Timeline Item Top Position */
.timeline-item-top .timeline-content {
    transform: translateY(-100%);
    margin-bottom: 0;
    margin-top: 0;
}

/* Timeline Item Bottom Position */
.timeline-item-bottom .timeline-content {
    transform: translateY(100%);
    margin-top: 0;
    margin-bottom: 0;
}

.timeline-dot {
    display: none;
}

.timeline-content {
    text-align: center;
    color: var(--text-color, #333333);
    border-radius: var(--border-radius, 8px);
    background: transparent;
    transition: all 0.3s ease;
}

.timeline-year {
    font-size: 16px;
    font-weight: bold;
    /* color: var(--active-color, #007cba); */
    color: #67707a;
    margin-bottom: 5px;
    line-height: 1.2;
}

.timeline-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--text-color, #333333);
    text-transform: uppercase;
}

.timeline-description {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-color, #333333);
    opacity: 0.7;
}

.timeline-extra-content {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-color, #333333);
    opacity: 0.6;
}

/* Animation classes */
.timeline-item[data-animation="fadeIn"] {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.timeline-item[data-animation="fadeInUp"] {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item[data-animation="fadeInDown"] {
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.6s ease forwards;
}

.timeline-item[data-animation="fadeInLeft"] {
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInLeft 0.6s ease forwards;
}

.timeline-item[data-animation="fadeInRight"] {
    opacity: 0;
    transform: translateX(20px);
    animation: fadeInRight 0.6s ease forwards;
}

.timeline-item[data-animation="slideInUp"] {
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
}

.timeline-item[data-animation="slideInDown"] {
    transform: translateY(-30px);
    animation: slideInDown 0.6s ease forwards;
}

.timeline-item[data-animation="slideInLeft"] {
    transform: translateX(-30px);
    animation: slideInLeft 0.6s ease forwards;
}

.timeline-item[data-animation="slideInRight"] {
    transform: translateX(30px);
    animation: slideInRight 0.6s ease forwards;
}

.timeline-item[data-animation="zoomIn"] {
    opacity: 0;
    transform: scale(0.8);
    animation: zoomIn 0.6s ease forwards;
}

.timeline-item[data-animation="bounceIn"] {
    opacity: 0;
    transform: scale(0.3);
    animation: bounceIn 0.6s ease forwards;
}

/* Keyframes */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    to {
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    to {
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    to {
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-horizontal-wrapper {
        padding: 40px 10px;
    }
    
    .timeline-horizontal {
        height: auto;
        min-height: 250px;
    }
    
    .timeline-item {
        margin: 0 15px;
        min-height: 250px;
    }
    
    .timeline-content {
        max-width: 140px;
        padding: 10px 5px;
    }
    
    .timeline-item-top .timeline-content {
        top: 15px;
    }

    .timeline-item-bottom .timeline-content {
        bottom: 15px;
    }
    
    .timeline-year {
        font-size: 14px;
    }
    
    .timeline-title {
        font-size: 12px;
    }
    
    .timeline-description {
        font-size: 10px;
    }
    
    .timeline-point {
        width: 16px;
        height: 16px;
        border: 2px solid var(--bg-color, #ffffff);
        box-shadow: 0 0 0 2px var(--line-color, #e0e0e0);
    }
    
    .timeline-point.active {
        box-shadow: 0 0 0 2px var(--active-color, #007cba);
        transform: translate(-50%, -50%) scale(1.2);
    }
    
    .timeline-point:hover {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@media (max-width: 480px) {
    .timeline-horizontal-wrapper {
        padding: 30px 5px;
    }
    
    .timeline-horizontal {
        min-height: 200px;
    }
    
    .timeline-item {
        margin: 0 10px;
        min-height: 200px;
    }
    
    .timeline-content {
        max-width: 100px;
        padding: 8px 3px;
    }
    
    .timeline-item-top .timeline-content {
        top: 10px;
    }

    .timeline-item-bottom .timeline-content {
        bottom: 10px;
    }
    
    .timeline-year {
        font-size: 12px;
    }
    
    .timeline-title {
        font-size: 10px;
        margin-bottom: 5px;
    }
    
    .timeline-description {
        font-size: 9px;
    }
    
    .timeline-point {
        width: 14px;
        height: 14px;
    }
    
    .timeline-point.active {
        transform: translate(-50%, -50%) scale(1.2);
    }
    
    .timeline-point:hover {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Print styles */
@media print {
    .timeline-horizontal-wrapper {
        background-color: transparent !important;
    }
    
    .timeline-item {
        page-break-inside: avoid;
    }
    
    .timeline-point {
        box-shadow: none !important;
    }
}
