:root {
    --timeline-blue: rgb(11, 25, 87);

}



.container-xl {
    max-width: 1200px;
}

/* ---------- SECTION ---------- */
.timeline-section {
    padding: 0px 20px;
}

.timeline-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

/* ========== DESKTOP (ALTERNATING ZIG-ZAG) ========== */
.timeline-desktop {
    position: relative;
    padding: 40px 0 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* central vertical dotted line */
.timeline-vertical-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 60px;
    width: 2px;
    margin-left: -1px;
    background-image: radial-gradient(var(--timeline-blue) 0 0);
    /* create dotted look by background */
    background-size: 2px 14px;
    background-repeat: repeat-y;
    opacity: 1;
    z-index: 1;
}


/* timeline list */
.timeline-list {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 36px 20px;
    box-sizing: border-box;
    min-height: 140px;
}

.timeline-item .content {
    background: transparent;
}

/* left items */
.timeline-item.left {
    left: 0;
    text-align: right;
    margin-left: 0;
    padding-right: 60px;
}

/* right items */
.timeline-item.right {
    left: 50%;
    text-align: left;
    padding-left: 60px;
}

/* connector - small dot aligned to center vertical line */
.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: var(--timeline-dot-size);
    height: var(--timeline-dot-size);
    background: var(--timeline-blue);
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.03);
}

/* vertical short stick from the marker to the content */
.timeline-stick {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: var(--timeline-blue);
    z-index: 2;
}

/* For left items stick goes from marker to right (content) */
.timeline-item.left .timeline-stick {
    top: calc(50% - 12px);
    height: 0;
}

/* For right items stick also invisible (we use horizontal connectors via padding) */
.timeline-item.right .timeline-stick {
    top: calc(50% - 12px);
    height: 0;
}

/* HEX (we'll place near the content, not at center) */
.hex {
    width: 112px;
    height: 64px;
    background: var(--main-color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 12px;
    /* clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); */
}

/* content box */
.timeline-item h5 {
    font-size: 20px;
    margin: 8px 0;
    font-weight: 700;
}

.timeline-item p {
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
    color: #333;
}

/* offsets for left/right items to place hex near the central line */
.timeline-item.left .hex {
    position: absolute;
    right: -56px;
    /* place hex to the right edge (near center line) */
    top: 8px;
    transform: translateX(50%);
}

.timeline-item.right .hex {
    position: absolute;
    left: -56px;
    /* place hex to the left edge (near center line) */
    top: 40px;
    transform: translateX(-50%);
}

/* text block width */
.timeline-item.left .content {
    max-width: calc(100% - 140px);
    margin-left: auto;
}

.timeline-item.right .content {
    max-width: calc(100% - 140px);
    margin-right: auto;
}

/* spacing between items */
.timeline-item+.timeline-item {
    margin-top: 40px;
}

/* ensure ordering left/right in vertical flow */
.timeline-row {
    display: block;
    position: relative;
    margin-bottom: 70px;
    padding: 0;
    clear: both;
}

.timeline-row:last-child {
    margin-bottom: 0;
}

/* responsive tweaks for desktop widths */
@media (min-width: 992px) {
    .timeline-list {
        display: block;
    }

    /* position each item as block with left or right */
    .timeline-item {
        position: relative;
    }
}

/* ========== MOBILE: HORIZONTAL SCROLL VERSION ========== */
.timeline-mobile {
    display: none;
}

.mobile-scroll-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 30px 18px 24px;
    position: relative;
}

.mobile-dotted-line {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    height: 2px;
    background-image: radial-gradient(var(--timeline-blue) 0 0);
    background-size: 14px 2px;
    background-repeat: repeat-x;
    z-index: 1;
}

/* Left circle marker (start of mobile horizontal line) */
.mobile-left-circle {
    position: absolute;
    top: 64px;
    left: 0;
    width: 15px;
    height: 15px;
    background: var(--timeline-blue);
    border-radius: 0;
    z-index: 3;
}

/* Right circle marker (end of mobile horizontal line) */
.mobile-right-circle {
    position: absolute;
    top: 64px;
    right: 0;
    width: 15px;
    height: 15px;
    background: var(--timeline-blue);
    border-radius: 0;
    z-index: 3;
}

.mobile-item {
    display: inline-block;
    vertical-align: top;
    width: 280px;
    margin-right: 26px;
    white-space: normal;
    position: relative;
    z-index: 2;
}

.mobile-item:last-child {
    margin-right: 0;
}

.mobile-item .hex {
    display: block;
    margin: 0 0 12px 0;
    transform: none;
    position: relative;
    left: 0;
    top: 0;
    display: flex;
}

.mobile-item .mobile-dot {
    width: 14px;
    height: 14px;
    background: var(--timeline-blue);
    border-radius: 50%;
    position: absolute;
    top: 71px;
    left: 8px;
    z-index: 3;
    transform: translateY(-50%);
}

.mobile-item h5 {
    font-size: 16px;
    margin: 8px 0;
}

.mobile-item p {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.timeline-bottom-circle {
    position: absolute;
    left: 50%;
    height: 15px;
    transform: translateX(-50%);
    width: 15px;
    background: var(--timeline-blue);
    border-radius: 0px;
    z-index: 3;
    /* box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.03); */
    bottom: 50px;

}

.timeline-top-circle {
    position: absolute;
    left: 50%;
    height: 15px;
    transform: translateX(-50%);
    width: 15px;
    background: var(--timeline-blue);
    border-radius: 0px;
    z-index: 3;
    /* box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.03); */
    top: 0;
}

/* show mobile and hide desktop under 768px */
@media (max-width: 767.98px) {
    .timeline-desktop {
        display: none;
    }

    .timeline-mobile {
        display: block;
    }

    .timeline-section {
        padding: 36px 12px;
    }
}

/* small screens adjustments */
@media (max-width: 400px) {
    .mobile-item {
        width: 220px;
        margin-right: 18px;
        margin-left: 20px;
    }
}

/* small visual polish */
.hex small {
    display: block;
    font-size: 12px;
    opacity: .9;
    font-weight: 600;
}