/* ============================================================
   Post Design — Premium Styles
   8가지 헤더 + 정보 바 + 본문 래핑 + 관련 글
   ============================================================ */

/* ------------------------------------
   0. 리셋 & 공통
   ------------------------------------ */
.msfah-post-header,
.msfah-post-header *,
.msfah-post-info-bar,
.msfah-post-info-bar *,
.msfah-post-content-wrap,
.msfah-related-posts,
.msfah-related-posts * {
    box-sizing: border-box;
}

.msfah-post-header {
    position: relative;
    width: 100%;
    margin-bottom: 0;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
}

.msfah-post-header-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.msfah-post-header-inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.msfah-post-title {
    margin: 0 0 20px;
    line-height: 1.3;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.msfah-post-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
}

.msfah-post-meta-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #6b7280;
}

.msfah-post-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.msfah-post-separator {
    opacity: 0.4;
    font-size: 12px;
}

.msfah-post-category a {
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}
.msfah-post-category a:hover {
    opacity: 0.7;
}

.msfah-post-reading-time {
    white-space: nowrap;
}

/* ------------------------------------
   1. 히어로 스타일
   ------------------------------------ */
.msfah-post-header--hero {
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
}

.msfah-post-header--hero .msfah-post-header-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%);
}

.msfah-post-header--hero .msfah-post-title {
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.msfah-post-header--hero .msfah-post-meta-top {
    justify-content: center;
}

.msfah-post-header--hero .msfah-post-category a {
    color: #fff;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: 1px;
}

.msfah-post-header--hero .msfah-post-meta-bottom {
    justify-content: center;
    color: rgba(255,255,255,0.85);
}

.msfah-post-header--hero .msfah-post-separator {
    color: rgba(255,255,255,0.4);
}

.msfah-post-header--hero .msfah-post-avatar {
    border: 2px solid rgba(255,255,255,0.5);
}

/* ------------------------------------
   2. 미니멀 / 클래식
   ------------------------------------ */
.msfah-post-header--minimal {
    padding: 64px 0 48px;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.msfah-post-header--minimal .msfah-post-title {
    font-size: 38px;
    font-weight: 700;
    color: #111827;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.msfah-post-header--minimal .msfah-post-meta-top {
    justify-content: center;
}

.msfah-post-header--minimal .msfah-post-category a {
    color: #3b82f6;
}

.msfah-post-header--minimal .msfah-post-meta-bottom {
    justify-content: center;
    padding-top: 20px;
    margin-top: 4px;
    border-top: 1px solid #e5e7eb;
    display: inline-flex;
}

/* ------------------------------------
   3. 스플릿 스크린
   ------------------------------------ */
.msfah-post-header--split {
    min-height: 480px;
}

.msfah-post-header--split .msfah-post-header-inner {
    display: flex;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.msfah-post-header--split .msfah-post-header-image {
    width: 50%;
    min-height: 480px;
    background-size: cover;
    background-position: center;
}

.msfah-post-header--split .msfah-post-header-content {
    width: 50%;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f8fafc;
}

.msfah-post-header--split .msfah-post-title {
    font-size: 36px;
    font-weight: 700;
    color: #0f172a;
}

.msfah-post-header--split .msfah-post-category a {
    color: #3b82f6;
    background: #eff6ff;
    padding: 4px 12px;
    border-radius: 6px;
}

/* ------------------------------------
   4. 오버랩
   ------------------------------------ */
.msfah-post-header--overlap {
    min-height: 400px;
    background-size: cover;
    background-position: center;
    margin-bottom: 80px;
}

.msfah-post-header--overlap .msfah-post-header-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
}

.msfah-post-header--overlap .msfah-post-header-inner {
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.msfah-post-header--overlap .msfah-post-header-content {
    background: #fff;
    padding: 40px 48px;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.12);
    text-align: center;
    max-width: 820px;
    width: 92%;
    transform: translateY(60px);
}

.msfah-post-header--overlap .msfah-post-title {
    font-size: 34px;
    font-weight: 700;
    color: #1f2937;
}

.msfah-post-header--overlap .msfah-post-meta-top {
    justify-content: center;
}

.msfah-post-header--overlap .msfah-post-meta-bottom {
    justify-content: center;
}

.msfah-post-header--overlap .msfah-post-category a {
    color: #3b82f6;
}

/* ------------------------------------
   5. 언더라인
   ------------------------------------ */
.msfah-post-header--underline {
    padding: 56px 0 40px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.msfah-post-header--underline .msfah-post-title {
    font-size: 40px;
    font-weight: 800;
    color: #0f172a;
    display: inline-block;
    padding-bottom: 16px;
    border-bottom: 4px solid #3b82f6;
    margin-bottom: 20px;
}

.msfah-post-header--underline .msfah-post-category a {
    color: #3b82f6;
    font-weight: 700;
}

/* ------------------------------------
   6. 박스형 / 카드
   ------------------------------------ */
.msfah-post-header--boxed {
    padding: 56px 0;
    background: #f1f5f9;
}

.msfah-post-header--boxed .msfah-post-header-content {
    background: #fff;
    padding: 48px 56px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
}

.msfah-post-header--boxed .msfah-post-title {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
}

.msfah-post-header--boxed .msfah-post-meta-top {
    justify-content: center;
}

.msfah-post-header--boxed .msfah-post-meta-bottom {
    justify-content: center;
}

.msfah-post-header--boxed .msfah-post-category a {
    color: #fff;
    background: #3b82f6;
    padding: 4px 14px;
    border-radius: 20px;
}

/* ------------------------------------
   7. 빅 타이포그래피
   ------------------------------------ */
.msfah-post-header--big_typography {
    padding: 72px 0 48px;
    background: #fff;
}

.msfah-post-header--big_typography .msfah-post-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1.5px;
    color: #0f172a;
}

.msfah-post-header--big_typography .msfah-post-category a {
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ------------------------------------
   8. 그라디언트 텍스트
   ------------------------------------ */
.msfah-post-header--gradient {
    padding: 64px 0 48px;
    text-align: center;
    background: #fff;
}

.msfah-post-header--gradient .msfah-post-title {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    line-height: 1.2;
}

.msfah-post-header--gradient .msfah-post-meta-top {
    justify-content: center;
}

.msfah-post-header--gradient .msfah-post-meta-bottom {
    justify-content: center;
}

.msfah-post-header--gradient .msfah-post-category a {
    color: #8b5cf6;
    font-weight: 700;
}

/* ============================================================
   포스트 정보 바
   ============================================================ */
.msfah-post-info-bar {
    border-bottom: 1px solid #e5e7eb;
    background: #fafbfc;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

.msfah-post-info-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.msfah-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.msfah-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}
.msfah-tag:hover {
    background: #3b82f6;
    color: #fff;
}

.msfah-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}
.msfah-share-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}
.msfah-share-btn svg {
    flex-shrink: 0;
}

/* ============================================================
   본문 래핑
   ============================================================ */
.msfah-post-content-wrap {
    max-width: 780px;
    margin: 48px auto;
    padding: 0 24px;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16.5px;
    line-height: 1.85;
    color: #1f2937;
    word-break: keep-all;
}

.msfah-post-content-wrap h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 48px 0 16px;
    color: #0f172a;
}

