/* assets/css/pages/journey.css */

.section {
    position: relative;
    background-image: linear-gradient(rgba(240, 253, 250, 0.85), rgba(240, 253, 250, 0.85)),
        url('../../images/roadmap-illustration.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}


/* Page Header Styles moved to global.css */


/* Timeline Container */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* The Central Line */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--brand-primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

/* Timeline Card Wrapper (reusing .step-card but overriding positioning) */
.step-card {
    padding: 2.5rem;
    position: relative;
    background: linear-gradient(135deg, var(--brand-medium), var(--brand-dark));
    /* Rich Teal Gradient */
    width: 45%;
    /* Dark Teal Background */
    border-radius: var(--radius-lg);
    border: 1px solid var(--brand-accent);
    /* Bright Teal Border */
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    margin-bottom: 4rem;
    border-top: 4px solid var(--brand-accent);
    overflow: visible;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-medium));
    /* Lighter on hover */
    z-index: 10;
}

/* Left Side */
.step-card:nth-child(odd) {
    left: 0;
}

/* Right Side */
.step-card:nth-child(even) {
    left: 55%;
}

/* The Circles on the Line */
.step-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -6.6%;
    background-color: var(--brand-accent);
    /* Bright Teal Dot */
    border: 4px solid var(--brand-dark);
    top: 2rem;
    border-radius: 50%;
    z-index: 1;
}

/* Fix Circle Position for Right Side */
.step-card:nth-child(even)::after {
    left: -6.6%;
}

/* Arrows pointing to content */
.step-card::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 2rem;
    width: 0;
    z-index: 1;
    right: -10px;
    border: medium solid var(--brand-dark);
    /* Match Card Bg */
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--brand-accent);
    /* Border color */
}

/* Fix Arrow for Right Side */
.step-card:nth-child(even)::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--brand-accent) transparent transparent;
}

/* Step Number Styling inside card */
.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--white);
    /* White Circle */
    color: var(--brand-dark);
    /* Dark Text */
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    font-family: var(--font-mono);
}

.step-card h4 {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1.5rem;
}

.step-card p {
    color: rgba(255, 255, 255, 0.95);
    /* Pure White Text */
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.step-card hr {
    margin: 1.5rem 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.step-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.meta-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-dark);
    background: var(--white);
    /* High contrast white badge */
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {

    /* Move the line to the left */
    .timeline::after {
        left: 31px;
    }

    /* Make cards full width */
    .step-card {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    /* Ensure arrows and circles are adjusted */
    .step-card::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    /* Make all cards right aligned relative to the line */
    .step-card:nth-child(odd),
    .step-card:nth-child(even) {
        left: 0;
    }

    /* Adjust circles */
    .step-card::after {
        left: 21px;
    }

    /* Fix left padding to make room for line */
    .step-card {
        width: 100%;
        margin-left: 0;
        padding: 2rem;
        /* Indent content to not overlap line visually if needed, 
          but usually standard padding is fine if line is far left. 
          Actually, let's keep the line central-ish or move it to far left. 
          Let's try a simpler mobile stack: line on left.
       */
        padding-left: 5rem;
    }

    .timeline::after {
        left: 2rem;
    }

    .step-card::after {
        left: 1.4rem;
        /* Center on line */
        right: auto;
    }

    .step-card:nth-child(even)::after {
        left: 1.4rem;
    }
}