/* ---- News index page ----*/

.news-index-section {
    max-width: 900px;
    margin: 0 auto; /* space outside an element's border*/
    padding: 20px; /* the space inside an element's border. */
}

.news-index-title{
    margin-bottom: 30px;
    font-size: 32px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ddd;
}


/* ---- Featured article (top of page 1) ---- */
 
.featured-article {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 40px;
}

.featured-article img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 6px;
}

.featured-text {
    margin-top: 16px;
}

.featured-text h2 {
    font-size: 15 px;
}



/* ---- Horizontally stacked news rows ---- */
 
.news-list {
    display: flex;
    flex-direction: column;
}

.news-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    text-decoration: none;
    color: inherit;
    padding: 24px 0;
    border-bottom: 1px solid #ddd;
}

.news-list .news-row:first-child {
    border-top: 1px solid #ddd;
}


.news-row-text {
    flex: 1;
}

.news-row-text h3 {
    font-size: 18 px;
}

.news-row-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
}

.news-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-date {
    color: #777;
    font-size: 0.9rem;
    margin-top: 10px;
}


/* ---- Pagination ---- */
 
.news-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}


.page-link {
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
}
 
.page-link.active {
    background: #222;
    color: #fff;
    border-color: #222;
}


/* ---- Small screens: stack image below text instead of side-by-side ---- */
 
@media (max-width: 600px) {
    .news-row {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
 
    .news-row-image {
        width: 100%;
        height: 200px;
    }
}