/*
(주)파이브센스_FIVESENSES.Corp.
파이브프로_FIVEPro_웹솔루션.
본 라이브러리(소스코드 및 디자인 포함)는 (주)파이브센스의 자산이며, 저작권법 및 부정경쟁방지법에 의해 보호됩니다.
무단 사용, 외부 유출, 복제, 배포, 변형을 금지합니다.
위반 시 민·형사상 법적 책임 및 손해배상 청구 대상이 됩니다.
작성일: 2025-03-18 | 저작권자: (주)파이브센스(520-86-01244) | All Rights Reserved.
*/

/* 배경 이미지 */
.sub_b1_5 {
    background-color: #261d18;
    background-image: url('./img/history_bg.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

.sub_b1_5 .container_fix {
    display: flex;
    flex-direction: column;
}

/* 상단 뱃지 + 타이틀 */
.sub_b1_5 .sub_b1_5_head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.sub_b1_5 .sub_b1_5_head .badge {
    display: inline-block;
    padding: 10px 16px;
    margin-bottom: 28px;
    font-family: 'Nanum Myeongjo', serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.32);
    border-radius: 100px;
}

.sub_b1_5 .sub_b1_5_head .title {
    font-size: 56px;
    font-weight: 500;
    line-height: 1.3;
    color: #fff;
}

/* 타임라인 */
.sub_b1_5 .sub_b1_5_timeline {
    position: relative;
    width: 100%;
    margin-top: 90px;
    padding-top: 110px;
}

.sub_b1_5 .sub_b1_5_timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background-color: #D7AA78;
}

.sub_b1_5 .sub_b1_5_item {
    position: relative;
    display: flex;
    width: 50%;
    box-sizing: border-box;
}

.sub_b1_5 .sub_b1_5_item + .sub_b1_5_item {
    margin-top: 24px;
}

.sub_b1_5 .sub_b1_5_item.is_left {
    justify-content: flex-end;
    padding-right: 100px;
}

.sub_b1_5 .sub_b1_5_item.is_right {
    margin-left: 50%;
    padding-left: 100px;
}

/* 이미지 → 중앙선 연결선 */
.sub_b1_5 .sub_b1_5_item::before {
    content: '';
    position: absolute;
    top: 63px;
    width: 100px;
    height: 1px;
    background-color: #D7AA78;
}

.sub_b1_5 .sub_b1_5_item.is_left::before {
    right: 0;
}

.sub_b1_5 .sub_b1_5_item.is_right::before {
    left: 0;
}

/* 중앙선 포인트 */
.sub_b1_5 .sub_b1_5_item::after {
    content: '';
    position: absolute;
    top: 57px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ffffff;
    z-index: 1;
}

.sub_b1_5 .sub_b1_5_item.is_left::after {
    right: -5px;
}

.sub_b1_5 .sub_b1_5_item.is_right::after {
    left: -6px;
}

/* 날짜 */
.sub_b1_5 .sub_b1_5_item .date {
    position: absolute;
    top: 45px;
    display: block;
    font-family: 'Nanum Myeongjo', serif;
    font-size: 32px;
    font-weight: 800;
    color: #D7AA78;
    white-space: nowrap;
}

.sub_b1_5 .sub_b1_5_item.is_left .date {
    left: calc(100% + 40px);
}

.sub_b1_5 .sub_b1_5_item.is_right .date {
    right: calc(100% + 40px);
}

/* 카드 */
.sub_b1_5 .sub_b1_5_card {
    width: 100%;
    max-width: 500px;
}

.sub_b1_5 .sub_b1_5_imagebox {
    width: 100%;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    background-color: #f4f4f4;
}

.sub_b1_5 .sub_b1_5_imagebox img {
    display: block;
    width: 100%;
    object-fit: contain;
}

.sub_b1_5 .sub_b1_5_card h3.item_title {
    margin: 20px 0 0;
    font-size: 26px;
    font-weight: 600;
    line-height: 32px;
    color: #ffffff;
}

.sub_b1_5 .sub_b1_5_card .text {
    display: block;
    margin-top: 10px;
    font-size: 22px;
    font-weight: 400;
    line-height: 30px;
    color: #fff;
    word-break: keep-all;
}

@media (max-width: 991px) {
    .sub_b1_5 {
        background-image: url('./img/m_history_bg.png');
    }

    .sub_b1_5 .sub_b1_5_head {
        display: none;
    }

    .sub_b1_5 .sub_b1_5_head .badge {
        margin-bottom: 20px;
        padding: 8px 16px;
        font-size: 15px;
    }

    .sub_b1_5 .sub_b1_5_head .title {
        font-size: 27px;
    }

    /* 모바일: 좌측 세로선 + 우측 카드 단일 열 */
    .sub_b1_5 .sub_b1_5_timeline {
        /* margin-top: 40px; */
        margin-top: 0;
        padding-top: 0;
    }

    .sub_b1_5 .sub_b1_5_timeline::before {
        top: 12px;
        left: 5px;
        background-color: #817367;
    }

    .sub_b1_5 .sub_b1_5_item.is_left,
    .sub_b1_5 .sub_b1_5_item.is_right {
        flex-direction: column;
        justify-content: flex-start;
        width: 100%;
        margin-left: 0;
        padding-left: 30px;
        padding-right: 0;
    }

    .sub_b1_5 .sub_b1_5_item + .sub_b1_5_item {
        margin-top: 35px;
    }

    .sub_b1_5 .sub_b1_5_item::before {
        display: none;
    }

    .sub_b1_5 .sub_b1_5_item.is_left::after,
    .sub_b1_5 .sub_b1_5_item.is_right::after {
        top: 9px;
        left: -1px;
        right: auto;
    }

    .sub_b1_5 .sub_b1_5_item .date {
        position: static;
        margin-bottom: 15px;
        font-size: 18px;
        line-height: 22px;
    }

    .sub_b1_5 .sub_b1_5_card {
        max-width: none;
    }

    .sub_b1_5 .sub_b1_5_card h3.item_title {
        margin-top: 11px;
        font-size: 16px;
        line-height: 23px;
    }

    .sub_b1_5 .sub_b1_5_card .text {
        margin-top: 8px;
        font-size: 13px;
        line-height: 20px;
    }
}