/* About Timeline Styles */

.timeline-container {
    width: 100%;
    background-color: #ffffff;
    /* white */
    padding-top: 0;
    padding-bottom: 5rem;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.dark .timeline-container {
    background-color: #020617;
    /* midnight or neutral-950 */
}

/* Wrapper */
.timeline-wrapper {
    max-width: 60rem;
    /* max-w-7xl */
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

@media (min-width: 768px) {
    .timeline-wrapper {
        padding: 0 2.5rem;
        /* px-10 */
    }
}

/* Header Section */
.timeline-header {
    max-width: 56rem;
    /* max-w-4xl */
    margin: 0 auto 5rem;
    padding: 0 1rem;
}

.timeline-header h2 {
    font-size: 1.875rem;
    /* text-3xl */
    font-weight: 900;
    margin-bottom: 1rem;
    color: #0f172a;
    /* navy */
}

.dark .timeline-header h2 {
    color: white;
}

@media (min-width: 768px) {
    .timeline-header h2 {
        font-size: 2.25rem;
        /* text-4xl */
    }
}

.timeline-header p {
    color: #334155;
    /* slate-700 */
    font-size: 0.875rem;
    max-width: 28rem;
    /* max-w-sm */
}

.dark .timeline-header p {
    color: #cbd5e1;
    /* slate-300 */
}

@media (min-width: 768px) {
    .timeline-header p {
        font-size: 1rem;
    }
}

/* Timeline Item (Row) */
.timeline-item {
    display: flex;
    justify-content: flex-start;
    padding-top: 2.5rem;
    /* pt-10 */
    position: relative;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .timeline-item {
        padding-top: 10rem;
        /* pt-40 */
        gap: 2.5rem;
        /* gap-10 */
        margin-bottom: 0;
    }
}

/* Left Sticky Column (Year) */
.timeline-left {
    position: sticky;
    top: 10rem;
    /* top-40 */
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    max-width: 20rem;
    /* max-w-xs */
    width: 100%;
}

@media (min-width: 1024px) {
    .timeline-left {
        max-width: 24rem;
        /* max-w-sm */
    }
}

/* Dot Indicator */
.timeline-dot-wrapper {
    display: none;
}

.dark .timeline-dot-wrapper {
    display: none;
}

@media (min-width: 768px) {
    .timeline-dot-wrapper {
        display: none;
    }
}

.timeline-dot {
    display: none;
}

.dark .timeline-dot {
    display: none;
}

/* Year Text */
.timeline-title {
    display: none;
    /* hidden on mobile, shown in content */
}

@media (min-width: 768px) {
    .timeline-title {
        display: block;
        font-size: 3.5rem;
        /* slightly larger */
        font-weight: 900;
        color: #cbd5e1;
        /* neutral-500 */
        padding-left: 0;
        /* position it over the line */
        margin-left: -0.5rem; /* align over the line */
        transform: translateX(-50%); /* perfect horizontal center */
        writing-mode: vertical-lr; /* line passes through from top to bottom */
        text-orientation: mixed;
        background: transparent;
        z-index: 50;
        line-height: 1; /* snug fit */
    }
    .dark .timeline-title {
        color: #334155;
    }
}

/* Right Column (Content) */
.timeline-right {
    position: relative;
    padding-left: 5rem;
    /* pl-20 */
    padding-right: 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    .timeline-right {
        padding-left: 1rem;
        /* pl-4 */
    }
}

/* Mobile Title */
.timeline-mobile-title {
    display: block;
    font-size: 1.5rem;
    /* text-2xl */
    margin-bottom: 1rem;
    font-weight: 700;
    color: #737373;
}

@media (min-width: 768px) {
    .timeline-mobile-title {
        display: none;
    }
}

/* The Line Track */
.timeline-track-container {
    position: absolute;
    left: 2rem;
    /* left-8 */
    top: 0;
    bottom: 0;
    /* Wait, React uses a calculated height div */
    width: 2px;
    background: linear-gradient(to bottom, transparent 0%, #e5e5e5 10%, #e5e5e5 90%, transparent 100%);
    overflow: hidden;
    /* Mask Image for fade edges */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.dark .timeline-track-container {
    background: linear-gradient(to bottom, transparent 0%, #404040 10%, #404040 90%, transparent 100%);
}

@media (min-width: 768px) {
    .timeline-track-container {
        left: 2rem;
        /* left-8 matching dot alignment */
    }
}

/* The Progress Bar */
.timeline-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 0%;
    /* JS will animate this */
    background: linear-gradient(to top, transparent 0%, #3b82f6 100%);
    /* Blueish gradient */
    opacity: 0;
    transition: height 0.1s linear, opacity 0.1s linear;
    border-radius: 9999px;
}

/* Content Styling */
.timeline-content-text {
    margin-bottom: 2rem;
    color: #4b5563;
    /* neutral-800 mostly */
    font-size: 0.875rem;
}

.dark .timeline-content-text {
    color: #e5e5e5;
}

.timeline-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.timeline-img {
    border-radius: 0.5rem;
    object-fit: cover;
    height: 5rem;
    /* h-20 */
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .timeline-img {
        height: 11rem;
        /* h-44 */
    }
}