/* Blog-specific styles — modern, sleek, responsive */
:root{
    --bg: #0b0b0d;
    --panel: #0f1113;
    --muted: #9aa4b2;
    --accent: #537fe7;
    --accent-2: #5de0b5;
    --glass: rgba(255,255,255,0.03);
    --radius: 12px;
    --max-width: 1100px;
    --ff-sans: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

/* reset for blog area to use a more neutral font */
.blog, .posts, .posts-grid, .post-card {
    font-family: var(--ff-sans);
}

.blog-hero{
    background: linear-gradient(180deg, rgba(83,127,231,0.08), rgba(0,0,0,0.0));
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.blog-hero .hero-inner{
    width: 100%;
    max-width: var(--max-width);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-title{
    color: #fff;
    font-size: 2.25rem;
    margin: 0;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.hero-sub{
    color: var(--muted);
    margin: 0;
    font-size: 1rem;
}

.blog-search{
    margin-top: 12px;
    width: 320px;
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    color: #fff;
    outline: none;
    transition: box-shadow .18s ease, transform .12s ease;
}
.blog-search:focus{
    box-shadow: 0 6px 22px rgba(83,127,231,0.12);
    transform: translateY(-2px);
}

.posts{
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 48px 20px 80px 20px;
}

.posts-grid{
    width: 100%;
    max-width: var(--max-width);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.post-card{
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .28s cubic-bezier(.2,.9,.3,1), box-shadow .28s ease;
}

.post-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}

.post-image{
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.post-body{
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    color: #e6eef8; /* lighter body text for contrast */
}

.post-title{
    color: #ffffff; /* ensure headings are bright */
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.2;
}

.post-excerpt{
    color: #c9d6e6; /* slightly muted but readable */
    margin: 0;
    font-size: 0.95rem;
    flex: 1;
}

.post-cta{
    margin-top: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.post-cta:hover{
    color: var(--accent-2);
}

/* empty state */
.posts-grid:empty::before{
    content: 'No posts yet.';
    color: var(--muted);
    text-align: center;
    grid-column: 1/-1;
}

/* responsive tweaks */
@media (max-width: 720px){
    .hero-title{ font-size: 1.6rem; }
    .post-image{ height: 140px; }
    .posts{ padding: 28px 12px 48px 12px; }
}

/* small polish for footer spacing */
.footer { padding-bottom: 32px; }
