/* ============================================
   TIMELINE - EXACT STYLE
   ============================================ */

.timeline-dotcom {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    position: relative;
}

/* Each timeline block */
.timeline-block {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 50px;
    margin-bottom: 90px;
    position: relative;
}

/* Block without year - reduced spacing */
.timeline-block.no-year {
    margin-top: -32px;
    margin-bottom: 58px;
}

/* LEFT - YEAR - ALIGNED WITH DOT */
.timeline-left {
    text-align: right;
    padding-top: 2px;
    margin-top: -18px;
}

.timeline-year-display {
    font-size: 64px;
    font-weight: 700;
    line-height: 0.9;
    color: #111;
    letter-spacing: -0.03em;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
}

/* RIGHT - CONTENT */
.timeline-right {
    position: relative;
    padding-left: 45px;
    margin-top: -18px; /* Align title with year and dot */
}

/* Vertical dotted line - CENTERED */
.timeline-right::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 18px; /* Adjusted for alignment */
    width: 2px;
    height: calc(100% + 72px);
    background-image: repeating-linear-gradient(
        to bottom,
        #999 0px,
        #999 4px,
        transparent 4px,
        transparent 8px
    );
}

/* Last element - line stops */
.timeline-block:last-child .timeline-right::before {
    height: 40px;
    top: 18px;
}

/* Point/Marker on the line - CENTERED WITH TITLE */
.timeline-marker {
    position: absolute;
    left: -1px;
    top: 18px; /* Centered with middle of title */
    width: 18px;
    height: 18px;
    background: #000;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-block:hover .timeline-marker {
    transform: scale(1.15);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

/* Content card */
.timeline-card {
    padding: 0;
}

/* Title - CENTERED WITH DOT */
.timeline-title {
    padding-top: 10px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px 0;
    color: #000;
    letter-spacing: -0.02em;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
}

/* Date label - BELOW TITLE */
.timeline-date-label {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    line-height: 1.2;
}

/* Description/Text */
.timeline-description {
    font-size: 18px;
    line-height: 1.65;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

.timeline-description p {
    margin: 0 0 18px 0;
}

.timeline-description p:last-child {
    margin-bottom: 0;
}

/* Links */
.timeline-description a {
    color: #0066cc;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 102, 204, 0.25);
    transition: all 0.2s ease;
}

.timeline-description a:hover {
    color: #0052a3;
    border-bottom-color: #0052a3;
}

/* Bold and italic */
.timeline-description strong,
.timeline-description b {
    font-weight: 600;
    color: #000;
}

.timeline-description em,
.timeline-description i {
    font-style: italic;
}

/* Blockquotes */
.timeline-description blockquote {
    margin: 24px 0;
    padding-left: 20px;
    border-left: 4px solid #ddd;
    font-style: italic;
    color: #555;
    font-size: 17px;
}

.timeline-description blockquote p {
    margin-bottom: 12px;
}

/* Lists */
.timeline-description ul,
.timeline-description ol {
    margin: 18px 0;
    padding-left: 28px;
}

.timeline-description li {
    margin-bottom: 10px;
}

.timeline-description ul li {
    list-style-type: disc;
}

.timeline-description ol li {
    list-style-type: decimal;
}

/* Code */
.timeline-description code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 0.9em;
}

/* Images */
.timeline-description img {
    max-width: 100%;
    height: auto;
    margin-top: 0 0;
    border-radius: 6px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    .timeline-dotcom {
        padding: 30px 18px 60px;
    }
    
    .timeline-block {
        grid-template-columns: 90px 1fr;
        gap: 35px;
        margin-bottom: 70px;
    }
    
    .timeline-block.no-year {
        margin-top: -25px;
        margin-bottom: 50px;
    }
    
    .timeline-left {
        margin-top: -15px;
    }
    
    .timeline-year-display {
        font-size: 42px;
        padding-top: 3px;
    }
    
    .timeline-right {
        padding-left: 35px;
        margin-top: -15px;
    }
    
    .timeline-right::before {
        left: 9px;
        top: 15px;
        height: calc(100% + 55px);
    }
    
    .timeline-block:last-child .timeline-right::before {
        height: 40px;
        top: 15px;
    }
    
    .timeline-marker {
        left: 1px;
        width: 16px;
        height: 16px;
        border-width: 3px;
        top: 15px;
    }
    
    .timeline-title {
        font-size: 26px;
        margin-bottom: 10px;
        padding-top: 8px;
    }
    
    .timeline-date-label {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .timeline-description {
        font-size: 17px;
    }
}

/* Mobile */
@media (max-width: 580px) {
    .timeline-dotcom {
        padding: 25px 15px 50px;
    }
    
    .timeline-block {
        grid-template-columns: 70px 1fr;
        gap: 25px;
        margin-bottom: 55px;
    }
    
    .timeline-block.no-year {
        margin-top: -20px;
        margin-bottom: 40px;
    }
    
    .timeline-left {
        margin-top: -12px;
    }
    
    .timeline-year-display {
        font-size: 36px;
        padding-top: 0px;
    }
    
    .timeline-right {
        padding-left: 28px;
        margin-top: -14px;
    }
    
    .timeline-right::before {
        left: 9px;
        top: 12px;
        width: 2px;
        height: calc(100% + 43px);
        background-image: repeating-linear-gradient(
            to bottom,
            #999 0px,
            #999 3px,
            transparent 3px,
            transparent 6px
        );
    }
    
    /* .timeline-block.no-year .timeline-right::before {
        top: -23px;
        height: calc(100% + 78px);
    } */
    
    .timeline-block:last-child .timeline-right::before {
        height: 35px;
        top: 12px;
    }
    
    .timeline-marker {
        left: 0;
        width: 14px;
        height: 14px;
        top: 12px;
        border-width: 3px;
    }
    
    .timeline-title {
        font-size: 23px;
        margin-bottom: 9px;
        padding-top: 6px;
    }
    
    .timeline-date-label {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .timeline-description {
        font-size: 16px;
        line-height: 1.6;
    }
}