.msfah-post-content-wrap h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 36px 0 12px;
    color: #1e293b;
}

.msfah-post-content-wrap img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

.msfah-post-content-wrap blockquote {
    border-left: 4px solid #3b82f6;
    margin: 32px 0;
    padding: 16px 24px;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    color: #475569;
    font-style: italic;
}

.msfah-post-content-wrap a {
    color: #3b82f6;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.msfah-post-content-wrap p {
    margin: 0 0 20px;
}

/* ============================================================
   이전 글 / 다음 글 네비게이션
   ============================================================ */
.msfah-post-nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

.msfah-post-nav-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 40px 0;
    border-top: 1px solid #e5e7eb;
}

.msfah-post-nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.msfah-post-nav-item:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: #3b82f6;
}

.msfah-post-nav-empty {
    border: none;
    background: none;
}

.msfah-post-nav-next {
    text-align: right;
    justify-content: flex-end;
}

.msfah-post-nav-next .msfah-post-nav-text {
    align-items: flex-end;
}

.msfah-post-nav-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.msfah-post-nav-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.msfah-post-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.msfah-post-nav-label svg {
    flex-shrink: 0;
}

.msfah-post-nav-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.msfah-post-nav-item:hover .msfah-post-nav-title {
    color: #3b82f6;
}

/* ============================================================
   관련 글
   ============================================================ */
