.experience-section {
    text-align: center;
    padding: 30px 0;
    color: white;
}

.experience-section h1 {
    font-size: 26px;
    margin-bottom: 2px;
}

.timeline {
    display: block;
    width: 80%;
    margin: 150px auto;
}

.timeline .heading {
    margin-bottom: 150px;
}

.card {
    width: 40%;
    padding: 30px;
    border-radius: 10px;
    color: black;
    display: block;
    margin: -80px 0;
    position: relative;
    background: #f00;
}

.card:nth-child(even) {
    margin-left: auto;
}

.card:nth-child(even):before {
    content: '';
    position: absolute;
    left: -15%;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 5px solid #191919;
    border-radius: 50%;
}

.card:nth-child(even):after {
    content: '';
    position: absolute;
    left: -8.5%;
    top: 50%;
    transform: translateY(-50%);
    width: 7%;
    height: 2px;
    background: #fff;
    z-index: -1;
}

.card:nth-child(odd):before {
    content: '';
    position: absolute;
    right: -13%;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 5px solid #191919;
    border-radius: 50%;
}

.card:nth-child(odd):after {
    content: '';
    position: absolute;
    right: -8.5%;
    top: 50%;
    transform: translateY(-50%);
    width: 7%;
    height: 2px;
    background: #fff;
    z-index: -1;
}

.card:nth-child(1),
.card:nth-child(1):before {
    background: rgb(153, 153, 226);
}

.card:nth-child(2),
.card:nth-child(2):before {
    background: rgb(153, 153, 226);
}

.card:nth-child(3),
.card:nth-child(3):before {
    background: rgb(153, 153, 226);
}

.card:nth-child(4),
.card:nth-child(4):before {
    background: rgb(153, 153, 226);
}

.card:nth-child(odd) .card-body:before {
    content: '';
    position: absolute;
    right: -10%;
    top: 0;
    width: 0px;
    height: 100%;
    border: 1px dashed #fff;
    z-index: -1;
}

.card-title {
    font-size: 25px;
    font-weight: 300;
    margin-bottom: 20px;
    text-align: center;
    margin: 0%;
    color: rgb(18, 18, 62);
}

.company,
.dates {
    font-size: 20px;
    font-weight: 200;
    text-align: center;
    margin: 0%;
    color: rgb(18, 18, 62);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
    background-color: rgb(0, 0, 33);
}

.custom-navbar {
    background-color: rgb(18, 18, 62) !important;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    color: white;
  }

@media (max-width: 900px) {
    .timeline {
        width: 90%;
        margin: 40px auto;
    }

    .card {
        width: 100%;
        margin: 40px auto;
    }

    .card:before,
    .card:after {
        display: none;
    }

    .card:nth-child(odd),
    .card:nth-child(even) {
        margin: 40px auto;
    }

    .card:nth-child(odd) .card-body:before {
        display: none;
    }
}