.timeline-group {
    display: none;
}

.timeline-group.active {
    display: block;

}

.tab-btn:active {
    background-color: var(--primary-color);
    color: var(--white);
}

.cd-timeline__container {
    position: relative;
    padding: 50px 0;
    max-width: 1200px;
    width: calc(100% - 2.5em);
    margin: 0 auto;
}

.cd-timeline__container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 23px;
    height: 100%;
    border: 1px dashed var(--primary-color)
}

/* ==========================================================================
       Timeline Block
       ========================================================================== */
.cd-timeline__block {
    display: flex;
    position: relative;
    z-index: 1;
    /* margin-bottom: -2em; */
}

.direction-arrow {
    position: absolute;
    top: 60%;
    right: 49%;
}

.cd-timeline__block:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
       Timeline Image/Bullet Points
       ========================================================================== */
.cd-timeline__img {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgb(248, 218, 218) 50%, rgb(245, 233, 248) 100%, rgb(243, 224, 224) 100%);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    margin-top: 40px;
}

.cd-timeline__img img {
    width: 24px;
    height: 24px;
    display: block;
}

.cd-timeline__img--picture {
    margin-top: 100px;
}




/* ==========================================================================
       Timeline Content
       ========================================================================== */
.cd-timeline__content {
    flex-grow: 1;
    position: relative;
    margin-left: 1.25em;
    background: white;
    border-radius: 24px;
    padding: 12px 20px;
    box-shadow: 0px 8px 24px 0px #959DA533;
    border: 1px solid var(--gray-6)
}



/* ==========================================================================
       Timeline Date & Button
       ========================================================================== */


.dummy-btn-container {
    padding: 16px 8px 8px 8px;
    border: 1px solid var(--gray-5);
    border-radius: 0 0 4px 4px;
    margin-bottom: 20px;
    /* border-top: none; */
}

.dummy-btn {
    padding: 8px 0;
    margin: 0 auto;
    background: var(--primary-color);
    color: white;
    justify-content: center;
    display: flex;
    border-radius: 4px;
}

.card-image-container {
    box-shadow: 0px 8px 24px 0px #959DA533;
    /* transform: scaleX(1.2); */
    border-radius: 4px;
    position: absolute;
    left: -12px;
    right: -12px;
}

/* .wrapper-one {
    min-height: 200px;
} */

.card-text {
    font-weight: 500;
    font-size: 24px;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: center;
    color: #0B0F1C;
}

.card-one-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border-top: 1px solid var(--gray-6);
    border-left: 1px solid var(--gray-6);
}

.card-one-line {
    border: 1px dashed var(--primary-color);
}

.card-one,
.card-two,
.card-five {
    position: relative;
}

.precontainer-two {
    position: absolute;
    top: -50px;
    right: 10px;
    left: 10px;
}

.comm-desktop-four .precontainer-two {
    left: 0;
    right: 0;
    top: 0;
}

.comm-desktop-four .card-two-img-container {
    border-radius: 12px 12px 0 0;
}

.comm-desktop-four .cd-timeline__two {
    padding: 0 !important;
}

.wrapper-two {
    min-height: 246px;
}

.wrapper-four {
    min-height: 260px;
}

.wrapper-five {
    min-height: 48px;
}

/* two */
.cd-timeline__two {
    padding: 20px 10px 0 10px !important;
    display: flex;
    justify-content: center;
    flex-direction: column;
    border-radius: 12px;
}

.text-two {
    max-width: 230px;
}

.comm-two {
    max-width: 350px;
}

.card-two-img-container {
    position: relative;
    max-height: 400px;
    overflow: hidden;
    /* transform: scaleY(1.5); */
    border: 1px solid var(--gray-5);
    border-bottom: none;
    border-radius: 4px;
}

.card-four-img-container {
    border: none;
}

.card-four-img-container img {
    /* max-height: 200px !important; */
}

.gradient-overlay {
    position: absolute;
    top: 2px;
    left: 0;
    width: 100%;
    height: 85%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 64.18%, #FFFFFF 100%);
    pointer-events: none;
    z-index: 1;
}

.card-two-img-container img {
    display: block;
    width: 100%;
    height: 100%;
    /* max-height: 220px; */
    /* object-fit: fill; */
    object-fit: cover;
}

.mobile-card-four {
    border: none;
}

.mobile-card-four img {
    /* max-height: 220px !important; */
}

.card-text-holder {
    display: flex;
    justify-content: center;
    z-index: 1;
    background: var(--white);
    padding-top: 15px;
    padding-bottom: 20px;
}

.card-five-img-desktop {
    transform: scaleX(1.1);

}

