* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
img {
    width:100%;
    height:auto;
}
.title
{
    background: white;
    color: #333;
}
.container
{
    display: flex;
    flex-direction: row;
    flex:1;
}
header {
    background: #333;
    color: white;
    padding: 10px 20px;
    text-align: center;
}

header nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}
.articles
{
    display: flex;
    flex:6;
    flex-direction: column;
    align-items: center;
}
.banerek-img
{
    object-fit: cover;
}
.banner
{
    display: flex;
    justify-content: center;
    object-fit: contain;
    object-position: center;
    width:80%;
    height:300px;
    min-height: 200px;
    min-width:300px;
}
.main-content {
    display: flex;
    justify-content: center;
    width:100%;
    align-items: center;
    flex-grow: 1;
    flex: 4;
    flex-wrap: wrap;
    gap:20px;
    padding: 2vh;
    padding-left:6%;
}
.main-content-2
{
    display: flex;
    width:80%;
    flex: 4;
    flex-wrap: wrap;
    margin: auto;
    grid-auto-flow: row dense;
}
.main-content-2 .article:nth-child(4n) {
    margin-right: 0;
  }
article {
    display:flex;
    flex-direction: column;
    width:30%;
    padding-bottom:4%;
    padding-left: 6%;
    height:25%;
    min-height:250px;
    min-width:180px;
}
.article-img
{
    display:flex;
    min-height:200px;
    min-width:180px;
}

.side-content {
    flex: 1;
    background: #f4f4f4;
    padding: 20px;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 10px 20px;
}

@media (max-width: 768px) {
    .container
    {
        flex-direction: column;
    }
    .main-content {
        display:flex;
        justify-content: center !important;
        align-items: center;
        flex-direction: column;
    }
    .banner
    {
       height: 200px;
        width:350px;
    }
    article {
        display:flex;
        flex-direction: column;
        width:80%;
        height:30%;
        min-height:200px;
        min-width:180px;
        margin-right: 0;
        margin-bottom: 20px;
    }
}