/**
 * TP Timeline Item — widget styles
 *
 * Vertical timeline with octagonal year badges and content cards.
 *
 * @package Technoproekt
 * @author  Kkalganov <https://kkalganov.com>
 */

/* ==========================================================================
   Timeline Item
   ========================================================================== */

.tp-timeline-item {
    position: relative;
    padding-bottom: 48px;
    padding-left: 80px;
}

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

/* Year badge — octagon */
.tp-timeline-item__year {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--tp-green-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--tp-white);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    z-index: 1;
    transition: all 0.3s;
}

.tp-timeline-item:hover .tp-timeline-item__year {
    background: var(--tp-yellow);
    color: var(--tp-dark);
}

/* Content card */
.tp-timeline-item__content {
    background: var(--tp-white);
    padding: 28px 32px;
    border: 1px solid var(--tp-cream-warm);
    transition: all 0.3s;
}

.tp-timeline-item:hover .tp-timeline-item__content {
    border-color: var(--tp-green-main);
    box-shadow: 0 8px 24px var(--tp-black-06);
}

.tp-timeline-item__title {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--tp-text);
    margin-bottom: 8px;
}

.tp-timeline-item__desc {
    font-size: 14px;
    color: var(--tp-text-light);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .tp-timeline-item {
        padding-left: 60px;
    }

    .tp-timeline-item__year {
        width: 48px;
        height: 48px;
        font-size: 12px;
    }

    .tp-timeline-item__content {
        padding: 20px 24px;
    }
}
