* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

header {
  background-color: #333;
  color: #fff;
  padding: 20px;
  text-align: center;
}

header h1 {
  margin-bottom: 10px;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}

/* Main grid layout */
main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  padding: 20px;
  background-color: #f4f4f4;
}

/* Content and sidebar layout in grid */
.content {
  background-color: #fff;
  padding: 20px;
}

.post {
  display: grid;
  /* grid-template-columns: auto auto auto; */
  grid-template-areas: "Article Article . " "Article4 Article4 .";
  gap: 10px;
}

article {
  background-color: #ddd;
  padding: 10px;
}
/* row-col start, row-col end */
.ar1 {
  grid-area: Article;
  /* grid-area: 1 / 1 / span 2 / span 2; */
  /* grid-area: 1 / 1 / 3 / 3; */
  /* grid-column: 1 / 3;
  grid-row: 1 / span 2; */
}

.ar4 {
  grid-area: Article4;
}

.sidebar {
  background-color: #ddd;
  padding: 20px;
}

footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  margin-top: 20px;
}

/* ( 768 - 992) */
@media (max-width: 992px) {
  .post {
    /* grid-template-columns: auto auto; */
    grid-template-areas: "Article Article" "Article4 Article4";
  }
}

/* Responsive design for smaller screens */
/* ( 0 - 768 ) */
@media (max-width: 768px) {
  main {
    grid-template-columns: 1fr; /* Stack content and sidebar in one column */
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .post {
    /* grid-template-columns: auto; */
    grid-template-areas: "Article" "Article4";
  }

  .ar1 {
    grid-column-end: 2;
  }

  .ar4 {
    grid-column-end: 2;
  }

  .sidebar {
    margin-top: 20px;
  }
}
