.Header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 3;
    border-bottom: 8px double #000000;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    height: 10vh;
    align-items: stretch;
}


img { max-height: 10vh; }
 [class^='grid-item'] {
    outline: 3px dashed #f90;
    font-size: 20px;
    color: #333;
   }
   .grid-item-1 {
    grid-row: 1;
    grid-column: 1 / span 3;
    }
   .grid-item-2 {
    grid-row: 2;
    grid-column: 1 / span 4;
   }
   .grid-item-4 {
    grid-column: 2 / span 2;
   }



   body {
    background: #F9F8FD;
    font-family: 'Lexend Exa', sans-serif;
  }

 /*Step 1*/
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #1e4451;
  }

  /*Step 2*/
  nav li {
    display: inline-block;
    position: relative;
  }

  /*Step 3*/
  /*nav a {
    display: block;
    padding: 0 10px;
    line-height: 50px;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
  }*/

  /*Step 4*/
  nav ul ul {
    position: absolute;
    top: 51px;
    left: 0px;
    display: none;
  }

  /*Step 5*/
  nav ul li:hover > ul {
    display:block;
  }

  /*Step 6*/
  nav ul ul li {
    width:200px;
  }

  /*Step 7*/
  nav ul ul ul{
    top: 0;
    left: 200px;
  }

  /*Step 8*/
  nav a:hover {
    background-color:#63b175;
  }
@media screen and (min-width: 800px)
{
    body {
    background: #F9F8FD;
    font-family: 'Lexend Exa', sans-serif;
          width:80%;
    margin-left:10%;
  }
.Header {
    display: grid;
    grid-template-columns:  auto auto auto auto auto;
    grid-template-rows: 1;
    border-bottom: 8px double #000000;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    height: 10vh;

}
.item1 {

    justify-self: center;
}
.item2 {
     grid-column-start: 2;
  grid-column-end: 5;
    justify-self: center;
}

.item3 {
    justify-self: center;
}
img { max-height: 10vh; }

.categ {
    justify-self: center;
}
.my-first-grid {
  display: inline-grid;
  grid-gap: 10px;
  grid-template-columns: [left-start] 200px [left-end center-start] 200px [center-end right-start] 200px [right-end];
  grid-template-rows: [top-start] 200px [top-end middle-start] 200px [middle-end bottom-start] 200px [bottom-end];
  background-color: #e4e4e4;
    width:80%;
    margin-left:10%;
}

.articles-grid {
 display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 2fr));
    gap: 24px;
    padding: 20px;
}

.article-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;

    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.article-card h2 {
    font-size: 1.1rem;
    padding: 12px 16px 4px;
}

.article-card p {
    padding: 0 16px;
    color: #666;
    font-size: 0.9rem;
}

.article-card small {
    display: block;
    padding: 8px 16px 16px;
    color: #999;
}
.category-badge {
    display: inline-block;
    color: white;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    margin: 12px 16px 4px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

   body {
    background: #F9F8FD;
    font-family: 'Lexend Exa', sans-serif;
  }

 /*Step 1*/
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #1e4451;
  }

  /*Step 2*/
  nav li {
    display: inline-block;
    position: relative;
  }

  /*Step 3*/
  nav a {
    display: block;
    padding: 0 10px;
    line-height: 50px;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
  }

  /*Step 4*/
  nav ul ul {
    position: absolute;
    top: 51px;
    left: 0px;
    display: none;
  }

  /*Step 5*/
  nav ul li:hover > ul {
    display:block;
  }

  /*Step 6*/
  nav ul ul li {
    width:200px;
  }

  /*Step 7*/
  nav ul ul ul{
    top: 0;
    left: 200px;
  }

  /*Step 8*/
  nav a:hover {
    background-color:#63b175;
  }
}