/* ========================================
   SINGLE POST — H-Style
   ======================================== */

/* 싱글/페이지 공통 배경 */
body.single,
body.page {
    background-color: #ffffff;
}

/* ========== PAGE HERO ========== */

.page-hero {
    position: relative;
    width: 100%;
    min-height: 36vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: var(--color-hero-start, #0d3535);
    background-image: linear-gradient(135deg, var(--color-hero-start, #0d3535) 0%, var(--color-hero-end, #1a5252) 100%);
    padding-top: 70px;
}

.page-hero.has-image {
    min-height: 48vh;
}

.page-hero.no-image .hero-overlay {
    background: none;
}

/* ========== PAGE 발행일 ========== */

.page-byline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #aaaaaa;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e8e8e8;
}

/* ========== HERO ========== */

.single-hero {
    position: relative;
    width: 100%;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #154646;
    padding-top: 70px; /* 고정 헤더 높이 보정 */
}

/* 대표이미지 없을 때 */
.single-hero.no-image {
    min-height: 0;
    background: #154646;
}

.single-hero.no-image .hero-content {
    padding: 44px 60px 40px;
}

.single-hero.no-image .hero-category .category-badge {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
}

.single-hero.no-image .hero-category .category-badge:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.6);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.08) 0%,
        rgba(0, 0, 0, 0.35) 45%,
        rgba(0, 0, 0, 0.82) 100%
    );
}

.single-hero.no-image .hero-overlay {
    background: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    padding: 60px 60px;
    text-align: center;
}

/* 카테고리 뱃지 */
.hero-category {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.hero-category .category-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 5px 16px;
    border-radius: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all var(--transition-fast);
}

.hero-category .category-badge:hover {
    background: rgba(0, 0, 0, 0.75);
    border-color: rgba(255, 255, 255, 0.8);
}

/* 제목 */
.single-title {
    font-size: 35px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.32;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    word-break: keep-all;
}

/* 메타 영역 */
.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.tag-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition-fast);
}

.tag-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.hero-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
}

.hero-byline > * {
    white-space: nowrap;
}

.byline-sep {
    opacity: 0.5;
}

.byline-modified {
    color: rgba(255, 255, 255, 0.55);
    font-style: italic;
}

/* 읽기 진행 표시줄 */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--color-accent);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ========== PAGE LAYOUT (TOC + CONTENT) ========== */

.single-page-layout {
    display: flex;
    gap: 56px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    align-items: flex-start;
}

/* TOC 없을 때 — 콘텐츠 중앙 정렬 */
.single-page-layout.no-toc {
    justify-content: center;
}

/* ========== TOC SIDEBAR ========== */

.toc-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 40px 0 40px;
    scrollbar-width: none;
}

.toc-sidebar::-webkit-scrollbar {
    display: none;
}

.toc-inner {
    padding-top: 4px;
}

.toc-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent, #16a085);
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 14px;
}

.toc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-nav li {
    margin: 0;
}

.toc-nav a {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    color: #aaaaaa;
    padding: 5px 0 5px 14px;
    border-left: 2px solid #e8e8e8;
    transition: color var(--transition-fast), border-color var(--transition-fast);
    word-break: keep-all;
}

.toc-nav a:hover {
    color: #1a1a2e;
    border-left-color: var(--color-accent, #16a085);
}

.toc-nav a.is-active {
    color: #1a1a2e;
    font-weight: 600;
    border-left-color: var(--color-accent);
}

/* H3는 들여쓰기 */
.toc-nav .toc-h3 a {
    font-size: 12px;
    padding-left: 26px;
    color: #B0C0C2;
}

.toc-nav .toc-h3 a.is-active {
    color: #1a1a2e;
}

/* ========== CONTENT WRAPPER ========== */

.single-content-wrapper {
    flex: 1;
    min-width: 0;
    max-width: 760px;
    padding: 40px 0 96px;
}

/* ========== 정보 박스 (연재 nav + 한줄 요약 통합) ========== */

.article-infobox {
    margin-bottom: 20px;
    padding: 5px 12px;
    background: #f5f5f7;
    border-top: 5px solid #1a1a2e;
    border-bottom: 1px solid #aaaaaa;
    border-radius: 4px;
}

/* ── 연재 nav ── */
.series-nav {
    padding: 10px 0 8px;
}

.series-nav-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.series-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--color-accent, #16a085);
    border-radius: 3px;
    padding: 2px 7px;
    line-height: 1.6;
    flex-shrink: 0;
}

