.article-card {
    --card-ink: #202925;
    --card-muted: #69716d;
    --card-rule: #e5eae7;
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    padding: 9px;
    border: 1px solid var(--card-rule);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 3px 12px rgb(32 41 37 / .025);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.article-card:focus-within { border-color: var(--brand-primary); }
.article-card :is(a, button):focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 4px; border-radius: 3px; }
.article-card .lucide-menu-icon { width: 16px; height: 16px; flex-shrink: 0; }
.article-card-media { position: relative; display: block; flex-shrink: 0; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 11px; background: #f0f4f1; }
.article-card-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.article-card-media img[hidden] { display: none; }
.article-card-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: #617067; font-size: 12px; }
.article-card-placeholder > .lucide-menu-icon { width: 32px; height: 32px; stroke-width: 1.25; }
.article-card-body { display: flex; min-width: 0; flex: 1; flex-direction: column; padding: 20px 13px 9px; }
.article-card-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.article-card-category { min-width: 0; color: var(--brand-primary); font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; overflow-wrap: anywhere; }
a.article-card-category:hover { text-decoration: underline; text-underline-offset: 3px; }
.article-card-reading { display: inline-flex; flex-shrink: 0; align-items: center; gap: 5px; color: var(--card-muted); font-size: 11px; line-height: 1.5; }
.article-card-reading .lucide-menu-icon { width: 13px; height: 13px; }
.article-card-title { display: -webkit-box; overflow: hidden; margin: 0 0 9px; color: var(--card-ink); font-size: 16px; font-weight: 700; line-height: 1.45; letter-spacing: -.02em; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow-wrap: anywhere; }
.article-card-title a { color: inherit; text-decoration: none; }
.article-card-title a:hover { color: var(--brand-primary); }
.article-card-excerpt { display: -webkit-box; overflow: hidden; margin: 0 0 20px; color: var(--card-muted); font-size: 12px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.article-card-footer { display: flex; min-height: 49px; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--card-rule); }
.article-card-footer time { color: var(--card-muted); font-size: 11px; line-height: 1.5; }
.article-card-read { display: inline-flex; align-items: center; gap: 9px; margin-left: auto; color: var(--card-ink); font-size: 11px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.article-card-read > span { display: grid; width: 31px; height: 31px; flex-shrink: 0; place-items: center; border-radius: 50%; background: var(--brand-primary-soft); color: var(--brand-primary); transition: background-color .2s ease, color .2s ease; }
.article-card-read:hover { color: var(--brand-primary); }
.article-card-read:hover > span { background: var(--brand-primary); color: #fff; }

.article-card--featured { display: grid; height: auto; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; padding: 11px; border-radius: 20px; }
.article-card--featured .article-card-media { align-self: center; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; }
.article-card--featured .article-card-body { justify-content: center; padding: 28px 28px 20px; }
.article-card--featured .article-card-meta { margin-bottom: 18px; }
.article-card--featured .article-card-title { margin-bottom: 14px; font-size: clamp(21px, 2.1vw, 27px); line-height: 1.3; -webkit-line-clamp: 4; }
.article-card--featured .article-card-excerpt { margin-bottom: 24px; font-size: 13px; -webkit-line-clamp: 3; }
.article-card--featured .article-card-footer { margin-top: 0; }

.blog-page-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.article-related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.blog-latest { padding-top: 36px; }
.blog-page-section-head { margin-bottom: 22px; padding-bottom: 14px; }
.blog-page-section-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.blog-pagination { margin-top: 48px; }
.home-blog-card { scroll-snap-align: start; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .article-card:hover { border-color: #c5d6cc; box-shadow: 0 10px 28px rgb(32 41 37 / .07); }
    .article-card:hover .article-card-media img { transform: scale(1.035); }
}

@media (max-width: 1023px) {
    .blog-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .article-card--featured .article-card-body { padding: 20px 15px 14px; }
    .article-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .article-related-grid .article-card-body { padding-inline: 6px; }
    .article-related-grid .article-card-title { font-size: 15px; }
}

@media (max-width: 799px) {
    .article-card--featured { display: flex; gap: 0; }
    .article-card--featured .article-card-media { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
    .article-card--featured .article-card-body { padding: 22px 13px 10px; }
    .article-card--featured .article-card-title { font-size: 21px; -webkit-line-clamp: 3; }
}

@media (max-width: 767px) {
    .article-related-grid { grid-template-columns: 1fr; gap: 12px; }
    .article-related-grid .article-card { display: grid; height: auto; grid-template-columns: 108px minmax(0, 1fr); gap: 0; padding: 6px; border-radius: 12px; }
    .article-related-grid .article-card-media { height: 100%; min-height: 104px; aspect-ratio: auto; border-radius: 8px; }
    .article-related-grid .article-card-body { justify-content: center; padding: 9px 8px 8px 12px; }
    .article-related-grid .article-card-meta { gap: 6px; margin-bottom: 5px; }
    .article-related-grid .article-card-category { font-size: 9px; }
    .article-related-grid .article-card-reading { font-size: 9px; }
    .article-related-grid .article-card-reading .lucide-menu-icon { width: 11px; height: 11px; }
    .article-related-grid .article-card-title { margin: 0; font-size: 14px; line-height: 1.4; -webkit-line-clamp: 3; }
    .article-related-grid .article-card-excerpt,
    .article-related-grid .article-card-footer { display: none; }
}

@media (max-width: 639px) {
    .blog-page-grid { grid-template-columns: 1fr; gap: 22px; }
    .blog-pagination { margin-top: 36px; }
    .article-card { border-radius: 16px; }
    .article-card-body { padding-top: 18px; }
    .article-card-title { font-size: 17px; }
    .article-card-read { min-height: 40px; }
    .article-card--featured .article-card-title { font-size: 20px; }
}

@media (max-width: 374px) {
    .article-related-grid .article-card { grid-template-columns: 88px minmax(0, 1fr); }
    .article-related-grid .article-card-media { min-height: 88px; }
    .article-related-grid .article-card-body { padding-left: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .article-card, .article-card-media img, .article-card-read > span { transition: none; }
}
