/* Horizontal history timeline styles */
.history-timeline {
    padding: 4rem 0;
    background: var(--mint-cream);
}

.history-timeline .history-track {
    display: flex;
    overflow-x: auto;
    padding: 2rem 0;
    scroll-snap-type: x mandatory;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-overflow-scrolling: touch;
    
    /* Hide scrollbar for Chrome, Safari and Opera */
    &::-webkit-scrollbar {
        display: none;
    }
    
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Style for when track is being dragged */
.history-timeline .history-track:active {
    cursor: grabbing;
}

.history-timeline .history-event {
    flex: 0 0 300px;
    margin: 0 1rem;
    scroll-snap-align: start;
    position: relative;
}

.history-timeline .history-year {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 1rem;
    background: linear-gradient(135deg,var(--teal-dark),var(--aqua));
    width: 80px;
    height: 80px;
    font-size: 1.2rem;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(10,30,10,0.08);
    transition: transform .22s ease, box-shadow .22s ease;
}

.history-timeline .history-event:hover .history-year {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 12px 24px rgba(10,30,10,0.12);
}

.history-timeline .history-card {
    text-align: center;
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 8px 20px rgba(10,30,10,0.08);
    transition: transform .22s ease;
}

.history-timeline .history-event:hover .history-card {
    transform: translateY(-5px);
}

.history-timeline .history-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--aqua-pale);
}

.history-timeline .history-heading {
    color: var(--teal-dark);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.history-timeline .history-text {
    color: var(--black);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .history-timeline .history-event {
        flex: 0 0 280px;
    }
    
    .history-timeline .history-image {
        width: 160px;
        height: 160px;
    }
    
    .history-timeline .history-heading {
        font-size: 1.2rem;
    }
}

/* Accessibility - reduce motion */
@media (prefers-reduced-motion: reduce) {
    .history-timeline .history-year,
    .history-timeline .history-card {
        transition: none;
    }
}