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

body {
  font-family: 'Nanum Gothic', sans-serif;
  line-height: 1.5;
  font-size: 15px;
  overflow-x: none;
}

/** Navbar **/

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #222;
  color: #ffffff;
}

.brand-title {
  font-size: 1.5rem;
  margin: .5rem;
}

.navbar-links ul {
  margin: 0;
  padding: 0;
  display: flex;
}

.navbar-links li {
  list-style: none;
}

.navbar-links li a {
  text-decoration: none;
  color: #ffffff;
  padding: 1rem;
  display: block;
}

.navbar-links li a:hover {
  background-color: #ccc;
}

/* Hamburger -- Menu */

.toggle-button {
  position: absolute;
  top: .75rem;
  right: 1rem;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
}

.toggle-button .bar {
  height: 3px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 10px;
}



.main-container {
  width: 90vw;
  margin: 0 auto;
  padding: 40px 0;
}

.main-container > h2 {
  padding: 10px 0;
  font-size: 32px;
  text-align: center;
}

.main-container > p {
  font-weight: 400;
  padding: 10px 0;
  opacity: 0.7;
  text-align: center;
}

.category-head {
  margin: 30px 0;
}

.category-head ul {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.category-title {
  flex: 0 0 calc(16.6667% - 10px);
  display: flex;
  justify-content: center;
  padding: 12px;
  background: #ccc;
  margin: 5px;
  cursor: pointer;
  transition: all 0.5s ease;
}

.category-title:hover {
  opacity: 0.7;
}

.category-title li {
  padding: 0 10px;
}

.category-title span {
  color: #222;
}

/* Single Articles */

.posts-main-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 40px;
}

.posts-main-container > div {
  box-shadow: 0px 8px 22px -12px rgba(0, 0, 0, 0.64);

}

.post-img {
  position: relative;
}

.category-name {
  position: absolute;
  top: 20px;
  left: 20px;
  text-transform: uppercase;
  font-size: 13px;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 2px;
}

.business .category-name {
  background: #34cceb;
}

.culture .category-name {
  background: #ebc334;
}

.finance .category-name {
  background: #4c9c4b;
}

.politics .category-name {
  background: #d1412e;
}

.sports .category-name {
  background: #f29407;
}

.post-content {
  padding: 25px;
}

.post-content-top {
  background: #e0d7a6;
  color: #ffffff;
  opacity: 0.8;
  padding: 5px 0 5px 15px;
}

.post-content-top span {
  padding-right: 20px;
}

.post-content h2 {
  font-size: 23px;
  padding: 12px 0;
  font-weight: 500;
}

.post-content p {
  opacity: 0.7;
  font-weight: 300;
  line-height: 1.8;
}

.read-btn {
  border: none;
  cursor: pointer;
  display: block;
  font-size: 15px;
  margin: 5px auto;
  font-family: 'Nanum Gothic', sans-serif;
  padding: 8px 15px;
  border: 1px solid #222;
  background: transparent;
}

.read-btn:hover {
  margin-bottom: 40px;
  background: #ccc;
  transition: 0.4s;
}

.read-more-btn {
  text-decoration: none;
}

.active {
  background: red;
}

/*Footer */

.footer-basic {
  padding:40px 0;
  background-color:#222;
  color:#ffffff;
}

.footer-basic ul {
  padding:0;
  list-style:none;
  text-align:center;
  font-size:18px;
  line-height:1.6;
  margin-bottom:0;
}

.footer-basic li {
  padding:0 10px;
}

.footer-basic ul a {
  color:inherit;
  text-decoration:none;
  opacity:0.8;
}

.footer-basic ul a:hover {
  opacity:1;
}

.footer-basic .social {
  text-align:center;
  padding-bottom:25px;
}

.footer-basic .social > a {
  font-size:24px;
  width:40px;
  height:40px;
  line-height:40px;
  display:inline-block;
  text-align:center;
  border-radius:50%;
  border:1px solid #ccc;
  margin:0 8px;
  color:inherit;
  opacity:0.75;
}

.footer-basic .social > a:hover {
  opacity:0.9;
}

.footer-basic .copyright {
  margin-top:15px;
  text-align:center;
  font-size:13px;
  color:#ffffff;
  margin-bottom:0;
}





/* Media queries */

@media screen and (max-width: 1170px) {
  .posts-main-container {
    grid-template-columns: 1fr;
  }
}



@media screen and (max-width: 768px) {
  .posts-main-container {
    grid-template-columns: 1fr;
  }
    }




@media screen and (max-width: 425px) {

  .toggle-button {
      display: flex;
    }

    .navbar-links {
      display: none;
      width: 100%;
    }

    .navbar {
      flex-direction: column;
      align-items: flex-start;
    }

    .navbar-links ul {
      width: 100%;
      flex-direction: column;
    }

    .navbar-links li {
      text-align: center;
    }

    .navbar-links a {
      padding: .5rem 1rem;
    }

    .navbar-links.active-1 {
      display: flex;
    }



  .post-img  {
    width: 320px;
    align-items: center;
    justify-content: center;
    }
    img {
      width: 335px;
      align-items: center;
      justify-content: center;
  }
}
