body {
    color: #5464B0;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.topBanner {
    background-image: url(/static/images/bannerTransparent.png);
    background-blend-mode: overlay;
    background-color: #0f4652;
    min-height: 20vh;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.topBanner-body {
    text-align: left;
    align-items: start;
    width: 100%;
}

.topBanner-body .row {
    padding: 5% 0;
    width: 100%;
}

.topBanner-title {
    font-size: 26px;
    text-align: center;
    position: relative;
}

.topBanner-description {
    font-size: 20px;
    text-align: left;
    margin: auto;
    width: 100%;
}


.ourtimeline-title {
    text-align: center;
    font-weight: bold;
    color: #333;
    font-size: 3rem;
    padding: 60px 0 40px 0;
    margin: 0;
    background-color: #f0fafc;
}

.timeline-outer-container {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(to bottom, #f0fafc 0%, #f0fafc 50%, #cdf0fe 100%);
}

.timeline-track {
    /* The line and indicator are positioned relative to this container */
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
}

.timeline-line {
    /* The line will automatically expand to fill the track's height */
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background-color: #ddd;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-indicator {
    /* The scroll indicator's position will be updated by JavaScript */
    position: absolute;
    width: 12px;
    height: 40px;
    background: linear-gradient(180deg, #35b1cf 0%, #2a9bb8 100%);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    transition: top 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(53, 177, 207, 0.4);
}

.timeline-content-wrapper {
    position: relative;
    z-index: 5;
}

.timeline-section {
    position: relative;
    opacity: 1;
    padding: 40px 0;
}



.gradient-section {
    background: transparent;
    position: relative;
}

.white-section {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: relative;
    margin: 20px 0;
    border-radius: 0;
}

.timeline-item {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    width: 85%;
    margin: 0 auto;
    min-height: 140px;
}

.date-text {
    position: absolute;
    top: 15%;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    transform: translateY(-50%);
    z-index: 15;
    padding: 8px 16px;
    font-size: 24px;
}

.timeline-item.left .date-text {
    left: calc(50% + 30px);
}

.timeline-item.right .date-text {
    right: calc(50% + 30px);
}

.timeline-card {
    background: white;
    border: none;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    z-index: 10;
    width: 420px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(0.95);
    opacity: 0.8;
}

.timeline-card:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15) !important;
}

.timeline-item.left .timeline-card {
    margin-right: auto;
}

.timeline-item.right .timeline-card {
    margin-left: auto;
}

.timeline-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #f0f0f0;
    transition: all 0.3s ease;
    align-items: center;

}
.timeline-image-long{
    width: 300px;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #f0f0f0;
    transition: all 0.3s ease;
    display: block;
    margin:20px auto 0 auto;
}

.timeline-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.timeline-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    border: none;
    outline: none;
    background: #0f4652;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 8px 25px rgba(53, 177, 207, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;

}

#backToTopBtn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(53, 177, 207, 0.6);
}

/* Timeline sections start hidden */
.timeline-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Revealed sections */
.timeline-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Progress line that fills as user scrolls */
.timeline-progress {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    background: linear-gradient(180deg, #35b1cf 0%, #2a9bb8 100%);
    transform: translateX(-50%);
    z-index: 2;
    height: 0%;
    transition: height 0.3s ease;
}

/* Back to top button show/hide */
#backToTopBtn.show {
    display: flex !important;
    opacity: 1;
}




@media (max-width: 768px) {
    .topBanner-title {
        font-size: 1.8rem;
    }

    .topBanner-description {
        font-size: 1rem;
        max-width: 95%;
    }

    .ourtimeline-title {
        font-size: 2.2rem;
        padding: 40px 0 30px 0;
    }

    .timeline-track {
        left: 30px;
        transform: none;
    }

    .timeline-line {
        left: 0;
        transform: none;
    }

    .scroll-indicator {
        left: 0;
        transform: translateX(-50%);
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 20px 0;
    }

    .timeline-card {
        width: calc(100% - 70px);
        margin-left: 70px !important;
        margin-right: 0 !important;
    }

    .date-text {
        position: static;
        transform: none;
        margin: 0 0 15px 70px;
        display: inline-block;
    }

    .timeline-item.left .date-text,
    .timeline-item.right .date-text {
        left: auto;
        right: auto;
    }

    .timeline-image {
        width: 100px;
        height: 100px;
    }

    .timeline-title {
        font-size: 1.1rem;
    }

    .timeline-description {
        font-size: 0.9rem;
    }

    /* Update existing responsive styles for mobile */
    .timeline-section:nth-child(odd) .section-content,
    .timeline-section:nth-child(even) .section-content {
        margin-left: 15%;
        margin-right: 15%;
        max-width: none;
    }

    .section-content {
        padding: 25px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .timeline-header h1 {
        font-size: 2rem;
    }

    /* Mobile adjustments for timeline progress */
    .timeline-progress {
        left: 0;
        transform: none;
    }

    /* Mobile adjustments for timeline dots */
    .timeline-dot {
        left: 30px;
        transform: translate(-50%, -50%);
    }

    #backToTopBtn {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 16px;
        padding: 10px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    #backToTopBtn.show {
        display: flex !important;
        opacity: 1;
    }

    #backToTopBtn:hover {
        transform: translateY(-1px) scale(1.02);
        box-shadow: 0 6px 20px rgba(53, 177, 207, 0.4);
    }
}

