/* Innovoprism Company History segment. Mirrors the current Innovoprism theme styles. */
.innovoprism-company-history-marker { display: none; }

.about-section-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 13px;
    color: var(--aigence-base, #D032AF);
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
    background-color: var(--aigence-white2, #F1F3FF);
}

.company-history {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #F8FAFF 0%, var(--aigence-white, #FFFFFF) 100%);
}

.company-history__head {
    max-width: 760px;
    margin: 0 auto 52px;
}

.company-history__head .sec-title {
    margin-top: 12px;
    margin-bottom: 18px;
}

.company-history__text {
    margin: 0 auto;
    max-width: 720px;
    color: var(--aigence-gray3, #818FB2);
    line-height: 1.733;
}

.company-history__timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.company-history-card {
    min-height: 100%;
    position: relative;
    padding: 86px 24px 28px;
    border: 1px solid var(--aigence-border-color, #E6EAFF);
    border-radius: 8px;
    background-color: var(--aigence-white, #FFFFFF);
    box-shadow: 0px 10px 35px rgba(var(--aigence-black-rgb, 13, 26, 66), 0.06);
}

.company-history-card::before {
    content: "";
    width: 16px;
    height: 16px;
    position: absolute;
    top: 38px;
    left: 26px;
    z-index: 2;
    border-radius: 50%;
    background: linear-gradient(90deg, #D930AA 0%, #3E5DFF 100%);
    box-shadow: 0 0 0 8px var(--aigence-white2, #F1F3FF);
}

.company-history-card::after {
    content: "";
    width: calc(100% + 30px);
    height: 1px;
    position: absolute;
    top: 45px;
    left: 42px;
    z-index: 1;
    background: linear-gradient(90deg, rgba(var(--aigence-primary-rgb, 62, 93, 255), 0.45), rgba(var(--aigence-base-rgb, 208, 50, 175), 0.1));
}

.company-history-card:last-child::after { display: none; }

.company-history-card__phase {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 100px;
    font-size: 13px;
    color: var(--aigence-base, #D032AF);
    font-weight: 800;
    line-height: 1.3;
    background-color: var(--aigence-white2, #F1F3FF);
}

.company-history-card__title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
}

.company-history-card__text {
    margin: 0;
    font-size: 14px;
    color: var(--aigence-gray3, #818FB2);
    line-height: 1.6;
}

@media (max-width: 1199px) {
    .company-history__timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .company-history-card::after { display: none; }
}

@media (max-width: 767px) {
    .company-history__head { margin-bottom: 38px; }
    .company-history__timeline {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-left: 18px;
    }
    .company-history__timeline::before {
        content: "";
        width: 1px;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 8px;
        background: linear-gradient(180deg, rgba(var(--aigence-primary-rgb, 62, 93, 255), 0.5), rgba(var(--aigence-base-rgb, 208, 50, 175), 0.12));
    }
    .company-history-card { padding: 26px 24px 26px 30px; }
    .company-history-card::before {
        top: 32px;
        left: -17px;
        width: 14px;
        height: 14px;
        box-shadow: 0 0 0 7px var(--aigence-white, #FFFFFF);
    }
}

@media (max-width: 575px) {
    .company-history-card__title { font-size: 19px; }
}
