/* .blog-layout, .blog-layout__sidebar, 사이드 메뉴 → _remap.css (전체 공통) */

/* ------------------------------------------------------------------
 * 메인 페이지 섹션 공통
 * ------------------------------------------------------------------ */

.index-section {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    padding: 28px 28px 36px;
    box-sizing: border-box;
    width: 100%;
}

.index-section + .index-section {
    margin-top: 24px;
}

@media (max-width: 768px) {
    .index-section {
        padding: 18px 16px 24px;
        border-radius: 12px;
    }
    .index-section + .index-section {
        margin-top: 16px;
    }
}

/* ------------------------------------------------------------------
 * 섹션 헤더
 * ------------------------------------------------------------------ */

.blog-section-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.blog-section-header__title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #111827;
}

.blog-section-header__subtitle {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
}

/* ------------------------------------------------------------------
 * 블로그 카드 리스트
 * - 모바일: 1열
 * - 일반 화면: 최대 4열
 * ------------------------------------------------------------------ */

.blog-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.25);
    transition: transform 0.16s ease, box-shadow 0.16s ease,
                border-color 0.16s ease, background-color 0.16s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);
    border-color: rgba(129, 140, 248, 0.6);
    background-color: #f9fafb;
}

.blog-card__thumbnail {
    display: block;
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #e5e7eb;
}

.blog-card__thumbnail::before {
    content: "";
    display: block;
    width: 100%;
    padding-top: 60%;
}

.blog-card__thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.24s ease;
}

.blog-card:hover .blog-card__thumbnail img {
    transform: scale(1.05);
}

.blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px 18px 16px;
}

.blog-card__meta-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.blog-card__category {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: background 0.15s ease;
}

.blog-card__category:hover {
    background: rgba(59, 130, 246, 0.16);
}

.blog-card__title {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.03em;
    color: #111827;
}

.blog-card__title a {
    color: inherit;
    text-decoration: none;
}

.blog-card__title a:hover {
    text-decoration: underline;
}

.blog-card__excerpt {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
}

.blog-card__meta-bottom {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.blog-card__dot {
    font-size: 16px;
    line-height: 1;
}

.blog-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
}



/* 반응형: auto-fill — 카드 최소 240px, 공간에 따라 열 수 자동 증가 */

@media (max-width: 480px) {
    .blog-card-grid {
        grid-template-columns: 1fr;
    }
}

.blog-post-list__empty {
    margin: 0;
    padding: 48px 24px;
    text-align: center;
    font-size: 15px;
    color: #9ca3af;
}

