/* ============================================================
   Vertical Timeline — About Us (#vertical-timeline)
   Novamira Sandbox
   ============================================================ */

/* --- Section wrapper --- */
.nm-vt-wrap {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* --- Section header --- */
.nm-vt-header {
    text-align: center;
    margin-bottom: 80px;
}

.nm-vt-eyebrow {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #7ebe42;
    margin-bottom: 16px;
}

.nm-vt-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: #20396d;
    margin: 0;
    line-height: 1.2;
}

/* --- Items list (center line lives here) --- */
.nm-vt-list {
    position: relative;
}

.nm-vt-list::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(
        to bottom,
        transparent 0%,
        #20396d 8%,
        #7ebe42 50%,
        #20396d 92%,
        transparent 100%
    );
    pointer-events: none;
}

/* --- Timeline items --- */
.nm-vt-item {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 80px;
    position: relative;
    opacity: 0;
    transform: translateY(44px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.nm-vt-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Alternating layout — scoped to .nm-vt-list so nth-child is correct */
.nm-vt-list .nm-vt-item:nth-child(odd) {
    flex-direction: row;
}

.nm-vt-list .nm-vt-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* Gold dot on center line */
.nm-vt-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    background: #7ebe42;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 0 4px #fffbf2, 0 0 0 6px rgba(192, 138, 44, 0.3);
    transition: box-shadow 0.3s ease;
}

.nm-vt-item.is-visible::before {
    box-shadow: 0 0 0 4px #fffbf2, 0 0 0 8px rgba(192, 138, 44, 0.25);
}

/* --- Half-side panels --- */
.nm-vt-content,
.nm-vt-img {
    flex: 0 0 calc(50% - 1px);
    box-sizing: border-box;
}

/* Content panel padding + alignment */
.nm-vt-list .nm-vt-item:nth-child(odd) .nm-vt-content {
    padding-right: 56px;
    padding-left: 0;
    text-align: right;
}

.nm-vt-list .nm-vt-item:nth-child(even) .nm-vt-content {
    padding-left: 56px;
    padding-right: 0;
    text-align: left;
}

/* Date badge */
.nm-vt-date {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #7ebe42;
    margin-bottom: 14px;
    position: relative;
}

/* Horizontal rule flanking the date — mirrors the alternation */
.nm-vt-list .nm-vt-item:nth-child(odd) .nm-vt-date::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: #7ebe42;
    vertical-align: middle;
    margin-right: 10px;
}

.nm-vt-list .nm-vt-item:nth-child(even) .nm-vt-date::after {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: #7ebe42;
    vertical-align: middle;
    margin-left: 10px;
}

/* Title */
.nm-vt-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #20396d;
    margin: 0 0 14px;
    line-height: 1.35;
}

/* Description */
.nm-vt-desc {
    font-family: Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.78;
    color: #555;
    margin: 0;
}

/* Image panel padding */
.nm-vt-list .nm-vt-item:nth-child(odd) .nm-vt-img {
    padding-left: 56px;
    padding-right: 0;
}

.nm-vt-list .nm-vt-item:nth-child(even) .nm-vt-img {
    padding-right: 56px;
    padding-left: 0;
}

/* Placeholder image block */
.nm-vt-img-inner {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nm-vt-img-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(32, 57, 109, 0.06);
}

/* Unique gradient per item */
.nm-vt-list .nm-vt-item:nth-child(1) .nm-vt-img-inner { background: linear-gradient(135deg, #1a2f5a 0%, #2d5a8e 50%, #7ebe42 100%); }
.nm-vt-list .nm-vt-item:nth-child(2) .nm-vt-img-inner { background: linear-gradient(135deg, #2c4a1e 0%, #4a7a34 50%, #8ab44a 100%); }
.nm-vt-list .nm-vt-item:nth-child(3) .nm-vt-img-inner { background: linear-gradient(135deg, #5a2020 0%, #8e3d2d 50%, #7ebe42 100%); }
.nm-vt-list .nm-vt-item:nth-child(4) .nm-vt-img-inner { background: linear-gradient(135deg, #20396d 0%, #1a5a7a 50%, #2a8a9e 100%); }
.nm-vt-list .nm-vt-item:nth-child(5) .nm-vt-img-inner { background: linear-gradient(135deg, #3d1a5a 0%, #6b3d8e 50%, #7ebe42 100%); }
.nm-vt-list .nm-vt-item:nth-child(6) .nm-vt-img-inner { background: linear-gradient(135deg, #1a3d2c 0%, #20396d 60%, #7ebe42 100%); }

/* SVG placeholder icon */
.nm-vt-img-icon {
    width: 48px;
    height: 48px;
    opacity: 0.25;
    position: relative;
    z-index: 1;
    fill: #fff;
    flex-shrink: 0;
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
    .nm-vt-wrap {
        padding: 60px 20px;
    }

    .nm-vt-heading {
        font-size: 28px;
    }

    /* Line shifts to left edge */
    .nm-vt-list::before {
        left: 20px;
    }

    .nm-vt-list .nm-vt-item,
    .nm-vt-list .nm-vt-item:nth-child(odd),
    .nm-vt-list .nm-vt-item:nth-child(even) {
        flex-direction: column;
        margin-bottom: 56px;
        padding-left: 48px;
    }

    .nm-vt-item::before {
        left: 20px;
        top: 0;
        transform: translate(-50%, 0);
    }

    .nm-vt-content,
    .nm-vt-img {
        flex: none;
        width: 100%;
    }

    .nm-vt-list .nm-vt-item:nth-child(odd) .nm-vt-content,
    .nm-vt-list .nm-vt-item:nth-child(even) .nm-vt-content {
        padding: 0;
        text-align: left;
        order: 1;
    }

    .nm-vt-list .nm-vt-item:nth-child(odd) .nm-vt-img,
    .nm-vt-list .nm-vt-item:nth-child(even) .nm-vt-img {
        padding: 16px 0 0;
        order: 2;
    }

    .nm-vt-list .nm-vt-item:nth-child(odd) .nm-vt-date::before,
    .nm-vt-list .nm-vt-item:nth-child(even) .nm-vt-date::after {
        display: none;
    }
}
