/* experience timeline */

#experience h3 {
    color: var(--text-secondary-color) !important;
}

#experience .timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

#experience .timeline-item {
    position: relative;
    padding-left: 76px;
    padding-bottom: 2.5rem;
}

#experience .timeline-item:last-child {
    padding-bottom: 0;
}

#experience .timeline-item::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 56px;
    bottom: -2.5rem;
    width: 2px;
    background-color: var(--secondary-color);
}

#experience .timeline-item:last-child::before {
    display: none;
}

#experience .timeline-card {
    background-color: var(--secondary-color) !important;
    box-shadow: 0px 8px 56px rgb(15 80 100 / 16%);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}

#experience .timeline-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

#experience .timeline-card-header a {
    text-decoration: none;
    color: var(--text-secondary-color) !important;
}

#experience .timeline-card-header a:hover {
    color: var(--primary-color) !important;
}

#experience .timeline-date {
    color: var(--text-secondary-color) !important;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

#experience .timeline-lab-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    border-radius: 50rem;
    color: var(--primary-color) !important;
    background-color: var(--background-color) !important;
    border: 1px solid var(--primary-color);
    margin-bottom: 0.5rem;
}

#experience .featuredLink .btn {
    border-radius: 0.5rem !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

#experience .featuredLink .btn:hover {
    background-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
}

/* shared logo badge (experience timeline + education) */

.logo-badge {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--primary-color) !important;
    background-color: var(--background-color) !important;
    box-shadow: 0px 8px 56px rgb(15 80 100 / 16%);
    overflow: hidden;
    flex-shrink: 0;
}

.logo-badge img {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    background-color: #fff;
    padding: 4px;
}

.logo-badge-lg {
    width: 56px;
    height: 56px;
    font-size: 0.95rem;
}

.logo-badge-sm {
    position: static;
    width: 40px;
    height: 40px;
    font-size: 0.7rem;
}

#education .card-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 400px) {
    #experience .timeline-item {
        padding-left: 60px;
    }

    #experience .timeline-item::before {
        left: 19px;
    }

    .logo-badge-lg {
        width: 40px;
        height: 40px;
        font-size: 0.7rem;
    }
}