.msfah-related-posts {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 24px 72px;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    border-top: 1px solid #e5e7eb;
}

.msfah-related-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 28px;
}

.msfah-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.msfah-related-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.25s, transform 0.25s;
}
.msfah-related-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.msfah-related-thumb {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background: #f1f5f9;
}

.msfah-related-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.msfah-related-card:hover .msfah-related-thumb img {
    transform: scale(1.06);
}

.msfah-related-no-img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
}

.msfah-related-info {
    padding: 16px;
}

.msfah-related-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.msfah-related-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.msfah-related-date {
    font-size: 12px;
    color: #9ca3af;
}

/* ============================================================
   카테고리 아카이브 — 프리미엄 그리드
   ============================================================ */

/* --- 아카이브 메인 래퍼 --- */
.msfah-archive-main {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- 아카이브 헤더 배너 --- */
.msfah-archive-header {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e40af 100%);
    padding: 64px 24px 56px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.msfah-archive-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(59,130,246,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139,92,246,0.1) 0%, transparent 40%);
    pointer-events: none;
}

.msfah-archive-header--has-bg {
    background-size: cover;
    background-position: center;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.msfah-archive-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.6) 0%, rgba(15,23,42,0.85) 100%);
    z-index: 1;
}

.msfah-archive-header-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.msfah-archive-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.15);
}

.msfah-archive-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.msfah-archive-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    margin: 0 0 20px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.msfah-archive-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.msfah-archive-count svg {
    opacity: 0.6;
}

.msfah-archive-count strong {
    color: rgba(255,255,255,0.9);
    font-weight: 700;
}

/* --- 하위 카테고리 네비게이션 --- */
.msfah-archive-subnav {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.msfah-archive-subnav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.msfah-archive-subnav-inner::-webkit-scrollbar {
    display: none;
}

.msfah-subnav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.msfah-subnav-item:hover {
    color: #1f2937;
    border-bottom-color: #d1d5db;
}

.msfah-subnav-item--active {
    color: #3b82f6;
    font-weight: 600;
    border-bottom-color: #3b82f6;
}

.msfah-subnav-count {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 1px 7px;
    border-radius: 10px;
}

.msfah-subnav-item--active .msfah-subnav-count {
    color: #3b82f6;
    background: #eff6ff;
}

/* --- 아카이브 그리드 --- */
.msfah-archive-grid-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 64px;
}

.msfah-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* --- 아카이브 카드 --- */
.msfah-archive-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s, transform 0.3s;
}

.msfah-archive-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    transform: translateY(-6px);
}

.msfah-archive-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 썸네일 */
.msfah-archive-card-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    background: #f1f5f9;
}

.msfah-archive-card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.msfah-archive-card:hover .msfah-archive-card-thumb img {
    transform: scale(1.08);
}

.msfah-archive-card-no-img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* 카테고리 배지 */
.msfah-archive-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: 8px;
    letter-spacing: 0.3px;
    z-index: 2;
}

/* 카드 본문 */
.msfah-archive-card-body {
    padding: 20px;
}

.msfah-archive-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.msfah-archive-card:hover .msfah-archive-card-title {
    color: #3b82f6;
}

.msfah-archive-card-excerpt {
    font-size: 13.5px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 카드 메타 */
.msfah-archive-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #9ca3af;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}

.msfah-archive-card-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.msfah-archive-card-author {
    font-weight: 500;
    color: #6b7280;
}

.msfah-archive-card-date {
    margin-left: auto;
    white-space: nowrap;
}

/* --- 페이지네이션 --- */
nav.msfah-archive-pagination {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 72px;
    text-align: center;
}

nav.msfah-archive-pagination ul.page-numbers {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    gap: 6px;
    align-items: center;
}

nav.msfah-archive-pagination ul.page-numbers li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}

nav.msfah-archive-pagination ul.page-numbers li a,
nav.msfah-archive-pagination ul.page-numbers li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    background: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: all 0.2s;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

nav.msfah-archive-pagination ul.page-numbers li a:hover {
    background: #f3f4f6 !important;
    color: #3b82f6 !important;
}

nav.msfah-archive-pagination ul.page-numbers li span.current {
    background: #3b82f6 !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700 !important;
}

nav.msfah-archive-pagination ul.page-numbers li span.dots {
    border: none !important;
    background: none !important;
    color: #9ca3af !important;
    width: auto !important;
    padding: 0 4px !important;
}

