/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #fff;
    padding: 20px;
}

/* Header */
header {
    background-color: white;
    padding: 20px 0;
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

a {
    color: #000; /* Default blue link */
    text-decoration: none; /* Ensure underline */
}

nav ul li a {
    text-decoration: none;
    color: black;
    font-weight: 700;
}

.logo img {
    max-width: 150px;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Featured Article */
.featured-article {
    position: relative;
    margin-bottom: 40px;
    max-height: 400px;
    overflow: hidden;
}

.featured-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.featured-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
}

.featured-content .category {
    background-color: #f05454;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.featured-content h1, .featured-content h2 {
    font-size: 28px;
    color: white;
    margin-top: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6); /* Added shadow */
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.article {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 15px;
}

.article-content .category {
    background-color: #f05454;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.article-content h2 {
    font-size: 20px;
    color: #333;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a {
    text-decoration: none;
    color: #f05454;
    font-weight: bold;
    padding: 8px 12px;
    border: 1px solid #f05454;
    border-radius: 5px;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #f05454;
    color: white;
}

.pagination-btn {
    text-decoration: none;
    color: #f05454;
    font-weight: bold;
    padding: 8px 12px;
    border: 1px solid #f05454;
    border-radius: 5px;
    display: inline-block;
    width: 100px; /* Set same width */
    text-align: center;
    transition: all 0.3s;
}

.pagination-btn:hover {
    background-color: #f05454;
    color: white;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
    }

    .featured-article img {
        border-radius: 0;
    }

    .featured-content h1, .featured-content h2 {
        font-size: 24px;
    }

    header {
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: white;
        z-index: 1000; /* Ensure mobile menu is on top */
        display: none; /* Hidden by default */
    }

    nav ul.show {
        display: block; /* Shown when clicked */
    }

    .mobile-menu-button {
        display: block;
        cursor: pointer;
        position: relative;
        z-index: 1001; /* Make sure the mobile button stays on top */
    }

    .mobile-menu-button div {
        width: 30px;
        height: 3px;
        background-color: black;
        margin: 5px 0;
    }
}
