/* Journey Section Styling */
.journey-section {
    padding: 6rem 2rem;
    background: var(--gradient-bg);
    position: relative;
    overflow: hidden;
}

.journey-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

/* Header Styling */
.journey-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.journey-section .journey-conclusion {
    text-align: center; 
    margin-top: 4rem; 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto;
}

.journey-header .section-title {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.journey-section .sub-title {
    font-size: 1.25rem;
    color: #6c757d;
    font-weight: 400;
    max-width: 700px;
    margin: 1rem auto 0;
    line-height: 1.6;
}

/* Timeline Styling */
.journey-timeline {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Timeline center line */
.journey-timeline::before {
    content: '';
    position: absolute;
    width: 10px;
    background: #e5e9ed;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: calc(-1 * var(--timeline-width) / 2);
    border-radius: 10px;
}

/* Timeline items */
.journey-item {
    padding: 2rem;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 0rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.journey-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Left side items */
.journey-item:nth-child(odd) {
    left: 0;
    padding: 0 2rem 0 0;
    text-align: right;
}

/* Right side items */
.journey-item:nth-child(even) {
    left: 50%;
    padding: 0 0 0 2rem;
    text-align: left;
}

/* Timeline dot */
.journey-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00914c;
    border: 0px solid #009053;
    top: 2.5rem;
    right: -13px;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 4px rgb(0 144 83 / 25%);
}

.journey-item:nth-child(even)::before {
    left: -5px;
    right: auto;
}

.journey-item:hover::before {
    transform: scale(1.2);
    background: var(--brand-green);
    box-shadow: 0 0 0 4px rgb(0 144 83 / 25%);
}

/* Content styling */
.journey-year {
    display: inline-block;
    font-weight: 700;
    color: white;
    background: var(--brand-green);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.3);
}

.journey-item h3 {
    color: var(--text-color);
    margin: 0 0 0.8rem 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.journey-item p {
    color: #6c757d;
    margin: 0;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Card styling */
.journey-content {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.journey-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--brand-green);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.journey-item:nth-child(even) .journey-content::before {
    left: auto;
    right: 0;
}

.journey-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.journey-content:hover::before {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .journey-section {
        padding: 4rem 2rem;
    }

    .journey-timeline::before {
        left: 0px;
    }

    .journey-item::before {
        left: 0;
    }
    
    .journey-item {
        width: 100%;
        padding-left: 40px !important;
        padding-right: 0rem !important;
        text-align: left !important;
    }
    
    .journey-item::before {
        left: -5px !important;
        right: auto !important;
    }

    .journey-item h3 {
        margin: 0 0 0.1rem 0;
        font-size: 1.2rem;
    }
    
    .journey-content::before {
        left: 0 !important;
        right: auto !important;
    }
    
    .journey-section .sub-title {
        font-size: 1.1rem;
    }

    .journey-item.visible {
        margin-bottom: 30px;
    }

    .journey-item:nth-child(even) {
        left: 0;
    }

    .journey-section .journey-conclusion {
        margin-top: 2rem;
    }
}

@media (max-width: 640px) {
    .journey-section {
        padding: 3rem 1.5rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
