/* Kuruluş Hikayemiz Timeline Styles */

.timeline-description {
    font-size: 14px;
}

.history-timeline {
    padding: 150px 0;
    background: #fff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.timeline-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Central Line */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #f0f0f0;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    align-content: flex-start;
    align-items: flex-start;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Odd Items (1st, 3rd...): Right Side */
.timeline-item:nth-child(odd) {
    align-self: flex-end;
    padding-left: 40px;
    flex-direction: row;
    text-align: left;
}

/* Even Items (2nd, 4th...): Left Side */
.timeline-item:nth-child(even) {
    align-self: flex-start;
    padding-right: 40px;
    flex-direction: row-reverse;
    text-align: right;
}

/* Year Column */
.timeline-year-col {
    flex: 0 0 auto;
    padding-top: 5px;
    z-index: 2;
}

.timeline-year-label {
    font-size: 25px;
    font-weight: 800;
    color: #363487;
    position: sticky;
    top: 50vh;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

.timeline-year-label.active {
    color: #00b4d8;
    transform: scale(1.2);
}

/* Content Column */
.timeline-content-col {
    flex: 1;
    position: relative;
}

/* Dot on the line */
.timeline-item::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 4px solid #363487;
    border-radius: 50%;
    z-index: 3;
}

/* Dot Position for Right Items */
.timeline-item:nth-child(odd)::after {
    left: -8px;
}

/* Dot Position for Left Items */
.timeline-item:nth-child(even)::after {
    right: -8px;
}

.timeline-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
    margin-top: 10px;
    line-height: 1.2;
}

.timeline-description {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.timeline-image {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-top: 15px;
}

.timeline-item.has-image .timeline-content-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-img {
    width: 60%;
    height: auto;
    display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .history-timeline {
        padding: 60px 0;
    }

    .timeline-wrapper {
        padding: 0 15px;
    }

    /* Move central line to left */
    .timeline-wrapper::before {
        left: 20px;
        transform: none;
    }

    .timeline-item {
        width: 100%;
        align-self: flex-start !important;
        padding-left: 50px;
        padding-right: 0;
        text-align: left !important;
        flex-direction: column !important;
        align-items: flex-start;
        gap: 0;
        margin-bottom: 40px;
    }

    .timeline-item:nth-child(even) {
        flex-direction: column !important;
        padding-right: 0;
        padding-left: 50px;
    }

    .timeline-item::after {
        left: 12px !important;
        right: auto !important;
        width: 10px;
        height: 10px;
        border: 2px solid #363487;
    }

    .timeline-year-col {
        text-align: left;
        margin-bottom: 10px;
    }

    .timeline-year-label {
        position: static;
        font-size: 22px;
        transform: none !important;
    }

    .timeline-year-label.active {
        transform: none !important;
    }

    .timeline-title {
        font-size: 18px;
        margin-bottom: 10px;
        margin-top: 0;
    }

    .timeline-description {
        margin-bottom: 10px;
        font-size: 13px;
    }

    .timeline-img {
        width: 100%;
    }

    .timeline-image {
        justify-content: flex-start;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .timeline-item {
        width: 55%;
    }

    .timeline-year-label {
        font-size: 22px;
    }

    .timeline-title {
        font-size: 18px;
    }

    .timeline-img {
        width: 80%;
    }
}
