/* A news post card (static/js/news-card.js): the home page's Latest news and the admin News
   editor's preview. Image on the left, text on the right; stacked at phone width. */

.news-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    border: 1px solid rgba(255, 191, 0, 0.18);
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #1d160e, #120d08);
    color: #f0ece6;
    text-align: left;
}

.news-card-img {
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    display: grid;
    place-items: center;
    background: radial-gradient(ellipse at 70% 30%, rgba(255, 140, 20, 0.25), transparent 60%), #0d0906;
}

.news-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-mark {
    font-family: 'DragonSlayer', serif;
    font-size: 2rem;
    letter-spacing: 3px;
    color: rgba(255, 191, 0, 0.35);
}

.news-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px;
    min-width: 0;
}

.news-card-date {
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(240, 236, 230, 0.55);
}

.news-card-title {
    margin: 0;
    font-family: 'DragonSlayer', serif;
    font-weight: normal;
    font-size: 1.5rem;
    line-height: 1.15;
    letter-spacing: 1px;
    color: #f0ece6;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.news-card-when {
    align-self: flex-start;
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #ffd970;
    border: 1px solid rgba(255, 191, 0, 0.4);
    border-radius: 8px;
    padding: 3px 10px;
}

.news-card-text {
    margin: 0;
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(240, 236, 230, 0.72);
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.news-read {
    margin-top: auto;
    align-self: flex-start;
    font-family: 'HwyGothic', Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffbf00;
    text-decoration: none;
    border-bottom: 2px solid #ffbf00;
    padding-bottom: 1px;
}

a.news-read:hover,
a.news-read:focus-visible {
    color: #ffd970;
    border-color: #ffd970;
}

@media (max-width: 767px) {
    .news-card { grid-template-columns: 1fr; }
    .news-card-body { padding: 16px; }
    .news-card-title { font-size: 1.25rem; }
}
