@import url(style.less);

// 년도 탭
.year_link_box {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid @color_lightgray;
    .year_link {
        color: #adb5bd !important;
        font-size: 22px;
        font-weight: 700;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-bottom: 2rem;
		height: 100%;
        &:before {
            position: absolute;
            bottom: -3px;
            left: 50%;
            transform: translateX(-50%);
            content: "";
            width: 0%;
            height: 5px;
            background-color: #f01111;
            border-radius: 10px;
            transition: all 0.3s;
        }
    }
    .active {
        color: @color_black !important;
        transition: all 0.3s;
        position: relative;
        p {
            position: relative;
            &:after {
                position: absolute;
                width: 8px;
                height: 8px;
                background-color: @color_red;
                content: "";
                right: -20px;
                top: -10px;
                border-radius: 50%;
            }
        }
        &:before {
            width: 100%;
        }
    }
}

.content {
    overflow: unset;
}
// 년도 컨텐츠
.year_con {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding-bottom: 12rem;
    .tit {
        width: 40%;
        flex: 0 0 auto;
        position: sticky;
        top: 0rem;
        left: 0;
        padding: 5rem 0 3rem 0;
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        height: fit-content;
        z-index: 1;
        h1 {
            color: @color_main;
        }
    }
    /* 년도 시작 */
    .history {
        flex: 1 1 100%;
        position: relative;
        margin-left: 2rem;
        margin-top: 5rem;
        // 대메뉴
        .circle {
            position: relative;
            &:before {
                position: absolute;
                left: -10px;
                width: 20px;
                height: 20px;
                background-color: @color_sub;
                border-radius: 50%;
                content: "";
            }
            &:after {
                content: "";
                background-color: #fff;
                width: 8px;
                height: 8px;
                position: absolute;
                top: 6px;
                left: -4px;
                border-radius: 50%;
            }
            .year {
                display: flex;
                font-weight: 700;
                position: relative;
                margin-bottom: 3rem;
            }
            .moment {
                display: inline-flex;
                width: 100%;
                margin-bottom: 1.5rem;
                .hd {
                    width: 6rem;
                }
            }
            &:not(:last-child) {
                margin-bottom: 6rem;
            }
        }
        &:before {
            position: absolute;
            top: 0;
            left: 0;
            width: 1px;
            height: 100%;
            background-color: @color_gray;
            content: "";
        }
    }
    @media @tab {
        flex-direction: column;
        .tit {
            width: 100%;
            background-color: #fff;
        }
    }
}
