.labnews-page {
    width: 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.labnews-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

.labnews-container h1 {
    font-family: 'DM Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #333333;
    text-align: center;
    text-transform: none;
    margin-bottom: 30px;
}

.labnews-empty {
    text-align: center;
    color: #888;
    padding: 40px 0;
}

/* ---- List view ---- */
.labnews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.labnews-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.labnews-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Shared hero aspect ratio — matches the single-article view, the home-page
   teaser, and both admin previews so an uploaded image looks the same
   everywhere it appears. */
.labnews-card-thumb {
    flex: 0 0 180px;
    aspect-ratio: 16 / 7;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.labnews-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.labnews-card-body {
    flex: 1;
    min-width: 0;
}

.labnews-pin-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #91714B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.labnews-card-date {
    font-size: 13px;
    color: #91714B;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.labnews-card-headline {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 8px;
    text-align: left;
    text-transform: none;
}

.labnews-card-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #666666;
    margin: 0;
    text-align: left;
    max-width: none;
}

.labnews-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.labnews-page-link {
    display: inline-block;
    background-color: #4E2A15;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.labnews-page-link:hover {
    background-color: #62361B;
    color: white;
}

.labnews-page-status {
    font-size: 14px;
    color: #888;
}

/* ---- Single article view ---- */
.labnews-back {
    margin-bottom: 20px;
}

.labnews-back a {
    color: #0055b3;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.labnews-back a:hover {
    text-decoration: underline;
}

.labnews-draft-banner {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffe69c;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    margin-bottom: 20px;
}

.labnews-article-hero {
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 24px;
}

.labnews-article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.labnews-article-headline {
    font-family: 'DM Sans', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #333333;
    text-align: left;
    text-transform: none;
    margin: 0 0 8px;
}

.labnews-article-date {
    font-size: 14px;
    color: #91714B;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: left;
    margin: 0 0 30px;
}

.labnews-article-body {
    font-size: 17px;
    line-height: 1.7;
    color: #444444;
}

.labnews-article-body p {
    text-align: left;
    max-width: none;
    margin: 0 0 18px;
    color: #444444;
}

.labnews-article-body a {
    color: #0055b3;
    text-decoration: underline;
}

.labnews-article-body ul {
    margin: 0 0 18px;
    padding-left: 24px;
}

.labnews-article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.labnews-nav-link {
    color: #4E2A15;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    max-width: 45%;
}

.labnews-nav-link:hover {
    text-decoration: underline;
}

.labnews-nav-next {
    text-align: right;
    margin-left: auto;
}

.labnews-notfound {
    text-align: center;
    padding: 40px 0;
}

.labnews-notfound h1 {
    text-transform: none;
}

@media (max-width: 640px) {
    .labnews-card {
        flex-direction: column;
    }
    .labnews-card-thumb {
        flex: none;
        width: 100%;
        aspect-ratio: 16 / 7;
    }
    .labnews-article-nav {
        flex-direction: column;
    }
    .labnews-nav-link {
        max-width: 100%;
    }
    .labnews-nav-next {
        text-align: left;
        margin-left: 0;
    }
}
