* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* NAV */
nav {
    background:blue;
    padding: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
}
nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.menu {
    margin-left: auto;
    display: flex;
    gap: 15px;
}

/* HERO */


.hero {
    width: 100%;
}

.hero img {
    width: 100%;
    height: 20%;
    display: block;
	 margin-bottom: 100px; /* adjust as needed */
}



/* =========================
   NEWS GRID (HOME PAGE)
========================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

/* CARD */
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.25s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

/* IMAGE WRAPPER */
.news-image-wrapper {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image-wrapper img {
    transform: scale(1.05);
}

/* CONTENT */
.news-content {
    padding: 12px;
}

/* READ MORE */
.read-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #007bff;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* =========================
   FULL NEWS PAGE (ARTICLE)
========================= */
.news-full {
    background: #fff;
    padding: 20px;
    margin-top: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* LARGE IMAGE */
.news-full-image {
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 12px;
}

.news-full-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TITLE */
.news-title {
    margin-top: 20px;
    font-size: 32px;
    line-height: 1.3;
}

/* STORY */
.news-body {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

/* LIKE BUTTON */
.news-actions {
    margin-top: 25px;
}

.like-btn {
    padding: 10px 18px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.like-btn:hover {
    background: #333;
}

/* COMMENTS */
.comment-box {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.comment-box h3 {
    margin-bottom: 10px;
}

.comment-box textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.comment-box button {
    padding: 10px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.comment-box button:hover {
    background: #0056b3;
}

/* =========================
   FORMS
========================= */
input,
textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
}

button {
    padding: 12px 20px;
    cursor: pointer;
}

/* =========================
   FOOTER
========================= */
footer {
    background: blue;
    color: white;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 32px;
    }

    .news-full-image {
        height: 250px;
    }

    .news-title {
        font-size: 24px;
    }
	
	
	
	/* =========================
   COMMENTS
========================= */
	
	.comment-box input,
.comment-box textarea {
    margin-top: 8px;
}

.comment-box button {
    margin-top: 10px;
}
}
.latest-stories {
    background-color: red;
    color: white;
    font-style: italic;
    padding: 10px 15px;
	display: inline-block;
}







/*----------------------------------------------------------------------*/

/*----------------------------------------------------------------------*/

.all-news-page {
    background: #f4f6f9;
    padding: 25px 0;
}

/* TITLE */
.all-news-page .page-title {
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #111;
}

/* GRID */
.all-news-page .news-list-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* CARD */
.all-news-page .news-list-card {
    display: flex;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
    transition: 0.25s ease;
}

.all-news-page .news-list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* IMAGE */
.all-news-page .news-list-image {
    width: 200px;
    height: 130px;
    flex-shrink: 0;
}

.all-news-page .news-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CONTENT */
.all-news-page .news-list-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* TITLE */
.all-news-page .news-list-content h3 {
    font-size: 17px;
    margin-bottom: 6px;
    color: #111;
}

/* DESCRIPTION */
.all-news-page .news-list-content p {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* BUTTON */
.all-news-page .open-btn {
    margin-top: 10px;
    display: inline-block;
    padding: 7px 14px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    width: fit-content;
}

.all-news-page .open-btn:hover {
    background: #0056b3;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .all-news-page .news-list-card {
        flex-direction: column;
    }

    .all-news-page .news-list-image {
        width: 100%;
        height: 180px;
    }
}
