/* ========================================
   YOUR LEARNING JOURNEY - ANIMATED PATH
   ======================================== */

.journey-section {
    background: linear-gradient(135deg, rgba(42, 10, 16, 0.95) 0%, rgba(30, 7, 12, 0.98) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.journey-path {
    position: relative;
    display: flex;
    justify-content: center;
    /* Align 1,2,3,4 to center */
    align-items: flex-start;
    gap: 1.5rem;
    /* Compact spacing */
    margin-top: 40px;
    padding: 0 10px;
}

/* ... (lines 20-90 kept implied/same, strictly targeting modified blocks if possible, but here we span) ... */

/* The Nodes */
/* The Nodes */
.step-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.4);
    background: rgba(42, 10, 16, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    /* Prevent layout shift from transform */
    transform-origin: center center;
    will-change: transform;
}

.step-number {
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    line-height: normal;
    margin-top: 0;

    /* Gold Shimmer Text Effect */
    background: linear-gradient(120deg, #D4AF37 0%, #FFF 50%, #D4AF37 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Fallback */
    animation: textShine 3s linear infinite;
}

@keyframes textShine {
    to {
        background-position: 200% center;
    }
}

/* ... */

/* Active step styling removed to match other layouts */


/* ========================================
   1. SEQUENTIAL PATH REVEAL - THE LINE
   ======================================== */

.journey-line {
    display: none;
}

@keyframes drawLine {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* Section Title White */
.journey-section .section-title {
    color: #fff;
}

/* ========================================
   JOURNEY STEPS
   ======================================== */

.journey-step {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    /* transform: translateY(30px); Removed */
    transition: all 0.5s ease;

    /* Card Styling for ALL steps */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(42, 10, 16, 0) 100%);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    padding: 20px 10px;
    margin: 0 5px;
    /* Spacing between cards */
    min-height: 250px;
    /* Uniform height */
}

/* Staggered entrance animation */
/* Staggered entrance animation - Triggered when added to view */
.journey-step.visible[data-step="1"] {
    animation: stepFadeIn 0.8s ease-out 0.2s forwards;
}

.journey-step.visible[data-step="2"] {
    animation: stepFadeIn 0.8s ease-out 0.6s forwards;
}

.journey-step.visible[data-step="3"] {
    animation: stepFadeIn 0.8s ease-out 1.0s forwards;
}

.journey-step.visible[data-step="4"] {
    animation: stepFadeIn 0.8s ease-out 1.4s forwards;
}

@keyframes stepFadeIn {
    to {
        opacity: 1;
        /* transform: translateY(0); Removed */
    }
}



/* Pulse animation when step appears */
/* Pulse animation when step appears */
.journey-step.visible[data-step="1"] .step-circle {
    animation: circlePulse 0.6s ease-out 0.7s;
}

.journey-step.visible[data-step="2"] .step-circle {
    animation: circlePulse 0.6s ease-out 1.1s;
}

.journey-step.visible[data-step="3"] .step-circle {
    animation: circlePulse 0.6s ease-out 1.5s;
}

.journey-step.visible[data-step="4"] .step-circle {
    animation: circlePulse 0.6s ease-out 1.9s;
}

@keyframes circlePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.8);
    }
}



/* ========================================
   4. HOVER EFFECTS - SCALE & GLOW
   ======================================== */

.journey-step:hover .step-circle {
    transform: scale(1.1);
    border-color: var(--color-accent);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.8),
        0 0 60px rgba(212, 175, 55, 0.4);
}

.journey-step:hover .step-number {
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
}

/* Dim other steps when one is hovered */
.journey-path:hover .journey-step:not(:hover) .step-circle {
    opacity: 0.5;
    filter: grayscale(30%);
}

.journey-path:hover .journey-step:not(:hover) .step-content {
    opacity: 0.6;
}

/* ========================================
   5. TEXT CONTENT - FADE UP ANIMATION
   ======================================== */

/* Step Content */
.step-content {
    max-width: 180px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    /* Fixed height for alignment since some titles wrap */
    min-height: 2.8rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.2;
}

.step-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Staggered Text Animations */
.step-title,
.step-description {
    opacity: 0;
    /* transform: translateY(15px); Removed */
}

.journey-step.visible[data-step="1"] .step-title {
    animation: textFloatIn 0.6s ease-out 0.9s forwards;
}

.journey-step.visible[data-step="1"] .step-description {
    animation: textFloatIn 0.6s ease-out 1.1s forwards;
}

.journey-step.visible[data-step="2"] .step-title {
    animation: textFloatIn 0.6s ease-out 1.3s forwards;
}

.journey-step.visible[data-step="2"] .step-description {
    animation: textFloatIn 0.6s ease-out 1.5s forwards;
}

.journey-step.visible[data-step="3"] .step-title {
    animation: textFloatIn 0.6s ease-out 1.7s forwards;
}

.journey-step.visible[data-step="3"] .step-description {
    animation: textFloatIn 0.6s ease-out 1.9s forwards;
}

.journey-step.visible[data-step="4"] .step-title {
    animation: textFloatIn 0.6s ease-out 2.1s forwards;
}

.journey-step.visible[data-step="4"] .step-description {
    animation: textFloatIn 0.6s ease-out 2.3s forwards;
}

@keyframes textFloatIn {
    to {
        opacity: 1;
        /* transform: translateY(0); Removed */
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 968px) {
    .journey-path {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }

    .journey-line {
        display: none;
    }

    .step-content {
        max-width: 300px;
    }
}