@charset "utf-8";

.blog-view .blog-col {
    display: flex;
    flex-direction: column;
}

.blog-view .blog-col .post-cover {
    order: 2;
}

.blog-view .blog-col .blog-head {
    order: 1;
}

@media (max-width: 768px) {
    .blog-view .blog-col .post-cover {
        order: 1;
        /* 아래로 보내기 */
    }

    .blog-view .blog-col .blog-head {
        order: 2;
        /* 위로 올리기 */
    }
}


/* 버튼 관련 시작***************************************************/
.post-actions-fixed {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2000;
}

.post-actions-fixed button {
    padding: 10px 18px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}

.post-actions-fixed button:hover {
    background: #eee;
}

/* 버튼 관련 종료***************************************************/

.blog-view {
    max-width: 770px;
    margin: 150px auto 100px;
}

.blog-head {
    text-align: center;
    margin-bottom: 80px;
}

.post-category {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f2f5;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.blog-view .post-cover {
    margin-bottom: 60px;
}

.blog-view .post-cover img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
}

.blog-head h1 {
    font-size: 40px;
    line-height: 1.3;
    margin-bottom: 24px;
    word-break: keep-all;
}

.blog-head .date {
    font-size: 16px;
    color: #888;
}

.blog-view .content div > div > div > div,
.blog-view .content .block p {
    line-height: 1.7;
    font-size: 17px;
    word-break: keep-all;
}

.blog-view .content .block-item .text-block a,
.blog-view .content .block-item .text-block {
    line-height: 1.6;
}

.blog-view .content .image-block img {
    width: 100%;
}

.related-content {
    margin-top: 50px;
    padding: 30px;
    background: #f6f9fc;
    border-radius: 12px;
}

.rc-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.rc-list {
    list-style: disc;
    padding-left: 20px;
}

.rc-list li {
    margin-bottom: 10px;
}

.rc-list a {
    color: #374151;
    text-decoration: none;
}

.rc-list a:hover {
    text-decoration: underline;
}

.latest-posts-wrap {
    margin-top: 80px;
}

.latest-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.latest-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.latest-thumb {
    width: 100%;
    aspect-ratio: 3/2;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

.latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-info {
    margin-top: 10px;
}

.latest-info strong {
    display: block;
    line-height: 1.4;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.latest-info span {
    font-size: 13px;
    color: #888;
}

.back-to-list {
    margin-top: 80px;
    text-align: center;
}

.back-to-list a {
    display: inline-block;
    padding: 12px 28px;
    background: #eceff3;
    border-radius: 8px;
    color: #46515f;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.back-to-list a:hover {
    background: #d4dbe5;
}

.sn-tip .sn-control button {
    display: none;
}

@media (max-width:820px) {
    .blog-view {
        padding: 0 20px;
    }
}

@media (max-width:768px) {
    .blog-view {
        margin: 100px auto 40px;
    }

    .blog-head h1 {
        font-size: 28px;
    }

    .latest-posts-grid {
        grid-template-columns: repeat(1, 1fr);
    }

}
