:root {
    --primary-teal: #007676;
    --active-maroon: #802222;
    --bg-light: #fdfdfd;
    --arc-color: #ffdce0;
    --wheel-size: 1000px;
}

.nio-timeline-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.timeline-container {
    position: relative;
    width: 100%;
    height: 80vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
    background: var(--bg-light);
}

.wheel-wrapper {
    position: absolute;
    left: calc(var(--wheel-size) / -1.5);
    width: var(--wheel-size);
    height: var(--wheel-size);
    z-index: 5;
    pointer-events: none;
}

.wheel-circle {
    position: relative;
    width: 100%;
    height: 100%;
    border: 2px solid var(--arc-color);
    border-radius: 50%;
    list-style: none;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0; padding: 0;
}

.year-node {
    position: absolute;
    top: 49%;
    left: var(--wheel-size);
    width: max-content; 
    min-width: 180px;
    height: 50px;
    margin-top: -25px;
    transform-origin: calc(var(--wheel-size) / -2) center;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #bbb;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.4s ease;
    pointer-events: auto;
    white-space: nowrap;
}

.year-node.active {
    color: var(--active-maroon);
    font-size: 24px;
}

.year-node::before {
    content: '';
    width: 12px;
    height: 12px;
    background: #ddd;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
    transition: 0.3s;
}

.year-node.active::before {
    background: var(--active-maroon);
    box-shadow: 0 0 0 6px rgba(128, 34, 34, 0.1);
}

.y-txt { display: inline-block; transition: transform 0.4s ease; }

.main-content {
    margin-left: 600px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    width: calc(100% - 600px);
    max-width: 1100px;
    align-items: center;
    z-index: 10;
}

.main-content.no-images { grid-template-columns: 1fr; max-width: 800px; }

.text-part { opacity: 0; transform: translateY(30px); transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1); }
.text-part.visible { opacity: 1; transform: translateY(0); }
.text-part h2 { color: var(--active-maroon); font-size: clamp(24px, 4vw, 36px); margin-bottom: 15px; }
.text-part p { color: #555; line-height: 1.6; font-size: 17px; }

.image-part { display: flex; flex-direction: column; gap: 20px; }
.img-card { width: 100%; height: 240px; background: #eee; border-radius: 12px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.1); display: none; }
.img-card img { width: 100%; height: 100%; object-fit: cover; }

/* MOBILE DESIGN */
@media (max-width: 900px) {
    .timeline-container { flex-direction: column; height: auto; min-height: 100vh; padding: 0; justify-content: flex-start; background: #fff; overflow-y: visible;}
    .wheel-wrapper { position: sticky; top: 0; left: 0; width: 100%; height: 70px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; overflow-x: auto; pointer-events: auto; z-index: 100; scrollbar-width: none; }
    .wheel-circle { border: none; display: flex; height: 100%; width: max-content; transform: none !important; gap: 0; padding: 0 45vw; align-items: center; }
    .year-node { position: relative; top: 0; left: 0; transform: none !important; margin: 0; padding: 0 20px; width: auto; min-width: auto; height: 100%; flex-shrink: 0; font-size: 15px; border-bottom: 2px solid #eee; }
    .year-node::before { display: none; }
    .year-node.active { color: var(--active-maroon); font-size: 18px; border-bottom: 3px solid var(--active-maroon); background: rgba(128, 34, 34, 0.03); }
    .main-content { margin: 30px auto; width: 90%; grid-template-columns: 1fr; gap: 25px; }
    .img-card { height: 200px; }
}

@media screen and (min-width: 901px) and (max-width: 1440px) {
    :root { --wheel-size: 850px; }
    .main-content { margin-left: 450px; width: calc(100% - 480px); }
    

}
































