/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: #222;
    line-height: 1.6;
}

/* HEADER */
.site-header {
    background: #111;
    color: white;
    padding: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
}

/* NAVIGATION */
.main-nav {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.main-nav ul {
    display: inline-flex;
    gap: 20px;
    margin-top: 15px;
    list-style: none;
    padding-bottom: 5px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.main-nav a:hover {
    text-decoration: underline;
}

/* Scrollbar styling */
.main-nav::-webkit-scrollbar {
    height: 6px;
}

.main-nav::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

/* HAMBURGER MENU */
.nav-toggle {
    display: none;
}

.hamburger {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    padding: 10px;
}

/* FEATURED ARTICLE */
.featured-article {
    display: flex;
    background: white;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 6px;
    overflow: hidden;
}

.featured-article img {
    width: 50%;
    object-fit: cover;
}

.featured-text {
    padding: 20px;
}

/* MAIN LAYOUT */
.main-layout {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

/* ARTICLE GRID */
.article-grid {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    padding-bottom: 10px;
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.card h3 {
    padding: 10px;
}

.card p {
    padding: 0 10px 10px;
}

/* SIDEBAR */
.sidebar {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 6px;
}

.sidebar h3 {
    margin-bottom: 10px;
}

.sidebar ul {
    list-style: none;
    margin-bottom: 20px;
}

.sidebar a {
    text-decoration: none;
    color: #333;
}

.sidebar a:hover {
    text-decoration: underline;
}

/* FOOTER */
.site-footer {
    text-align: center;
    padding: 20px;
    background: #111;
    color: white;
    margin-top: 40px;
}

/* ============================
   MOBILE RESPONSIVE ADJUSTMENTS
   ============================ */
@media (max-width: 768px) {

    /* Show hamburger */
    .hamburger {
        display: block;
    }

    /* Hide nav by default */
    .main-nav {
        display: none;
        background: #111;
        padding: 10px 0;
    }

    /* Show nav when checkbox is checked */
    .nav-toggle:checked + .hamburger + .main-nav {
        display: block;
    }

    /* Make nav vertical */
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* Header layout stacks */
    .logo {
        flex-direction: column;
        text-align: center;
    }

    /* Featured article stacks */
    .featured-article {
        flex-direction: column;
    }

    .featured-article img {
        width: 100%;
        height: auto;
    }

    /* Main layout becomes single column */
    .main-layout {
        flex-direction: column;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }
}

/* Even smaller screens */
@media (max-width: 480px) {

    .logo img {
        height: 50px;
    }

    .card img {
        height: 120px;
    }
}