* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
    color: #3f2f22;
    background: #f8f5f1;
}

body.blog-index-page {
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

.blog-site-header {
    background: #6b4a2e;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
}

.blog-site-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.blog-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.blog-top-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
}

.blog-top-nav a {
    padding: 6px 10px;
    border-radius: 8px;
}

.blog-top-nav a:hover {
    background: rgba(255, 255, 255, 0.14);
}

.blog-main-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 12px 100px;
    min-height: 100vh;
}

.blog-hero {
    background: linear-gradient(135deg, #fff, #f6f0e8);
    border: 1px solid #e8dccf;
    border-radius: 14px;
    padding: 22px 20px;
    margin-bottom: 16px;
}

.blog-hero h1 {
    margin: 0;
    font-size: 28px;
    color: #5d3f27;
}

.blog-hero p {
    margin: 10px 0 0;
    color: #7d5f43;
}

.blog-layout {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    gap: 16px;
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.blog-sidebar--right {
    order: 3;
}

.blog-product-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8dccf;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-product-card:hover {
    border-color: #d6bfa7;
    box-shadow: 0 4px 12px rgba(107, 74, 46, 0.08);
}

.blog-product-card__thumb {
    display: block;
    aspect-ratio: 1;
    background: #f2e8dc;
    overflow: hidden;
}

.blog-product-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-product-card__name {
    padding: 10px 12px 4px;
    font-size: 14px;
    font-weight: 600;
    color: #4d3523;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-product-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 12px 6px;
    font-size: 12px;
    color: #8b6f4e;
}

.blog-product-card__stat {
    display: inline-flex;
    align-items: center;
}

.blog-product-card__price {
    padding: 0 12px 10px;
    font-size: 15px;
    font-weight: 700;
    color: #6b4a2e;
}

.blog-sidebar__more {
    display: block;
    margin-top: 12px;
    padding: 8px 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #6b4a2e;
    background: #f8f5f1;
    border-radius: 8px;
    border: 1px solid #e8dccf;
}

.blog-sidebar__more:hover {
    background: #f2e8dc;
    color: #5d3f27;
}

.blog-sidebar__section {
    background: #fff;
    border: 1px solid #e8dccf;
    border-radius: 12px;
    padding: 14px 16px;
}

.blog-sidebar__title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #5d3f27;
}

.blog-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.blog-sidebar__list li {
    margin: 0;
}

.blog-sidebar__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 8px;
    color: #6a513b;
    text-decoration: none;
    font-size: 14px;
    width: 100%;
}

.blog-sidebar__link:hover {
    background: #f2e8dc;
    color: #5d3f27;
}

.blog-sidebar__link.is-active {
    background: #f2e8dc;
    color: #5d3f27;
    font-weight: 700;
}

.blog-sidebar__label {
    min-width: 0;
}

.blog-sidebar__count {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 12px;
    color: #8b6f4e;
    background: #f8f5f1;
    border: 1px solid #e8dccf;
    border-radius: 999px;
    padding: 2px 6px;
}

.blog-sidebar__link--post {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.blog-sidebar__text {
    color: #4d3523;
    font-weight: 600;
}

.blog-sidebar__date {
    font-size: 12px;
    color: #8b6f4e;
}

.blog-sidebar__tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.blog-sidebar__tab {
    border: 1px solid #e8dccf;
    background: #f8f5f1;
    color: #6a513b;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    padding: 4px 10px;
    cursor: pointer;
}

.blog-sidebar__tab.is-active {
    background: #6b4a2e;
    border-color: #6b4a2e;
    color: #fff;
}

.blog-sidebar__tab-panel {
    display: none;
}

.blog-sidebar__tab-panel.is-active {
    display: block;
}

.blog-sidebar__empty {
    margin: 0;
    color: #8b6f4e;
    font-size: 13px;
}

.blog-list-section {
    min-width: 0;
}

.blog-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.blog-card-list .blog-card:nth-child(1),
.blog-card-list .blog-card:nth-child(2) {
    grid-column: 1 / -1;
}

.blog-card {
    background: #fff;
    border: 1px solid #e8dccf;
    border-radius: 12px;
    overflow: hidden;
}

.blog-card-link {
    display: flex;
    flex-direction: column;
}

.blog-card .thumb {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 1;
    min-height: 0;
    background: #ede2d5;
    overflow: hidden;
}

.blog-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card .content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.blog-card .meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #8b6f4e;
}

.blog-card .meta .sep {
    color: #c4a882;
    font-weight: 400;
}

.blog-card .cat {
    background: #f2e8dc;
    color: #5d3f27;
    border-radius: 999px;
    padding: 2px 8px;
    font-weight: 700;
}

.blog-card .title {
    font-size: 19px;
    line-height: 1.35;
    color: #4d3523;
}

.blog-card .summary {
    font-size: 14px;
    line-height: 1.65;
    color: #6a513b;
}

.blog-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.blog-pagination a {
    min-width: 34px;
    text-align: center;
    border: 1px solid #dcc9b3;
    background: #fff;
    border-radius: 8px;
    padding: 7px 8px;
    color: #6b4a2e;
    font-size: 13px;
}

