:root {
    --main-color: #ea463d;
    --second-color: #6A2696;
    --box-shadow-3: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

#time-line .row {
    justify-content: center;
}

.ctn-ste {
    width: 90%;
    max-width: 1200px;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
}

.header {
    text-align: left;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.header .tt-main {
    color: var(--main-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    max-width: 70%;
}

.navigation-arrows {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 10px;
}

.navigation-arrows button {
    background-color: #e0e0e0;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navigation-arrows button:hover:not(:disabled) {
    background-color: #d0d0d0;
}

.navigation-arrows button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.timeline {
    display: flex;
    overflow-x: scroll;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-top: 50px;
    position: relative;
    padding-bottom: 20px;
    margin-left: -10px;
    margin-right: -10px;
}

.timeline::-webkit-scrollbar {
    display: none;
}

.timeline {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: calc(50% + 50px);
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ccc;
    z-index: 0;
    transform: translateY(-50%);
}

.timeline-item {
    flex: 0 0 calc(25% - 20px);
    margin: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 30px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-top: 5px solid;
    transition: transform 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-5px);
}

.timeline-item:nth-child(1) .card {
    border-color: #c192ff;
    background-color: #f5e6ff;
}

.timeline-item:nth-child(2) .card {
    border-color: #ffcc66;
    background-color: #fff8e6;
}

.timeline-item:nth-child(3) .card {
    border-color: #66ccff;
    background-color: #e6f9ff;
}

.timeline-item:nth-child(4) .card {
    border-color: #ff9999;
    background-color: #ffe6e6;
}

.timeline-item:nth-child(5) .card {
    border-color: #92b0ff;
    background-color: #e6efff;
}

.timeline-item:nth-child(6) .card {
    border-color: #ffcc66;
    background-color: #fff8e6;
}

.timeline-item:nth-child(7) .card {
    border-color: #66ccff;
    background-color: #e6f9ff;
}

.timeline-item:nth-child(8) .card {
    border-color: #ff9999;
    background-color: #ffe6e6;
}

.timeline-item:nth-child(9) .card {
    border-color: #c192ff;
    background-color: #f5e6ff;
}

.timeline-item:nth-child(10) .card {
    border-color: #ffcc66;
    background-color: #fff8e6;
}

.timeline-item:nth-child(11) .card {
    border-color: #92b0ff;
    background-color: #e6efff;
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.card .tt-time-line {
    color: #333;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card p {
    font-size: .9rem !important;
    line-height: 1.5;
    color: #666;
}

.connector {
    width: 2px;
    height: 40px;
    background-color: #ccc;
    margin-top: -10px;
}

.circle {
    width: 18px;
    height: 18px;
    background-color: #007bff;
    border-radius: 50%;
    margin-top: -10px;
    z-index: 2;
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

.label {
    margin-top: 20px;
    font-size: 0.8em;
    color: #666;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .timeline {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: hidden;
        margin-left: 0;
        margin-right: 0;
    }
    .timeline-item {
        flex: 0 0 calc(50% - 20px);
        margin-bottom: 40px;
        margin: 0 10px 40px 10px;
    }
    .timeline::before {
        display: none;
    }
    .connector,
    .circle,
    .label {
        display: none;
    }
    .card {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .header .tt-main {
        font-size: 1.8em;
    }
    .header p {
        font-size: 1em;
        max-width: 100%;
    }
    .timeline-item {
        flex: 0 0 calc(90% - 20px);
    }
    .ctn-ste {
        padding: 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 20px;
    }
    .navigation-arrows {
        position: static;
        margin-top: 20px;
        justify-content: center;
    }
    .header {
        text-align: center;
    }
}