@import url("styles-template.css");
body {
  background-color: #000;
}
a {
  color: white;
}

.logo, .wrapper-menu {
  /* background-color: var(--color-gray-light); */
  background-color: #262626;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  justify-content: space-between;
}
.main-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
  
}

.banner {
  display: flex;
  justify-content: center;
  height: 25rem;
  margin-top: 2rem;
  padding-top: 1rem;
  margin-bottom: 0rem;

  img {
    width:20rem;
    height:20rem;
  }
}

.media-links {
  max-width: 75rem;
  height: 3rem;
  display: flex;
  justify-content: center;

  >a>img {
    max-height: 2rem;
    max-width: 2rem;
    margin-right: 1rem;
  }
}

#news {
  display: flex;
  margin-top: 15%;
  padding: 0 .5rem;
  background-color: var(--color-gray-light);
}
.news-wrapper-flex {
  display: flex;
  flex-direction: column;
  justify-content: end;

  margin: 0 auto;
  max-width: 85rem;
  width: 100%;
  
    
  font-size: 12px;
  font-weight: bold;
  
  & div:nth-of-type(2n) {
    border-bottom: 1px solid white;
  }
  & #news-title {
    text-align: center;
    text-transform: uppercase;
    margin-top: .5rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid white;
  }
  
  & .news_img {
    display: flex;
    padding-right: 10px;
    img {
      height: auto;
      width: 80px;
    }
    .news_title { 
      align-self: center;
      padding-left: 10px;
      /* margin-left: 10%; */
      
      padding-top: 1rem;
      letter-spacing: 0;
    }
    /* max-width: 5rem;
    max-height: 5rem; */
  }
}
.news-wrapper-grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  grid-template-rows: auto auto;
  justify-self: flex-start;
  justify-items: center;
  background-color: var(--color-gray-light);
  margin-top: 15rem;
  padding-bottom: 1rem;
  font-size: 12px;
  font-weight: bold;

  img {
    grid-row: 1;
    max-width: 5rem;
    max-height: 5rem;
  }
  .news {
    grid-row-start: 1;
    grid-column-start: 2;
    align-self: center;
    font-size: 14px;
    
  }
  .title { 
    grid-row-start: 2;
    grid-column: 1 /span 3;
    
    padding-top: 1rem;
    letter-spacing: 0;
  }
 
}

.footer {
  /* position: fixed; */
  margin-top: 1rem;
}

/* ***************** Media queries ******************* */
@media (max-width: 376px) {
  .news-wrapper-grid {
    margin-top: 5rem;
  }
}

@media (min-width: 738px) {
  a:visited {
    color: white;
  }

  .menu-toggle {
    display: none;
  }

  .wrapper-menu {
    background-color: var(--color-gray-light);
    padding-bottom: 0;
  }

  nav ul {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;

    &.open>li {
      background-color: var(--color-gray-light);
    }
  }
  nav li {
     flex: 1 1 auto;
     border: none;
     &:first-child {
      border: none;
     }
  }

  .logo {
    margin: 0;
    justify-content: center;
    background-color: var(--color-dark-light);
  }

  .banner {
    height:36rem;
    padding-top: 4.5rem;
    margin-bottom: 0rem;
  
    img {
      width: 26rem;
      height:26rem;
    }
  }

  .media-links {
    max-width: 100%;
    justify-content:flex-end;
    padding-right: 5%;

  }
  .media-links>a>img {
    max-height: 3rem;
    max-width: 3rem; 
    margin-right: 1.5rem;
  }

  .news {
    width: 100%;
    justify-content: center;
  }
  /* .news-wrapper-flex {
    max-width: 85rem;
  } */
  
  .news-wrapper-grid {
    height: 10rem;
    margin-top: 4rem;

    .img {
      grid-column-start: 1;
      grid-row: 1 /span 2;

      img {
        max-width: 10rem;
        max-height: 10rem;
      }
    }
    .news {
      grid-column-start: 2;
      grid-row: 1 /span 2;
      justify-self: start;
      font-size: 16px;
    }
    .title {
      grid-column-start: 3;
      grid-row: 1 / span 2;
      justify-self: start;
      align-self: center;
      padding: 0;
      
      font-size: 14px;

      a {
        margin-right: 1rem;
        &:visited {
          color: white;
        }
      }
    }
  }
}
