/* Blog Detail */

.blog-show {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 80px;
}

/* Hero */
.blog-hero {
    position: relative;
    width: 960px;
    left: 50%;
    transform: translateX(-50%);
    height: 420px;
    overflow: hidden;
    margin-top: 120px;
    margin-bottom: 56px;
}

.blog-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.22);
    padding: 24px;
    text-align: center;
}

.blog-hero-title {
    font-size: 42px;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
    max-width: 680px;
}

.blog-hero-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.08em;
}

/* No hero image fallback */
.blog-hero:not(:has(.blog-hero-img)) {
    background: #f5f3ef;
    height: 280px;
}

/* Body */
.blog-body {
    padding: 0 24px;
}

/* Quick Summary */
.blog-summary {
    margin-bottom: 32px;
}

.blog-summary-title {
    font-size: 28px;
    margin: 0 0 16px;
    color: #1a1a1a;
}

.blog-summary-text {
    font-size: 15px;
    line-height: 1.75;
    color: #333;
}

.blog-summary-text ul,
.blog-summary-text ol {
    padding-left: 0;
    list-style: none;
}

.blog-summary-text li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 10px;
}

.blog-summary-text li::before {
    content: '•';
    position: absolute;
    left: 0;
}

/* Divider */
.blog-divider {
    border: none;
    border-top: 1px solid #d6d0c8;
    margin: 40px 0;
}

/* WYSIWYG content */
.blog-content {
    font-size: 15px;
    line-height: 1.85;
    color: #333;
}

.blog-content p {
    margin: 0 0 24px;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 32px auto;
}

.blog-content video,
.blog-content iframe {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    margin: 32px auto;
    background: #000;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    font-family: 'baskervville';
    color: #1a1a1a;
    margin: 32px 0 12px;
}

.blog-content h2 { font-size: 26px; }
.blog-content h3 { font-size: 22px; }
.blog-content h4 { font-size: 18px; }

.blog-content ul,
.blog-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.blog-content li {
    margin-bottom: 8px;
}

.blog-content a {
    color: #7a5c3a;
    text-decoration: underline;
}

.blog-content blockquote {
    border-left: 3px solid #c9b99a;
    margin: 32px 0;
    padding: 12px 24px;
    color: #555;
    font-style: italic;
}

/* Other Articles */
.blog-others {
    padding: 0 24px;
}

.blog-others-title {
    font-size: 15px;
    text-align: center;
    color: #555;
    margin: 0 0 32px;
    letter-spacing: 0.04em;
}

.blog-others-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.blog-other-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.blog-other-card:hover {
    opacity: 0.7;
}

.blog-other-label {
    font-size: 12px;
    color: #777;
}

.blog-other-name {
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.35;
}

.blog-other-arrow {
    font-size: 18px;
    color: #1a1a1a;
    margin-top: 4px;
}

/* ============================================================
   Blog Index
   ============================================================ */

.blog-index {
    padding: 120px 24px 80px;
}

.blog-index-title {
    font-size: 64px;
    text-align: center;
    margin: 0 0 56px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1;
}

.blog-index-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px;
}

.blog-index-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.blog-index-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f0ede8;
    margin-bottom: 4px;
}

.blog-index-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.blog-index-card:hover .blog-index-image img {
    transform: scale(1.03);
}

.blog-index-image-placeholder {
    width: 100%;
    height: 100%;
    background: #e8e3db;
}

.blog-index-card-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
    color: #1a1a1a;
}

.blog-index-excerpt {
    font-size: 13px;
    line-height: 1.7;
    color: #555;
    margin: 0;
    flex: 1;
}

.blog-index-arrow {
    font-size: 18px;
    color: #1a1a1a;
}

.blog-index-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    font-size: 15px;
    padding: 60px 0;
}

/* Pagination */
.blog-index-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 64px;
}

.blog-pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    font-family: 'Segoe UI', sans-serif;
    border-radius: 0;
    transition: color 0.2s;
}

.blog-pagination-item.active {
    color: #1a1a1a;
    font-weight: 700;
    border-bottom: 2px solid #1a1a1a;
}

.blog-pagination-item:hover:not(.active) {
    color: #1a1a1a;
}

.blog-pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 18px;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-pagination-arrow:hover {
    color: #1a1a1a;
}

/* Responsive */
@media (max-width: 900px) {
    .blog-others-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-index-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-hero {
        height: 280px;
    }

    .blog-hero-title {
        font-size: 28px;
    }

    .blog-body {
        padding: 0 16px;
    }

    .blog-others {
        padding: 0 16px;
    }

    .blog-others-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .blog-index-title {
        font-size: 44px;
    }

    .blog-index-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }

    .blog-index {
        padding: 40px 0 60px;
    }
}
