/* ========================================
   INTRODUCTION REDESIGN: FLUID JOURNEY
   ======================================== */

.story-right {
    position: relative;
    padding-left: 20px;
    overflow: hidden;
}

.intro-journey-path {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
}

/* Connecting Ribbon/Path */
.intro-journey-path::before {
    content: '';
    position: absolute;
    left: 40px;
    /* Aligned to center of 50px marker with 15px padding */
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom,
            transparent,
            var(--accent-color) 20%,
            var(--primary-color) 50%,
            var(--accent-color) 80%,
            transparent);
    opacity: 0.3;
}

.journey-step {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    position: relative;
    padding: 15px;
    transition: var(--transition);
}

.step-marker {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(173, 107, 75, 0.1);
    transition: var(--transition);
}

.step-marker i {
    font-size: 20px;
    color: var(--primary-color);
    transition: var(--transition);
}

/* Organic Background Blobs */
.step-blob {
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--primary-light);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    top: -20px;
    left: -20px;
    z-index: 1;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(20px);
}

.journey-step:nth-child(2) .step-blob {
    background: rgba(173, 107, 75, 0.05);
    border-radius: 60% 40% 30% 70% / 50% 30% 70% 50%;
}

.journey-step:hover .step-blob {
    opacity: 1;
    transform: scale(1.2) rotate(15deg);
}

.journey-step:hover .step-marker {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.journey-step:hover .step-marker i {
    color: var(--white);
    transform: scale(1.1);
}

.step-description {
    flex: 1;
    padding-top: 5px;
}

.step-description p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-deep);
    margin: 0;
}

.step-description strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Premium Reveal Enhancement */
.journey-step {
    opacity: 0;
    transform: translateX(20px);
    animation: stepReveal 0.8s ease forwards;
}

.journey-step:nth-child(1) {
    animation-delay: 0.2s;
}

.journey-step:nth-child(2) {
    animation-delay: 0.4s;
}

.journey-step:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes stepReveal {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Fixes */
@media (max-width: 991px) {
    .story-right {
        padding-left: 0;
        margin-top: 40px;
    }

    .step-marker {
        width: 45px;
        height: 45px;
    }

    .step-description p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .intro-journey-path::before {
        left: 22px;
        /* Center of 45px marker */
    }

    .step-marker {
        width: 45px;
        height: 45px;
        flex-shrink: 0;
    }

    .step-marker i {
        font-size: 18px;
    }

    .step-description p {
        font-size: 14px;
        line-height: 1.6;
    }
}

@media (max-width: 320px) {
    .intro-journey-path::before {
        left: 17px;
        /* Re-align for smaller markers (35px width / 2 = 17.5px) */
    }

    .step-marker {
        width: 35px;
        height: 35px;
        flex-shrink: 0;
    }

    .step-marker i {
        font-size: 14px;
    }

    .journey-step {
        gap: 15px;
        padding: 10px 0;
        /* Reduce padding */
    }

    .step-description p {
        font-size: 13px;
    }

    .step-description strong {
        font-size: 14px;
    }
}

/* FINAL SAFETY OVERRIDE FOR SUB-320PX */
@media (max-width: 320px) {
    .step-description {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
    }
    .step-description p, .step-description strong {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* FORCE ALIGNMENT OVERRIDE */
@media (max-width: 991px) {
    .intro-journey-path::before { left: 36.5px !important; }
    .step-marker { width: 45px !important; height: 45px !important; }
}
@media (max-width: 768px) {
    .intro-journey-path::before { left: 36.5px !important; }
}
