/* =========================================
   TIMELINE — dipakai bersama oleh Education & Experience.
   Disalin dari gaya neo-porto, dibersihkan dari aturan dark mode.
   ========================================= */

.timeline-card {
    background-color: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px solid var(--border-strong);
    box-shadow: var(--lip);
}

@media (min-width: 768px) {
    .timeline-card { padding: 2rem; }
}

.timeline-track {
    position: relative;
    border-left: 2px solid var(--border);
    margin-left: 0.75rem;
    padding: 0.5rem 0 0.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 768px) {
    .timeline-track { padding-left: 2.5rem; }
}

.timeline-item { position: relative; }

.timeline-logo-wrapper {
    position: absolute;
    left: -3.4rem;
    top: 0;
    height: 2.75rem;
    width: 2.75rem;
    /* Experience: kotak membulat · Education: bulat penuh */
    border-radius: 0.625rem;
    background-color: #fff;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
    box-shadow: 0 0 0 1px var(--border);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.timeline-logo-wrapper--round { border-radius: 9999px; }

@media (min-width: 768px) {
    .timeline-logo-wrapper { left: -3.9rem; }
}

.timeline-item:hover .timeline-logo-wrapper {
    transform: scale(1.08);
    box-shadow: 0 0 0 3px var(--accent-soft),
                0 4px 10px -2px rgba(37, 99, 235, 0.15);
}

.timeline-logo-img { width: 100%; height: 100%; object-fit: cover; }

/* Tanpa logo: lingkaran inisial dengan warna tema. */
.timeline-logo-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: #1d4ed8;
    font-family: 'Nunito', sans-serif;
    font-size: 0.8125rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.timeline-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .timeline-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
    }
}

.timeline-company {
    font-weight: 700;
    color: var(--ink);
    font-size: 0.9375rem;
    transition: color 0.2s;
}
.timeline-item:hover .timeline-company { color: var(--accent); }

.timeline-role {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-top: 0.125rem;
    line-height: 1.45;
}

.timeline-grade {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--faint);
    margin-top: 0.1875rem;
}

.timeline-period {
    font-size: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--faint);
    background-color: #f8fafc;
    border: 1px solid var(--border);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .timeline-period { margin-top: 0; margin-left: 1rem; }
}

.timeline-details {
    list-style-type: disc;
    list-style-position: outside;
    margin-left: 1rem;
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.65;
}
.timeline-details li::marker { color: #cbd5e1; }
.timeline-details li + li { margin-top: 0.375rem; }

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 800;
    background-color: var(--accent-soft);
    color: #1d4ed8;
    border: 2px solid #bfdbfe;
    cursor: default;
    user-select: none;
    transition: background-color 0.2s;
}
.tag-badge:hover { background-color: #bfdbfe; }

.pr-4 { padding-right: 1rem; }
