.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

    .blog-header h1 {
        font-size: 2.5rem;
        font-weight: bold;
        color: var(--ns-grey-333);
        margin-bottom: 1rem;
        font-family: 'Playfair Display', Georgia, serif;
    }



.blog-header p {
    font-size: 1.1rem;
    color: var(--ns-grey-666);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background: var(--ns-surface);
    border-radius: 12px;
    box-shadow: var(--bl-card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--bl-card-shadow-hover);
}

.blog-card-image-container {
    position: relative;
    width: 100%;
    padding-top: 60%; /* 16:9 Aspect Ratio roughly */
    overflow: hidden;
}

.blog-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.50rem;
    color: var(--bl-title);
    line-height: 1.3;
}

.blog-card-sub-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.30rem;
    margin-top: 0;
    color: var(--ns-grey-555);
    line-height: 1.3;
}


.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--ns-grey-555);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-card-footer {
    font-size: 0.9rem;
    color: var(--bl-link);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card-footer span {
    transition: transform 0.2s ease;
}

.blog-card:hover .blog-card-footer span {
    transform: translateX(4px);
}


/* Page tokens (dark mode, 2026-10-21). Plain CSS, so the two dark blocks are written
   out by hand; keep them identical. Light values are the literals this file used. */
:root {
    --bl-card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --bl-card-shadow-hover: 0 12px 20px rgba(0, 0, 0, 0.1);
    --bl-title: #222;
    --bl-link: #007bff;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bl-card-shadow: 0 4px 6px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.5);
        --bl-card-shadow-hover: 0 12px 20px rgba(0, 0, 0, 0.6);
        --bl-title: var(--ns-text);
        --bl-link: #5ac8fa;
    }
}

:root[data-theme="dark"] {
    --bl-card-shadow: 0 4px 6px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.5);
    --bl-card-shadow-hover: 0 12px 20px rgba(0, 0, 0, 0.6);
    --bl-title: var(--ns-text);
    --bl-link: #5ac8fa;
}
