.timeline-section {
    max-width: 1388px;
    margin: 0 auto;
    padding: 50px 10px;
    font-family: "Open Sans", sans-serif;
    color: #2b2b2b;
    #background: linear-gradient(to bottom, #fffdf9 0%, #f9f6f1 100%);
    background: #FFFFFF;
}

.timeline-header {
    text-align: center;
    margin-bottom: 50px;
}
.timeline-header h2 {
    font-size: 2.4em;
    font-weight: 700;
    letter-spacing: 1px;
    color: #2b2b2b;
    text-transform: uppercase;
    margin-bottom: 25px;
}
.intro-text {
    margin: 0 auto;
    font-size: 1.05em;
    color: #555;
    line-height: 1.7;
}
.intro-text p {
    margin-bottom: 15px;
    text-align: left !important;
}

.timeline {
    position: relative;
    padding-top: 40px;
}
.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: linear-gradient(to bottom, #d5b98e, #c4a269);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 80px 0;
    position: relative;
    min-height: 300px;
}
.timeline-item:first-child {
    margin-top: 30px;
}
.timeline-item.reverse .timeline-img {
    order: 2;
}
.timeline-item.reverse .timeline-content {
    order: 1;
    text-align: right;
}

.timeline-img,
.timeline-content {
    width: 50%;
    padding: 15px 0;
}

.timeline-img.left {
    padding-right: 60px;
}

.timeline-img.right {
    padding-left: 60px;
}

.timeline-content.left {
    padding-right: 60px;
}

.timeline-content.right {
    padding-left: 60px;
}

.timeline-img img {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transition: transform 0.4s ease;
}
.timeline-img img:hover {
    transform: scale(1.03);
}

.timeline-content h2 {
    font-size: 1.6em;
    color: #1f1f1f;
    margin-bottom: 10px;
    font-weight: 600;
}
.timeline-content p {
    line-height: 1.7;
    font-size: 1em;
    color: #5a5a5a;
}

.timeline-year {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #d5b98e, #c4a269);
    color: white;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.3em;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Fade-in efekt */
.fade {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s ease-out;
}
.fade.show,
.fade.show-first {
    opacity: 1;
    transform: translateY(0);
}

.timeline-footer {
    text-align: center;
    margin-top: 80px;
    border-top: 1px solid #e8e1d4;
    padding-top: 40px;
}
.timeline-footer h3 {
    font-size: 1.6em;
    color: #2b2b2b;
    margin-bottom: 10px;
    font-weight: 600;
}
.timeline-footer p {
    color: #5a5a5a;
    max-width: 1388px;
    margin: 0 auto;
    line-height: 1.7;
    text-align: left !important;
}

@media (max-width: 768px) {

    /* Fade fix */
    .fade,
    .fade.show-first {
        transform: none !important;
    }

    /* Timeline container */
    .timeline {
        position: relative;
        overflow: visible !important;
        height: auto !important;
        padding-bottom: 480px;
        padding-top: 0 !important;
    }

    /* Osa */
    .timeline::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 30px;
        width: 2px;
        background: #d5b98e;
        height: auto;
    }

    /* Každý blok je normální box */
    .timeline-item {
        display: block !important;
        position: relative;
        padding-left: 70px;
        margin: 60px 0 0 0;
        overflow: visible !important;
        min-height: unset !important;
    }

    .timeline-item:last-child {
        margin-bottom: 0 !important;
    }

    /* Rok = součást layoutu, ne absolutní */
    .timeline-year {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;

        width: 60px;
        height: 60px;
        border-radius: 50%;
        margin: 0 0 20px -70px;
        font-size: 0.9em;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 5;
    }

    /* Obrázek i text 100 % */
    .timeline-img,
    .timeline-content {
        width: 100% !important;
        padding: 0 !important;
        display: block !important;
    }

    .timeline-img img {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    .timeline-content {
        margin-bottom: 25px;
        text-align: center !important;
    }

    .intro-text p {
        text-align: center !important;
    }

    .timeline-footer p {
        text-align: center !important;
    }
}