/* =========================
   NEWS LIST PAGE
========================= */

body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    margin: 0;
    padding: 0;
    color: #222;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 30px 0;
}

h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #111;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-3px);
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-card h2 {
    font-size: 20px;
    margin: 15px 15px 10px;
}

.news-card h2 a {
    text-decoration: none;
    color: #0d47a1;
}

.news-card h2 a:hover {
    color: #1565c0;
}

.news-card p {
    margin: 0 15px 10px;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.news-card small {
    margin: 0 15px 15px;
    color: #888;
    font-size: 12px;
}
.news-image{
    width:100%;
    max-width:900px;
    display:block;
    margin:20px auto;
    border-radius:10px;
}
/* Responsive */
@media (min-width: 768px) {
    .news-card {
        flex-direction: row;
        height: 180px;
    }

    .news-card img {
        width: 280px;
        height: 100%;
    }

    .news-card h2 {
        font-size: 22px;
    }
}

/* =========================
   NEWS DETAIL PAGE
========================= */

.news-detail {
    width: 90%;
    max-width: 850px;
    margin: 40px auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.news-detail h1 {
    font-size: 30px;
    margin-bottom: 10px;
    color: #111;
    line-height: 1.3;
}

.news-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
}

.news-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    object-fit: cover;
}

.news-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

/* Paragraph spacing */
.news-content p {
    margin-bottom: 15px;
}

/* Link styling inside article */
.news-content a {
    color: #0d47a1;
    text-decoration: none;
}

.news-content a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .news-detail {
        padding: 18px;
    }

    .news-detail h1 {
        font-size: 24px;
    }

    .news-content {
        font-size: 15px;
    }
}