.formula-model-wrapper {
    display: flex;
}
.formula-model-item  {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #ddd;
    transition: all 1s cubic-bezier(.7, 0, .2, 1);
}

.formula-model-item.active {
    color: #0E1729;
}
.formula-number {
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 8px;
}
.formula-model-item .formula-title  {
    color: currentColor;
    margin: 0;
    padding-right: 40px;
}

.formula-model-item-marker {
    display: flex;
    align-items: center;
}
.formula-model-item-marker .dot {
    width: 12px;
    height: 12px;
    background: #ddd;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.formula-model-item.active .formula-model-item-marker .dot:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: -3px;
    top: -3px;
    /*transform: translateX(-50%) translateY(-50%);*/
    display: block;
    height: 18px;
    width: 18px;
    background: currentColor;
    border-radius: 50%;
    animation: pulse 1500ms ease-out infinite;
}

.formula-model-item-marker .dot:after {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    display: block;
    background: #CAB274;
    transform: scale(0);
    transition: transform 1s cubic-bezier(.7, 0, .2, 1);
}
.formula-model-item.active .formula-model-item-marker .dot:after {
    transform: scale(1);
}

.formula-model-item-marker .bar {
    height: 1.5px;
    flex: 1;
    background: #ddd;   
    position: relative;
}
.formula-model-item-marker .bar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    height: 1.5px;
    background: #CAB274;
    width: 100%;
    left: 0;
    transform-origin: right;
    opacity: 0;
    transition: transform 3s cubic-bezier(.7, 0, .2, 1);
}

.formula-model-item.active .formula-model-item-marker .bar::after {
    opacity: 1;
    transform: scaleX(0);
}

.formula-model-item.active .formula-model-item-marker .dot {
    color: #CAB274;
}

.formula-model-wrapper .slick-list {
    padding-top: 10px;
}

@media screen and (max-width: 782px) {
    .formula-number {
        font-size: 24px;
    }
    .formula-model-item .formula-title {
        font-size: 12px;
    }
}

.readmore-steps-wrapper {
    position: relative;
    overflow: hidden;
    flex: 1;
    padding-bottom: 0px;
    padding-right: 24px;
}

.steps-description {
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 1;
}

.readmore-steps-wrapper.collapsing .steps-description {
    transition: max-height 0.5s ease, opacity 0.3s ease;
}

.readmore-steps-wrapper .steps-description {
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 1;
}

/* ✅ Sync paragraph margins with line-height */
.readmore-steps-wrapper .steps-description p {
    margin-top: 0;
    margin-bottom: 16px; /* fallback */
}

.readmore-steps-wrapper .generic-btn .steps-readmore-toggle {
    padding: 0;
    background-color: transparent;
    color: #ddd;
    font-size: 16px;
    font-weight: 700;
    line-height: 26px;
    margin-top: 10px;
}

.formula-model-item.active .readmore-steps-wrapper .generic-btn .steps-readmore-toggle {
    color: #4F4F4F;
}