/* === Timeline Card Layout === */
* {
    box-sizing: border-box;
}

/* Container */
#timeline {
    padding: 100px 0;
    background: #f2f2f2;
}

    #timeline h1 {
        text-align: center;
        font-size: 3rem;
        font-weight: 200;
        margin-bottom: 20px;
    }

    #timeline p.leader {
        text-align: center;
        max-width: 90%;
        margin: auto;
        margin-bottom: 45px;
    }

    /* Wrapper */
    #timeline .demo-card-wrapper {
        position: relative;
        margin: auto;
    }

@media (min-width: 1000px) {
    #timeline .demo-card-wrapper {
        display: flex;
        flex-flow: column wrap;
        width: 1170px;
        height: auto;
        margin: 0 auto;
        position: relative;
    }
}

/* Timeline vertical line */
#timeline .demo-card-wrapper::after {
    z-index: 1;
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    border-left: 1px solid #bdbdbd;
}

/* Card Genel */
#timeline .demo-card {
    position: relative;
    display: block;
    margin: 40px auto;
    max-width: 94%;
    z-index: 2;
    height: 100px;
    box-shadow: 0 1px 22px 4px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

/* Orta çizgi hizası için geniş ekranda */
@media (min-width: 1000px) {
    #timeline .demo-card {
        width: 450px;
        height: 100px;
    }

        /* Tek numaralı kartlar (solda) */
        #timeline .demo-card:nth-child(odd) {
            margin-right: auto;
            margin-left: 0;
            text-align: right;
            transform: translateX(-50px);
        }

        /* Çift numaralı kartlar (sağda) */
        #timeline .demo-card:nth-child(even) {
            margin-left: auto;
            margin-right: 0;
            text-align: left;
            transform: translateX(50px);
        }

            /* Ok ve Nokta (ortadaki çizgiyle bağlantı) */
            #timeline .demo-card:nth-child(odd) .head::after,
            #timeline .demo-card:nth-child(even) .head::after {
                position: absolute;
                content: "";
                width: 0;
                height: 0;
                border-top: 15px solid transparent;
                border-bottom: 15px solid transparent;
            }

            #timeline .demo-card:nth-child(odd) .head::before,
            #timeline .demo-card:nth-child(even) .head::before {
                position: absolute;
                content: "";
                width: 9px;
                height: 9px;
                background-color: #bdbdbd;
                border-radius: 9px;
                box-shadow: 0 0 2px 8px #f7f7f7;
                top: 40px;
            }

        /* Tek numaralı: sol tarafta, oku sağa bakacak */
        #timeline .demo-card:nth-child(odd) .head::after {
            border-left: 15px solid currentColor;
            right: -15px;
        }

        #timeline .demo-card:nth-child(odd) .head::before {
            right: -34px;
        }

        /* Çift numaralı: sağ tarafta, oku sola bakacak */
        #timeline .demo-card:nth-child(even) .head::after {
            border-right: 15px solid currentColor;
            left: -15px;
        }

        #timeline .demo-card:nth-child(even) .head::before {
            left: -34px;
        }
}

/* === Card İçerikleri === */
#timeline .demo-card .head {
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: 400;
    height: 40px;
    padding: 0 10px;
}

    #timeline .demo-card .head .number-box {
        display: inline-block;
        margin-right: 10px;
        padding: 5px 10px;
        font-size: 18px;
        line-height: 20px;
        font-weight: 600;
        background: rgba(0, 0, 0, 0.17);
        border-radius: 4px;
    }

    #timeline .demo-card .head h2 {
        text-transform: uppercase;
        font-size: 1rem;
        font-weight: inherit;
        letter-spacing: 1px;
        margin: 0;
    }

        #timeline .demo-card .head h2 span {
            display: block;
            font-size: 0.7rem;
        }

/* Body */
#timeline .demo-card .body {
    background: #fff;
    border: 1px solid rgba(191, 191, 191, 0.4);
    border-top: 0;
    padding: 10px;
    height: 60px;
    overflow: hidden;
}

    #timeline .demo-card .body p {
        font-size: 12px;
        line-height: 14px;
        margin: 0;
    }

/* === Kart Renkleri === */
#timeline .demo-card--step1 {
    background-color: #46b8e9;
}

#timeline .demo-card--step2 {
    background-color: #3ee9d1;
}

#timeline .demo-card--step3 {
    background-color: #ce43eb;
}

#timeline .demo-card--step4 {
    background-color: #4d92eb;
}

#timeline .demo-card--step5 {
    background-color: #46b8e9;
}

#timeline .demo-card--step6 {
    background-color: #2bb8e9;
}

/* === Arka Plan === */
.flexbox-timeline-bg {
    background: linear-gradient(to bottom, #bea2e7 0%, #86b7e7 100%);
}

/* Orta genişlikte ekranlarda gizle */
@media (max-width: 1670px) and (min-width: 769px) {
    .flexbox-timeline {
        display: none !important;
    }
}
