.jm-blog-hub {
    --jm-ink: #0b1d1f;
    --jm-muted: #5f6b6e;
    --jm-green: #1f6c45;
    --jm-green-dark: #165233;
    --jm-surface: #ffffff;
    --jm-soft: #f3f7f4;
    --jm-border: #e5ece8;
    --jm-shadow: 0 14px 36px rgba(5, 32, 24, 0.08);
    --jm-max: 1120px;
    color: var(--jm-ink);
    font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jm-blog-hub *,
.jm-blog-hub *::before,
.jm-blog-hub *::after {
    box-sizing: border-box;
}

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

.jm-blog-hero {
    position: relative;
    isolation: isolate;
    min-height: 420px;
    display: grid;
    place-items: center;
    padding: 86px 20px 72px;
    overflow: hidden;
    color: #fff;
    text-align: center;
    background: #052c33;
}

.jm-blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--jm-blog-hero-image);
    background-position: center;
    background-size: cover;
}

.jm-blog-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(4, 30, 35, 0.28) 0%, rgba(4, 30, 35, 0.72) 100%);
}

.jm-blog-hero__content {
    width: min(92vw, 820px);
}

.jm-section-kicker {
    margin: 0 0 12px;
    color: var(--jm-green);
    font-size: 13px;
    font-weight: 700;
}

.jm-blog-hero .jm-section-kicker {
    display: inline-flex;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.jm-blog-hero__title {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.16;
    font-weight: 800;
}

.jm-blog-hero__lead {
    max-width: 720px;
    margin: 18px auto 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 17px;
    line-height: 1.7;
    word-break: keep-all;
}

.jm-blog-search {
    width: min(720px, 100%);
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 28px auto 0;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--jm-shadow);
}

.jm-blog-search input {
    min-width: 0;
    flex: 1;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #1c292b;
    font: inherit;
    padding: 0 12px 0 18px;
    outline: 0;
}

.jm-blog-search button {
    height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    color: #fff;
    background: var(--jm-green);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.jm-blog-search button:hover,
.jm-blog-search button:focus {
    background: var(--jm-green-dark);
}

.jm-blog-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.jm-blog-tags a {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    font-size: 13px;
    font-weight: 600;
}

.jm-blog-category-nav {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--jm-border);
}

.jm-blog-category-nav__list {
    width: min(92vw, var(--jm-max));
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 auto;
    padding: 14px 0;
    overflow-x: auto;
    list-style: none;
}

.jm-blog-category-nav__list a {
    display: inline-flex;
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 8px;
    color: #334144;
    font-size: 14px;
    font-weight: 700;
}

.jm-blog-category-nav__list a:hover,
.jm-blog-category-nav__list a:focus {
    color: var(--jm-green);
    background: var(--jm-soft);
}

.jm-surface {
    width: min(92vw, var(--jm-max));
    margin: 48px auto 0;
}

.jm-surface__header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 18px;
    align-items: end;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid #111;
}

.jm-surface__header .jm-section-kicker {
    grid-column: 1 / -1;
}

.jm-surface__title {
    margin: 0;
    color: #111;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
}

.jm-surface__more {
    color: var(--jm-green);
    font-size: 14px;
    font-weight: 800;
}

.jm-blog-section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.jm-blog-section-card {
    min-height: 168px;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 22px;
    border: 1px solid var(--jm-border);
    border-radius: 14px;
    background: var(--jm-surface);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.04);
}

.jm-blog-section-card:hover,
.jm-blog-section-card:focus {
    border-color: rgba(31, 108, 69, 0.45);
    box-shadow: var(--jm-shadow);
    transform: translateY(-2px);
}

.jm-blog-section-card__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--jm-green);
    background: var(--jm-soft);
    font-weight: 900;
}

.jm-blog-section-card strong {
    color: var(--jm-ink);
    font-size: 18px;
    line-height: 1.35;
}

.jm-blog-section-card span:last-child {
    color: var(--jm-muted);
    font-size: 14px;
    line-height: 1.55;
    word-break: keep-all;
}

.jm-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.jm-post-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--jm-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.04);
}

.jm-post-card__thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--jm-soft);
}

.jm-post-card__thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.jm-post-card__body {
    padding: 18px;
}

.jm-post-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 8px;
    color: var(--jm-green);
    font-size: 12px;
    font-weight: 800;
}

.jm-post-card__title {
    margin: 0;
    color: #111;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 800;
    word-break: keep-all;
}

.jm-post-card__excerpt {
    margin-top: 10px;
    color: #536164;
    font-size: 14px;
    line-height: 1.65;
}

.jm-post-card__excerpt p {
    margin: 0;
}

.jm-blog-empty {
    margin: 0;
    color: var(--jm-muted);
}

@media (max-width: 900px) {
    .jm-blog-section-grid,
    .jm-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .jm-blog-hero {
        min-height: 380px;
        padding: 64px 18px 54px;
    }

    .jm-blog-search {
        align-items: stretch;
        flex-direction: column;
        border-radius: 18px;
    }

    .jm-blog-search input,
    .jm-blog-search button {
        width: 100%;
    }

    .jm-surface__header {
        grid-template-columns: 1fr;
    }

    .jm-blog-section-grid,
    .jm-post-grid {
        grid-template-columns: 1fr;
    }
}
