/* Timeline Styles - Compact & Premium */
.elkz-timeline {
    padding: 20px 0;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Central Line */
.elkz-timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #bdc3c7;
    transform: translateX(-50%);
    border-radius: 1px;
}

/* Items */
.elkz-timeline-item {
    position: relative;
    margin-bottom: 20px;
    /* Reduced */
    width: 50%;
    padding: 0 25px;
    /* Reduced */
    box-sizing: border-box;
    clear: both;
}

.elkz-timeline-item:nth-child(odd) {
    float: left;
    text-align: right;
    padding-right: 25px;
    padding-left: 0;
}

.elkz-timeline-item:nth-child(even) {
    float: right;
    text-align: left;
    padding-left: 25px;
    padding-right: 0;
    margin-top: 30px;
    /* Reduced stagger */
}

.elkz-timeline::after {
    content: "";
    display: table;
    clear: both;
}

/* Dots */
.elkz-timeline-dot {
    position: absolute;
    top: 15px;
    width: 16px;
    /* Slightly smaller */
    height: 16px;
    background: #3498db;
    border: 3px solid #fff;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 2px #bdc3c7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elkz-timeline-item:nth-child(odd) .elkz-timeline-dot {
    right: -9px;
}

.elkz-timeline-item:nth-child(even) .elkz-timeline-dot {
    left: -9px;
}

.elkz-timeline-dot i {
    font-size: 8px;
    color: #fff;
}

/* Content Card */
.elkz-timeline-content {
    background: #fff;
    padding: 12px 18px;
    /* Compact */
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
}

.elkz-timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Arrows */
.elkz-timeline-content::before {
    content: '';
    position: absolute;
    top: 16px;
    border: 7px solid transparent;
}

.elkz-timeline-item:nth-child(odd) .elkz-timeline-content::before {
    right: -14px;
    border-left-color: #fff;
}

.elkz-timeline-item:nth-child(even) .elkz-timeline-content::before {
    left: -14px;
    border-right-color: #fff;
}

/* Typography */
.elkz-timeline-date {
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #95a5a6;
    margin-bottom: 4px;
    font-weight: 600;
}

.elkz-timeline-title {
    margin: 0 0 6px;
    font-size: 1.1em;
    color: #2c3e50;
    line-height: 1.25;
}

/* Override any theme underlines */
.elkz-timeline-title a {
    text-decoration: none !important;
    box-shadow: none !important;
    color: inherit;
}

.elkz-timeline-title a:hover {
    color: #3498db;
}

.elkz-story-body {
    color: #666;
    font-size: 0.85em;
    line-height: 1.45;
    margin-bottom: 10px;
}

.elkz-timeline-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 8px;
    display: block;
}

/* Read More Button - Subtle Outline */
a.read-more {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid #3498db;
    color: #3498db;
    background: transparent;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    transition: all 0.2s;
    line-height: 1;
}

a.read-more:hover {
    background-color: #3498db;
    color: #fff;
}

/* Responsive Vertical */
@media (max-width: 768px) {
    .elkz-timeline-line {
        left: 20px;
    }

    .elkz-timeline-item {
        width: 100%;
        padding-left: 45px;
        padding-right: 10px;
        margin-bottom: 15px;
        margin-top: 15px !important;
        float: none;
    }

    .elkz-timeline-item:nth-child(odd),
    .elkz-timeline-item:nth-child(even) {
        text-align: left;
    }

    .elkz-timeline-item:nth-child(odd) .elkz-timeline-dot,
    .elkz-timeline-item:nth-child(even) .elkz-timeline-dot {
        left: 11px;
        right: auto;
    }

    .elkz-timeline-item:nth-child(odd) .elkz-timeline-content::before,
    .elkz-timeline-item:nth-child(even) .elkz-timeline-content::before {
        left: -14px;
        right: auto;
        border-right-color: #fff;
        border-left-color: transparent;
    }
}

/* =========================================
   Horizontal Layout Styles (Design 2)
   ========================================= */
.elkz-timeline.elkz-layout-horizontal {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 20px 20px;
    max-width: 100%;
    align-items: flex-start;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.elkz-timeline.elkz-layout-horizontal::after {
    display: none;
}

/* Horizontal Line Fix */
.elkz-timeline.elkz-layout-horizontal .elkz-timeline-line {
    height: 3px;
    /* Use calc(100% - padding) logic or just let it span */
    /* Ensure it spans the scroll width by taking it out of flow or using min-width */
    left: 20px;
    right: 20px;
    width: auto;
    min-width: calc(100% - 40px);
    top: 25px;
    bottom: auto;
    transform: none;
    background: #bdc3c7;
    position: absolute;
    z-index: 0;
}

.elkz-timeline.elkz-layout-horizontal .elkz-timeline-item {
    flex: 0 0 260px;
    width: 260px;
    max-width: 75vw;
    margin: 45px 15px 10px;
    padding: 0;
    text-align: left;
    float: none;
    background: transparent;
}

.elkz-timeline.elkz-layout-horizontal .elkz-timeline-item:nth-child(even) {
    margin-top: 45px;
}

/* Dots */
.elkz-timeline.elkz-layout-horizontal .elkz-timeline-dot {
    top: -29px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    margin: 0;
}

.elkz-timeline.elkz-layout-horizontal .elkz-timeline-item:nth-child(odd) .elkz-timeline-dot,
.elkz-timeline.elkz-layout-horizontal .elkz-timeline-item:nth-child(even) .elkz-timeline-dot {
    left: 50%;
    right: auto;
}

/* Connector */
.elkz-timeline.elkz-layout-horizontal .elkz-timeline-item::before {
    content: '';
    position: absolute;
    top: -11px;
    left: 50%;
    width: 2px;
    height: 11px;
    background: #bdc3c7;
    transform: translateX(-50%);
    z-index: 0;
}

.elkz-timeline.elkz-layout-horizontal .elkz-timeline-content {
    padding: 12px 15px;
}

.elkz-timeline.elkz-layout-horizontal .elkz-timeline-title {
    font-size: 1.05em;
}

.elkz-timeline.elkz-layout-horizontal .elkz-timeline-content::before {
    display: none;
}