main {
  width: 75%;
  float: left;
  margin-top: 20px;
}

@media screen and (max-width: 800px) {
  main {
    width: 100%;
    padding: 0;
  }
}


.articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  max-width: 1200px;
  gap: 20px;
}

.article-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Featured card */
.articles article:first-child {
  grid-column: span 2;
}


/* If there's only one article, make it span the entire width */
.articles article:first-child:only-child {
  grid-column: span 3;
}


/* Related Article */
main .bottom-container h2 {
  padding: 10px 0;
}

main .bottom-container ul {
  list-style-type: none;
}

main .bottom-container ul li a {
  padding-left: 20px;
  color: var(--primary-color);
  text-decoration: none;
}

main .bottom-container ul li a:hover {
  color: var(--secondary-color);
}




/* Responsive layout */
@media screen and (max-width: 960px) {
  .articles {
    grid-template-columns: 1fr;
  }

  .articles article:first-child {
    grid-column: span 1;
  }
}

@media screen and (min-width: 960px) {
  .articles {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}



/* default class */
.default {
  width: 100%;
  margin-bottom: 20px;
}

.default a {
  text-decoration: none;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.default h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.default p {
  font-size: 14px;
  color: var(--font-color);
  margin-bottom: 20px;
}

.default img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}