nav.msfah-archive-pagination ul.page-numbers li a.prev,
nav.msfah-archive-pagination ul.page-numbers li a.next {
    color: #6b7280 !important;
}

nav.msfah-archive-pagination ul.page-numbers li a.prev svg,
nav.msfah-archive-pagination ul.page-numbers li a.next svg {
    display: block;
}

/* --- 빈 상태 --- */
.msfah-archive-empty {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    text-align: center;
    color: #9ca3af;
    font-size: 16px;
}

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 1024px) {
    .msfah-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 아카이브: 3열 → 2열 */
    .msfah-archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .msfah-archive-title {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    /* 히어로 */
    .msfah-post-header--hero {
        min-height: 380px;
    }
    .msfah-post-header--hero .msfah-post-title {
        font-size: 30px;
    }

    /* 미니멀 */
    .msfah-post-header--minimal {
        padding: 40px 0 32px;
    }
    .msfah-post-header--minimal .msfah-post-title {
        font-size: 28px;
    }

    /* 스플릿 → 스택 */
    .msfah-post-header--split .msfah-post-header-inner {
        flex-direction: column-reverse;
    }
    .msfah-post-header--split .msfah-post-header-image,
    .msfah-post-header--split .msfah-post-header-content {
        width: 100%;
    }
    .msfah-post-header--split .msfah-post-header-image {
        min-height: 260px;
    }
    .msfah-post-header--split .msfah-post-header-content {
        padding: 32px 24px;
    }
    .msfah-post-header--split .msfah-post-title {
        font-size: 28px;
    }

    /* 오버랩 */
    .msfah-post-header--overlap {
        min-height: 300px;
        margin-bottom: 60px;
    }
    .msfah-post-header--overlap .msfah-post-header-inner {
        min-height: 300px;
    }
    .msfah-post-header--overlap .msfah-post-header-content {
        padding: 28px 24px;
        transform: translateY(40px);
    }
    .msfah-post-header--overlap .msfah-post-title {
        font-size: 26px;
    }

    /* 언더라인 */
    .msfah-post-header--underline {
        padding: 36px 0 28px;
    }
    .msfah-post-header--underline .msfah-post-title {
        font-size: 28px;
    }

    /* 박스 */
    .msfah-post-header--boxed {
        padding: 32px 0;
    }
    .msfah-post-header--boxed .msfah-post-header-content {
        padding: 28px 24px;
    }
    .msfah-post-header--boxed .msfah-post-title {
        font-size: 26px;
    }

    /* 빅 타이포 */
    .msfah-post-header--big_typography {
        padding: 48px 0 32px;
    }
    .msfah-post-header--big_typography .msfah-post-title {
        font-size: 40px;
    }

    /* 그라디언트 */
    .msfah-post-header--gradient {
        padding: 40px 0 32px;
    }
    .msfah-post-header--gradient .msfah-post-title {
        font-size: 32px;
    }

    /* 본문 */
    .msfah-post-content-wrap {
        margin: 32px auto;
        font-size: 15.5px;
    }

    /* 이전/다음 글 */
    .msfah-post-nav-inner {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .msfah-post-nav-next {
        text-align: left;
        justify-content: flex-start;
    }
    .msfah-post-nav-next .msfah-post-nav-text {
        align-items: flex-start;
    }

    /* 관련 글 */
    .msfah-related-posts {
        padding: 40px 24px 56px;
    }

    /* 아카이브 */
    .msfah-archive-header {
        padding: 48px 20px 40px;
    }
    .msfah-archive-title {
        font-size: 28px;
    }
    .msfah-archive-grid-wrap {
        padding: 28px 16px 48px;
    }
    .msfah-archive-grid {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .msfah-post-header--hero .msfah-post-title {
        font-size: 24px;
    }

    .msfah-post-header--big_typography .msfah-post-title {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .msfah-post-header--gradient .msfah-post-title {
        font-size: 26px;
    }

    .msfah-related-grid {
        grid-template-columns: 1fr;
    }

    .msfah-post-info-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    /* 아카이브: 1열 */
    .msfah-archive-grid {
        grid-template-columns: 1fr;
    }
    .msfah-archive-title {
        font-size: 24px;
    }
    .msfah-archive-card-body {
        padding: 16px;
    }
}
