/* Base wrapper */
.ter-kal-block-list.template_timeline .eventlist {
    position: relative;
    padding-left: 20px;
    margin-top: 1rem;
    border: none;
    background: transparent;
}

/* The vertical connecting line */
.ter-kal-block-list.template_timeline .eventlist::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 26px;
    /* 20 padding + 6 (half marker) */
    width: 2px;
    background: #e0e0e0;
}

/* Individual timeline item container */
.ter-kal-block-list.template_timeline .tk_timeline_item {
    position: relative;
    margin-bottom: 2.5rem;
    display: flex;
}

/* The dot on the timeline */
.ter-kal-block-list.template_timeline .tk_timeline_marker {
    position: absolute;
    left: 0;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #ccc;
    z-index: 2;
    box-shadow: 0 0 0 4px #ffffff;
    /* clear space around circle */
    box-sizing: border-box;
}

/* Content wrapper that sits next to the line */
.ter-kal-block-list.template_timeline .tk_timeline_content_wrapper {
    margin-left: 50px;
    flex: 1;
    max-width: 600px;
}

/* The big date text above or above-left of the card */
.ter-kal-block-list.template_timeline .tk_timeline_date {
    margin-bottom: 0.6rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.ter-kal-block-list.template_timeline .tk_timeline_day {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333333;
}

.ter-kal-block-list.template_timeline .tk_timeline_full_date {
    font-size: 0.95rem;
    color: #777777;
}

/* The actual card content with the bordered left edge */
.ter-kal-block-list.template_timeline .tk_timeline_card {
    background: #ffffff;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
    border-right: 1px solid #f0f0f0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

/* Header layout: title and category badge */
.ter-kal-block-list.template_timeline .tk_timeline_header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.ter-kal-block-list.template_timeline .tk_timeline_title {
    font-size: 1.35rem;
    margin: 0;
    color: #222222;
    line-height: 1.3;
}

.ter-kal-block-list.template_timeline .tk_timeline_category {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.ter-kal-block-list.template_timeline .tk_timeline_time_location {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #666666;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 0.75rem;
    word-break: break-all;
    overflow-wrap: break-word;
}

.ter-kal-block-list.template_timeline .tk_timeline_time_location a {
    word-break: break-all;
    overflow-wrap: break-word;
}

.ter-kal-block-list.template_timeline .tk_timeline_time_location i {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
    line-height: 1;
    color: #999999;
}

/* Detailed content area containing thumbnail + text */
.ter-kal-block-list.template_timeline .tk_timeline_details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.6;
}

.ter-kal-block-list.template_timeline .tk_timeline_image {
    flex-shrink: 0;
}

.ter-kal-block-list.template_timeline .tk_timeline_image img {
    max-width: 180px;
    border-radius: 6px;
    height: auto;
    object-fit: cover;
    margin: 0;
}

.ter-kal-block-list.template_timeline .tk_timeline_text {
    flex-grow: 1;
}

/* Responsive constraints */
@container (max-width: 600px) {
    .ter-kal-block-list.template_timeline .tk_timeline_details {
        flex-direction: column;
        gap: 1rem;
    }

    .ter-kal-block-list.template_timeline .tk_timeline_image img {
        max-width: 100%;
        width: 100%;
    }

    .ter-kal-block-list.template_timeline .tk_timeline_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .ter-kal-block-list.template_timeline .tk_timeline_time_location {
        flex-direction: column;
        gap: 0.5rem;
    }
}