/*----------------------- detail_top -----------------------*/
.detail_top {
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid var(--gray-400);
    border-bottom: 1px solid var(--dark-line);
}
.detail_title {
    font-size: var(--ft20);
    font-weight: var(--semi-bold);
    text-align: center;
    margin-bottom: 20px;
}
.dateil_date {
    display: block;
    font-size: var(--ft16);
    color: var(--gray-400);
    text-align: center;
}

/*----------------------- detail -----------------------*/
.detail {
    margin-top: 50px;
}

/*----------------------- detail_list -----------------------*/
.detail_list {
    margin-top: 85px;
    border-top: 1px solid var(--dark-line);
}
.detail_list .list_box {
    width: 100%;
    height: 60px;
    border-bottom: 1px solid var(--dark-line);
}
.detail_list .prev,
.detail_list .next {
    width: 90px;
    flex-shrink: 0;
}
.detail_list .list_title {
    color: var(--gray-500);
}
.detail_list .list_box:hover .list_title {
    text-decoration: underline;
}

/*----------------------- detail_list_img -----------------------*/
.detail_list_img {
    margin-top: 85px;
    width: 100%;
    padding: 20px 0;
    border-top: 1px solid var(--dark-line);
    border-bottom: 1px solid var(--dark-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.detail_list_img .list_box {
    max-width: 50%;
}
.list_box a {
    display: flex;
    align-items: center;
    gap: 20px;
}
.list_img {
    width: 120px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.prev,
.next {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.prev img,
.next img {
    width: 8px;
    height: 8px;
}
.prev img {
    transform: rotate(180deg);
}
.prev span,
.next span {
    font-weight: var(--medium);
    color: var(--gray-500);
}
.detail_list_img .list_title {
    font-size: var(--ft18);
    font-weight: var(--semi-bold);
    color: var(--gray-500);
    margin-bottom: 10px;
}
.detail_list_img .list_date {
    font-size: var(--ft14);
    color: var(--gray-500);
}
.detail_list_img .next_list_box .list_text_box {
    display: flex;
    flex-direction: column;
    align-items: end;
}

/*----------------------- list_btn -----------------------*/
.list_btn {
    width: 300px;
    height: 60px;
    border-radius: 8px;
    background-color: var(--primary);
    margin: 60px auto 0;
}
.list_btn a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
}
.list_btn p {
    font-size: var(--ft18);
    font-weight: var(--semi-bold);
    color: var(--white);
}
.list_ham {
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.list_ham span,
.list_ham span::before,
.list_ham span::after {
    content: '';
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--white);
    position: absolute;
}
.list_ham span::before {
    transform: translateY(-5px);
}
.list_ham span::after {
    transform: translateY(5px);
    transition: width .4s ease;
}

.list_btn:hover .list_ham span::after  {
    width: 70%;
}

@media all and (max-width: 1024px) {
    .detail_top {
        padding: 20px 0;
    }
    .list_img {
        width: 80px;
        height: 80px;
    }
}

@media all and (max-width: 768px) {
    .detail_top {
        margin-top: 30px;
    }
    .detail_title {
        font-size: var(--ft18);
        margin-bottom: 10px;
    }
    .detail {
        margin-top: 30px;
    }
    .list_btn {
        height: 50px;
    }
    .list_btn p {
        font-size: var(--ft16);
    }

    .detail_list_img {
        flex-direction: column;
        align-items: start;
        gap: 20px;
    }
    .detail_list_img .list_box {
        width: 100%;
        max-width: 100%;
    }
    .detail_list_img .list_box a {
        gap: 10px;
    }
    .detail_list_img .list_box.prev_list_box {
        padding-bottom: 20px;
        border-bottom: 1px solid var(--dark-line);
    }
    .list_img {
        width: 60px;
        height: 60px;
    }
    .detail_list_img .next_list_box .list_text_box {
        order: 3;
        align-items: start;
    }
    .detail_list_img .next_list_box .list_img {
        order: 2;
    }
    .detail_list_img .prev img {
        transform: rotate(270deg);
        order: 2;
    }
    .detail_list_img .next img {
        transform: rotate(90deg);
    }
    .detail_list_img .list_title {
        margin-bottom: 4px;
    }
}

@media all and (max-width: 600px) {
    .detail_list .prev,
    .detail_list .next {
        width: 60px;
    }
}