/* Solutions Timeline — one bubble per day */

.cst-timeline {
    --cst-accent: #669c35;     /* bubble header, markers */
    --cst-line: #38571a;       /* center line, year badge, footer link */
    --cst-text: #111111;
    --cst-muted: #646970;
    --cst-bg: #ffffff;
    --cst-gap: 57px;           /* space between bubble and center line */
    --cst-dot: 47px;
    --cst-max-width: 1200px;   /* overall timeline width; each bubble gets about half */

    max-width: var(--cst-max-width);
    margin: 48px auto;
    font-family: inherit;
}

.cst-items {
    position: relative;
}

/* Dotted center line */
.cst-items::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-left: 6px dotted var(--cst-line);
}

/* Year badge */
.cst-year {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 0 0 60px;
}
.cst-year span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 105px;
    height: 105px;
    border: 5.5px solid var(--cst-line);
    border-radius: 50%;
    background: var(--cst-bg);
    color: var(--cst-line);
    font-size: 25px;
    font-weight: 600;
    box-sizing: border-box;
}

/* Day row: half width, alternating sides */
.cst-day {
    position: relative;
    width: 50%;
    margin: 0 0 60px;
    box-sizing: border-box;
}
.cst-day.cst-left {
    padding-right: var(--cst-gap);
}
.cst-day.cst-right {
    margin-left: 50%;
    padding-left: var(--cst-gap);
}

/* Marker on the line: ring with a leaf in the middle */
.cst-dot {
    position: absolute;
    top: 12px;
    width: var(--cst-dot);
    height: var(--cst-dot);
    border: 5px solid var(--cst-accent);
    border-radius: 50%;
    background: var(--cst-bg);
    box-sizing: border-box;
    z-index: 1;
}
.cst-dot::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    background: var(--cst-accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M21 2.5C11 2.5 3.8 8.3 3.8 15.6c0 1.4.3 2.7.9 3.9L2.6 21.6 4 23l2.1-2.1c1.3.9 2.9 1.4 4.6 1.4C18.2 22.3 21 13.7 21 2.5zM7.2 18.4 16.6 9l.9.9-9.4 9.4z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M21 2.5C11 2.5 3.8 8.3 3.8 15.6c0 1.4.3 2.7.9 3.9L2.6 21.6 4 23l2.1-2.1c1.3.9 2.9 1.4 4.6 1.4C18.2 22.3 21 13.7 21 2.5zM7.2 18.4 16.6 9l.9.9-9.4 9.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cst-left .cst-dot {
    right: calc(var(--cst-dot) / -2);
}
.cst-right .cst-dot {
    left: calc(var(--cst-dot) / -2);
}

/* Date beside the marker, on the other side of the line */
.cst-date {
    position: absolute;
    top: 25px;
    color: #232323;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    white-space: nowrap;
}
.cst-left .cst-date {
    left: calc(100% + var(--cst-dot) / 2 + 12px);
}
.cst-right .cst-date {
    right: calc(100% + var(--cst-dot) / 2 + 12px);
}

/* Bubble */
.cst-bubble {
    border-radius: 10px;
    background: var(--cst-bg);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.cst-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: var(--cst-accent);
    color: #ffffff;
}
.cst-timeline .cst-title {
    margin: 0;
    color: inherit;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}
.cst-count {
    flex-shrink: 0;
    font-size: 13px;
    opacity: 0.85;
}

.cst-list {
    margin: 0;
    padding: 6px 20px;
    list-style: none;
}
.cst-list li {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    font-size: 16px;
    line-height: 1.4;
}
.cst-list li:last-child {
    border-bottom: 0;
}
.cst-list a {
    color: var(--cst-text);
    font-weight: 500;
    text-decoration: none;
}
.cst-list a:hover,
.cst-list a:focus {
    color: var(--cst-accent);
    text-decoration: underline;
}

.cst-foot {
    padding: 12px 20px 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    text-align: right;
}
.cst-foot a {
    color: var(--cst-line);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.cst-foot a:hover,
.cst-foot a:focus {
    text-decoration: underline;
}

/* Newsletter signup bubble */
.cst-signup .cst-date {
    font-weight: 500;
    color: var(--cst-line);
}
.cst-signup-body {
    padding: 16px 20px 20px;
}
.cst-signup-body p {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.45;
}
.cst-timeline .cst-signup .tnp,
.cst-timeline .cst-signup .tnp form {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: none;
}
.cst-timeline .cst-signup .tnp form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    text-align: left !important; /* the plugin sets text-align inline */
}
.cst-timeline .cst-signup .tnp input.tnp-email {
    flex: 1 1 180px;
    width: auto;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #cfd6c8;
    border-radius: 8px;
    background: #ffffff;
    font: inherit;
    font-size: 15px;
}
.cst-timeline .cst-signup .tnp input.tnp-email:focus {
    border-color: var(--cst-accent);
    outline: 2px solid rgba(102, 156, 53, 0.25);
}
.cst-timeline .cst-signup .tnp input.tnp-submit {
    flex: 0 0 auto;
    width: auto;
    height: 44px;
    margin: 0;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: var(--cst-line);
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.cst-timeline .cst-signup .tnp input.tnp-submit:hover,
.cst-timeline .cst-signup .tnp input.tnp-submit:focus {
    background: var(--cst-accent);
}

/* Load more */
.cst-more {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 0 0 20px;
}
.cst-more-btn {
    padding: 10px 22px;
    border: 2px solid var(--cst-line);
    border-radius: 999px;
    background: var(--cst-bg);
    color: var(--cst-line);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.cst-more-btn:hover,
.cst-more-btn:focus {
    background: var(--cst-line);
    color: #ffffff;
}
.cst-more-btn[disabled] {
    opacity: 0.6;
    cursor: wait;
}
.cst-error {
    color: #b32d2e;
    text-align: center;
}

/* Phones: single column, line on the left */
@media (max-width: 781px) {
    .cst-timeline {
        --cst-dot: 36px;
        --cst-gap: 0px;
        margin: 32px 0;
    }
    .cst-items::before {
        left: 36px;
    }
    .cst-year {
        justify-content: flex-start;
        margin-bottom: 36px;
    }
    .cst-year span {
        width: 72px;
        height: 72px;
        margin-left: 0;
        font-size: 19px;
        border-width: 4px;
    }
    .cst-day,
    .cst-day.cst-left,
    .cst-day.cst-right {
        width: auto;
        margin: 0 0 36px;
        padding: 30px 0 0 70px;
    }
    .cst-left .cst-dot,
    .cst-right .cst-dot {
        top: 0;
        left: 18px;
        right: auto;
        border-width: 4px;
    }
    .cst-dot::after {
        width: 17px;
        height: 17px;
        margin: -8.5px 0 0 -8.5px;
    }
    .cst-left .cst-date,
    .cst-right .cst-date {
        top: 10px;
        left: 70px;
        right: auto;
        font-size: 15px;
    }
    .cst-timeline .cst-title {
        font-size: 18px;
    }
    .cst-more {
        justify-content: flex-start;
        padding-left: 70px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .cst-day.cst-new {
        animation: cst-fade-in 0.4s ease-out;
    }
    @keyframes cst-fade-in {
        from { opacity: 0; transform: translateY(12px); }
        to   { opacity: 1; transform: none; }
    }
}
