.history {
    width: 100%;
    height: auto;
}

.separator {
    display: block;
    width: 2px;
    height: 48px;
    margin: 0 auto 48px;
    background-color: var(--primary);
}

.history .detail {
    width: 100%;
    height: auto;
    position: relative;
}

.history .detail .container {
    width: 100%;
    height: auto;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 100px;
    padding-bottom: 100px;
}

.history-slider {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    padding-top: 60px;
    padding-bottom: 80px;
}

.history-slider .card-list {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 26px;
}

.history-slider .card-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    width: auto;
    height: 100%;
    transform: rotate(-90deg);
}

.history-slider .card-item .text {
    font-weight: 800;
    font-size: 80px;
    line-height: 1.5;
    letter-spacing: 0.4px;
    color: #343248;
    text-align: left;
    font-family: var(--font-bold);
    padding-left: 40px;
    text-shadow: 0 0 2px var(--primary);
}

.history-slider .card-item.active .text {
    color: var(--primary);
    text-shadow: none;
}

.history-slider .card-item .dot {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 9999px;
    overflow: hidden;
    background-color: var(--primary);
    transition: all ease-out 75ms;
}

.history .detail .outher-card {
    width: 100%;
    max-width: 450px;
    margin-right: auto;
}

.history .detail .outher-card .media {
    width: 100%;
    height: 250px;
}

.history .detail .outher-card .media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    user-select: none;
    appearance: none;
}

.history .detail .outher-card .paragraph {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: var(--color-0);
    font-family: var(--font-light);
    text-align: left;
}

.history .cta {
    width: 100%;
    height: auto;
}

.history .cta .row {
    width: 100%;
    height: 700px;
    display: flex;
    flex-direction: row;
}

.history .cta .row .media-wrap {
    width: 40%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.history .cta .row .media {
    width: 100%;
    height: 100%;
    padding-top: 70px;
    padding-bottom: 70px;
}

.history .cta .row .media-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    max-width: 200px;
    z-index: -1;
}

.history .cta .row .media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    user-select: none;
    appearance: none;
}

.history .cta .row .content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    padding: 60px 100px;
    width: 60%;
    height: auto;
}

.history .cta .row .content .wrap {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    max-width: 540px;
    margin-right: auto;
}

.history .cta .row .content .title {
    font-weight: 800;
    font-size: 44px;
    line-height: 1.2;
    letter-spacing: 0.4px;
    color: var(--color-9);
    text-align: left;
    font-family: var(--font-bold);
    margin-top: 0;
    margin-bottom: 16px;
}

.history .cta .row .content .paragraph {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--color-9);
    font-family: var(--font-regular);
    margin-top: 0;
}

.history .cta .row .content .btn {
    background: var(--primary);
    font-weight: 600;
    font-size: 14px;
    line-height: 19px;
    text-align: center;
    color: #ffffff;
    padding: 18px 50px;
    text-decoration: none;
    border: 1px solid var(--primary);
    width: fit-content;
    transition: all 0.2s ease;
    font-family: var(--font-regular);
    letter-spacing: 0.4px;
    margin-top: 24px;
}

.history .cta .row .content .btn:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: var(--shadow-md);
}

.history .cta .row.reverse {
    flex-direction: row-reverse;
}

.history .cta .row.reverse .media {
    padding-top: 0;
}

.history .cta .row.reverse .media-bg {
    position: absolute;
    top: 0;
    left: 30%;
    right: 0;
    bottom: 0;
    background: var(--bg);
    width: 100%;
    max-width: 100%;
    height: calc(100% - 70px);
    z-index: -1;
}

.history .cta .row.reverse .media {
    height: calc(100% - 70px);
}

.history .cta .row.full {
    height: calc(100vh - 80px);
}

.history .cta .row.full .media {
    padding: 0;
}

.wrapper {
    width: 95%;
    margin: 0 auto;
}

.timeline-sec {
    padding: 100px 0 10px 0;
}

.timeline-row {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-bottom: 170px;
    position: relative;
}

.timeline-box {
    width: 33.33%;
    position: relative;
}

.timeline-row:nth-child(2n+2) {
    justify-content: center;
    padding-left: 6%;
}

.timeline-row:nth-child(2n+2) .timeline-box {
    width: 30%;
}

.timeline-row:nth-child(2n+2) .timeline-box p {
    width: 76%;
}

.timeline-row:first-child .timeline-box:first-child h6::after {
    width: 120%;
    height: 120%;
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: transparent;
    border-radius: 100%;
    z-index: 0;
    border: 2px solid #e5e5e5;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
}


.timeline-row:first-child .timeline-box:first-child h6 {
    background-color: var(--primary);
    border: 10px solid #fff;
    color: #fff;
}

.timeline-box h6 {
    position: relative;
    color: var(--primary);
    border: 2px solid #e5e5e5;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
    font-family: var(--font-medium);
    width: 104px;
    height: 104px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    margin-top: -53px;
}