.work-wishlist {
    position: absolute;
    top: -50px;
    right: 10px;
}

.text-five {
    max-width: 280px;
}

.card-five-wrapper img {
    border-radius: 12px 12px 0 0;
}

.comm-mobile-four .card-text-holder {
    border-radius: 0 0 12px 12px;
}

.quote-btn-container {
    position: absolute;
    left: 10px;
    top: 120px;
}

@media (min-width:992px) {
    .wrapper-one {
        min-height: 200px;
    }

    .comm-card-1 .wrapper-one {
        min-height: 162px;
    }

    .comm-desktop-three .wrapper-one {
        min-height: 158px;
    }
}

@media (min-width: 768px) {
    .cd-timeline__container::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .cd-timeline__block {
        /* margin-bottom: 3.25em; */
    }

    .connecting-line {
        width: calc(15% - 28px);
        border-bottom: 2px dashed var(--primary-color);
        max-height: 66px;
    }


    .cd-timeline__img {
        width: 46px;
        height: 46px;
        order: 1;
        /* margin-left: calc(15% - 28px); */
    }

    .cd-timeline__content {
        width: 45%;
        flex-grow: 0;
        margin: 0;
        font-size: 0.9em;
        padding: 20px 30px;
        max-width: 426px;
    }



    .cd-timeline__block:nth-child(even) {
        flex-direction: row-reverse;
    }

    .cd-timeline__block:nth-child(even) .cd-timeline__img {
        margin-left: 0;

    }

    /* Animation Classes */
    .cd-timeline__img--hidden,
    .cd-timeline__content--hidden {
        /* visibility: hidden; */
    }

    .cd-timeline__img--bounce-in {
        animation: cd-bounce-1 0.6s;
    }

    .cd-timeline__content--bounce-in {
        animation: cd-bounce-2 0.6s;
    }

    .cd-timeline__block:nth-child(even) .cd-timeline__content--bounce-in {
        animation-name: cd-bounce-2-inverse;
    }

    .cd-timeline__content--inverse {
        animation-name: cd-bounce-2-inverse !important;
    }

    .line-four {
        max-height: 124px;
    }

    .comm-card-five .cd-timeline__two {
        padding: 0 !important;
    }

    .comm-card-five img {
        border-radius: 12px 12px 0 0;
    }

    .comm-desktop-four .card-text-holder,
    .comm-card-five .card-text-holder {
        border-radius: 0 0 12px 12px;
    }


}

@media (max-width:1399px) {
    .cd-timeline__img {
        margin-left: calc(0% - 42px);
    }

    .cd-timeline__block:nth-child(even) .cd-timeline__img {
        margin-right: calc(-1% - 33px);
        margin-left: 0;
        z-index: 1;
    }

    .direction-arrow {
        right: 48.8%;
    }
}

@media (max-width:1199px) {
    .cd-timeline__img {
        margin-left: calc(0% - 29px);
    }

    .cd-timeline__block:nth-child(even) .cd-timeline__img {
        margin-right: calc(0% - 32px);
        margin-left: 0;
    }

    .connecting-line {
        width: calc(9% - 28px);
        border-bottom: 2px dashed var(--primary-color);
        max-height: 66px;
    }

    .direction-arrow {
        right: 48.6%;
    }

    .line-four {
        max-height: 124px;
    }

}

@media (max-width:991px) {
    .quote-btn-container {

        top: 80px;
    }

    .direction-arrow {
        right: 48.1%;
    }

    .wrapper-one {
        min-height: 140px;
    }

    .wrapper-two {
        min-height: 190px;
    }

    .wrapper-four {
        min-height: 220px;
    }

    .cd-timeline__img {
        margin-left: calc(0% - 19px);
    }

    .cd-timeline__block:nth-child(even) .cd-timeline__img {
        margin-right: calc(0% - 21px);
        margin-left: 0;
    }
}

