@charset "UTF-8";
/* ==========================================================================
   News – HeveaBoard (/en/news/)
   Page-only styles. Navbar, banner and footer come from global.css
   (loaded by [hb_header]). No page JS needed.
   ========================================================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1399px;
    margin: 40px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.news-card {
    position: relative;
    height: 450px;
    overflow: hidden;
    background: #e0e0e0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    transition: transform .3s ease, box-shadow .3s ease;
}
.news-card:hover { transform: scale(1.03); box-shadow: 0 6px 15px rgba(0, 0, 0, .15); }
.news-card.is-wide { grid-column: span 2; }          /* newest item */

.news-card a { position: absolute; inset: 0; display: block; color: #fff; }
.news-card a:hover { color: #fff; }
.news-card a:focus-visible { outline: 3px solid #323232; outline-offset: 3px; }

.news-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease, opacity .3s ease;
}
.news-card:hover .news-card-img { transform: scale(1.05); opacity: .9; }

/* Text overlays */
.news-card-top,
.news-card-bottom {
    position: absolute;
    left: 0;
    z-index: 2;
    box-sizing: border-box;
    width: 100%;
    padding: 6px 10px;
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, .7);
}
.news-card-top    { top: 10px;    font-size: 18px; }
.news-card-bottom { bottom: 10px; font-size: 14px; }

/* Highlighted caption – bigger text, dark bar flush to the bottom */
.news-card-bottom.is-highlight {
    bottom: 0;
    padding: 14px 16px;
    font-size: 20px;
    font-weight: normal;
    background: rgba(0, 0, 0, .6);
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    .news-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .news-grid { grid-template-columns: 1fr; gap: 15px; }
    .news-card { height: 300px; }
    .news-card.is-wide { grid-column: auto; }
    .news-card-top { font-size: 16px; }
    .news-card-bottom { padding: 4px 8px; font-size: 13px; }
    .news-card-bottom.is-highlight { padding: 10px 12px; font-size: 16px; }
}