body {
    font-family: sans-serif;
    padding: 0;
    margin: 0;
}

header {
    background-color: #594e73;
    color: #fff;
    padding-top: 30px;
    margin-bottom: 20px;
    margin-top: auto;
    font-size: 44px;
    font-weight: bold;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header a {
    color: #fff;
    text-decoration: none;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.flex-box {
    flex: 1 1 300px;
}

nav {
    display: flex;
}

section {
    padding: 20px;
}

aside {
    padding: 20px;
}

footer {
    margin-top: 50px;
    padding-top: 50px;
    padding-bottom: 10px;
    background-color: #333;
    color: #fff;
    font-size: 10pt;
}

footer a {
    color: #ccc;
}

/* Layout container */
.magazine-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start; /* Ensures items align to the top */
}

.first-post {
    flex: 2; /* Increased flex to give it more weight relative to the side */
    min-width: 300px; /* Reduced min-width to allow it to shrink on smaller screens */
}

.first-post img {
    border: 1px solid #ccc;
}

.side-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 250px; /* Reduced min-width */
}

.side-column img {
    border: 1px solid #ccc;
}

/* Ensure images don't overflow their containers */
.first-post img, .side-post img {
    max-width: 100%;
    height: auto;
}

/* List of remaining posts starts on a new line */
.post-list {
    flex-basis: 100%;
    margin-top: 20px;
    border-top: 1px solid #ccc;
    padding-top: 20px;
}

.list-item {
    margin-bottom: 10px;
}

.list-item img {
    border: 1px solid #ccc;
}