.timeline-widget-container {
    width: 100%;
    box-sizing: border-box;
}

.timeline-wrapper {
    /* Fallback variables, usually overridden by Elementor settings */
    --timeline-line-color: #ff3300;
    --timeline-dot-color: #ffaa00;
    --timeline-dot-bg-color: #1a1a1a;
    --card-bg-color: #1a1a1a;
    --card-border-color: #333333;
    --item-spacing: 20px;

    position: relative;
    padding-left: 40px;
    display: flex;
    flex-direction: column;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 25px;
    /* aligns roughly with first dot */
    bottom: 0;
    left: 9px;
    width: 2px;
    background-color: var(--timeline-line-color);
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: var(--item-spacing);
    width: 100%;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot-wrapper {
    position: absolute;
    left: -40px;
    top: 20px;
    /* Align vertically with card header */
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background-color: var(--card-bg-color);
    /* Hides the line behind it */
    border-radius: 50%;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--timeline-dot-bg-color);
    border: 2px solid var(--timeline-dot-color);
    box-shadow: 0 0 8px var(--timeline-dot-color);
}

.timeline-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--card-border-color);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-2px);
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

.timeline-time {
    background-color: #ffba00;
    /* Default */
    color: #000;
    padding: 6px 16px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    display: inline-block;
}

.timeline-badge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-badge-text {
    font-family: 'Bangers', cursive;
    color: #fffb00;
    font-size: 30px;
    letter-spacing: 2px;
    transform: rotate(-3deg);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.timeline-badge-icon {
    color: #ffba00;
    font-size: 26px;
}

.timeline-badge-icon i {
    filter: drop-shadow(0 0 5px rgba(255, 186, 0, 0.5));
}

.timeline-badge-icon svg {
    width: 26px;
    height: auto;
    fill: currentColor;
    filter: drop-shadow(0 0 5px rgba(255, 186, 0, 0.5));
}

.timeline-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #ffba00;
    margin: 5px 0;
    line-height: 1.3;
}

.timeline-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
}

.timeline-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.4;
}

.timeline-detail-icon {
    color: #ff3300;
    min-width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    /* Slight offset to align with text */
}

.timeline-detail-icon i {
    font-size: 14px;
}

.timeline-detail-icon svg {
    width: 14px;
    height: auto;
    fill: currentColor;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .timeline-wrapper {
        padding-left: 25px;
    }

    .timeline-wrapper::before {
        left: 5px;
    }

    .timeline-dot-wrapper {
        left: -25px;
        width: 12px;
        height: 12px;
    }

    .timeline-dot {
        width: 10px;
        height: 10px;
    }

    .timeline-card {
        padding: 16px;
    }

    .timeline-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-badge-text {
        font-size: 24px;
        transform: rotate(0);
    }
}