/* ========================================
   기본
======================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #fff;
    color: #333;
    font-family:
        Arial,
        "Malgun Gothic",
        "맑은 고딕",
        sans-serif;
    line-height: 1.8;
}

a {
    color: #155db0;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* ========================================
   전체 폭
======================================== */

.wrap {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 25px;
}


/* ========================================
   헤더
======================================== */

header {
    padding: 40px 0 25px;
    border-bottom: 1px solid #ddd;
}

header h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.3;
    font-weight: 700;
}

header h1 a {
    color: #222;
    text-decoration: none;
}

header p {
    margin: 10px 0 0;
    color: #777;
    font-size: 15px;
}


/* ========================================
   메뉴
======================================== */

nav {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

nav a {
    margin-right: 18px;
}


/* ========================================
   본문 전체 영역
======================================== */

main {
    padding: 0 0 60px;
}


/* ========================================
   게시글
======================================== */

.post_view {
    padding-top: 35px;
}


/* 게시글 제목 */

.post_view > h1 {
    margin: 0 0 10px;
    color: #222;
    font-size: 32px;
    line-height: 1.4;
    font-weight: 700;
}


/* ========================================
   게시글 날짜
======================================== */

.post_date {
    display: block;
    margin-bottom: 30px;
    color: #999;
    font-size: 14px;
}


/* ========================================
   게시글 본문
======================================== */

.post_body {
    font-size: 17px;

    /*
       일반 본문 줄 간격
       기존 /blog와 비슷하게 여유 있게 표시
    */
    line-height: 2.05 !important;

    /*
       일반 글씨를 기존보다 약간 묵직하게 표시
    */
    font-weight: 500 !important;

    /*
       기존 글에서 복사된 폰트 지정도 통일
    */
    font-family:
        Arial,
        "Malgun Gothic",
        "맑은 고딕",
        sans-serif !important;

    word-break: keep-all;
    overflow-wrap: break-word;
}


/* ========================================
   기존 글의 <p> 인라인 줄간격 강제 적용
======================================== */

.post_body p {
    margin: 0 0 22px;

    /*
       기존 글에 들어 있는
       style="line-height:120%"
       등을 덮어씀
    */
    line-height: 2.05 !important;

    font-family:
        Arial,
        "Malgun Gothic",
        "맑은 고딕",
        sans-serif !important;

    font-weight: 500 !important;
}


/* ========================================
   기존 글에서 복사된 <span> 서식 정리
======================================== */

.post_body span {
    font-family:
        Arial,
        "Malgun Gothic",
        "맑은 고딕",
        sans-serif !important;
}


/* ========================================
   굵은 글씨
======================================== */

.post_body strong,
.post_body b {
    font-weight: 700 !important;
}


/*
   기존 글의
   <span style="font-weight:bold;">
   도 그대로 굵게 표시
*/
.post_body span[style*="font-weight:bold"],
.post_body span[style*="font-weight: bold"] {
    font-weight: 700 !important;
}


/* ========================================
   기울임
======================================== */

.post_body em,
.post_body i {
    font-style: italic;
}


/* ========================================
   본문 제목
======================================== */

.post_body h2 {
    margin: 35px 0 15px;
    padding: 0;
    border: 0;
    font-size: 24px;
    line-height: 1.5 !important;
    color: #222;
    font-weight: 700 !important;
}

.post_body h3 {
    margin: 30px 0 12px;
    padding: 0;
    border: 0;
    font-size: 21px;
    line-height: 1.5 !important;
    color: #333;
    font-weight: 700 !important;
}

.post_body h4 {
    margin: 25px 0 10px;
    padding: 0;
    font-size: 19px;
    line-height: 1.5 !important;
    color: #333;
    font-weight: 700 !important;
}


/* ========================================
   목록
======================================== */

.post_body ul,
.post_body ol {
    margin: 15px 0 25px;
    padding-left: 28px;
}

.post_body li {
    margin-bottom: 6px;
}


/* ========================================
   링크
======================================== */

.post_body a {
    color: #1769aa;
    text-decoration: underline;
}


/* ========================================
   글자 색상
======================================== */

.post_body .text-red {
    color: #d60000 !important;
}

.post_body .text-blue {
    color: #1769aa !important;
}

.post_body .text-green {
    color: #16833a !important;
}


/* ========================================
   인용문
======================================== */

.post_body blockquote {
    margin: 25px 0;
    padding: 16px 20px;
    border-left: 5px solid #999;
    background: #f7f7f7;
    color: #555;

    font-size: 16px;
    line-height: 1.8 !important;
    font-weight: 400 !important;

    font-family:
        Arial,
        "Malgun Gothic",
        "맑은 고딕",
        sans-serif !important;
}


/* ========================================
   이미지
======================================== */

.post_body img {
    max-width: 100%;
    height: auto;
}


/* ========================================
   목록 페이지
======================================== */

.post-item {
    padding: 22px 0;
    border-bottom: 1px solid #eee;
}

.post-item h3 {
    margin: 0 0 5px;
    font-size: 21px;
    line-height: 1.5;
    font-weight: 700;
}


/* ========================================
   하단 연락처
======================================== */

.blog_contact {
    margin-top: 45px;
    padding: 22px 20px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.blog_contact .contact_title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
}

.blog_contact .contact_title a {
    color: #222;
    text-decoration: none;
}

.blog_contact .contact_desc {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 400;
}


/* ========================================
   목록으로 돌아가기
======================================== */

.back {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.back a {
    display: inline-block;
    padding: 12px 22px;
    background: #2f6f9f;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
}


/* ========================================
   기존 .content가 사용되는 부분
======================================== */

.content {
    margin-top: 30px;
    font-size: 17px;
    line-height: 2.05 !important;
    font-weight: 500 !important;
    font-family:
        Arial,
        "Malgun Gothic",
        "맑은 고딕",
        sans-serif !important;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.content p {
    margin: 0 0 22px;
    line-height: 2.05 !important;
    font-weight: 500 !important;
    font-family:
        Arial,
        "Malgun Gothic",
        "맑은 고딕",
        sans-serif !important;
}

.content span {
    font-family:
        Arial,
        "Malgun Gothic",
        "맑은 고딕",
        sans-serif !important;
}

.content h2 {
    margin: 35px 0 15px;
    padding: 0;
    border: 0;
    font-size: 24px;
    line-height: 1.5 !important;
    color: #222;
    font-weight: 700 !important;
}

.content h3 {
    margin: 30px 0 12px;
    padding: 0;
    border: 0;
    font-size: 21px;
    line-height: 1.5 !important;
    color: #333;
    font-weight: 700 !important;
}

.content h4 {
    margin: 25px 0 10px;
    padding: 0;
    font-size: 19px;
    line-height: 1.5 !important;
    color: #333;
    font-weight: 700 !important;
}

.content ul,
.content ol {
    margin: 15px 0 25px;
    padding-left: 28px;
}

.content li {
    margin-bottom: 6px;
}

.content a {
    color: #1769aa;
    text-decoration: underline;
}

.content .text-red {
    color: #d60000 !important;
}

.content .text-blue {
    color: #1769aa !important;
}

.content .text-green {
    color: #16833a !important;
}

.content blockquote {
    margin: 25px 0;
    padding: 16px 20px;
    border-left: 5px solid #999;
    background: #f7f7f7;
    color: #555;
    font-size: 16px;
    line-height: 1.8 !important;
    font-weight: 400 !important;
}

.content img {
    max-width: 100%;
    height: auto;
}


/* ========================================
   모바일
======================================== */

@media screen and (max-width: 600px) {

    .wrap {
        padding: 0 18px;
    }

    header {
        padding: 25px 0 20px;
    }

    header h1 {
        font-size: 26px;
    }

    header p {
        font-size: 14px;
        line-height: 1.6;
    }

    nav {
        padding: 8px 0;
    }

    main {
        padding: 0 0 45px;
    }

    .post_view {
        padding-top: 28px;
    }

    .post_view > h1 {
        font-size: 26px;
        line-height: 1.4;
    }

    .post_body {
        font-size: 16px;
        line-height: 1.95 !important;
        font-weight: 500 !important;
    }

    .post_body p {
        line-height: 1.95 !important;
        font-weight: 500 !important;
    }

    .post_body h2 {
        font-size: 21px;
        margin-top: 30px;
    }

    .post_body h3 {
        font-size: 19px;
    }

    .post_body blockquote {
        padding: 14px 16px;
        font-size: 15px;
        line-height: 1.8 !important;
        font-weight: 400 !important;
    }
}


.search {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.search input {
    flex: 1;
    height: 42px;
    border: 1px solid #ccc;
    padding: 0 12px;
    font-size: 15px;
    box-sizing: border-box;
}

.search button {
    width: 80px;
    border: 0;
    background: #333;
    color: #fff;
    cursor: pointer;
}