/* ========== Blog Main Page ========== */

.blog-hero {
    padding: 140px 0 56px;
    text-align: center;
    background:
        radial-gradient(circle at top right, rgba(159, 47, 63, 0.08) 0%, transparent 30%),
        linear-gradient(180deg, rgba(250, 249, 247, 0.96) 0%, rgba(250, 249, 247, 1) 100%);
}

.blog-accent-line {
    width: 48px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto 24px;
    border-radius: 2px;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.blog-hero h1 .highlight {
    color: var(--primary);
}

.blog-subtitle {
    max-width: 820px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.9;
}

.blog-page {
    background: var(--bg-cream);
}

.blog-featured-section {
    padding-top: 10px;
}

.blog-featured-card {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
    gap: 22px;
    background: var(--bg-white);
    border: 1px solid rgba(45, 52, 54, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 34px;
}

.featured-copy h2 {
    font-size: 2rem;
    margin-bottom: 14px;
}

.featured-copy p {
    color: var(--text-muted);
    line-height: 1.9;
}

.blog-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(159, 47, 63, 0.05);
    color: color-mix(in srgb, var(--text-main) 60%, var(--primary) 40%);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 12px;
    opacity: 0.75;
}

.featured-side {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 42px;
}

.section-heading h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.section-heading p {
    color: var(--text-muted);
    line-height: 1.9;
}

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

.blog-card {
    background: var(--bg-white);
    border: 1px solid rgba(45, 52, 54, 0.06);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 28px;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(45, 52, 54, 0.035);
    color: rgba(45, 52, 54, 0.58);
    font-size: 0.68rem;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0.8;
}

.blog-category {
    display: block;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.blog-card h3 {
    font-size: 1.35rem;
    line-height: 1.35;
    margin-bottom: 12px;
}

.blog-card p {
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 18px;
}

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

.blog-keywords span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(45, 52, 54, 0.035);
    color: rgba(45, 52, 54, 0.62);
    padding: 5px 9px;
    font-size: 0.72rem;
    font-weight: 500;
    border: 1px solid rgba(45, 52, 54, 0.04);
    opacity: 0.78;
}

.blog-template-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    border: 1px solid rgba(45, 52, 54, 0.06);
    box-shadow: var(--shadow-md);
}

.blog-template-card h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.blog-template-card p {
    color: var(--text-muted);
    line-height: 1.9;
    max-width: 760px;
}

.template-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}

/* ========== Article Template ========== */

.article-hero {
    padding: 140px 0 48px;
    background: var(--bg-cream);
}

.article-wrap {
    max-width: 860px;
    margin: 0 auto;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(159, 47, 63, 0.08);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
}

.article-hero h1 {
    font-size: 3.1rem;
    line-height: 1.06;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
}

.article-hero p {
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 1.08rem;
    max-width: 760px;
}

.article-body-section {
    padding-top: 0;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
}

.article-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(45, 52, 54, 0.06);
    box-shadow: var(--shadow-md);
    padding: 40px;
}

.article-content h2 {
    font-size: 2rem;
    margin: 30px 0 12px;
}

.article-content h3 {
    font-size: 1.35rem;
    margin: 24px 0 10px;
}

.article-content p,
.article-content li {
    color: var(--text-main);
    line-height: 1.95;
}

.article-content a {
    color: color-mix(in srgb, var(--text-main) 72%, var(--primary) 28%);
    text-decoration: underline;
    text-decoration-color: rgba(159, 47, 63, 0.26);
    text-underline-offset: 0.16em;
    text-decoration-thickness: 1px;
    font-weight: 500;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.article-content a:hover,
.article-content a:focus-visible {
    color: var(--primary);
    text-decoration-color: rgba(159, 47, 63, 0.55);
}

.article-content ul {
    padding-right: 22px;
}

.article-content p + p,
.article-content ul + p {
    margin-top: 12px;
}

.article-sidebar {
    position: sticky;
    top: 104px;
}

.article-sidebar .glass-card {
    margin-bottom: 18px;
}

.article-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.article-sidebar p,
.article-sidebar li {
    color: var(--text-muted);
    line-height: 1.8;
}

.article-sidebar a:not(.btn) {
    color: color-mix(in srgb, var(--text-main) 68%, var(--primary) 32%);
    text-decoration: none;
    border-bottom: 1px solid rgba(159, 47, 63, 0.18);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.article-sidebar a:not(.btn):hover,
.article-sidebar a:not(.btn):focus-visible {
    color: var(--primary);
    border-bottom-color: rgba(159, 47, 63, 0.45);
}

.article-sidebar ul {
    padding-right: 18px;
}

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

    .blog-featured-card,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-hero,
    .article-hero {
        padding-top: 128px;
    }

    .blog-hero h1,
    .article-hero h1 {
        font-size: 2.25rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-featured-card,
    .blog-template-card,
    .article-content {
        padding: 24px 20px;
    }

    .blog-template-card {
        flex-direction: column;
        align-items: flex-start;
    }
}
