/**
 * Learning Journey / Timeline Section
 */

.edmark-learning-journey {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: inherit;
    color: #333;
    --lj-primary: #ef4444;
}

.edmark-lj-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 50px;
    color: #111;
}

.edmark-lj-title .edmark-lj-accent {
    color: var(--lj-primary);
}

.edmark-lj-timeline-wrap {
    position: relative;
    width: 100%;
}

.edmark-lj-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0 30px;
    width: 100%;
}

.edmark-lj-track,
.edmark-lj-progress {
    position: absolute;
    top: 34px;
    left: 0;
    height: 2px;
    border-radius: 2px;
}

.edmark-lj-track {
    width: 100%;
    background: #e5e7eb;
    z-index: 0;
}

.edmark-lj-progress {
    width: 0%;
    background: var(--lj-primary);
    z-index: 1;
    transition: width 0.4s ease;
}

.edmark-lj-step {
    flex: 1 1 0;
    text-align: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    padding: 0 5px;
    min-width: 0;
}

.edmark-lj-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.edmark-lj-step.edmark-lj-active .edmark-lj-dot,
.edmark-lj-step:hover .edmark-lj-dot {
    background: var(--lj-primary);
    border-color: var(--lj-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

.edmark-lj-label {
    margin-top: 14px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.edmark-lj-step.edmark-lj-active .edmark-lj-label,
.edmark-lj-step:hover .edmark-lj-label {
    color: var(--lj-primary);
    font-weight: 600;
}

.edmark-lj-card {
    display: none;
}

.edmark-lj-card.edmark-lj-active {
    display: block;
}

.edmark-lj-card-inner {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    padding: 48px;
    display: flex;
    gap: 60px;
    align-items: center;
    margin-top: 20px;
}

.edmark-lj-media {
    flex: 0 0 45%;
    background: #FFF0F3;
    border-radius: 20px;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.edmark-lj-media img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.edmark-lj-media-placeholder {
    width: 100%;
    height: 100%;
    min-height: 360px;
    background: #FFF0F3;
    border-radius: 20px;
}

.edmark-lj-content {
    flex: 1;
}

.edmark-lj-badge {
    display: inline-block;
    background: #FFF0F0;
    color: var(--lj-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.edmark-lj-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 14px;
    color: #111;
}

.edmark-lj-card-desc {
    color: #6b7280;
    line-height: 1.7;
    margin: 0 0 28px;
}

.edmark-lj-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.edmark-lj-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.edmark-lj-feature:last-child {
    margin-bottom: 0;
}

.edmark-lj-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFF0F0;
    color: var(--lj-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    line-height: 1;
}

.edmark-lj-feature-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.edmark-lj-feature-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.edmark-lj-feature-icon i {
    font-size: 20px;
    line-height: 1;
}

.edmark-lj-feature-body h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #111;
}

.edmark-lj-feature-body p {
    font-size: 0.95rem;
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .edmark-lj-card-inner {
        gap: 40px;
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .edmark-learning-journey {
        margin: 40px auto;
    }

    .edmark-lj-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .edmark-lj-timeline-wrap {
        position: relative;
    }

    .edmark-lj-timeline {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 10px 0 20px;
        justify-content: flex-start;
        width: 100%;
    }

    .edmark-lj-timeline::-webkit-scrollbar {
        display: none;
    }

    .edmark-lj-track,
    .edmark-lj-progress {
        top: 28px;
    }

    .edmark-lj-step {
        flex: 0 0 24%;
        min-width: 90px;
        scroll-snap-align: start;
        padding: 0 4px;
    }

    .edmark-lj-dot {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }

    .edmark-lj-label {
        font-size: 11px;
        margin-top: 10px;
    }

    .edmark-lj-card-inner {
        flex-direction: column;
        gap: 30px;
        padding: 24px;
        margin-top: 10px;
    }

    .edmark-lj-media {
        width: 100%;
        min-height: 240px;
    }

    .edmark-lj-media-placeholder {
        min-height: 240px;
    }

    .edmark-lj-card-title {
        font-size: 1.5rem;
    }

    .edmark-lj-card-desc {
        margin-bottom: 22px;
    }

    .edmark-lj-feature-icon {
        width: 40px;
        height: 40px;
    }

    .edmark-lj-feature-icon svg,
    .edmark-lj-feature-icon img {
        width: 20px;
        height: 20px;
    }
}
