@charset "UTF-8";

/* ==================================================
   Blog Post Content CSS
   - 게시글 본문 전용 공통 스타일
   - 사용 권장 wrapper: .blog-content
================================================== */

.blog-content {
    width: 100%;
    max-width: 100%;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.85;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* ==================================================
   기본 문단
================================================== */

.blog-content p {
    margin: 0 0 18px;
}

.blog-content strong {
    font-weight: 700;
    color: #111827;
}

.blog-content em {
    color: #374151;
}

.blog-content hr {
    margin: 36px 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

/* ==================================================
   제목
================================================== */

.blog-content h2 {
    margin: 42px 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    color: #111827;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.35;
}

.blog-content h3 {
    margin: 34px 0 14px;
    color: #1f2937;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
}

.blog-content h4 {
    margin: 26px 0 12px;
    color: #374151;
    font-size: 18px;
    font-weight: 700;
}

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

.blog-content a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(37, 99, 235, 0.25);
}

.blog-content a:hover {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

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

.blog-content ul,
.blog-content ol {
    margin: 14px 0 22px;
    padding-left: 24px;
}

.blog-content li {
    margin-bottom: 8px;
}

.blog-content li::marker {
    color: #2563eb;
    font-weight: 700;
}

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

.blog-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 26px auto;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.blog-content figure {
    margin: 28px 0;
}

.blog-content figcaption {
    margin-top: 10px;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
}

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

.blog-content blockquote {
    margin: 26px 0;
    padding: 18px 22px;
    border-left: 5px solid #2563eb;
    border-radius: 0 16px 16px 0;
    background: #f8fafc;
    color: #374151;
}

.blog-content blockquote p:last-child {
    margin-bottom: 0;
}

/* ==================================================
   코드
================================================== */

.blog-content code {
    padding: 2px 6px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #dc2626;
    font-size: 0.92em;
    font-family: Consolas, Monaco, "Courier New", monospace;
}

.blog-content pre {
    margin: 24px 0;
    padding: 18px 20px;
    overflow-x: auto;
    border-radius: 18px;
    background: #111827;
    color: #f9fafb;
    font-size: 14px;
    line-height: 1.7;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.blog-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
}

/* ==================================================
   표
================================================== */

.blog-content table {
    width: 100%;
    margin: 26px 0;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 16px;
    font-size: 15px;
    box-shadow: 0 0 0 1px #e5e7eb;
}

.blog-content thead {
    background: #f8fafc;
}

.blog-content th,
.blog-content td {
    padding: 13px 14px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.blog-content th {
    color: #111827;
    font-weight: 800;
}

.blog-content td {
    color: #374151;
}

.blog-content tr:last-child td {
    border-bottom: 0;
}

/* ==================================================
   공통 박스
================================================== */

.blog-content .post-box,
.blog-content .summary-box,
.blog-content .notice-box,
.blog-content .tip-box,
.blog-content .warning-box,
.blog-content .check-box,
.blog-content .gray-box {
    margin: 24px 0;
    padding: 20px 22px;
    border-radius: 20px;
    line-height: 1.75;
}

.blog-content .post-box {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.blog-content .summary-box {
    border: 1px solid #dbeafe;
    background: #eff6ff;
}

.blog-content .notice-box {
    border: 1px solid #dbeafe;
    background: #f8fbff;
}

.blog-content .tip-box {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
}

.blog-content .warning-box {
    border: 1px solid #fed7aa;
    background: #fff7ed;
}

.blog-content .check-box {
    border: 1px solid #bfdbfe;
    background: #f0f9ff;
}

.blog-content .gray-box {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.blog-content .post-box p:last-child,
.blog-content .summary-box p:last-child,
.blog-content .notice-box p:last-child,
.blog-content .tip-box p:last-child,
.blog-content .warning-box p:last-child,
.blog-content .check-box p:last-child,
.blog-content .gray-box p:last-child {
    margin-bottom: 0;
}

/* ==================================================
   단계형 박스
================================================== */

.blog-content .step-box {
    position: relative;
    margin: 22px 0;
    padding: 20px 22px 20px 58px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.blog-content .step-number {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 28px;
    text-align: center;
}

/* ==================================================
   버튼형 링크
================================================== */

.blog-content .post-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 8px 6px 8px 0;
    padding: 0 18px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 0;
    transition: 0.2s ease;
}

.blog-content .post-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* ==================================================
   내부 링크 박스
================================================== */

.blog-content .link-box {
    margin: 26px 0;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #f9fafb;
}

.blog-content .link-box h3 {
    margin-top: 0;
}

.blog-content .link-box ul {
    margin-bottom: 0;
}

/* ==================================================
   태그 박스
================================================== */

.blog-content .tag-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
}

.blog-content .tag-box span,
.blog-content .tag-box a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 0;
}

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

@media (max-width: 768px) {
    .blog-content {
        font-size: 15px;
        line-height: 1.8;
    }

    .blog-content h2 {
        font-size: 22px;
    }

    .blog-content h3 {
        font-size: 19px;
    }

    .blog-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .blog-content .post-box,
    .blog-content .summary-box,
    .blog-content .notice-box,
    .blog-content .tip-box,
    .blog-content .warning-box,
    .blog-content .check-box,
    .blog-content .gray-box {
        padding: 18px;
        border-radius: 18px;
    }

    .blog-content .step-box {
        padding: 18px 18px 18px 54px;
    }
}