.blog-pagination a.is-active {
    background: #6b4a2e;
    color: #fff;
    border-color: #6b4a2e;
}

.blog-empty {
    background: #fff;
    border: 1px solid #e8dccf;
    border-radius: 12px;
    padding: 24px 18px;
    color: #75583f;
}

.blog-detail-main {
    min-width: 0;
}

.blog-detail-shell {
    background: #fff;
    border: 1px solid #e8dccf;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(107, 74, 46, 0.06);
}

.blog-detail-top {
    margin-bottom: 0;
}

.blog-detail__hero {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #ede2d5;
}

.blog-detail__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-detail__headline-card {
    padding: 18px 22px 16px;
    border-top: 1px solid #e8dccf;
    border-bottom: 1px solid #e8dccf;
    background: linear-gradient(180deg, rgba(107, 74, 46, 0.04), #fff);
    margin-bottom: 0;
}

.blog-detail__title {
    margin: 0 0 8px;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.35;
    color: #4d3523;
}

.blog-detail__meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
}

.blog-detail__date {
    font-size: 14px;
    color: #8b6f4e;
}

.blog-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-detail__category {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #e8dccf;
    background: #f8f5f1;
    color: #5d3f27;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.blog-detail__category:hover {
    background: #f2e8dc;
}

.blog-cat-badge {
    --blog-cat-h: 30;
    background: linear-gradient(135deg, hsla(var(--blog-cat-h), 40%, 95%, 1), hsla(var(--blog-cat-h), 35%, 90%, 1));
    border-color: hsla(var(--blog-cat-h), 35%, 75%, 1);
}

.blog-detail-article {
    padding: 24px 22px 26px;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.blog-detail__content {
    font-size: 1rem;
    line-height: 1.9;
    color: #4b3828;
}

.blog-detail__content p {
    margin: 0 0 14px;
}

.blog-detail__content h1,
.blog-detail__content h2,
.blog-detail__content h3 {
    color: #4d3523;
    line-height: 1.45;
}

.blog-detail__content h2 {
    margin-top: 2rem;
    padding-top: 1.5rem;
    font-size: 1.4rem;
}

.blog-detail__content h2:not(:first-of-type) {
    border-top: none;
    margin-top: 2.5rem;
    padding-top: 2rem;
    position: relative;
}

.blog-detail__content h2:not(:first-of-type)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(199, 171, 143, 0.4) 15%, rgba(199, 171, 143, 0.7) 50%, rgba(199, 171, 143, 0.4) 85%, transparent 100%);
}


.blog-detail__content h3 {
    margin-top: 1.25rem;
    font-size: 1.15rem;
}

.blog-detail__content ul,
.blog-detail__content ol {
    margin: 0 0 14px 0;
    padding: 0;
}

.blog-detail__content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #e6d8c9;
    margin: 14px 0;
}

.blog-detail__bottom-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    position: relative;
}

.blog-detail__bottom-meta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(199, 171, 143, 0.5) 20%, rgba(199, 171, 143, 0.7) 50%, rgba(199, 171, 143, 0.5) 80%, transparent 100%);
}

.blog-detail__keyword {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #e8dccf;
    background: #f8f5f1;
    color: #6a513b;
    font-size: 13px;
    font-weight: 600;
}

.blog-detail__views {
    margin-left: auto;
    color: #8b6f4e;
    font-size: 14px;
}

.blog-detail__section {
    margin-top: 24px;
    padding-top: 24px;
    position: relative;
}

.blog-detail__section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(199, 171, 143, 0.5) 20%, rgba(199, 171, 143, 0.7) 50%, rgba(199, 171, 143, 0.5) 80%, transparent 100%);
}

.blog-detail__section-title {
    font-size: 15px;
    font-weight: 700;
    color: #5d3f27;
    margin-bottom: 12px;
}

.blog-detail__sources {
    margin: 0;
    padding-left: 20px;
    color: #6a513b;
}

.blog-detail__sources a {
    color: #6b4a2e;
    text-decoration: none;
}

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

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

.blog-detail__related-item + .blog-detail__related-item {
    margin-top: 10px;
}

.blog-detail__related-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e8dccf;
    border-radius: 10px;
    background: #faf8f5;
    text-decoration: none;
    color: inherit;
}

.blog-detail__related-link:hover {
    background: #f2e8dc;
    border-color: #dcc9b3;
}

.blog-detail__related-title {
    color: #4d3523;
    font-size: 15px;
    font-weight: 600;
}

.blog-detail__related-date {
    color: #8b6f4e;
    font-size: 13px;
    white-space: nowrap;
}

.blog-detail__related-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.blog-detail__rel-page-btn,
.blog-detail__rel-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #e8dccf;
    background: #fff;
    color: #6a513b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.blog-detail__rel-page-num.is-active {
    background: #6b4a2e;
    border-color: #6b4a2e;
    color: #fff;
}

.blog-detail__rel-page-btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.blog-detail-foot {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e8dccf;
}

.blog-detail-foot a {
    display: inline-block;
    background: #6b4a2e;
    color: #fff;
    border-radius: 8px;
    padding: 10px 16px;
    text-decoration: none;
}

.blog-detail-foot a:hover {
    background: #5d3f27;
}
