section.timeline{
    padding: 70px 8% 0;
}

section.timeline .heading h4{
    font-size: 1.8em;
    font-weight: 450;
}

section.timeline .heading h2{
    color: var(--white);
}

.timeline-wrapper {
    position: relative;
    max-width: 100%;
    overflow-x: hidden; /* prevent horizontal bleed */
    overflow-y: visible;
}

.timeline-track {
    position: relative;
    padding: 60px 0;
}

/* Timeline horizontal line */
.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%);
    z-index: 1;
}

/* ===== GLIDE SLIDES ===== */

.timeline-items {
    position: relative;
    z-index: 2;
    gap: 0;            /* Glide controls spacing */
    padding: 0;
}

.timeline-item {
    position: relative;
    width: 100%;       /* Glide controls width */
    min-width: 0;
}

.timeline-content {
    position: relative;
    width: 100%;
    min-height: 340px;
}

/* Card */
.timeline-card {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    min-height: 100px;
    width: 100%;
    max-width: 320px;
}

/* Card positioning */
.timeline-item[data-position="top"] .timeline-card{
    top: calc(50% - 175px);
}

.timeline-item[data-position="bottom"] .timeline-card{
    top: calc(50% + 60px);
}

/* Connector */
.timeline-connector {
    position: absolute;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.3);
    z-index: 2;
}

/* Connector directions */
.timeline-item[data-position="top"] .timeline-connector{
    top: calc(50% - 8px);
    height: 50px;
    transform: translateX(-50%) translateY(-100%);
}

.timeline-item[data-position="bottom"] .timeline-connector{
    top: calc(50% + 8px);
    height: 50px;
}

/* Dot */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #e8d4ff;
    border: 3px solid var(--primary-dark);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(232, 212, 255, 0.2);
    transition: all 0.3s ease;
    z-index: 3;
}

.timeline-item:hover .timeline-dot {
    background: #ffffff;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.2);
}

/* Typography */
.timeline-title {
    font-size: 1em;
    color: #ffffff;
    font-weight: 500;
    margin: 0;
}

.timeline-subtitle {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    margin: 0;
}

.timeline-year {
    display: inline-block;
    font-size: 0.9em;
    font-weight: 600;
    color: #b794f6;
    text-transform: uppercase;
}

/* ===== CONTROLS ===== */

.timeline-controls {
    display: block; /* Always visible now */
}

.timeline-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition: all .3s ease;
    z-index: 10;
	padding: 11px;
}

.timeline-arrow:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-50%) scale(1.05);
}

.timeline-arrow--prev { left:-1px; }
.timeline-arrow--next { right:-1px; }

/* ===== RESPONSIVE TWEAKS ===== */

@media (max-width: 1024px){
  section.timeline{ padding:50px 5% 0; }
}
