@charset "euc-kr";
/* ==========================
기숙학원연혁 (russel_sc/school/history)
PC 1024+ / TA 768~1023 / MO ~767
========================== */
.history-wrap {
    position: relative;
    padding: 48px 0;
    overflow: hidden;
    background: linear-gradient(180deg, #fafbff 0%, #eff3fe 100%);
}

/* 학원 전경 배경 */
.history-bg {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2560px;
    height: 1224px;
    overflow: hidden;
    opacity: 0.15;
    mix-blend-mode: multiply;
    transform: translateX(-50%);
    pointer-events: none;
}

.history-bg img {
    position: absolute;
    top: 180px;
    left: 0;
    width: 2560px;
    height: 1280px;
    max-width: none;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 27.6217%, rgba(255, 255, 255, 0.4) 58.5332%, #fff 81.8519%);
    mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 27.6217%, rgba(255, 255, 255, 0.4) 58.5332%, #fff 81.8519%);
    -webkit-mask-size: calc(100% + 34px) 1459px;
    mask-size: calc(100% + 34px) 1459px;
    -webkit-mask-position: -17px -236px;
    mask-position: -17px -236px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.history-timeline {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.history-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: calc(100% - 29px);
    margin-left: -0.5px;
    overflow: visible;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    list-style: none;
}

.history-item {
    display: grid;
    grid-template-columns: 1fr 9px 1fr;
}

.history-dot {
    position: relative;
    z-index: 1;
    grid-column: 2;
    grid-row: 1;
    margin-top: 11.5px;
}

.history-body {
    display: flex;
    grid-row: 1;
    gap: 40px;
    align-items: flex-start;
}

.history-item:nth-child(odd) .history-body {
    grid-column: 3;
    padding-left: 40px;
}

.history-item:nth-child(even) .history-body {
    grid-column: 1;
    flex-direction: row-reverse;
    padding-right: 40px;
    text-align: right;
}

.history-year {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: -0.48px;
    white-space: nowrap;
}

.history-desc {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
    list-style: none;
}

.history-item:nth-child(even) .history-desc {
    align-items: flex-end;
}

.history-desc li {
    color: #333;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.16px;
    white-space: nowrap;
}

.history-caption {
    display: block;
    color: #777;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: 0;
}

.history-desc br {
    display: none;
}

.history-space {
    height: 76px;
}

/* TA */
@media (min-width: 768px) and (max-width: 1023px) {
    .history-bg {
        width: 1600px;
        height: 792.11px;
    }

    .history-bg img {
        top: 145.17px;
        left: 11.05px;
        width: 1577.91px;
        height: 788.95px;
        -webkit-mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 27.6217%, rgba(255, 255, 255, 0.4) 53.05%, #fff 81.8519%);
        mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 27.6217%, rgba(255, 255, 255, 0.4) 53.05%, #fff 81.8519%);
        -webkit-mask-size: calc(100% + 22.091px) 899.408px;
        mask-size: calc(100% + 22.091px) 899.408px;
        -webkit-mask-position: -11.045px -145.168px;
        mask-position: -11.045px -145.168px;
    }

    .history-line {
        height: calc(100% - 73px);
    }

    .history-body {
        flex-direction: column;
        gap: 12px;
    }

    .history-item:nth-child(even) .history-body {
        flex-direction: column;
        align-items: flex-end;
    }

    .history-desc br.br-ta {
        display: inline;
    }
}

/* MO */
@media (max-width: 767px) {
    .history-wrap {
        padding: 32px 0 20px;
    }

    .history-bg {
        width: 1014px;
        height: 502px;
        opacity: 0.2;
    }

    .history-bg img {
        top: 92px;
        left: 7px;
        width: 1000px;
        height: 500px;
        -webkit-mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 27.6217%, rgba(255, 255, 255, 0.4) 53.05%, #fff 81.8519%);
        mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 27.6217%, rgba(255, 255, 255, 0.4) 53.05%, #fff 81.8519%);
        -webkit-mask-size: calc(100% + 14px) 570px;
        mask-size: calc(100% + 14px) 570px;
        -webkit-mask-position: -7px -92px;
        mask-position: -7px -92px;
    }

    .history-timeline {
        padding: 0 16px;
    }

    .history-line {
        left: 20.5px;
        height: calc(100% - 29px);
    }

    .history-item {
        display: flex;
        gap: 16px;
        align-items: flex-start;
    }

    .history-dot {
        flex: 0 0 9px;
        margin-top: 8.5px;
    }

    .history-body,
    .history-item:nth-child(odd) .history-body,
    .history-item:nth-child(even) .history-body {
        flex: 1 1 0;
        flex-direction: row;
        gap: 16px;
        min-width: 0;
        padding: 0;
        text-align: left;
    }

    .history-year {
        flex: 0 0 44px;
        font-size: 18px;
        font-weight: 600;
        line-height: 26px;
        letter-spacing: -0.36px;
    }

    .history-desc,
    .history-item:nth-child(even) .history-desc {
        flex: 1 1 0;
        align-items: flex-start;
        min-width: 0;
        padding-top: 2px;
    }

    .history-desc li {
        font-size: 14px;
        line-height: 20px;
        letter-spacing: -0.14px;
        white-space: normal;
    }

    .history-caption {
        font-size: 12px;
        letter-spacing: -0.12px;
    }

    .history-desc br.br-mo {
        display: inline;
    }
}