@media (max-width:767px) {

    /* .work-wrapper .bre */
    .cd-timeline__container {
        margin: unset;
        padding: 0;
    }

    .cd-timeline {
        display: flex;
        justify-content: end;
    }

    .cd-timeline__container::before {
        left: -17px;
    }

    .cd-timeline__img {
        max-width: 32px;
        max-height: 32px;
        margin-left: calc(0% - 32px);
    }

    .mobile-index-four {
        margin-top: 150px;
    }


    .connecting-line {
        width: calc(9% - 0px);
        max-height: 56px;
    }

    .sub-connect {
        max-height: 116px;
    }

    .mobile-connect {
        max-height: 168px;
    }

    .card-five-wrapper {
        min-height: 234px;
    }

    .card-five-space {
        min-height: 106px;
        position: absolute;
        left: -10px;
        right: -10px;
        z-index: 2;
        bottom: 10px;
    }

    .cd-timeline__content {
        margin-left: 0;
        margin-right: 6px;
    }

    .direction-arrow {
        right: 101%;
    }

    .dummy-btn-container {
        padding: 12px 6px 6px 6px;
        border-radius: 2px;
        margin-bottom: 12px;
    }

    .dummy-btn {
        padding: 6px 0;
        font-size: 12px;
    }

    .card-text {
        font-size: 18px;
        line-height: 1;
    }

    .cd-timeline__two {
        margin-top: 87px;
    }

    .timeline-five .cd-timeline__two {
        margin-top: 0 !important;
    }

    .cd-timeline__five {
        position: relative;
        margin-top: 0 !important;
    }

    .cd-timeline__three {
        margin-top: 38px;
    }

    .work-wishlist {
        top: -50px;
    }

    .work-wishlist img {
        max-width: 58px;
        max-height: 58px;
    }

    .wrapper-one {
        min-height: 200px;
    }

    .wrapper-two {
        min-height: 256px;
    }

    .wrapper-three {
        min-height: 274px;
    }

    .mobile-four-content {
        margin-top: 106px;
    }

    .mobile-wrapper-four {
        min-height: 276px;
    }

    .mobile-card-five {
        position: relative;
    }

    .mobile-wrapper-five {
        position: absolute;
    }

    .text-five {
        max-width: 266px;
    }

    .comm-mob-five .cd-timeline__two {
        margin-top: 68px !important;
        padding: 0 !important;
    }

    .comm-mob-five .cd-timeline__img {
        margin-top: 120px;
    }

    .comm-connect-five {
        margin-top: 80px;
    }

    .comm-mobile-two {
        .gradient-overlay {
            height: 90%;
        }
    }

    .comm-card-1 .wrapper-one {
        min-height: 156px;
    }
}

@media (max-width: 575px) {
    .wrapper-one {
        min-height: 220px;
    }

    .wrapper-two {
        min-height: 300px;
    }

    .card-two-img-container img {
        max-height: 428px;
    }

    .mobile-card-four img {
        max-height: 530px;
    }

    .card-five-space {
        min-height: 110px;
    }

    .card-five-wrapper {
        min-height: 250px;
    }

    .comm-card-1 .wrapper-one {
        min-height: 168px;
    }

    .comm-mobile-two .card-two-img-container img {
        max-height: unset;
    }
}

@media (max-width: 440px) {
    .wrapper-one {
        min-height: 158px;
    }

    .wrapper-two {
        min-height: 200px;
    }

    .mobile-wrapper-four {
        min-height: 272px;
    }

    .card-five-space {
        min-height: 90px;
    }

    .card-five-wrapper {
        min-height: 170px;
    }

    .comm-card-1 .wrapper-one {
        min-height: 127px;
    }

    .comm-mobile-two .wrapper-two {
        min-height: 229px;
    }

    .comm-mobile-four .mobile-wrapper-four {
        min-height: 210px;
    }

}

@media (max-width: 390px) {
    .direction-arrow {
        right: 101.5%;
    }

    .card-text {
        font-size: 14px;
        line-height: 1;
    }

    .wrapper-one {
        min-height: 140px;
    }

    .wrapper-two {
        min-height: 150px;
    }

    .card-two-img-container img {
        max-height: 256px;
    }

    .mobile-wrapper-four {
        min-height: 210px;
    }

    .mobile-card-four img {
        max-height: 326px;
    }

    .card-five-wrapper {
        min-height: 148px;
    }

    .card-five-space {
        bottom: -15px;
    }

    .comm-card-1 .wrapper-one {
        min-height: 94px;
    }

    .comm-mobile-two .card-two-img-container img {
        max-height: 320px;
    }

    .comm-mobile-two .wrapper-two {
        min-height: 210px;
    }

    .comm-mobile-three .cd-timeline__img--picture {
        margin-top: 20px !important;
    }

    .comm-mobile-three .sub-connect {
        max-height: 38px;
    }

    .comm-mobile-four .mobile-wrapper-four {
        min-height: 176px !important;
    }
}




















































/* ==========================================================================
       Animations
       ========================================================================== */
@keyframes cd-bounce-1 {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    60% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes cd-bounce-2 {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    60% {
        opacity: 1;
        transform: translateX(20px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes cd-bounce-2-inverse {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

    60% {
        opacity: 1;
        transform: translateX(-20px);
    }

    100% {
        transform: translateX(0);
    }
}