#blog {
  background: #eee;
}
/* TOPO CATEGORIA */
#blog.category .topo {
  background:#5B9BCB;
}
/* TOPO */
#blog .topo {
  background: linear-gradient(180deg, #5B9BCB 0%, #5B9BCB 70%, #EEE 70%, #EEE 100%);
}
#blog .topo .header {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
#blog .topo .header h1 {
  font-family: "Quentin";
  font-weight: 400;
  font-size: 88px !important;
  color: #fff;
}
#blog .topo .header p {
  color: #fff;
}
/* POSTS DESTAQUE */
#blog .primary-posts .grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: 100%;
  gap: 16px;
}
#blog .primary-posts .grid .item {
  border-radius: 12px;
  background: #004B82;
  overflow: hidden;
  transition: all 0.3s ease;
}
#blog .primary-posts .grid .item:hover {
  background: #fff;
}
#blog .primary-posts .grid .item a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
#blog .primary-posts .grid .item .img__wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 280/160;
}
#blog .primary-posts .grid .item .img__wrapper img {
  width: 100%;
  height: 100%;
  object-position: center;
  object-fit: cover;
}
#blog .primary-posts .grid .item .text__wrapper {
  padding: 32px 24px;
  text-align: center;
  color: #fff;
}
#blog .primary-posts .grid .item:hover > a .text__wrapper {
  color: var(--clr-primary);
}
@media (min-width: 992px) and (max-width: 1366px) {
  #blog .primary-posts .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 16px;
  }
}
/* POSTS PARTE DE CIMA */
#blog .main-posts .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
}
#blog .main-posts .grid a:nth-child(1) { 
  grid-area: 1 / 1 / 2 / 3;
  border-radius: 12px 12px 0 0;
  min-height: 600px;
}
#blog .main-posts .grid a:nth-child(2) { 
  border-radius: 0 0 0 12px;
}
#blog .main-posts .grid a:nth-child(3) { 
  border-radius: 0 0 12px 0;
}
#blog .main-posts .grid a {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: end;
  text-decoration: none;
}
#blog .main-posts .grid a::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 1) 80%);
  opacity: 0.65;
  transition: all 0.3s ease;
}
#blog .main-posts .grid a:hover::before {
  opacity: 0.8;
}
#blog .main-posts .grid .infos__wrapper {
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #fff;
  padding: 250px 32px 32px;
}
#blog .main-posts .grid .img__wrapper {
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
}
#blog .main-posts .grid img {
  width: 100%;
  height: 100%;
  object-position: center;
  object-fit: cover;
  transition: all 0.3s ease;
}
#blog .main-posts a:hover > .img__wrapper img {
  transform: scale(1.05);
}
/* POSTS PARTE DEBAIXO */
#blog .more-posts .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  gap: 24px;
}
#blog .more-posts .grid a {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 3/5;
  display: flex;
  align-items: end;
  text-decoration: none;
}
#blog .more-posts .grid a::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 1) 80%);
  opacity: 0.65;
  transition: all 0.3s ease;
}
#blog .more-posts .grid a:hover::before {
  opacity: 0.8;
}
#blog .more-posts .grid .infos__wrapper {
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #fff;
  padding: 32px;
}
#blog .more-posts .grid .img__wrapper {
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
}
#blog .more-posts .grid img {
  width: 100%;
  height: 100%;
  object-position: center;
  object-fit: cover;
  transition: all 0.3s ease;
}
#blog .more-posts a:hover > .img__wrapper img {
  transform: scale(1.05);
}
/* PAGINAÇAO */
#blog .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
#blog .pagination__wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
#blog .pagination__wrapper a {
  text-decoration: none;
  color: #585858;
}
@media (max-width: 991px) {
  #blog {
    background: linear-gradient(180deg, #5B9BCB 0%, #5B9BCB 30%, #EEE 30%, #EEE 100%);
  }
  #blog .topo {
    background: unset;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  #blog .topo .header h1 {
    font-size: 40px !important;
  }
  #blog .more-posts .grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  #blog .more-posts .grid a {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 1;
  }
  #blog .more-posts .grid .infos__wrapper {
    padding: 16px;
  }
}