/* =========================
   Base Styles
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f4f7f6;
    color: #333;
}

a {
    text-decoration: none;
    color: #007bff;
}

/* =========================
   Header & Navigation
========================= */
header {
    background-color: #1a1a1a;
    color: #fff;

    padding: 1rem 5%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    position: sticky;
    top: 0;

    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;

    display: flex;

    gap: 1.5rem;
}

nav ul li a {
    color: #ccc;

    font-weight: 500;

    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #fff;
}

/* =========================
   Featured Section
========================= */
.featured {
    background:
        /*linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)),*/
        url('images/logo.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: #fff;

    text-align: center;

    padding: 7rem 1%;

    min-height: 500px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-content {
    max-width:500px;
}

.featured h2 {
    font-size: 3rem;

    margin-bottom: 1rem;

    line-height: 1.2;
}

.featured p {
    font-size: 1.2rem;

    max-width: 700px;

    margin: 0 auto 2rem auto;

    color: #ddd;
}

/* =========================
   Buttons
========================= */
.read-more {
    display: inline-block;

    background: #007bff;

    color: #fff;

    padding: 0.9rem 1.6rem;

    border-radius: 6px;

    font-weight: bold;

    transition: background 0.3s ease,
                transform 0.3s ease;
}

.read-more:hover {
    background: #0056b3;

    color: #fff;

    transform: translateY(-2px);
}

/* =========================
   News Grid
========================= */
.news-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 2rem;

    padding: 4rem 5%;
}

/* =========================
   Cards
========================= */
.card {
    background: #fff;

    padding: 1.5rem;

    border-radius: 12px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

    display: flex;
    flex-direction: column;

    min-height: 500px;
}

.card:hover {
    transform: translateY(-8px);

    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* =========================
   Card Images
========================= */
.card-image {
    height: 200px;

    overflow: hidden;

    border-radius: 8px;

    margin-bottom: 1rem;
}

.card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

/* =========================
   Card Text
========================= */
.card h3 {
    margin-bottom: 0.8rem;

    font-size: 1.4rem;

    line-height: 1.4;

    color: #111;
}

.card p {
    color: #666;

    font-size: 1rem;

    line-height: 1.6;

    flex-grow: 1;

    margin-bottom: 1.5rem;
}

/* =========================
   Card Button Alignment
========================= */
.card .read-more {
    margin-top: auto;

    text-align: center;
}

/* =========================
   Upcoming Card
========================= */
.upcoming {
    background:
        linear-gradient(135deg, #111, #333);

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.upcoming h3 {
    color: white;

    font-size: 2rem;

    margin-bottom: 1rem;
}

.upcoming p {
    color: #ddd;
}

/* =========================
   Article Page
========================= */
.article-page {
    max-width: 900px;

    margin: auto;

    padding: 4rem 5%;
}

.article-header h1 {
    font-size: 3rem;

    line-height: 1.2;

    margin-bottom: 1rem;
}

.article-meta {
    color: #777;

    margin-bottom: 2rem;
}

.article-header img {
    width: 100%;

    border-radius: 10px;

    margin-bottom: 3rem;
}

.article-content h2 {
    margin-top: 2rem;

    margin-bottom: 1rem;

    font-size: 2rem;
}

.article-content p {
    margin-bottom: 1.5rem;

    font-size: 1.1rem;

    line-height: 1.8;

    color: #444;
}

blockquote {
    margin-top: 2rem;

    padding: 1.5rem;

    background: #f1f1f1;

    border-left: 5px solid #007bff;

    font-style: italic;

    font-size: 1.2rem;
}

/* =========================
   Footer
========================= */
footer {
    text-align: center;

    padding: 2rem;

    background-color: #1a1a1a;

    color: #777;

    margin-top: 2rem;
}

/* =========================
   Responsive Design
========================= */

/* Tablet */
@media (max-width: 1000px) {

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured h2 {
        font-size: 2.5rem;
    }

    .article-header h1 {
        font-size: 2.5rem;
    }
}

/* Mobile */
@media (max-width: 700px) {

    header {
        flex-direction: column;

        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;

        justify-content: center;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .featured {
        padding: 5rem 5%;
    }

    .featured h2 {
        font-size: 2rem;
    }

    .featured p {
        font-size: 1rem;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .card {
        min-height: auto;
    }
}