.noticias {
  margin-bottom: 40px;

  &.relacionados .container {
    border-top: solid 1px #ebebeb;
    padding-top: 60px;
    padding-bottom: 40px;
  }

  & .btn.azul-escuro {
    margin: 40px auto 0 auto;
  }
}

#form-materias {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 500px;

  & input {
    width: 100%;
    box-shadow: var(--shadow-sm);
    border-radius: 25px;
    font-size: 1.2em;
    padding: 10px 15px 10px 45px;
    outline: none;
  }

  & img {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
  }
}

.noticias-topo {
  & h2 {
    font-size: 3.8em;
    line-height: 1.3;
    font-weight: bold;
  }

  & strong {
    color: #1574bf;
  }

  & .d-flex {
    gap: 20px;
  }

  & a,
  & a:active,
  & a:visited,
  & a:focus {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: all 300ms;
    border-radius: 20px;
    min-width: 125px;
    text-align: center;
    display: block;
    text-decoration: none;
    padding: 10px 35px;
    font-size: 1.32em;
    font-weight: 400;
    line-height: 1;
    color: #797979;
  }

  & a:hover,
  & a:first-child {
    background: #1e215a;
    color: #fff;
  }
}

.aneps-materias {
  gap: 30px;

  & .card-materia {
    width: calc(50% - 15px);

    @media (max-width: 991px) {
      width: 100%;
      margin-bottom: 30px;
    }
  }
}

.aneps-materias__destaque {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 30px;

  & > .aneps-materias__destaque__item {
    width: calc(33% - 15px);

    & .card-materia__conteudo {
      min-height: 340px;
    }
  }

  &.slick-slider {
    margin: 0 -15px 50px -15px;

    & .aneps-materias__destaque__item {
      padding: 15px;
    }
  }
}

body:not(.page-template-home) .aneps-materias__destaque {
  & .slick-dots {
    bottom: -34px;

    & li {
      width: 10px;

      & button::before {
        content: "";
        background: rgba(30, 33, 90, 0.3);
        border-radius: 50%;
        height: 10px;
        width: 10px;
        opacity: 1;
      }
    }

    & li.slick-active button::before {
      background: #1e215a;
    }
  }

  & .slick-arrow {
    position: absolute;
    top: 100%;
    border: solid 2px #1e215a;
    border-radius: 50%;
    width: 42px;
    object-fit: contain;
    padding: 11px 15px;
    cursor: pointer;
    z-index: 1;

    &:hover {
      opacity: 0.8;
    }

    &.slick-arrow-prev {
      right: 80px;
    }

    &.slick-arrow-next {
      right: 15px;
      background: #1e215a;
    }
  }
}

.aneps-paginacao {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 5px;

  & .page-numbers {
    display: block;
    position: relative;
    padding: 8px;
    min-width: 30px;
    text-align: center;
    color: #aaaaaa;
    text-decoration: none;
    outline: none;
    box-shadow: var(--shadow-sm);
    border-radius: 4px;
    font-size: 1.2em;
    font-weight: bold;

    &.current {
      color: #fff;
      background: #1e215a;
      border-color: #1e215a;
    }

    &.next,
    &.prev {
      border: none;
      color: #1e215a;
    }
  }
}

.aneps-single__titulo {
  border-block: solid 1px #ebebeb;
  padding-block: 40px;

  & h1 {
    font-size: 3.2em;
    font-weight: bold;
    margin-bottom: 10px !important;
  }

  & p {
    margin-top: 80px;
    text-align: left;
    padding: 2px 2px 2px 2px;
    box-sizing: border-box;
    font-family: "OpenSans-Regular", "Open Sans", sans-serif;
    color: #333f49;
    line-height: 28px;
    font-weight: 400;
    font-size: 1.5em;
  }
}

.aneps-single__info {
  color: #8e96a7;
  font-size: 1.1em;

  & > .d-flex:not(.aneps-cabecalho-evento) {
    @media (max-width: 991px) {
      flex-wrap: wrap;
      text-align: center;

      & > * {
        width: 100%;
      }

      & > .d-flex {
        justify-content: center;
      }
    }
  }
}

.aneps-single__data-tempo {
  & li {
    display: flex;
    align-items: center;
    gap: 7px;

    &:last-child {
      margin-top: 10px;
    }

    @media (max-width: 991px) {
      justify-content: center;
      margin-bottom: 20px;
    }
  }
}

.single-post {
  .aneps-content {
    padding-bottom: 50px;
  }

  ul,
  ol {
    & + *,
    * + & {
      margin-top: 1em;
    }

    list-style-type: auto;
    padding-left: 20px;
    font-size: 1.5em;
    line-height: 1.5;
    font-family: "OpenSans-Regular", "Open Sans", sans-serif;

    li {
      & + & {
        margin-top: 0.5em;
      }
    }
  }
}

.aneps-single__categoria {
  color: #fff;
  background: #1574bf;
  padding: 8px 20px;
  border-radius: 5px;

  @media (max-width: 991px) {
    margin-bottom: 0;
  }
}

.aneps-single__autor {
  position: relative;
  padding: 8px 0 8px 60px;

  & img {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    object-fit: contain;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
  }

  & p {
    margin-top: 6px !important;
    color: #121212;
    font-size: 1.1em;
  }
}

.aneps-single__topo {
  border-bottom: solid 1px #ebebeb;
  padding-block: 20px;
  gap: 70px;
}

.aneps-single-cabecalho {
  & .aneps-single__data-tempo {
    @media (max-width: 991px) {
      display: none;
    }
  }
}

.conteudo-titulo {
  font-weight: 600;
  font-size: 3.5em;

  & strong {
    color: #1574bf;
  }
}
