.blog-page .lux-heading h1{font-size:clamp(2rem,5vw,3.2rem);line-height:1.15;margin:.5rem 0 1rem}
.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:1.5rem;margin-top:2.5rem}
.blog-card{display:flex;flex-direction:column;border:1px solid rgba(127,127,127,.25);border-radius:16px;overflow:hidden;background:rgba(127,127,127,.06);transition:transform .25s,border-color .25s}
.blog-card:hover{transform:translateY(-4px);border-color:rgba(212,175,106,.6)}
.blog-card-img img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
.blog-card-body{padding:1.25rem 1.4rem 1.5rem;display:flex;flex-direction:column;gap:.6rem;flex:1}
.blog-card-body h3{margin:0;font-size:1.2rem;line-height:1.3}.blog-card-body h3 a{color:inherit;text-decoration:none}
.blog-card-body p{margin:0;opacity:.8}.blog-card-body .btn-link{margin-top:auto}
.blog-meta{font-size:.85rem;opacity:.65!important}.blog-meta a{color:inherit}
.blog-empty{text-align:center;opacity:.7;margin-top:3rem}
.blog-pagination{display:flex;justify-content:center;align-items:center;gap:1.25rem;margin-top:2.5rem}
.blog-home-cta{text-align:center;margin-top:2rem}
.blog-post-wrap{max-width:780px}.blog-crumbs{font-size:.85rem;opacity:.7;margin-bottom:1rem}.blog-crumbs a{color:inherit}
.blog-post-head h1{font-size:clamp(1.9rem,4.5vw,3rem);line-height:1.15;margin:0 0 .75rem}
.blog-post-cover{width:100%;height:auto;border-radius:16px;margin:1.5rem 0}
.blog-content{font-size:1.08rem;line-height:1.85}.blog-content h2{margin:2.2rem 0 .8rem}.blog-content h3{margin:1.8rem 0 .6rem}
.blog-content img{max-width:100%;height:auto;border-radius:12px}.blog-content a{text-decoration:underline}
.blog-content blockquote{margin:1.5rem 0;padding:.5rem 1.25rem;border-left:4px solid currentColor;opacity:.85}
.blog-content pre{overflow-x:auto;padding:1rem;border-radius:10px;background:rgba(127,127,127,.12)}
.blog-post-foot{display:flex;gap:1rem;flex-wrap:wrap;margin-top:3rem;padding-top:1.5rem;border-top:1px solid rgba(127,127,127,.3)}
/* Keep cards compact */
.blog-grid {
    align-items: start;
}

.blog-card {
    min-width: 0;
    height: auto;
}

/* Show the complete image inside a compact area */
.blog-card-img {
    display: block;
    height: 180px;
    overflow: hidden;
    background: rgba(127, 127, 127, .06);
}

.blog-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
}

/* Reduce spacing inside cards */
.blog-card-body {
    padding: 1rem;
    gap: .5rem;
}

.blog-card-body h3 {
    font-size: 1.1rem;
    line-height: 1.35;
}

/* Limit title to two lines */
.blog-card-body h3 a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* Limit excerpt to three lines */
.blog-card-body > p:not(.blog-meta) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: .95rem;
    line-height: 1.5;
}

.blog-card-body .btn-link {
    margin-top: .35rem;
}
.blog-card-img {
    height: auto;
    background: transparent;
}

.blog-card-img img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}