/* Your Global Styles */

/*
 * News cards: give every thumbnail the same aspect ratio so cards line up and
 * the image area keeps a fixed height while images load (prevents layout shift).
 */
.grid-view .card-img-top img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* News page hero carousel: one size for every slide image. */
.news-hero-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Center the hero slide content vertically inside every slide. */
.news-hero-slider .swiper-slide {
    display: flex;
    height: auto;
}

.news-hero-slider .swiper-slide > .card {
    width: 100%;
    margin-bottom: 0 !important;
}

.news-hero-slider .swiper-slide .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* News listing: a real grid so rows and card footers always line up. */
.news-grid-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
}

@media (min-width: 1200px) {
    .news-grid-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4rem;
    }
}

.news-grid-items > .item {
    display: flex;
    min-width: 0;
}

.news-grid-items > .item > .card {
    width: 100%;
}

