/*
 * Metro North News Feed – Stylesheet
 * Clean, accessible card layout that works within any theme.
 * Override any of these in your child theme's style.css.
 */

/* ── Container ────────────────────────────────────────────── */
.mn-news-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

/* ── Single card ──────────────────────────────────────────── */
.mn-news-feed__item {
    background: #ffffff;
    border: 1px solid #e2e6ea;
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


/* ── Featured image ───────────────────────────────────────── */
.mn-news-feed__image-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #ffffff;
}

.mn-news-feed__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
	border-radius: 0rem 0rem 6.0882800609%/10.8108108108% 0px;
	border: 1px solid #818181;
}

/* ── Content area ─────────────────────────────────────────── */
.mn-news-feed__content {
    padding: 1rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ── Date ─────────────────────────────────────────────────── */
.mn-news-feed__date {
    color: #414141;
    margin: 0 0 0.4rem!important;
    letter-spacing: 0.04em;
}

/* ── Title ────────────────────────────────────────────────── */
.mn-news-feed__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.6rem;
}

.mn-news-feed__title a {
    color: #05214d;
    text-decoration: none;
}

.mn-news-feed__title a:hover,
.mn-news-feed__title a:focus {
    color: #05214d;         
    text-decoration: underline;
}

/* ── Excerpt ──────────────────────────────────────────────── */
.mn-news-feed__excerpt {
    color: #000;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

/* ── Error / empty states ─────────────────────────────────── */
.mn-news-feed-error {
    color: #c0392b;
    font-style: italic;
}

.mn-news-feed-no-posts {
    color: #6c757d;
    font-style: italic;
}

/* ── Responsive: single column on small screens ───────────── */
@media (max-width: 480px) {
    .mn-news-feed {
        grid-template-columns: 1fr;
    }
}

/* ── Categories ───────────────────────────────────────────── */
.mn-news-feed__categories {
    margin: auto 0 0!important;
    font-size: 0.8rem;
    color: #000;
	border-top: 1px solid #eee;
	padding-top: 20px;
}

.mn-news-feed__cat-link {
    color: #000;
    text-decoration: none!important;
	border: 1px solid #000;
	border-radius: 1rem;
	padding: 0.2rem 0.75rem;
	margin-right: 7px;
}

.mn-news-feed__cat-link:hover,
.mn-news-feed__cat-link:focus {
    text-decoration: underline!important;
	color: #fff!important; 
  background-color: #05214D!important;
}

.mn-news-feed__cat-sep {
    color: #6c757d;
	display: none;
}
