/* =========================
   HORIZONTAL ALTERNATE TIMELINE
========================= */

.wdp-premium-timeline.horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 120px auto;
    position: relative;
}

/* Center line */
.wdp-premium-timeline.horizontal::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e5e5e5;
    transform: translateY(-50%);
}

/* Step */
.wdp-premium-timeline.horizontal .wdp-step {
    flex: 1;
    position: relative;
    text-align: center;
    padding: 0 20px;
}

/* Number circle */
.wdp-dot {
    width: 48px;
    height: 48px;
    background: #ff6b4a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-weight: 600;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Card base */
.wdp-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 280px;
    margin: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* ODD → CARD BELOW */
.wdp-step:nth-child(odd) .wdp-card {
    top: 70px;
}

/* EVEN → CARD ABOVE */
.wdp-step:nth-child(even) .wdp-card {
    bottom: 70px;
}

/* =========================
   MOBILE → VERTICAL STACK
========================= */

/* =========================
   MOBILE → FULL RESPONSIVE FIX
========================= */

@media (max-width: 768px) {

    .wdp-premium-timeline.horizontal {
        flex-direction: column;
        align-items: center;
        margin: 10px 15px;
        padding-left: 0;
    }

    /* vertical center line */
    .wdp-premium-timeline.horizontal::before {
    /*      top: 0;
        left: 50%;
        width: 4px;
        height: 100%;
        transform: translateX(-50%);*/
        display: none;
    }

    .wdp-step {
        width: 100%;
        padding: 0;
        margin: 20px 0;
        text-align: center;
        position: relative;
    }

    .wdp-dot {
        position: relative;
        left: auto;
        top: auto;
        margin: 0 auto 16px;
        transform: none;
    }

    .wdp-card {
        position: relative;
        top: auto !important;
        bottom: auto !important;
        left: auto;
        transform: none !important;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    /* remove alternate logic on mobile */
    .wdp-step:nth-child(odd) .wdp-card,
    .wdp-step:nth-child(even) .wdp-card {
        top: auto;
        bottom: auto;
    }
}

/* =========================
   PREMIUM POLISH EFFECTS
========================= */

/* Gradient timeline line */
.wdp-premium-timeline.horizontal::before {
    background: linear-gradient(
        to right,
        #ff6b4a,
        #ffb347,
        #ff6b4a
    );
}

/* Dot inner ring */
.wdp-dot::before {
    content: "";
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    position: absolute;
}

/* Dot glow */
.wdp-dot {
    box-shadow:
        0 0 0 6px rgba(255,107,74,0.15),
        0 12px 30px rgba(0,0,0,0.25);
}

/* Connector stem */
.wdp-card::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 30px;
    background: #ff6b4a;
    left: 50%;
    transform: translateX(-50%);
}

/* Stem position */
.wdp-step:nth-child(odd) .wdp-card::after {
    top: -30px;
}

.wdp-step:nth-child(even) .wdp-card::after {
    bottom: -30px;
}

/* Card hover effect */
.wdp-card {
    transition: all 0.35s ease;
}

.wdp-card:hover {
    transform: translateX(-50%) translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

/* Even hover correction */
.wdp-step:nth-child(even) .wdp-card:hover {
    transform: translateX(-50%) translateY(8px);
}

/* Typography polish */
.wdp-card p {
    margin: 0;
    color: #444;
    font-size: 15px;
}

/* Mobile remove stem */
@media (max-width: 768px) {
    .wdp-card::after {
        display: none;
    }

    .wdp-card:hover {
        transform: none;
    }
}
/* =========================
   LEVEL 3 – ADVANCED POLISH
========================= */

/* Animated gradient line */
.wdp-premium-timeline.horizontal::before {
    background-size: 300% 300%;
    animation: gradientMove 6s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Scroll reveal base */
.wdp-step {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

/* Reveal active */
.wdp-step.wdp-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Active step highlight */
.wdp-step.active .wdp-dot {
    background: linear-gradient(135deg, #ff6b4a, #ffb347);
    box-shadow:
        0 0 0 8px rgba(255,107,74,0.2),
        0 15px 40px rgba(0,0,0,0.3);
}

/* Active card */
.wdp-step.active .wdp-card {
    border: 2px solid rgba(255,107,74,0.25);
}

/* Optional icon support */
.wdp-dot i {
    font-size: 18px;
}

/* Auto-center if last item odd */
.wdp-premium-timeline.horizontal .wdp-step:last-child:nth-child(odd) {
    align-self: center;
}

/* Smooth card text */
.wdp-card {
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(135deg, #ff6b4a, #ffb347) border-box;
    border: 2px solid transparent;
}

