/* Estilo automático para a página: blog */

#cabecalho {
  min-height: 530px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: -170px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;

  .sombra-servico {
    background-image: linear-gradient(#00000054, black);
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.8;
    top: 0;
  }

  .barras {
    &::after {
      background-color: #ffffff;
      background-size: auto;
      display: inline-block;
      width: 100%;
      height: 1px;
      content: "";
      right: 135px;
      position: absolute;
      z-index: 0;
      bottom: 60px;
    }
    &::before {
      background-color: #ffffff;
      background-size: auto;
      display: inline-block;
      width: 1px;
      height: 360px;
      content: "";
      right: 135px;
      position: absolute;
      z-index: 0;
      bottom: 0;
    }
  }

  .cabecalho {
    display: flex;
    justify-content: center;
    margin-top: 100px;

    li {
      font-weight: 300;
      font-size: 18px;
      line-height: 160%;
      text-align: center;
      color: #fff;
      list-style-type: none;
      letter-spacing: 1px;
    }
    .destaque {
      font-weight: 600;
    }
  }

  h1 {
    vertical-align: middle;
  }
}

#blog {
  padding: 100px 0;

  h2 {
    margin-bottom: 60px;
  }

  .text-blog {
    font-weight: 300;
    font-size: 18px;
    line-height: 160%;
    color: #2c2c2c;
    margin-bottom: 60px;
  }

  .btn-padrao {
    border: 1px solid #2c2c2c;
    padding: 0 0px 0 22px;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 1px;
    text-align: center;
    color: #2c2c2c;
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: 300ms all ease-in-out;

    .moldura-seta {
      padding: 22px;
      transition: 300ms all ease-in-out;
      border-left: solid 1px #2c2c2c;
      margin-left: 22px;
      background-color: #fff;
    }
  }
  .btn-padrao:hover {
    background-color: #009651;
    color: #fff;
    border: 1px solid #fff;
  }
  .btn-padrao:hover .moldura-seta {
    border-left: solid 1px #fff;
    background-color: #dd6d34;
  }
  .btn-padrao:hover .moldura-seta img {
    transition: 300ms all ease-in-out;
    filter: invert(100%) sepia(0%) saturate(7486%) hue-rotate(296deg)
      brightness(109%) contrast(99%);
  }

  .card-blog {
    position: relative;
    margin: 25px;

    &::after {
      background-color: #2c2c2c;
      background-size: auto;
      display: inline-block;
      width: 56px;
      height: 56px;
      content: "";
      top: -25px;
      right: -25px;
      position: absolute;
      z-index: -1;
    }
    &::before {
      background-color: #2c2c2c;
      background-size: auto;
      display: inline-block;
      width: 56px;
      height: 56px;
      content: "";
      bottom: -25px;
      left: -25px;
      position: absolute;
      z-index: -1;
    }

    .moldura {
      overflow: hidden;

      .img-blog {
        width: 100%;
        object-fit: cover;
        height: 280px;
        transition: transform 0.5s ease-in-out;
      }
    }

    .inf-card-blog {
      padding: 32px;
      background-color: #f4f3f3;

      .cat-data {
        display: flex;
        justify-content: space-between;

        .cat-blog {
          font-weight: 300;
          font-size: 15px;
          line-height: 100%;

          img {
            position: relative;
            top: -2px;
          }
        }
        .data-blog {
          font-weight: 300;
          font-size: 15px;
          line-height: 100%;

          img {
            position: relative;
            top: -2px;
          }
        }
      }
      .resumo-blog {
        font-weight: 400;
        font-size: 16px;
        color: #2c2c2c;
        line-height: 160%;
        letter-spacing: 0.8px;
      }

      .btn-ler-noticia {
        display: block;
        border: 2px solid #2c2c2c;
        font-weight: 400;
        font-size: 16px;
        color: #2c2c2c;
        line-height: 100%;
        letter-spacing: 0.8px;
        text-align: center;
        padding: 22px 0;
        transition: 300ms all ease-in-out;

        &:hover {
          background-color: #dd6d34;
          color: #fff;
        }
      }
    }
  }

  .card-blog:hover .img-blog {
    transform: scale(1.1);
  }
  .card-blog:hover .btn-conheça-blog {
    color: #fff;
    background-color: #dd6d34 !important;
  }

  .blog-pagination {
    display: flex;
    justify-content: center;

    .page-numbers {
      border: solid 1px #2c2c2c;
      padding: 15px;
      margin: 0 10px;
    }
    .current {
      border: solid 1px #2c2c2c;
      padding: 15px;
      margin: 0 10px;
      background-color: #f4f3f3;
    }
  }
}

/* TABLET */
@media (min-width: 768px) and (max-width: 992px) {
  #cabecalho {
    .barras {
      display: none;
    }
  }
}

/* MOBILE */
@media all and (max-width: 767px) {
  #cabecalho {
    .barras {
      display: none;
    }
  }

  #blog {
    .card-blog {
      .inf-card-blog {
        .cat-data {
          display: flex;
          justify-content: space-between;
          flex-direction: column;
        }
      }
    }
  }
}