/* ==========================================
   BLOG PAGE — v5
   v3 히어로 (폰트 통일 + 들여쓰기) + 2열 그리드
   ========================================== */


/* ==========================================
   UTILITY
   ========================================== */
   .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ==========================================
   HERO — v3 복원 + 수정
   ========================================== */
.blog-hero {
    position: relative;
    padding: 140px 0 0;
    background: #ffffff;
    overflow: hidden;
}

/* 타이포 — container 정렬 */
.blog-hero__typo-wrap {
    overflow: hidden;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem);
}

.blog-hero__title {
    display: flex;
    align-items: baseline;
    gap: clamp(16px, 3vw, 40px);
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}

.blog-hero__word {
    display: inline-block;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 0.85;
}

/* 폰트 사이즈 통일 */
.blog-hero__word--stroke {
    font-size: clamp(64px, 12vw, 160px);
    color: transparent;
    -webkit-text-stroke: 2.5px #64748b;
    animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.blog-hero__word--solid {
    font-size: clamp(64px, 12vw, 160px);
    color: #2563eb;
    -webkit-text-stroke: 0;
    animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

@keyframes heroReveal {
    from { opacity: 0; transform: translateY(80%); }
    to { opacity: 1; transform: translateY(0); }
}

/* 메타 바 */
.blog-hero__meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    margin-top: 24px;
    border-top: 2px solid #0f172a;
    animation: barIn 0.5s ease 0.5s both;
}

@keyframes barIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.blog-hero__meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-hero__meta-indicator {
    width: 8px;
    height: 8px;
    background: #2563eb;
    flex-shrink: 0;
}

.blog-hero__meta-label {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin: 0;
    letter-spacing: 0.01em;
}

.blog-hero__meta-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.blog-hero__meta-freq {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.blog-hero__meta-sep {
    color: #cbd5e1;
    font-size: 12px;
}

.blog-hero__meta-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: gap 0.3s ease;
}

.blog-hero__meta-link:hover { gap: 9px; }

/* 설명 */
.blog-hero__intro {
    padding: 28px 0 48px;
    border-top: 1px solid #e2e8f0;
    animation: barIn 0.5s ease 0.65s both;
}

.blog-hero__desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.75;
    margin: 0;
    max-width: 520px;
}


/* ==========================================
   BLOG LIST SECTION
   ========================================== */
.blog-list-section {
    padding: 80px 0 120px;
    background: #f8fafc;
}


/* ==========================================
   SECTION HEADER
   ========================================== */
.blog-list-header {
    margin-bottom: 40px;
}

.blog-list-header__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}

.blog-list-header__title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin: 0;
}

.blog-list-header__count {
    font-size: 13px;
    color: #64748b;
    letter-spacing: 0.05em;
}

.blog-list-header__count span {
    font-weight: 700;
    color: #2563eb;
    font-size: 14px;
}

.blog-list-header__line {
    width: 100%;
    height: 2px;
    background: #0f172a;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-list-header__line.is-visible { transform: scaleX(1); }


/* ==========================================
   2열 그리드
   ========================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}


/* ==========================================
   BLOG CARD
   ========================================== */
.blog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 32px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s ease;
    overflow: hidden;
}