.series-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    flex: 1;
    min-width: 0;
}

.series-count {
    font-size: 12px;
    color: #888888;
    white-space: nowrap;
    flex-shrink: 0;
}

.series-nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.series-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--color-accent, #16a085);
    text-decoration: none;
    max-width: 48%;
    transition: color 0.15s;
}

.series-link:hover {
    color: var(--color-accent-hover, #0e7a65);
}

.series-link span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.series-link svg {
    flex-shrink: 0;
}

.series-link-empty {
    flex: 1;
}

/* ── 구분선 ── */
.infobox-divider {
    border: none;
    border-top: 1px solid #dddddd;
    margin: 4px 0;
}

/* ── 한줄 요약 ── */
.article-summary-inner {
    padding: 8px 0 4px;
}

.article-summary-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.article-summary-inner p {
    font-size: 14px;
    line-height: 1.75;
    color: #444444;
    margin: 0;
}

/* ========== ENTRY CONTENT — TYPOGRAPHY ========== */

.entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #454545;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.entry-content p {
    margin-bottom: 28px;
}

.entry-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry-content a:hover {
    color: var(--color-accent-hover);
}



/* H2 — 하단 그라데이션 두꺼운 선 */
.entry-content h2 {
font-size: 23px;
font-weight: 700;
color: #1a1a2e;
border: none;
background-image: linear-gradient(90deg, var(--color-accent, #16a085) 0%, transparent 100%);
background-size: 100% 3px;
background-position: bottom;
background-repeat: no-repeat;
padding: 0 0 10px;
margin: 44px 0 10px;
line-height: 1.42;
letter-spacing: -0.02em;
}

/* H3 — 하단 그라데이션 얇은 선 (절반 너비) */
.entry-content h3 {
font-size: 19px;
font-weight: 700;
color: #1a1a2e;
border: none;
background-image: linear-gradient(90deg, var(--color-accent, #16a085) 0%, transparent 100%);
background-size: 50% 2px;
background-position: bottom left;
background-repeat: no-repeat;
padding-bottom: 12px;
margin: 44px 0 10px;
line-height: 1.42;
letter-spacing: -0.01em;
}




.entry-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 36px 0 14px;
}

.entry-content img {
    max-width: 90%;
    height: auto;
    display: block;
}

.entry-content figure {
    margin-bottom: 32px;
}

.entry-content figure img {
    max-width: 90%;
}

.entry-content figcaption {
    font-size: 13px;
    color: #aaaaaa;
    text-align: center;
    padding: 10px 0 0;
    line-height: 1.5;
}

/* WP 블록 이미지 */
.entry-content .wp-block-image img {
    max-width: 90%;
}

/* Blockquote */
.entry-content blockquote {
    border-left: 3px solid #1a1a2e;
    padding: 16px 24px;
    margin: 36px 0;
    background: #f5f5f7;
    font-style: italic;
    color: #444444;
}

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

/* 인라인 코드 */
.entry-content code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
    color: #1a1a2e;
    border: 1px solid #e8e8e8;
}

/* 코드 블록 */
.entry-content pre {
    background: #f5f5f7;
    border: 1px solid #e8e8e8;
    padding: 24px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 32px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #1a1a2e;
}

.entry-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* 리스트 */
.entry-content ul,
.entry-content ol {
    margin: 24px 0;
    padding-left: 28px;
}

.entry-content ul {
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: 8px;
    line-height: 1.75;
}

/* 테이블 */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 15px;
}

.entry-content th,
.entry-content td {
    padding: 12px 16px;
    border: 1px solid #e8e8e8;
    text-align: left;
    color: #444444;
}

.entry-content th {
    background: #f5f5f7;
    color: #1a1a2e;
    font-weight: 700;
}

/* WP 정렬 클래스 */
.entry-content .alignwide {
    width: 100%;
    max-width: 100%;
}

.entry-content .alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.entry-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.entry-content .alignleft {
    float: left;
    margin: 0 24px 16px 0;
    width: auto;
    max-width: 50%;
}

.entry-content .alignright {
    float: right;
    margin: 0 0 16px 24px;
    width: auto;
    max-width: 50%;
}

/* ========== 태그 푸터 ========== */

.post-tags-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e8e8e8;
}

