/* Global Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* Header Styles */
header {
  background-color: #333;
  color: #fff;
  padding: 20px;
}

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

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
}

/* Main Content Styles */
main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "hero features"
    "old-articles old-articles";
  gap: 50px;
  padding: 50px;
}

.hero {
  grid-area: hero;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f5f5f5;
  padding: 30px;
  border-radius: 5px;
}

.hero-content {
  flex: 1;
  margin-right: 50px;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
}

.cta {
  display: inline-block;
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
}

.features {
  grid-area: features;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.feature-item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.old-articles {
  grid-area: old-articles;
}

.article-list {
  display: flex;
  justify-content: space-between;
}

.article-list article {
  flex: 1;
  margin: 0 20px;
}

.article-list article img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

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

/* Responsive Styles */
@media (max-width: 991px) {
  main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "features"
      "old-articles";
    gap: 30px;
    padding: 30px;
  }

    .hero {
      grid-area: hero;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background-color: #f5f5f5;
      padding: 30px;
      border-radius: 5px;
    }
    
    .hero-content {
      flex: 1;
      margin-right: 50px;
    }
    
    .hero h1 {
      font-size: 36px;
      margin-bottom: 20px;
    }
    
    .hero p {
      font-size: 18px;
      margin-bottom: 30px;
    }
    
    .hero img {
      max-width: 80%;
      height: auto;
    }
    
    .cta {
      display: inline-block;
      background-color: #333;
      color: #fff;
      padding: 10px 20px;
      text-decoration: none;
      border-radius: 5px;
    }


  .features {
    grid-template-columns: 1fr;
  }

  .feature-item img {
    height: 200px;
    object-fit: cover;
  }

  .article-list {
    flex-direction: column;
  }

  .article-list article {
    margin: 0 0 30px 0;
  }
}