.timeline-box p {
    background-color: #f7f7f7;
    padding: 33px 40px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--color-7);
    font-family: var(--font-regular);
    width: 65%;
    margin: 24px 0 0 50px;
    position: relative;
}

.timeline-box p::before {
    width: 0;
    height: 0;
    border-bottom: 15px solid #f7f7f7;
    border-right: 17px solid transparent;
    position: absolute;
    top: -14px;
    left: 0;
    content: "";
}

.timeline-row:last-child {
    justify-content: center;
    position: relative;
    padding-bottom: 70px;
}

.timeline-row:last-child::after {
    position: absolute;
    top: 0;
    left: 3%;
    width: 47%;
    height: 0;
    content: "";
    background-color: transparent;
    background-image: none;
    transform: none;
    z-index: 0;
    border-top: 2px dotted #e5e5e5;
}

.timeline-row:nth-last-child(1):nth-child(even):after {
    right: 3%;
    left: initial;
}

.timeline-row:last-child .timeline-box::after {
    display: none;
}

.timeline-row:last-child .timeline-box {
    width: auto;
    z-index: 1;
}

.timeline-row:last-child .timeline-box h6 {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 600;
    font-family: var(--font-medium);
    color: #fff;
    background-color: var(--primary);
    border: 0;
    width: 120px;
    height: 120px;
    margin-top: -44px;
    padding: 20px;
}

.timeline-sec .local-solutions-txt {
    font-size: 24px;
}

.timeline-row .horizontal-line {
    border-top: 2px dotted #e5e5e5;
    width: calc(100% - 100px);
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
}

.timeline-row .verticle-line {
    margin: 0;
    padding: 0;
    width: 2px;
    border-right: 2px dotted #e5e5e5;
    height: calc(100% - 100px);
    position: absolute;
    top: 0;
    right: 0;
    margin: auto 0;
    bottom: 0;
}

.timeline-row:nth-child(2n+2) .verticle-line {
    left: 0;
    right: inherit;
}

.corner {
    position: absolute;
    border-right: 2px dotted #e5e5e5;
    width: 50px;
    height: 50px;
    right: 0;
    border-top: 2px dotted #e5e5e5;
    top: 0px;
    border-radius: 0 70px 0 0;
}

.corner.bottom {
    bottom: -2px;
    top: inherit;
    border-radius: 0;
    border-top: 0;
    border-bottom: 2px dotted #e5e5e5;
    border-radius: 0 0 70px 0;
    right: 0;
}

.timeline-row:nth-child(2n+2) .corner {
    right: inherit;
    left: 0;
    border-left: 2px dotted #e5e5e5;
    border-right: 0;
    border-radius: 70px 0 0 0;
}

.timeline-row:nth-child(2n+2) .corner.bottom {
    border-radius: 0 0 0 70px;
}

.timeline-row:nth-child(2n+2) {
    flex-direction: row-reverse;
}

.history .detail .bg {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.history .detail .bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    user-select: none;
    appearance: none;
}

.history .detail .row {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    margin-bottom: 80px;
}

.history .detail .text-wrap {
    width: 65%;
    height: auto;
    margin-right: 100px;
    display: flex;
    flex-direction: column;
}

.history .detail .number-wrap {
    width: 35%;
    height: auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.history .detail .number-wrap .number {
    font-weight: 800;
    font-size: 7rem;
    line-height: 1.2;
    letter-spacing: 0.4px;
    color: var(--primary);
    text-align: left;
    margin: 0;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke-width: 1px;
    font-family: 'Roboto', sans-serif;
}

.history .detail .text-wrap .title {
    font-weight: 800;
    font-size: 56px;
    line-height: 1.2;
    letter-spacing: 0.4px;
    color: var(--color-9);
    text-align: left;
    font-family: var(--font-bold);
    margin-bottom: 20px;
    margin-top: 0;
}

.history .detail .text-wrap .paragraph {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--color-9);
    font-family: var(--font-regular);
    margin-top: 0;
    text-align: left;
}

/* responsive */