.blog-card:hover { border-color: #2563eb; }

.blog-card--latest { border-color: #2563eb; }

.blog-card--pinned { border-bottom: 2px solid #0f172a; }


/* Badge */
.blog-card__badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 6px 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    z-index: 3;
}

.blog-card__badge--latest { background: #2563eb; color: #fff; }
.blog-card__badge--pinned { background: #0f172a; color: #fff; }


/* Card Top */
.blog-card__top {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.blog-card__number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 5vw, 64px);
    font-weight: 400;
    color: #e2e8f0;
    line-height: 0.8;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card__number { color: #2563eb; }
.blog-card--latest .blog-card__number { color: #2563eb; }

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 6px;
}

.blog-card__cat {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    padding: 3px 10px;
    border: 1px solid #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
}

.blog-card:hover .blog-card__cat { border-color: rgba(37, 99, 235, 0.3); color: #2563eb; }

.blog-card__date { font-size: 12px; color: #94a3b8; }


/* Card Body */
.blog-card__title {
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.4;
    margin: 0 0 12px;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card__title { color: #2563eb; }

.blog-card__excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}


/* Card Footer */
.blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    margin-top: 20px;
}

.blog-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }

.blog-card__tag {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    padding: 4px 10px;
    border: 1px solid #e2e8f0;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
}

.blog-card:hover .blog-card__tag { border-color: rgba(37, 99, 235, 0.3); color: #2563eb; }

.blog-card__arrow {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.blog-card:hover .blog-card__arrow {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    transform: translate(3px, -3px);
}


/* Hover Preview */
.blog-card__preview {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    z-index: 10;
    width: 360px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
    transition: opacity 0.25s ease;
}

.blog-card__preview.is-visible { opacity: 1; }
.blog-card__preview img { width: 100%; height: auto; display: block; }


/* ==========================================
   NOTICE
   ========================================== */
.blog-notice { padding: 48px 0; text-align: center; }

.blog-notice__line { width: 40px; height: 2px; background: #cbd5e1; margin: 0 auto 16px; }

.blog-notice__text { font-size: 14px; color: #94a3b8; margin: 0; }
.blog-notice__text strong { color: #2563eb; font-weight: 700; }


/* ==========================================
   EDITOR'S NOTE
   ========================================== */
.editor-note { margin-top: 0; }

.editor-note__accordion { background: #fff; border: 1px solid #e2e8f0; }

.editor-note__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.editor-note__trigger:hover { background: #f8fafc; }

.editor-note__trigger-left { display: flex; align-items: center; gap: 16px; }

.editor-note__label {
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.editor-note__trigger-title { font-size: 15px; font-weight: 600; color: #0f172a; }

.editor-note__arrow { color: #94a3b8; transition: transform 0.3s; }
.editor-note__accordion.is-open .editor-note__arrow { transform: rotate(180deg); }

.editor-note__panel { max-height: 0; overflow: hidden; transition: max-height 0.3s; }
.editor-note__accordion.is-open .editor-note__panel { max-height: 500px; }

.editor-note__content { padding: 0 24px 24px; }

.editor-note__text { font-size: 14px; line-height: 1.8; color: #64748b; margin-bottom: 20px; }
.editor-note__text strong { color: #0f172a; font-weight: 600; }

.editor-note__comparison { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid #0f172a; }

.editor-note__item { padding: 20px 20px 20px 0; }
.editor-note__item--column { border-right: 1px solid #e2e8f0; padding-right: 20px; }
.editor-note__item--blog { padding-left: 20px; }

.editor-note__item-label { font-size: 13px; font-weight: 700; margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.02em; }
.editor-note__item--column .editor-note__item-label { color: #2563eb; }
.editor-note__item--blog .editor-note__item-label { color: #0f172a; }

.editor-note__item-desc { font-size: 13px; color: #94a3b8; line-height: 1.6; margin: 0; }

.editor-note__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: gap 0.2s;
}

.editor-note__link:hover { gap: 10px; }


/* ==========================================
   CTA
   ========================================== */
.blog-cta {
    margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.blog-cta__text { font-size: 18px; color: #0f172a; margin: 0; line-height: 1.6; font-weight: 500; }
.blog-cta__text strong { font-weight: 700; color: #2563eb; }

.blog-cta__btn {
    background: #0f172a;
    color: #fff;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.blog-cta__btn:hover { background: #2563eb; }
.blog-cta__btn svg { transition: transform 0.3s; }
.blog-cta__btn:hover svg { transform: translateX(4px); }


/* ==========================================
   SCROLL REVEAL
   ========================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.is-visible { opacity: 1; transform: translateY(0); }


/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .blog-hero { padding: 120px 0 0; }

    .blog-hero__typo-wrap { padding: 0 clamp(1.25rem, 5vw, 2rem); }

    .blog-hero__word--stroke,
    .blog-hero__word--solid {
        font-size: clamp(40px, 12vw, 64px);
    }

    .blog-hero__word--stroke { -webkit-text-stroke: 2px #64748b; }

    .blog-hero__meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 0;
        margin-top: 20px;
    }

    .blog-hero__intro { padding: 20px 0 36px; }
    .blog-hero__desc { font-size: 14px; }
    .blog-hero__desc br { display: none; }

    /* Grid → 1열 */
    .blog-grid { grid-template-columns: 1fr; gap: 16px; }

    .blog-card { padding: 24px; }
    .blog-card__number { font-size: 40px; }
    .blog-card__title { font-size: 17px; }
    .blog-card__tag { font-size: 10px; padding: 3px 8px; }
    .blog-card__preview { display: none; }

    .blog-cta { flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 60px; padding-top: 32px; }

    .editor-note__trigger { padding: 16px 20px; }
    .editor-note__content { padding: 0 20px 20px; }
    .editor-note__comparison { grid-template-columns: 1fr; }
    .editor-note__item--column { border-right: none; border-bottom: 1px solid #e2e8f0; padding: 16px 0; }
    .editor-note__item--blog { padding: 16px 0 0; }
}

@media (max-width: 480px) {
    .blog-hero__word--stroke,
    .blog-hero__word--solid {
        font-size: clamp(32px, 11vw, 44px);
    }

    .blog-card__number { font-size: 32px; }
    .blog-card__title { font-size: 16px; }
}