.home-blog-section {
    margin: 22px 10px 16px;
    padding: 22px;
    border: 1px solid rgba(0, 88, 79, 0.08);
    border-radius: 24px;
    background: #e4eff1;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.home-blog-section.route-hidden,
.home-blog-section.hidden {
    display: none !important;
}

.home-blog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.home-blog-header h2 {
    margin: 0;
    padding-inline-start: 10px;
    color: #18201f;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 400;
}

.home-blog-more {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(32, 32, 36, 0.68), rgba(18, 18, 22, 0.58));
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 400;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-blog-more:hover,
.home-blog-more:focus-visible {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(42, 42, 48, 0.78), rgba(24, 24, 30, 0.68));
    border-color: rgba(255, 255, 255, 0.44);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.26);
    outline: none;
}

.home-blog-more:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.72);
    outline-offset: 2px;
}

.home-blog-more svg {
    width: 17px;
    height: 17px;
}

.home-blog-grid {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.home-blog-grid::-webkit-scrollbar {
    display: none;
}

.home-blog-card {
    width: clamp(210px, 22vw, 240px);
    flex: 0 0 clamp(210px, 22vw, 240px);
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.home-blog-card-media {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    color: #fff;
    background: #f4f6f8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

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

.home-blog-card-body {
    padding: 8px 4px 0;
}

.home-blog-card h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
}

.home-blog-card h3 a {
    display: -webkit-box;
    overflow: hidden;
    color: #17211f;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.theme-dark .home-blog-section {
    border-color: rgba(148, 163, 184, 0.18);
    background: #16232a;
}

body.theme-dark .home-blog-header h2,
body.theme-dark .home-blog-card h3 a {
    color: #f8fafc;
}

body.theme-dark .home-blog-more {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(32, 32, 36, 0.68), rgba(18, 18, 22, 0.58));
}

@media (max-width: 680px) {
    .home-blog-section {
        margin-top: 16px;
        padding: 16px 12px;
        border-radius: 18px;
    }

    .home-blog-header {
        margin-bottom: 14px;
    }

    .home-blog-more {
        min-height: 40px;
        padding: 7px 10px;
        font-size: 0.75rem;
    }

    .home-blog-grid {
        gap: 10px;
        padding-bottom: 6px;
        scroll-snap-type: x proximity;
    }

    .home-blog-card {
        width: calc((100vw - 42px) / 2);
        flex-basis: calc((100vw - 42px) / 2);
        max-width: 240px;
    }

    .home-blog-card-media {
        border-radius: 14px;
    }

    .home-blog-card h3 {
        font-size: 0.78rem;
    }

    .home-blog-card {
        scroll-snap-align: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-blog-more {
        transition: none;
    }
}