@media screen and (max-width: 1199px) {
    h1 {
        font-size: 50px;
    }

    h2 {
        font-size: 40px;
    }

    h3 {
        font-size: 31px;
    }

    h4 {
        font-size: 28px;
    }

    h5 {
        font-size: 24px;
    }

    h6 {
        font-size: 20px;
    }

    .timeline-sec {
        padding: 10px 0 90px 0;
    }

    .timeline-box p {
        padding: 20px;
        font-size: 14px;
    }

    .timeline-box h6 {
        width: 84px;
        height: 84px;
        margin-top: -42px;
    }

    .timeline-row {
        padding-bottom: 100px;
    }

    .timeline-row:nth-child(2n+2) {
        padding-left: 2%;
    }

    .timeline-row:last-child {
        padding-bottom: 50px;
    }

    .timeline-box::after,
    .timeline-row:nth-child(2n+2)::after,
    .timeline-row::after {
        width: 30px;
        height: 30px;
    }

    .timeline-row:last-child .timeline-box h6 {
        margin-top: -35px;
        font-size: 14px;
        width: 70px;
        height: 70px;
    }

    .history .detail .container {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .history .detail .text-wrap {
        width: 100%;
        margin-right: 0;
    }

    .history .detail .text-wrap .title {
        font-size: 40px;
    }

    .history .detail .row {
        flex-direction: column;
    }

    .history .detail .number-wrap .number {
        font-size: 64px;
    }

    .wrapper {
        width: 100%;
    }

    .timeline-box p {
        margin: 0 !important;
    }

}

@media screen and (max-width: 1024px) {
    h1 {
        font-size: 44px;
    }

    h2 {
        font-size: 36px;
    }

    h3 {
        font-size: 28px;
    }

    h4 {
        font-size: 26px;
    }

    h5 {
        font-size: 22px;
    }

    h6 {
        font-size: 18px;
    }

    p,
    li {
        font-size: 16px;
    }

    .timeline-sec {
        padding: 0px;
    }

    .timeline-row .horizontal-line,
    .timeline-row .verticle-line,
    .corner {
        display: none;
    }

    .timeline-row::after,
    .timeline-row:nth-child(2n+2)::after {
        display: none;
    }

    .timeline-box::after,
    .timeline-row:nth-child(2n+2) .timeline-box::after {
        -webkit-transform: translate(-50%, 100%) rotate(90deg);
        transform: translate(-50%, 100%) rotate(90deg);
        top: 50%;
        left: 50%;
    }

    .timeline-box::after,
    .timeline-row:nth-child(2n+2)::after,
    .timeline-row::after {
        width: 26px;
        height: 26px;
    }

    .timeline-row {
        padding-bottom: 0;
    }

    .timeline-box {
        width: 100%;
        padding-bottom: 30px;
    }

    .timeline-row:last-child {
        padding-bottom: 20px;
    }

    .timeline-row:nth-child(2n+2) .timeline-box {
        width: 100%;
    }

    .timeline-box h6 {
        width: 80px;
        height: 80px;
        margin-top: 0;
        margin: 0 auto;
    }

    .timeline-box p,
    .timeline-row:nth-child(2n+2) .timeline-box p {
        width: 41%;
        margin: -40px 0 0 0;
    }

    .timeline-row:last-child .timeline-box h6 {
        margin-top: 0;
        font-size: 13px;
        width: 66px;
        height: 66px;
    }

    .timeline-row:nth-child(2n+2) {
        padding-left: 0;
    }

    .timeline-box p::before {
        left: auto;
        right: -16px;
        border-bottom: 0px solid #f7f7f7;
        border-top: 15px solid #f7f7f7;
        top: 0;
    }

    .timeline-box:nth-child(2n+2) {
        text-align: right;
    }

    .timeline-box:nth-child(2n+2) p {
        display: inline-block;
        text-align: left;
    }

    .timeline-box:nth-child(2n+2) p::before {
        left: -16px;
        right: auto;
        border-bottom: 0px solid #f7f7f7;
        border-top: 15px solid #f7f7f7;
        top: 0;
        border-left: 15px solid transparent;
    }

    .timeline-row:nth-child(2n+2) .timeline-box:nth-child(2n+1) {
        text-align: right;
    }

    .timeline-row:nth-child(2n+2) .timeline-box:nth-child(2n+1) p {
        display: inline-block;
        text-align: left;
    }

    .timeline-row:nth-child(2n+2) .timeline-box:nth-child(2n+1) p::before {
        left: -16px;
        right: auto;
        border-bottom: 0px solid #f7f7f7;
        border-top: 15px solid #f7f7f7;
        top: 0;
        border-left: 15px solid transparent;
    }

    .timeline-row:nth-child(2n+2) .timeline-box:nth-child(2n+2) {
        text-align: left;
    }

    .timeline-row:nth-child(2n+2) .timeline-box:nth-child(2n+2) p::before {
        left: auto;
        right: -16px;
        border-bottom: 0px solid #f7f7f7;
        border-top: 15px solid #f7f7f7;
        top: 0;
    }

    .verticle-line {
        display: block !important;
        left: 50%;
        z-index: -1;
        height: calc(100% - 0px) !important;
        transform: translate(-50%, 0%);
        -webkit-transform: translate(-50%, 0%);
    }

    .timeline-row:nth-child(2n+2) .verticle-line {
        left: 50%;
    }

    .timeline-row:nth-child(2n+2) {
        flex-direction: unset;
    }

    .timeline-row:nth-child(2n+2) .timeline-box:nth-child(3)::after {
        display: block;
    }
}