/* our-journey styles */
.oj-wrapper {
    --oj-bg: #fff;
    --oj-bubble: #1282a2;
    --oj-bubble-text: #fff;
    --oj-active-dot: #ff4d6d;
    --oj-dot-border: #ccc;
    --oj-line: #ddd;
    
    background: var(--oj-bg);
    padding: 40px 20px;
    font-family: sans-serif;
    position: relative;
    overflow: hidden;
}

.oj-heading { text-align: center; margin-bottom: 10px; }
.oj-sub { text-align: center; margin-bottom: 40px; color: #666; max-width: 600px; margin-left: auto; margin-right: auto;}

.oj-timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.oj-stage {
    position: relative;
    width: 100%;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
}

.oj-image-wrapper {
    position: absolute;
    top: 50%;
    left: 25%; /* Image exactly at 25% per request */
    transform: translateY(-50%) rotate(-10deg);
    width: 35%;
    height: 80%;
    z-index: 15; /* Above ghost year */
    perspective: 1000px;
}

.oj-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transition: opacity 0.6s ease-in-out, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.oj-ghost-year {
    position: absolute;
    top: 50%;
    left: 70%; /* Ghost year on the right side */
    transform: translate(-50%, -50%);
    font-weight: 900;
    color: #e0e0e0;
    z-index: 0; /* Behind image */
    line-height: 1;
    letter-spacing: -5px;
    text-align: center;
    transition: all 0.5s ease-out;
}

.oj-notes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none; /* Let clicks pass through */
}

.oj-note {
    position: absolute;
    background: var(--oj-bubble);
    color: var(--oj-bubble-text);
    padding: 15px 25px;
    border-radius: 8px;
    transform: translate(-50%, 50px); /* Start slightly lower for animation */
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    max-width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: auto; /* Re-enable clicks on notes */
}

/* Add vertical line connecting to the timeline rail */
.oj-note::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 0; /* Animate height */
    background-color: var(--oj-line);
    z-index: -1;
    display: block;
    transition: height 0.5s ease-out 0.2s; /* Delay line animation slightly */
}

.oj-note.active {
    opacity: 1;
    transform: translate(-50%, 0);
}

.oj-note.active::before {
    height: 100px; /* Base height, overridden by inline style */
}

.oj-note-icon {
    width: 40px;
    height: 40px;
    background: #f0f0f0; /* Default background for icons */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -35px; /* Pull icon up */
    border: 3px solid var(--oj-bg);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.oj-note:hover .oj-note-icon {
    transform: scale(1.1);
}

.oj-note-icon img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 50%;
}
.oj-note-icon svg {
    width: 20px;
    height: 20px;
    fill: #666;
}

.oj-note::after {
    display: none; /* Removed triangle arrow for the clean block look in screenshot */
}

.oj-rail {
    position: relative;
    height: 2px;
    background: var(--oj-line);
    margin: 60px 5%;
}

.oj-ticks {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    top: -6px;
}

.oj-tick {
    width: 14px;
    height: 14px;
    background: #fff;
    border: 2px solid var(--oj-dot-border);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.oj-tick.active {
    background: var(--oj-active-dot);
    border-color: var(--oj-active-dot);
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.4);
}

.oj-tick-year {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #666;
    font-weight: bold;
    transition: color 0.3s;
}
.oj-tick.active .oj-tick-year {
    color: #333;
}

@media (max-width: 992px) {
     .oj-image-wrapper { width: 45%; left: 20%; }
     .oj-ghost-year { left: 65%; font-size: 18vw !important;}
}

@media (max-width: 768px) {
    .oj-stage { 
        height: auto !important; 
        min-height: auto; 
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }
    .oj-ghost-year { 
        position: relative;
        transform: none;
        top: 0;
        left: 0;
        font-size: 100px !important; 
        margin: 20px 0;
        text-align: center;
        order: 2; /* Move year below image */
    }
    .oj-image-wrapper { 
        width: 85%; 
        height: 250px; 
        position: relative; 
        top: 0; 
        left: 0; 
        transform: none; 
        margin-bottom: 0;
        order: 1; /* Image on top */
    }
    .oj-notes { 
        position: relative; 
        height: auto; 
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        margin-top: 30px;
        order: 3; /* Notes at bottom */
    }
    .oj-note { 
        position: relative; 
        transform: none !important; 
        opacity: 1; 
        left: 0 !important; 
        bottom: 0 !important; 
        margin: 0; 
        width: 90%;
        max-width: none;
    }
    .oj-note::before {
        display: none; /* Hide connector lines on mobile */
    }
    .oj-note-icon {
        margin-top: -30px;
    }
    .oj-rail {
        margin: 40px 5%;
    }
}
