.key-advantages-section > .container {
    background-color: rgba(247, 248, 249, 1);
    border-radius: 25px;
    padding: 60px 30px;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.timeline-content {
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    flex-grow: 1;
    max-width: 420px;
    color: #333;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.timeline-content h5 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.timeline-content p {
    font-size: 22px;
}

.timeline-number {
    background-color: rgba(255, 137, 1, 1);
    color: white;
    font-size: 32px;
    min-width: 32px;
    height: 65px;
    width: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5.25px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    #steps-grid {
        position: relative;
    }

    #steps-grid::after {
        content: '';
        background-image: url('/wp-content/themes/maintheme/img/services/steps-line.png');
        background-size: contain;
        background-position: center;
        width: 3px;
        height: calc(100% - 110px);
        position: absolute;
        left: calc(50% - 3px);
        top: 10%;
        z-index: 0;
    }
}

@media (max-width: 992px) {
    .timeline-item {
        width: 100%;
    }

    .timeline-item > div {
        width: 100%;
        max-width: 100%;
    }

    #steps-grid > div:not(:has(.timeline-content)) {
        display: none !important;
    }

    .key-advantages-section > .container {
        padding: 30px 15px;
    }

    .timeline-content h5 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .timeline-content p {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .timeline-content h5 {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .timeline-content p {
        font-size: 16px;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    #steps-grid::after {
        height: calc(100% - 200px);
    }
}