/* =====================================
   INFODAM POST PAGE
===================================== */

.post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 90px;
}

/* 경로 */
.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 35px;
    font-size: 13px;
    color: #999;
}

.post-breadcrumb a:hover {
    color: #3478f6;
}

/* 2열 레이아웃 */
.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 35px;
    align-items: start;
}

.post-article {
    min-width: 0;
    padding: 40px;
    background: #fff;
    border: 1px solid #e9edf2;
    border-radius: 10px;
}

/* 게시글 제목 영역 */
.post-heading {
    padding-bottom: 30px;
    margin-bottom: 35px;
    border-bottom: 1px solid #eee;
}

.post-category-label {
    display: inline-block;
    margin-bottom: 15px;
    color: #3478f6;
    font-size: 13px;
    font-weight: 700;
}

.post-heading h1 {
    margin-bottom: 20px;
    color: #172b4d;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: -1px;
    overflow-wrap: anywhere;
}

.post-summary {
    margin-bottom: 20px;
    color: #777;
    font-size: 16px;
    line-height: 1.8;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    color: #999;
    font-size: 13px;
}

.post-meta strong {
    color: #444;
}

/* 대표 이미지 */
.post-thumbnail {
    margin-bottom: 35px;
}

.post-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 7px;
}

/* 본문 */
.post-body {
    min-height: 200px;
    padding-bottom: 35px;
    color: #333;
    font-size: 16px;
    line-height: 2;
    overflow-wrap: anywhere;
}

.post-body p {
    margin-bottom: 22px;
}

.post-body h2 {
    margin: 35px 0 16px;
    color: #222;
    font-size: 25px;
    line-height: 1.5;
}

.post-body h3 {
    margin: 28px 0 14px;
    color: #333;
    font-size: 21px;
}

.post-body ul,
.post-body ol {
    padding-left: 25px;
    margin: 20px 0;
}

.post-body li {
    margin-bottom: 8px;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.post-body a {
    color: #3478f6;
    text-decoration: underline;
}

.post-body blockquote {
    margin: 25px 0;
    padding: 18px 25px;
    background: #f5f7fb;
    border-left: 3px solid #3478f6;
}

/* 광고 영역 */
.post-ad-area {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
    margin: 30px 0;
    background: #fafbfc;
    border: 1px dashed #e5e8ee;
}

.post-ad-area span,
.sidebar-ad span {
    color: #bbb;
    font-size: 10px;
    letter-spacing: 1.5px;
}

/* 하단 설명 */
.post-bottom-info {
    padding: 22px 0;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 12px;
    line-height: 1.8;
}

.post-bottom-info p {
    margin-top: 10px;
}

/* 이전 / 다음 게시글 */
.post-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.post-nav-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border: 1px solid #e9edf2;
    border-radius: 7px;
}

.post-nav-item:hover {
    border-color: #3478f6;
}

.post-nav-item span {
    font-size: 12px;
    color: #999;
}

.post-nav-item strong {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

/* 목록 */
.post-list-button {
    margin-top: 30px;
    text-align: center;
}

.post-list-button a {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 14px;
}

/* 사이드바 */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.sidebar-box {
    padding: 25px;
    background: #fff;
    border: 1px solid #e9edf2;
    border-radius: 10px;
}

.sidebar-title {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sidebar-title h3 {
    font-size: 17px;
    font-weight: 800;
}

.sidebar-post-list {
    list-style: none;
}

.sidebar-post-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f5;
}

.sidebar-post-list li:last-child {
    border-bottom: none;
}

.sidebar-post-list a {
    display: block;
    color: #444;
    font-size: 14px;
    line-height: 1.6;
}

.sidebar-post-list a:hover {
    color: #3478f6;
}

.sidebar-post-list span {
    display: block;
    margin-top: 7px;
    color: #aaa;
    font-size: 12px;
}

.sidebar-empty {
    color: #999;
    font-size: 13px;
}

.sidebar-ad {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafbfc;
}

/* 태블릿 */
@media (max-width: 950px) {
    .post-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .post-sidebar {
        display: none;
    }
}

/* 모바일 */
@media (max-width: 650px) {
    .post-container {
        padding: 20px 15px 50px;
    }

    .post-article {
        padding: 25px 20px;
    }

    .post-heading h1 {
        font-size: 25px;
    }

    .post-summary {
        font-size: 14px;
    }

    .post-body {
        font-size: 15px;
        line-height: 1.9;
    }

    .post-body h2 {
        font-size: 22px;
    }

    .post-body h3 {
        font-size: 19px;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .post-breadcrumb {
        flex-wrap: wrap;
    }
}
