/* ============================================================
   Orien Student Journey Timeline — Plugin Styles
   Matches the Figma design: alternating cards, orange icons,
   light pink background, animated on scroll.
============================================================ */

/* --- Reset & Base --- */
.osj-section {
    background-color: #FFF5F0;
    padding: 80px 40px;
    font-family: inherit;
    box-sizing: border-box;
    overflow: hidden;
}

.osj-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* --- Section Header --- */
.osj-header {
    text-align: center;
    margin-bottom: 64px;
}

.osj-tag {
    display: inline-block;
    background-color: #FDE8DC;
    color: #E8510A;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.osj-section-title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0 0 16px;
}

.osj-section-subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto;
}

/* --- Timeline Wrapper --- */
.osj-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Vertical centre line */
.osj-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background-color: #E8510A;
    border-radius: 3px;
    z-index: 0;
}

/* --- Individual Step Row --- */
.osj-step {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 28px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.osj-step.osj-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card occupies one half */
.osj-card {
    width: calc(50% - 56px);
    background: #ffffff;
    border-radius: 12px;
    padding: 22px 26px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.osj-card:hover {
    box-shadow: 0 8px 32px rgba(232, 81, 10, 0.15);
    transform: translateY(-3px);
}

.osj-card--left {
    text-align: right;
    margin-right: auto;
}

.osj-card--right {
    text-align: left;
    margin-left: auto;
}

.osj-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.3;
}

.osj-card-desc {
    font-size: 13.5px;
    color: #888;
    line-height: 1.6;
    margin: 0;
}

/* --- Icon Circle (centre) --- */
.osj-icon-wrap {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #E8510A;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 0 5px #FFF5F0, 0 0 0 7px #E8510A33;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.osj-step:hover .osj-icon-wrap {
    transform: translateX(-50%) scale(1.12);
    box-shadow: 0 0 0 6px #FFF5F0, 0 0 0 9px #E8510A55;
}

.osj-icon-wrap i,
.osj-icon-wrap svg {
    color: #ffffff;
    fill: #ffffff;
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: block;
}

/* Step number badge — hidden by default, shown on hover */
.osj-step-number {
    display: none;
    position: absolute;
    top: -8px;
    right: -8px;
    background: #fff;
    color: #E8510A;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #E8510A;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Show number badge when icon hovered */
.osj-icon-wrap:hover .osj-step-number {
    display: flex;
}

/* ============================================================
   Responsive — Mobile: single-column stack
============================================================ */
@media (max-width: 768px) {
    .osj-section {
        padding: 60px 20px;
    }

    .osj-line {
        left: 26px;
    }

    .osj-step {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
    }

    .osj-step--left,
    .osj-step--right {
        padding-left: 64px;
    }

    .osj-icon-wrap {
        left: 0;
        transform: none;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        box-shadow: 0 0 0 4px #FFF5F0, 0 0 0 6px #E8510A33;
    }

    .osj-step:hover .osj-icon-wrap {
        transform: scale(1.1);
    }

    .osj-card,
    .osj-card--left,
    .osj-card--right {
        width: 100%;
        text-align: left;
        margin: 0;
    }
}

/* ============================================================
   Elementor Editor — prevent invisible widgets
============================================================ */
.elementor-editor-active .osj-step {
    opacity: 1 !important;
    transform: none !important;
}