.post-tag-pill {
    font-size: 13px;
    color: #555555;
    background: #f0f0f0;
    padding: 5px 14px;
    border-radius: 20px;
    transition: all var(--transition-fast);
}

.post-tag-pill:hover {
    background: var(--color-accent, #16a085);
    color: #ffffff;
}

/* ========== 공유하기 버튼 ========== */

.share-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 52px;
    margin-bottom: 4px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #555555;
    cursor: pointer;
    transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
    font-family: var(--font-primary);
    letter-spacing: 0.02em;
}

.share-btn:hover {
    border-color: var(--color-accent, #16a085);
    color: #ffffff;
    background: var(--color-accent, #16a085);
}

.share-toast {
    font-size: 13px;
    color: var(--color-accent);
    font-weight: 500;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.share-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 이전 / 다음 글 ========== */

.post-navigation {
    margin-top: 48px;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 22px;
    background: #f5f5f7;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.nav-item:hover {
    border-color: var(--color-accent, #16a085);
    background: #ffffff;
}

.nav-next {
    text-align: right;
}

.nav-direction {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav-next .nav-direction {
    justify-content: flex-end;
}

.nav-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 댓글 ========== */

.comments-area-wrapper {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e8e8e8;
}

.comments-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #1a1a2e;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    padding: 24px 0;
    border-bottom: 1px solid #e8e8e8;
}

/* html5 comment 구조:
   article.comment-body
   ├── footer.comment-meta
   │   ├── div.comment-author.vcard (avatar + name)
   │   └── div.comment-metadata (date)
   ├── div.comment-content
   └── div.reply
*/

.comment-list .comment-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 헤더 행: avatar + 이름 + 날짜 한 줄로 */
.comment-list .comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.comment-list .comment-author.vcard {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-list .comment-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
}

.comment-list .comment-author .fn {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.comment-list .comment-author .fn a {
    color: inherit;
}

.comment-list .comment-author .says {
    display: none;
}

/* 날짜 — 구분점 포함 */
.comment-list .comment-metadata {
    font-size: 13px;
    color: #aaaaaa;
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-list .comment-metadata::before {
    content: "·";
    color: #e0e0e0;
}

.comment-list .comment-metadata a {
    color: inherit;
}

/* 본문 — 아바타 너비(40px) + gap(10px) 만큼 들여쓰기 */
.comment-list .comment-content {
    padding-left: 50px;
}

.comment-list .comment-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #444444;
    margin: 0 0 6px;
}

/* 답글 링크 */
.comment-list .reply {
    padding-left: 50px;
}

.comment-list .reply .comment-reply-link {
    font-size: 12px;
    font-weight: 600;
    color: #aaaaaa;
    letter-spacing: 0.04em;
    transition: color var(--transition-fast);
}

.comment-list .reply .comment-reply-link:hover {
    color: var(--color-accent);
}

/* 답글 중첩 들여쓰기 */
.comment-list .children {
    list-style: none;
    padding-left: 50px;
    margin-top: 4px;
}

/* ========== 브레드크럼 ========== */

.single-breadcrumb {
    padding: 5px 0 0;
    margin-bottom: 10px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 13px;
}

.breadcrumb-nav a {
    color: #888888;
    transition: color var(--transition-fast);
}

.breadcrumb-nav a:hover {
    color: var(--color-accent);
}

/* 홈 링크 제외 마지막 링크(카테고리)에 액센트 */
.breadcrumb-nav a:not(:first-child) {
    color: var(--color-accent);
    font-weight: 600;
}

.breadcrumb-nav a:not(:first-child):hover {
    color: #c0222e;
}

.breadcrumb-sep {
    color: #414141;
    font-size: 11px;
    margin: 0 3px;
    font-weight: 400;
}

.breadcrumb-current {
    color: #444444;
    font-weight: 600;
    max-width: 380px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comment-respond {
    margin-top: 40px;
}

.comment-respond .comment-reply-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a1a2e;
}

.comment-respond .comment-form p {
    margin-bottom: 16px;
}

.comment-respond .comment-form p.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-respond .comment-form p.comment-form-cookies-consent label {
    display: inline;
    margin-bottom: 0;
    font-weight: 400;
    color: #666666;
}

.comment-respond .comment-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555555;
    margin-bottom: 6px;
}

.comment-respond .comment-form input[type="text"],
.comment-respond .comment-form input[type="email"],
.comment-respond .comment-form input[type="url"],
.comment-respond .comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 15px;
    font-family: var(--font-primary);
    background: #fafafa;
    color: #1a1a2e;
    transition: border-color var(--transition-fast);
    box-sizing: border-box;
}

.comment-respond .comment-form input:focus,
.comment-respond .comment-form textarea:focus {
    outline: none;
    border-color: var(--color-accent, #16a085);
}

.comment-respond .comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

.comment-respond .form-submit .submit {
    background: var(--color-accent);
    color: #ffffff;
    border: none;
    padding: 13px 32px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.comment-respond .form-submit .submit:hover {
    background: var(--color-accent-hover);
}

/* PC: 이름·이메일·웹사이트 2열 그리드 */
@media (min-width: 769px) {
    .comment-respond .comment-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 20px;
    }

    /* 댓글 textarea — 2열 전체 */
    .comment-respond .comment-form p.comment-form-comment {
        grid-column: 1 / -1;
    }

    /* 이름(col1) · 이메일(col2) — 자동 배치 */

    /* 쿠키 동의 체크박스 — 2열 전체 */
    .comment-respond .comment-form p.comment-form-cookies-consent {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .comment-respond .comment-form p.comment-form-cookies-consent label {
        display: inline;
        margin-bottom: 0;
    }

    /* 제출 버튼 — 2열 전체 */
    .comment-respond .comment-form p.form-submit {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }
}

/* ========== 관련글 (라이트) ========== */

.related-posts-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: #f5f5f7;
    padding: 64px 40px 72px;
    margin-top: 80px;
}

.related-posts-inner {
    max-width: var(--site-max-width);
    margin: 0 auto;
}

.related-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
}

/* 크림 배경 위의 카드 오버라이드 */
.related-posts-section .card-item {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
}

.related-posts-section .card-item:hover {
    background: #ffffff;
    border-color: var(--color-accent, #16a085);
}

.related-posts-section .card-thumbnail {
    border-radius: 6px 6px 0 0;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 16 / 9;
}

.related-posts-section .card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-posts-section .card-no-thumb {
    background: #f5f5f7;
}

/* 카드 본문: flex-column으로 순서 재배치 */
.related-posts-section .card-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
}

/* 제목 — 맨 위 */
.related-posts-section .card-title {
    order: 1;
    font-size: 15px;
    color: #1a1a2e;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(15px * 1.5 * 2);
    line-height: 1.5;
}

.related-posts-section .card-item:hover .card-title {
    color: var(--color-accent, #16a085);
}

/* 카테고리 배지 — 제목 아래 */
.related-posts-section .card-category {
    order: 2;
    margin-bottom: 8px;
}

.related-posts-section .category-badge {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-accent, #16a085);
    border: none;
    padding: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: transparent;
}

/* 태그 */
.related-posts-section .card-tags {
    order: 3;
    margin-bottom: 8px;
}

.related-posts-section .card-tag {
    color: #aaaaaa;
    font-size: 11px;
}

.related-posts-section .card-item:hover .card-tag {
    color: #666666;
}

/* 날짜 — 가장 작게, 맨 아래 */
.related-posts-section .card-date {
    order: 4;
    font-size: 10px;
    color: #bbbbbb;
    letter-spacing: 0.02em;
}

.related-view-all {
    text-align: center;
    margin-top: 36px;
}

.related-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent, #16a085);
    letter-spacing: 0.06em;
    text-decoration: none;
    border: 1.5px solid var(--color-accent, #16a085);
    border-radius: 24px;
    padding: 9px 22px;
    transition: background 0.18s, color 0.18s;
}

.related-view-all-btn:hover {
    background: var(--color-accent, #16a085);
    color: #ffffff;
}
